New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

preact-render-to-string

Package Overview
Dependencies
Maintainers
9
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preact-render-to-string - npm Package Compare versions

Comparing version 5.1.16 to 5.1.17

2

dist/commonjs.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],t):t((e||self).preactRenderToString={},e.preact)}(this,function(e,t){var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,r=/[&<>"]/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},i=function(e){return o[e]||e};function a(e){return"string"!=typeof e&&(e=String(e)),e.replace(r,i)}var l=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},s=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},f={};function p(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:f[r]||(f[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===n.test(r)&&(t+="px"),t+=";")}return t||void 0}function u(e,t){for(var n in t)e[n]=t[n];return e}function c(e,t){return Array.isArray(t)?t.reduce(c,e):null!=t&&!1!==t&&e.push(t),e}var d={shallow:!0},_=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,v=/[\s\n\\/='"\0<>]/,h=function(){};x.render=x;var m=function(e,t){return x(e,t,d)},y=[];function x(e,n,r){var o=b(e,n,r);return t.options.__c&&t.options.__c(e,y),o}function b(e,n,r,o,i,f){if(null==e||"boolean"==typeof e)return"";Array.isArray(e)&&(e=t.createElement(t.Fragment,null,e));var d=e.type,m=e.props,y=!1;n=n||{};var x,S=(r=r||{}).pretty,w=S&&"string"==typeof S?S:"\t";if("object"!=typeof e&&!d)return a(e);if("function"==typeof d){if(y=!0,!r.shallow||!o&&!1!==r.renderRootComponent){if(d===t.Fragment){var k="",O=[];c(O,e.props.children);for(var T=0;T<O.length;T++)k+=(T>0&&S?"\n":"")+b(O[T],n,r,!1!==r.shallowHighOrder,i,f);return k}var C,A=e.__c={__v:e,context:n,props:e.props,setState:h,forceUpdate:h,__h:[]};if(t.options.__b&&t.options.__b(e),t.options.__r&&t.options.__r(e),d.prototype&&"function"==typeof d.prototype.render){var F=d.contextType,j=F&&n[F.__c],H=null!=F?j?j.props.value:F.__:n;(A=e.__c=new d(m,H)).__v=e,A._dirty=A.__d=!0,A.props=m,null==A.state&&(A.state={}),null==A._nextState&&null==A.__s&&(A._nextState=A.__s=A.state),A.context=H,d.getDerivedStateFromProps?A.state=u(u({},A.state),d.getDerivedStateFromProps(A.props,A.state)):A.componentWillMount&&(A.componentWillMount(),A.state=A._nextState!==A.state?A._nextState:A.__s!==A.state?A.__s:A.state),C=A.render(A.props,A.state,A.context)}else{var M=d.contextType,$=M&&n[M.__c];C=d.call(e.__c,m,null!=M?$?$.props.value:M.__:n)}return A.getChildContext&&(n=u(u({},n),A.getChildContext())),t.options.diffed&&t.options.diffed(e),b(C,n,r,!1!==r.shallowHighOrder,i,f)}d=(x=d).displayName||x!==Function&&x.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=_.length;r--;)if(_[r]===e){n=r;break}n<0&&(n=_.push(e)-1),t="UnnamedComponent"+n}return t}(x)}var E,L,R="";if(m){var q=Object.keys(m);r&&!0===r.sortAttributes&&q.sort();for(var D=0;D<q.length;D++){var N=q[D],P=m[N];if("children"!==N){if(!N.match(/[\s\n\\/='"\0<>]/)&&(r&&r.allAttributes||"key"!==N&&"ref"!==N&&"__self"!==N&&"__source"!==N&&"defaultValue"!==N)){if("className"===N){if(m.class)continue;N="class"}else i&&N.match(/^xlink:?./)&&(N=N.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===N){if(m.for)continue;N="for"}"style"===N&&P&&"object"==typeof P&&(P=p(P)),"a"===N[0]&&"r"===N[1]&&"boolean"==typeof P&&(P=String(P));var U=r.attributeHook&&r.attributeHook(N,P,n,r,y);if(U||""===U)R+=U;else if("dangerouslySetInnerHTML"===N)L=P&&P.__html;else if("textarea"===d&&"value"===N)E=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=N,r&&r.xml))){R+=" "+N;continue}if("value"===N){if("select"===d){f=P;continue}"option"===d&&f==P&&(R+=" selected")}R+=" "+N+'="'+a(P)+'"'}}}else E=P}}if(S){var W=R.replace(/^\n\s*/," ");W===R||~W.indexOf("\n")?S&&~R.indexOf("\n")&&(R+="\n"):R=W}if(R="<"+d+R+">",v.test(String(d)))throw new Error(d+" is not a valid HTML tag name in "+R);var z,I=g.test(String(d))||r.voidElements&&r.voidElements.test(String(d)),V=[];if(L)S&&s(L)&&(L="\n"+w+l(L,w)),R+=L;else if(null!=E&&c(z=[],E).length){for(var Z=S&&~R.indexOf("\n"),B=!1,G=0;G<z.length;G++){var J=z[G];if(null!=J&&!1!==J){var K=b(J,n,r,!0,"svg"===d||"foreignObject"!==d&&i,f);if(S&&!Z&&s(K)&&(Z=!0),K)if(S){var Q=K.length>0&&"<"!=K[0];B&&Q?V[V.length-1]+=K:V.push(K),B=Q}else V.push(K)}}if(S&&Z)for(var X=V.length;X--;)V[X]="\n"+w+l(V[X],w)}if(V.length||L)R+=V.join("");else if(r&&r.xml)return R.substring(0,R.length-1)+" />";return!I||z||L?(S&&~R.indexOf("\n")&&(R+="\n"),R+="</"+d+">"):R=R.replace(/>$/," />"),R}x.shallowRender=m,e.default=x,e.render=x,e.renderToStaticMarkup=x,e.renderToString=x,e.shallowRender=m});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],t):t((e||self).preactRenderToString={},e.preact)}(this,function(e,t){var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,r=/[&<>"]/;function o(e){var t=String(e);return r.test(t)?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t}var i=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},a=function(e,t,n){return String(e).length>(t||40)||!n&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},l={};function s(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:l[r]||(l[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===n.test(r)&&(t+="px"),t+=";")}return t||void 0}function f(e,t){for(var n in t)e[n]=t[n];return e}function p(e,t){return Array.isArray(t)?t.reduce(p,e):null!=t&&!1!==t&&e.push(t),e}var u={shallow:!0},c=[],_=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,d=/[\s\n\\/='"\0<>]/,g=function(){};y.render=y;var v=function(e,t){return y(e,t,u)},h=[];function y(e,n,r){n=n||{},r=r||{};var o=t.options.__s;t.options.__s=!0;var i=m(e,n,r);return t.options.__c&&t.options.__c(e,h),t.options.__s=o,i}function m(e,n,r,l,u,v){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return o(e);var h=r.pretty,y=h&&"string"==typeof h?h:"\t";if(Array.isArray(e)){for(var x="",b=0;b<e.length;b++)h&&b>0&&(x+="\n"),x+=m(e[b],n,r,l,u,v);return x}var S,w=e.type,k=e.props,O=!1;if("function"==typeof w){if(O=!0,!r.shallow||!l&&!1!==r.renderRootComponent){if(w===t.Fragment){var T=[];return p(T,e.props.children),m(T,n,r,!1!==r.shallowHighOrder,u,v)}var C,A=e.__c={__v:e,context:n,props:e.props,setState:g,forceUpdate:g,__h:[]};if(t.options.__b&&t.options.__b(e),t.options.__r&&t.options.__r(e),w.prototype&&"function"==typeof w.prototype.render){var j=w.contextType,F=j&&n[j.__c],H=null!=j?F?F.props.value:j.__:n;(A=e.__c=new w(k,H)).__v=e,A._dirty=A.__d=!0,A.props=k,null==A.state&&(A.state={}),null==A._nextState&&null==A.__s&&(A._nextState=A.__s=A.state),A.context=H,w.getDerivedStateFromProps?A.state=f(f({},A.state),w.getDerivedStateFromProps(A.props,A.state)):A.componentWillMount&&(A.componentWillMount(),A.state=A._nextState!==A.state?A._nextState:A.__s!==A.state?A.__s:A.state),C=A.render(A.props,A.state,A.context)}else{var M=w.contextType,$=M&&n[M.__c];C=w.call(e.__c,k,null!=M?$?$.props.value:M.__:n)}return A.getChildContext&&(n=f(f({},n),A.getChildContext())),t.options.diffed&&t.options.diffed(e),m(C,n,r,!1!==r.shallowHighOrder,u,v)}w=(S=w).displayName||S!==Function&&S.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var n=-1,r=c.length;r--;)if(c[r]===e){n=r;break}n<0&&(n=c.push(e)-1),t="UnnamedComponent"+n}return t}(S)}var L,R,E="<"+w;if(k){var q=Object.keys(k);r&&!0===r.sortAttributes&&q.sort();for(var D=0;D<q.length;D++){var N=q[D],P=k[N];if("children"!==N){if(!d.test(N)&&(r&&r.allAttributes||"key"!==N&&"ref"!==N&&"__self"!==N&&"__source"!==N&&"defaultValue"!==N)){if("className"===N){if(k.class)continue;N="class"}else u&&N.match(/^xlink:?./)&&(N=N.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===N){if(k.for)continue;N="for"}"style"===N&&P&&"object"==typeof P&&(P=s(P)),"a"===N[0]&&"r"===N[1]&&"boolean"==typeof P&&(P=String(P));var U=r.attributeHook&&r.attributeHook(N,P,n,r,O);if(U||""===U)E+=U;else if("dangerouslySetInnerHTML"===N)R=P&&P.__html;else if("textarea"===w&&"value"===N)L=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=N,r&&r.xml))){E+=" "+N;continue}if("value"===N){if("select"===w){v=P;continue}"option"===w&&v==P&&(E+=" selected")}E+=" "+N+'="'+o(P)+'"'}}}else L=P}}if(h){var W=E.replace(/\n\s*/," ");W===E||~W.indexOf("\n")?h&&~E.indexOf("\n")&&(E+="\n"):E=W}if(E+=">",d.test(w))throw new Error(w+" is not a valid HTML tag name in "+E);var z,I=_.test(w)||r.voidElements&&r.voidElements.test(w),V=[];if(R)h&&a(R)&&(R="\n"+y+i(R,y)),E+=R;else if(null!=L&&p(z=[],L).length){for(var Z=h&&~E.indexOf("\n"),B=!1,G=0;G<z.length;G++){var J=z[G];if(null!=J&&!1!==J){var K=m(J,n,r,!0,"svg"===w||"foreignObject"!==w&&u,v);if(h&&!Z&&a(K)&&(Z=!0),K)if(h){var Q=K.length>0&&"<"!=K[0];B&&Q?V[V.length-1]+=K:V.push(K),B=Q}else V.push(K)}}if(h&&Z)for(var X=V.length;X--;)V[X]="\n"+y+i(V[X],y)}if(V.length||R)E+=V.join("");else if(r&&r.xml)return E.substring(0,E.length-1)+" />";return!I||z||R?(h&&~E.indexOf("\n")&&(E+="\n"),E+="</"+w+">"):E=E.replace(/>$/," />"),E}y.shallowRender=v,e.default=y,e.render=y,e.renderToStaticMarkup=y,e.renderToString=y,e.shallowRender=v});
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import{options as e,createElement as t,Fragment as r}from"preact";var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o=/[&<>"]/g,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},a=function(e){return i[e]||e};function l(e){return"string"!=typeof e&&(e=String(e)),e.replace(o,a)}var s=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},f=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},u={};function c(e){var t="";for(var r in e){var o=e[r];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==r[0]?r:u[r]||(u[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===n.test(r)&&(t+="px"),t+=";")}return t||void 0}function p(e,t){for(var r in t)e[r]=t[r];return e}function _(e,t){return Array.isArray(t)?t.reduce(_,e):null!=t&&!1!==t&&e.push(t),e}var v={shallow:!0},d=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,h=/[\s\n\\/='"\0<>]/,m=function(){};b.render=b;var x=function(e,t){return b(e,t,v)},y=[];function b(t,r,n){var o=S(t,r,n);return e.__c&&e.__c(t,y),o}function S(n,o,i,a,u,v){if(null==n||"boolean"==typeof n)return"";Array.isArray(n)&&(n=t(r,null,n));var x=n.type,y=n.props,b=!1;o=o||{};var w,k=(i=i||{}).pretty,O=k&&"string"==typeof k?k:"\t";if("object"!=typeof n&&!x)return l(n);if("function"==typeof x){if(b=!0,!i.shallow||!a&&!1!==i.renderRootComponent){if(x===r){var C="",A=[];_(A,n.props.children);for(var H=0;H<A.length;H++)C+=(H>0&&k?"\n":"")+S(A[H],o,i,!1!==i.shallowHighOrder,u,v);return C}var j,F=n.__c={__v:n,context:o,props:n.props,setState:m,forceUpdate:m,__h:[]};if(e.__b&&e.__b(n),e.__r&&e.__r(n),x.prototype&&"function"==typeof x.prototype.render){var M=x.contextType,T=M&&o[M.__c],$=null!=M?T?T.props.value:M.__:o;(F=n.__c=new x(y,$)).__v=n,F._dirty=F.__d=!0,F.props=y,null==F.state&&(F.state={}),null==F._nextState&&null==F.__s&&(F._nextState=F.__s=F.state),F.context=$,x.getDerivedStateFromProps?F.state=p(p({},F.state),x.getDerivedStateFromProps(F.props,F.state)):F.componentWillMount&&(F.componentWillMount(),F.state=F._nextState!==F.state?F._nextState:F.__s!==F.state?F.__s:F.state),j=F.render(F.props,F.state,F.context)}else{var L=x.contextType,E=L&&o[L.__c];j=x.call(n.__c,y,null!=L?E?E.props.value:L.__:o)}return F.getChildContext&&(o=p(p({},o),F.getChildContext())),e.diffed&&e.diffed(n),S(j,o,i,!1!==i.shallowHighOrder,u,v)}x=(w=x).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=d.length;n--;)if(d[n]===e){r=n;break}r<0&&(r=d.push(e)-1),t="UnnamedComponent"+r}return t}(w)}var D,N,P="";if(y){var R=Object.keys(y);i&&!0===i.sortAttributes&&R.sort();for(var U=0;U<R.length;U++){var W=R[U],q=y[W];if("children"!==W){if(!W.match(/[\s\n\\/='"\0<>]/)&&(i&&i.allAttributes||"key"!==W&&"ref"!==W&&"__self"!==W&&"__source"!==W&&"defaultValue"!==W)){if("className"===W){if(y.class)continue;W="class"}else u&&W.match(/^xlink:?./)&&(W=W.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===W){if(y.for)continue;W="for"}"style"===W&&q&&"object"==typeof q&&(q=c(q)),"a"===W[0]&&"r"===W[1]&&"boolean"==typeof q&&(q=String(q));var z=i.attributeHook&&i.attributeHook(W,q,o,i,b);if(z||""===z)P+=z;else if("dangerouslySetInnerHTML"===W)N=q&&q.__html;else if("textarea"===x&&"value"===W)D=q;else if((q||0===q||""===q)&&"function"!=typeof q){if(!(!0!==q&&""!==q||(q=W,i&&i.xml))){P+=" "+W;continue}if("value"===W){if("select"===x){v=q;continue}"option"===x&&v==q&&(P+=" selected")}P+=" "+W+'="'+l(q)+'"'}}}else D=q}}if(k){var I=P.replace(/^\n\s*/," ");I===P||~I.indexOf("\n")?k&&~P.indexOf("\n")&&(P+="\n"):P=I}if(P="<"+x+P+">",h.test(String(x)))throw new Error(x+" is not a valid HTML tag name in "+P);var V,Z=g.test(String(x))||i.voidElements&&i.voidElements.test(String(x)),B=[];if(N)k&&f(N)&&(N="\n"+O+s(N,O)),P+=N;else if(null!=D&&_(V=[],D).length){for(var G=k&&~P.indexOf("\n"),J=!1,K=0;K<V.length;K++){var Q=V[K];if(null!=Q&&!1!==Q){var X=S(Q,o,i,!0,"svg"===x||"foreignObject"!==x&&u,v);if(k&&!G&&f(X)&&(G=!0),X)if(k){var Y=X.length>0&&"<"!=X[0];J&&Y?B[B.length-1]+=X:B.push(X),J=Y}else B.push(X)}}if(k&&G)for(var ee=B.length;ee--;)B[ee]="\n"+O+s(B[ee],O)}if(B.length||N)P+=B.join("");else if(i&&i.xml)return P.substring(0,P.length-1)+" />";return!Z||V||N?(k&&~P.indexOf("\n")&&(P+="\n"),P+="</"+x+">"):P=P.replace(/>$/," />"),P}b.shallowRender=x;export default b;export{b as render,b as renderToStaticMarkup,b as renderToString,x as shallowRender};
import{options as e,Fragment as t}from"preact";var r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=/[&<>"]/;function o(e){var t=String(e);return n.test(t)?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t}var a=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"\t"))},i=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},l={};function s(e){var t="";for(var n in e){var o=e[n];null!=o&&""!==o&&(t&&(t+=" "),t+="-"==n[0]?n:l[n]||(l[n]=n.replace(/([A-Z])/g,"-$1").toLowerCase()),t+=": ",t+=o,"number"==typeof o&&!1===r.test(n)&&(t+="px"),t+=";")}return t||void 0}function f(e,t){for(var r in t)e[r]=t[r];return e}function u(e,t){return Array.isArray(t)?t.reduce(u,e):null!=t&&!1!==t&&e.push(t),e}var c={shallow:!0},p=[],_=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,v=/[\s\n\\/='"\0<>]/,d=function(){};m.render=m;var g=function(e,t){return m(e,t,c)},h=[];function m(t,r,n){r=r||{},n=n||{};var o=e.__s;e.__s=!0;var a=x(t,r,n);return e.__c&&e.__c(t,h),e.__s=o,a}function x(r,n,l,c,g,h){if(null==r||"boolean"==typeof r)return"";if("object"!=typeof r)return o(r);var m=l.pretty,y=m&&"string"==typeof m?m:"\t";if(Array.isArray(r)){for(var b="",S=0;S<r.length;S++)m&&S>0&&(b+="\n"),b+=x(r[S],n,l,c,g,h);return b}var w,k=r.type,O=r.props,C=!1;if("function"==typeof k){if(C=!0,!l.shallow||!c&&!1!==l.renderRootComponent){if(k===t){var A=[];return u(A,r.props.children),x(A,n,l,!1!==l.shallowHighOrder,g,h)}var H,j=r.__c={__v:r,context:n,props:r.props,setState:d,forceUpdate:d,__h:[]};if(e.__b&&e.__b(r),e.__r&&e.__r(r),k.prototype&&"function"==typeof k.prototype.render){var F=k.contextType,M=F&&n[F.__c],T=null!=F?M?M.props.value:F.__:n;(j=r.__c=new k(O,T)).__v=r,j._dirty=j.__d=!0,j.props=O,null==j.state&&(j.state={}),null==j._nextState&&null==j.__s&&(j._nextState=j.__s=j.state),j.context=T,k.getDerivedStateFromProps?j.state=f(f({},j.state),k.getDerivedStateFromProps(j.props,j.state)):j.componentWillMount&&(j.componentWillMount(),j.state=j._nextState!==j.state?j._nextState:j.__s!==j.state?j.__s:j.state),H=j.render(j.props,j.state,j.context)}else{var $=k.contextType,L=$&&n[$.__c];H=k.call(r.__c,O,null!=$?L?L.props.value:$.__:n)}return j.getChildContext&&(n=f(f({},n),j.getChildContext())),e.diffed&&e.diffed(r),x(H,n,l,!1!==l.shallowHighOrder,g,h)}k=(w=k).displayName||w!==Function&&w.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=p.length;n--;)if(p[n]===e){r=n;break}r<0&&(r=p.push(e)-1),t="UnnamedComponent"+r}return t}(w)}var E,D,N="<"+k;if(O){var P=Object.keys(O);l&&!0===l.sortAttributes&&P.sort();for(var R=0;R<P.length;R++){var U=P[R],W=O[U];if("children"!==U){if(!v.test(U)&&(l&&l.allAttributes||"key"!==U&&"ref"!==U&&"__self"!==U&&"__source"!==U&&"defaultValue"!==U)){if("className"===U){if(O.class)continue;U="class"}else g&&U.match(/^xlink:?./)&&(U=U.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===U){if(O.for)continue;U="for"}"style"===U&&W&&"object"==typeof W&&(W=s(W)),"a"===U[0]&&"r"===U[1]&&"boolean"==typeof W&&(W=String(W));var q=l.attributeHook&&l.attributeHook(U,W,n,l,C);if(q||""===q)N+=q;else if("dangerouslySetInnerHTML"===U)D=W&&W.__html;else if("textarea"===k&&"value"===U)E=W;else if((W||0===W||""===W)&&"function"!=typeof W){if(!(!0!==W&&""!==W||(W=U,l&&l.xml))){N+=" "+U;continue}if("value"===U){if("select"===k){h=W;continue}"option"===k&&h==W&&(N+=" selected")}N+=" "+U+'="'+o(W)+'"'}}}else E=W}}if(m){var z=N.replace(/\n\s*/," ");z===N||~z.indexOf("\n")?m&&~N.indexOf("\n")&&(N+="\n"):N=z}if(N+=">",v.test(k))throw new Error(k+" is not a valid HTML tag name in "+N);var I,V=_.test(k)||l.voidElements&&l.voidElements.test(k),Z=[];if(D)m&&i(D)&&(D="\n"+y+a(D,y)),N+=D;else if(null!=E&&u(I=[],E).length){for(var B=m&&~N.indexOf("\n"),G=!1,J=0;J<I.length;J++){var K=I[J];if(null!=K&&!1!==K){var Q=x(K,n,l,!0,"svg"===k||"foreignObject"!==k&&g,h);if(m&&!B&&i(Q)&&(B=!0),Q)if(m){var X=Q.length>0&&"<"!=Q[0];G&&X?Z[Z.length-1]+=Q:Z.push(Q),G=X}else Z.push(Q)}}if(m&&B)for(var Y=Z.length;Y--;)Z[Y]="\n"+y+a(Z[Y],y)}if(Z.length||D)N+=Z.join("");else if(l&&l.xml)return N.substring(0,N.length-1)+" />";return!V||I||D?(m&&~N.indexOf("\n")&&(N+="\n"),N+="</"+k+">"):N=N.replace(/>$/," />"),N}m.shallowRender=g;export default m;export{m as render,m as renderToStaticMarkup,m as renderToString,g as shallowRender};
//# sourceMappingURL=index.module.js.map

@@ -1,2 +0,2 @@

var t;t=function(t){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,r=/[&<>"]/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},i=function(t){return o[t]||t};function u(t){return"string"!=typeof t&&(t=String(t)),t.replace(r,i)}var a,l=function(t,n){return String(t).replace(/(\n+)/g,"$1"+(n||"\t"))},c=function(t,n,e){return String(t).length>(n||40)||!e&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},f={};function s(t){var n="";for(var r in t){var o=t[r];null!=o&&""!==o&&(n&&(n+=" "),n+="-"==r[0]?r:f[r]||(f[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===e.test(r)&&(n+="px"),n+=";")}return n||void 0}function p(t,n){for(var e in n)t[e]=n[e];return t}function d(t,n){return Array.isArray(n)?n.reduce(d,t):null!=n&&!1!==n&&t.push(n),t}function y(t,n,e,r,o){var i={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a.__v:o};return null!=a.vnode&&a.vnode(i),i}function _(t){return t.children}a={__e:function(t,n){for(var e,r,o,i=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=i,e.__E=e}catch(n){t=n}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var v={shallow:!0},g=[],m=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,b=/[\s\n\\/='"\0<>]/,h=function(){};x.render=x;var S=[];function x(t,n,e){var r=j(t,n,e);return a.__c&&a.__c(t,S),r}function j(t,n,e,r,o,i){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,n,e){var r,o,i,u=arguments,a={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:a[i]=n[i];if(arguments.length>3)for(e=[e],i=3;i<arguments.length;i++)e.push(u[i]);if(null!=e&&(a.children=e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return y(t,a,r,o,null)}(_,null,t));var f=t.type,v=t.props,S=!1;n=n||{};var x,A=(e=e||{}).pretty,O=A&&"string"==typeof A?A:"\t";if("object"!=typeof t&&!f)return u(t);if("function"==typeof f){if(S=!0,!e.shallow||!r&&!1!==e.renderRootComponent){if(f===_){var k="",w=[];d(w,t.props.children);for(var F=0;F<w.length;F++)k+=(F>0&&A?"\n":"")+j(w[F],n,e,!1!==e.shallowHighOrder,o,i);return k}var E,C=t.__c={__v:t,context:n,props:t.props,setState:h,forceUpdate:h,__h:[]};if(a.__b&&a.__b(t),a.__r&&a.__r(t),f.prototype&&"function"==typeof f.prototype.render){var D=f.contextType,P=D&&n[D.__c],M=null!=D?P?P.props.value:D.__:n;(C=t.__c=new f(v,M)).__v=t,C._dirty=C.__d=!0,C.props=v,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=M,f.getDerivedStateFromProps?C.state=p(p({},C.state),f.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E=C.render(C.props,C.state,C.context)}else{var N=f.contextType,H=N&&n[N.__c];E=f.call(t.__c,v,null!=N?H?H.props.value:N.__:n)}return C.getChildContext&&(n=p(p({},n),C.getChildContext())),a.diffed&&a.diffed(t),j(E,n,e,!1!==e.shallowHighOrder,o,i)}f=(x=f).displayName||x!==Function&&x.name||function(t){var n=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!n){for(var e=-1,r=g.length;r--;)if(g[r]===t){e=r;break}e<0&&(e=g.push(t)-1),n="UnnamedComponent"+e}return n}(x)}var I,$,T="";if(v){var U=Object.keys(v);e&&!0===e.sortAttributes&&U.sort();for(var W=0;W<U.length;W++){var L=U[W],R=v[L];if("children"!==L){if(!L.match(/[\s\n\\/='"\0<>]/)&&(e&&e.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L&&"defaultValue"!==L)){if("className"===L){if(v.class)continue;L="class"}else o&&L.match(/^xlink:?./)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(v.for)continue;L="for"}"style"===L&&R&&"object"==typeof R&&(R=s(R)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof R&&(R=String(R));var J=e.attributeHook&&e.attributeHook(L,R,n,e,S);if(J||""===J)T+=J;else if("dangerouslySetInnerHTML"===L)$=R&&R.__html;else if("textarea"===f&&"value"===L)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=L,e&&e.xml))){T+=" "+L;continue}if("value"===L){if("select"===f){i=R;continue}"option"===f&&i==R&&(T+=" selected")}T+=" "+L+'="'+u(R)+'"'}}}else I=R}}if(A){var V=T.replace(/^\n\s*/," ");V===T||~V.indexOf("\n")?A&&~T.indexOf("\n")&&(T+="\n"):T=V}if(T="<"+f+T+">",b.test(String(f)))throw new Error(f+" is not a valid HTML tag name in "+T);var q,z=m.test(String(f))||e.voidElements&&e.voidElements.test(String(f)),B=[];if($)A&&c($)&&($="\n"+O+l($,O)),T+=$;else if(null!=I&&d(q=[],I).length){for(var G=A&&~T.indexOf("\n"),Z=!1,K=0;K<q.length;K++){var Q=q[K];if(null!=Q&&!1!==Q){var X=j(Q,n,e,!0,"svg"===f||"foreignObject"!==f&&o,i);if(A&&!G&&c(X)&&(G=!0),X)if(A){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(A&&G)for(var tt=B.length;tt--;)B[tt]="\n"+O+l(B[tt],O)}if(B.length||$)T+=B.join("");else if(e&&e.xml)return T.substring(0,T.length-1)+" />";return!z||q||$?(A&&~T.indexOf("\n")&&(T+="\n"),T+="</"+f+">"):T=T.replace(/>$/," />"),T}x.shallowRender=function(t,n){return x(t,n,v)};var A=/(\\|\"|\')/g,O=Object.prototype.toString,k=Date.prototype.toISOString,w=Error.prototype.toString,F=RegExp.prototype.toString,E=Symbol.prototype.toString,C=/^Symbol\((.*)\)(.*)$/,D=/\n/gi,P=Object.getOwnPropertySymbols||function(t){return[]};function M(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function H(t){return E.call(t).replace(C,"Symbol($1)")}function I(t){return"["+w.call(t)+"]"}function $(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var n=typeof t;if("number"===n)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===n)return'"'+function(t){return t.replace(A,"\\$1")}(t)+'"';if("function"===n)return N(t);if("symbol"===n)return H(t);var e=O.call(t);return"[object WeakMap]"===e?"WeakMap {}":"[object WeakSet]"===e?"WeakSet {}":"[object Function]"===e||"[object GeneratorFunction]"===e?N(t,min):"[object Symbol]"===e?H(t):"[object Date]"===e?k.call(t):"[object Error]"===e?I(t):"[object RegExp]"===e?F.call(t):"[object Arguments]"===e&&0===t.length?"Arguments []":M(e)&&0===t.length?t.constructor.name+" []":t instanceof Error&&I(t)}function T(t,n,e,r,o,i,u,a,l,c){var f="";if(t.length){f+=o;for(var s=e+n,p=0;p<t.length;p++)f+=s+L(t[p],n,s,r,o,i,u,a,l,c),p<t.length-1&&(f+=","+r);f+=o+e}return"["+f+"]"}function U(t,n,e,r,o,i,u,a,l,c){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var f=++a>u;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return L(t.toJSON(),n,e,r,o,i,u,a,l,c);var s=O.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,n,e,r,o,i,u,a,l,c){return(c?"":"Arguments ")+T(t,n,e,r,o,i,u,a,l,c)}(t,n,e,r,o,i,u,a,l,c):M(s)?f?"[Array]":function(t,n,e,r,o,i,u,a,l,c){return(c?"":t.constructor.name+" ")+T(t,n,e,r,o,i,u,a,l,c)}(t,n,e,r,o,i,u,a,l,c):"[object Map]"===s?f?"[Map]":function(t,n,e,r,o,i,u,a,l,c){var f="Map {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=e+n;!p.done;)f+=d+L(p.value[0],n,d,r,o,i,u,a,l,c)+" => "+L(p.value[1],n,d,r,o,i,u,a,l,c),(p=s.next()).done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):"[object Set]"===s?f?"[Set]":function(t,n,e,r,o,i,u,a,l,c){var f="Set {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=e+n;!p.done;)f+=d+L(p.value[1],n,d,r,o,i,u,a,l,c),(p=s.next()).done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):"object"==typeof t?f?"[Object]":function(t,n,e,r,o,i,u,a,l,c){var f=(c?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort(),p=P(t);if(p.length&&(s=s.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===O.call(t))}).concat(p)),s.length){f+=o;for(var d=e+n,y=0;y<s.length;y++){var _=s[y];f+=d+L(_,n,d,r,o,i,u,a,l,c)+": "+L(t[_],n,d,r,o,i,u,a,l,c),y<s.length-1&&(f+=","+r)}f+=o+e}return f+"}"}(t,n,e,r,o,i,u,a,l,c):void 0}function W(t,n,e,r,o,i,u,a,l,c){for(var f,s=!1,p=0;p<l.length;p++)if((f=l[p]).test(t)){s=!0;break}return!!s&&f.print(t,function(t){return L(t,n,e,r,o,i,u,a,l,c)},function(t){var r=e+n;return r+t.replace(D,"\n"+r)},{edgeSpacing:o,spacing:r})}function L(t,n,e,r,o,i,u,a,l,c){return $(t)||W(t,n,e,r,o,i,u,a,l,c)||U(t,n,e,r,o,i,u,a,l,c)}var R={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function J(t){return new Array(t+1).join(" ")}var V={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,n,e){return x(t,V.context,V.opts)}},q={plugins:[V]},z={attributeHook:function(t,n,e,r,o){var i=typeof n;if("dangerouslySetInnerHTML"===t)return!1;if(null==n||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===n||("class"===t||"style"===t)&&""===n))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(V.context=e,V.opts=r,~(n=function(t,n){var e,r;n?(function(t){if(Object.keys(t).forEach(function(t){if(!R.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(n),n=function(t){var n={};return Object.keys(R).forEach(function(e){return n[e]=t.hasOwnProperty(e)?t[e]:R[e]}),n.min&&(n.indent=0),n}(n)):n=R;var o=n.min?" ":"\n",i=n.min?"":"\n";if(n&&n.plugins.length){var u=W(t,e=J(n.indent),"",o,i,r=[],n.maxDepth,0,n.plugins,n.min);if(u)return u}return $(t)||(e||(e=J(n.indent)),r||(r=[]),U(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min))}(n,q)).indexOf("\n")&&(n=l("\n"+n,a)+"\n")):n="Function",l("\n"+t+"={"+n+"}",a)):"\n"+a+t+'="'+u(n)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function B(t,n,e,r){return x(t,n,e=p(p({},z),e||{}))}t.default=B,t.render=B},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(self.preactRenderToString={});
var t;t=function(t){if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(t){return"@@"+t}}var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,r=/[&<>"]/;function o(t){var e=String(t);return r.test(e)?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e}var i,a=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},u=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},c={};function f(t){var e="";for(var r in t){var o=t[r];null!=o&&""!==o&&(e&&(e+=" "),e+="-"==r[0]?r:c[r]||(c[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),e+=": ",e+=o,"number"==typeof o&&!1===n.test(r)&&(e+="px"),e+=";")}return e||void 0}function l(t,e){for(var n in e)t[n]=e[n];return t}function s(t,e){return Array.isArray(e)?e.reduce(s,t):null!=e&&!1!==e&&t.push(e),t}function p(t){return t.children}i={__e:function(t,e){for(var n,r,o,i=e.__h;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return e.__h=i,n.__E=n}catch(e){t=e}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var y={shallow:!0},v=[],d=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,g=/[\s\n\\/='"\0<>]/,_=function(){};b.render=b;var m=[];function b(t,e,n){e=e||{},n=n||{};var r=i.__s;i.__s=!0;var o=h(t,e,n);return i.__c&&i.__c(t,m),i.__s=r,o}function h(t,e,n,r,c,y){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return o(t);var m=n.pretty,b=m&&"string"==typeof m?m:"\t";if(Array.isArray(t)){for(var S="",x=0;x<t.length;x++)m&&x>0&&(S+="\n"),S+=h(t[x],e,n,r,c,y);return S}var j,A=t.type,O=t.props,w=!1;if("function"==typeof A){if(w=!0,!n.shallow||!r&&!1!==n.renderRootComponent){if(A===p){var k=[];return s(k,t.props.children),h(k,e,n,!1!==n.shallowHighOrder,c,y)}var F,E=t.__c={__v:t,context:e,props:t.props,setState:_,forceUpdate:_,__h:[]};if(i.__b&&i.__b(t),i.__r&&i.__r(t),A.prototype&&"function"==typeof A.prototype.render){var C=A.contextType,D=C&&e[C.__c],M=null!=C?D?D.props.value:C.__:e;(E=t.__c=new A(O,M)).__v=t,E._dirty=E.__d=!0,E.props=O,null==E.state&&(E.state={}),null==E._nextState&&null==E.__s&&(E._nextState=E.__s=E.state),E.context=M,A.getDerivedStateFromProps?E.state=l(l({},E.state),A.getDerivedStateFromProps(E.props,E.state)):E.componentWillMount&&(E.componentWillMount(),E.state=E._nextState!==E.state?E._nextState:E.__s!==E.state?E.__s:E.state),F=E.render(E.props,E.state,E.context)}else{var N=A.contextType,H=N&&e[N.__c];F=A.call(t.__c,O,null!=N?H?H.props.value:N.__:e)}return E.getChildContext&&(e=l(l({},e),E.getChildContext())),i.diffed&&i.diffed(t),h(F,e,n,!1!==n.shallowHighOrder,c,y)}A=(j=A).displayName||j!==Function&&j.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=v.length;r--;)if(v[r]===t){n=r;break}n<0&&(n=v.push(t)-1),e="UnnamedComponent"+n}return e}(j)}var I,P,$="<"+A;if(O){var T=Object.keys(O);n&&!0===n.sortAttributes&&T.sort();for(var U=0;U<T.length;U++){var W=T[U],L=O[W];if("children"!==W){if(!g.test(W)&&(n&&n.allAttributes||"key"!==W&&"ref"!==W&&"__self"!==W&&"__source"!==W&&"defaultValue"!==W)){if("className"===W){if(O.class)continue;W="class"}else c&&W.match(/^xlink:?./)&&(W=W.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===W){if(O.for)continue;W="for"}"style"===W&&L&&"object"==typeof L&&(L=f(L)),"a"===W[0]&&"r"===W[1]&&"boolean"==typeof L&&(L=String(L));var R=n.attributeHook&&n.attributeHook(W,L,e,n,w);if(R||""===R)$+=R;else if("dangerouslySetInnerHTML"===W)P=L&&L.__html;else if("textarea"===A&&"value"===W)I=L;else if((L||0===L||""===L)&&"function"!=typeof L){if(!(!0!==L&&""!==L||(L=W,n&&n.xml))){$+=" "+W;continue}if("value"===W){if("select"===A){y=L;continue}"option"===A&&y==L&&($+=" selected")}$+=" "+W+'="'+o(L)+'"'}}}else I=L}}if(m){var J=$.replace(/\n\s*/," ");J===$||~J.indexOf("\n")?m&&~$.indexOf("\n")&&($+="\n"):$=J}if($+=">",g.test(A))throw new Error(A+" is not a valid HTML tag name in "+$);var V,q=d.test(A)||n.voidElements&&n.voidElements.test(A),z=[];if(P)m&&u(P)&&(P="\n"+b+a(P,b)),$+=P;else if(null!=I&&s(V=[],I).length){for(var B=m&&~$.indexOf("\n"),G=!1,Z=0;Z<V.length;Z++){var K=V[Z];if(null!=K&&!1!==K){var Q=h(K,e,n,!0,"svg"===A||"foreignObject"!==A&&c,y);if(m&&!B&&u(Q)&&(B=!0),Q)if(m){var X=Q.length>0&&"<"!=Q[0];G&&X?z[z.length-1]+=Q:z.push(Q),G=X}else z.push(Q)}}if(m&&B)for(var Y=z.length;Y--;)z[Y]="\n"+b+a(z[Y],b)}if(z.length||P)$+=z.join("");else if(n&&n.xml)return $.substring(0,$.length-1)+" />";return!q||V||P?(m&&~$.indexOf("\n")&&($+="\n"),$+="</"+A+">"):$=$.replace(/>$/," />"),$}b.shallowRender=function(t,e){return b(t,e,y)};var S=/(\\|\"|\')/g,x=Object.prototype.toString,j=Date.prototype.toISOString,A=Error.prototype.toString,O=RegExp.prototype.toString,w=Symbol.prototype.toString,k=/^Symbol\((.*)\)(.*)$/,F=/\n/gi,E=Object.getOwnPropertySymbols||function(t){return[]};function C(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function M(t){return w.call(t).replace(k,"Symbol($1)")}function N(t){return"["+A.call(t)+"]"}function H(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(S,"\\$1")}(t)+'"';if("function"===e)return D(t);if("symbol"===e)return M(t);var n=x.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?M(t):"[object Date]"===n?j.call(t):"[object Error]"===n?N(t):"[object RegExp]"===n?O.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":C(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&N(t)}function I(t,e,n,r,o,i,a,u,c,f){var l="";if(t.length){l+=o;for(var s=n+e,p=0;p<t.length;p++)l+=s+T(t[p],e,s,r,o,i,a,u,c,f),p<t.length-1&&(l+=","+r);l+=o+n}return"["+l+"]"}function P(t,e,n,r,o,i,a,u,c,f){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var l=++u>a;if(!l&&t.toJSON&&"function"==typeof t.toJSON)return T(t.toJSON(),e,n,r,o,i,a,u,c,f);var s=x.call(t);return"[object Arguments]"===s?l?"[Arguments]":function(t,e,n,r,o,i,a,u,c,f){return(f?"":"Arguments ")+I(t,e,n,r,o,i,a,u,c,f)}(t,e,n,r,o,i,a,u,c,f):C(s)?l?"[Array]":function(t,e,n,r,o,i,a,u,c,f){return(f?"":t.constructor.name+" ")+I(t,e,n,r,o,i,a,u,c,f)}(t,e,n,r,o,i,a,u,c,f):"[object Map]"===s?l?"[Map]":function(t,e,n,r,o,i,a,u,c,f){var l="Map {",s=t.entries(),p=s.next();if(!p.done){l+=o;for(var y=n+e;!p.done;)l+=y+T(p.value[0],e,y,r,o,i,a,u,c,f)+" => "+T(p.value[1],e,y,r,o,i,a,u,c,f),(p=s.next()).done||(l+=","+r);l+=o+n}return l+"}"}(t,e,n,r,o,i,a,u,c,f):"[object Set]"===s?l?"[Set]":function(t,e,n,r,o,i,a,u,c,f){var l="Set {",s=t.entries(),p=s.next();if(!p.done){l+=o;for(var y=n+e;!p.done;)l+=y+T(p.value[1],e,y,r,o,i,a,u,c,f),(p=s.next()).done||(l+=","+r);l+=o+n}return l+"}"}(t,e,n,r,o,i,a,u,c,f):"object"==typeof t?l?"[Object]":function(t,e,n,r,o,i,a,u,c,f){var l=(f?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort(),p=E(t);if(p.length&&(s=s.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===x.call(t))}).concat(p)),s.length){l+=o;for(var y=n+e,v=0;v<s.length;v++){var d=s[v];l+=y+T(d,e,y,r,o,i,a,u,c,f)+": "+T(t[d],e,y,r,o,i,a,u,c,f),v<s.length-1&&(l+=","+r)}l+=o+n}return l+"}"}(t,e,n,r,o,i,a,u,c,f):void 0}function $(t,e,n,r,o,i,a,u,c,f){for(var l,s=!1,p=0;p<c.length;p++)if((l=c[p]).test(t)){s=!0;break}return!!s&&l.print(t,function(t){return T(t,e,n,r,o,i,a,u,c,f)},function(t){var r=n+e;return r+t.replace(F,"\n"+r)},{edgeSpacing:o,spacing:r})}function T(t,e,n,r,o,i,a,u,c,f){return H(t)||$(t,e,n,r,o,i,a,u,c,f)||P(t,e,n,r,o,i,a,u,c,f)}var U={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function W(t){return new Array(t+1).join(" ")}var L={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return b(t,L.context,L.opts)}},R={plugins:[L]},J={attributeHook:function(t,e,n,r,i){var u=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===u&&!r.functions)return"";if(r.skipFalseAttributes&&!i&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var c="string"==typeof r.pretty?r.pretty:"\t";return"string"!==u?("function"!==u||r.functionNames?(L.context=n,L.opts=r,~(e=function(t,e){var n,r;e?(function(t){if(Object.keys(t).forEach(function(t){if(!U.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){var e={};return Object.keys(U).forEach(function(n){return e[n]=t.hasOwnProperty(n)?t[n]:U[n]}),e.min&&(e.indent=0),e}(e)):e=U;var o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){var a=$(t,n=W(e.indent),"",o,i,r=[],e.maxDepth,0,e.plugins,e.min);if(a)return a}return H(t)||(n||(n=W(e.indent)),r||(r=[]),P(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,R)).indexOf("\n")&&(e=a("\n"+e,c)+"\n")):e="Function",a("\n"+t+"={"+e+"}",c)):"\n"+c+t+'="'+o(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function V(t,e,n,r){return b(t,e,n=l(l({},J),n||{}))}t.default=V,t.render=V},"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(self.preactRenderToString={});
//# sourceMappingURL=jsx.js.map

@@ -1,2 +0,2 @@

if("function"!=typeof Symbol){let t=0;Symbol=function(e){return`@@${e}${++t}`},Symbol.for=t=>`@@${t}`}const t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,e=/[&<>"]/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},r=t=>n[t]||t;function o(t){return"string"!=typeof t&&(t=String(t)),t.replace(e,r)}let i=(t,e)=>String(t).replace(/(\n+)/g,"$1"+(e||"\t")),l=(t,e,n)=>String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<");const c={};function u(e){let n="";for(let r in e){let o=e[r];null!=o&&""!==o&&(n&&(n+=" "),n+="-"==r[0]?r:c[r]||(c[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function f(t,e){for(let n in e)t[n]=e[n];return t}function s(t,e){return Array.isArray(e)?e.reduce(s,t):null!=e&&!1!==e&&t.push(e),t}var a;function p(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a.__v:o};return null!=a.vnode&&a.vnode(i),i}function _(t){return t.children}a={__e:function(t,e){for(var n,r,o,i=e.__h;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return e.__h=i,n.__E=n}catch(e){t=e}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;const y={shallow:!0},d=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,m=/[\s\n\\/='"\0<>]/,b=()=>{};S.render=S;const h=[];function S(t,e,n){const r=x(t,e,n);return a.__c&&a.__c(t,h),r}function x(t,e,n,r,c,y){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,e,n){var r,o,i,l=arguments,c={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(l[i]);if(null!=n&&(c.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===c[i]&&(c[i]=t.defaultProps[i]);return p(t,c,r,o,null)}(_,null,t));let h=t.type,S=t.props,j=!1;e=e||{};let v=(n=n||{}).pretty,A=v&&"string"==typeof v?v:"\t";if("object"!=typeof t&&!h)return o(t);if("function"==typeof h){if(j=!0,!n.shallow||!r&&!1!==n.renderRootComponent){if(h===_){let r="",o=[];s(o,t.props.children);for(let t=0;t<o.length;t++)r+=(t>0&&v?"\n":"")+x(o[t],e,n,!1!==n.shallowHighOrder,c,y);return r}{let r,o=t.__c={__v:t,context:e,props:t.props,setState:b,forceUpdate:b,__h:[]};if(a.__b&&a.__b(t),a.__r&&a.__r(t),h.prototype&&"function"==typeof h.prototype.render){let n=h.contextType,i=n&&e[n.__c],l=null!=n?i?i.props.value:n.__:e;o=t.__c=new h(S,l),o.__v=t,o._dirty=o.__d=!0,o.props=S,null==o.state&&(o.state={}),null==o._nextState&&null==o.__s&&(o._nextState=o.__s=o.state),o.context=l,h.getDerivedStateFromProps?o.state=f(f({},o.state),h.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o._nextState!==o.state?o._nextState:o.__s!==o.state?o.__s:o.state),r=o.render(o.props,o.state,o.context)}else{let n=h.contextType,o=n&&e[n.__c];r=h.call(t.__c,S,null!=n?o?o.props.value:n.__:e)}return o.getChildContext&&(e=f(f({},e),o.getChildContext())),a.diffed&&a.diffed(t),x(r,e,n,!1!==n.shallowHighOrder,c,y)}}h=(O=h).displayName||O!==Function&&O.name||function(t){let e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){let n=-1;for(let e=d.length;e--;)if(d[e]===t){n=e;break}n<0&&(n=d.push(t)-1),e=`UnnamedComponent${n}`}return e}(O)}var O;let k,$,w="";if(S){let t=Object.keys(S);n&&!0===n.sortAttributes&&t.sort();for(let r=0;r<t.length;r++){let i=t[r],l=S[i];if("children"===i){k=l;continue}if(i.match(/[\s\n\\/='"\0<>]/))continue;if(!(n&&n.allAttributes||"key"!==i&&"ref"!==i&&"__self"!==i&&"__source"!==i&&"defaultValue"!==i))continue;if("className"===i){if(S.class)continue;i="class"}else c&&i.match(/^xlink:?./)&&(i=i.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===i){if(S.for)continue;i="for"}"style"===i&&l&&"object"==typeof l&&(l=u(l)),"a"===i[0]&&"r"===i[1]&&"boolean"==typeof l&&(l=String(l));let f=n.attributeHook&&n.attributeHook(i,l,e,n,j);if(f||""===f)w+=f;else if("dangerouslySetInnerHTML"===i)$=l&&l.__html;else if("textarea"===h&&"value"===i)k=l;else if((l||0===l||""===l)&&"function"!=typeof l){if(!(!0!==l&&""!==l||(l=i,n&&n.xml))){w+=" "+i;continue}if("value"===i){if("select"===h){y=l;continue}"option"===h&&y==l&&(w+=" selected")}w+=` ${i}="${o(l)}"`}}}if(v){let t=w.replace(/^\n\s*/," ");t===w||~t.indexOf("\n")?v&&~w.indexOf("\n")&&(w+="\n"):w=t}if(w=`<${h}${w}>`,m.test(String(h)))throw new Error(`${h} is not a valid HTML tag name in ${w}`);let F,E=g.test(String(h))||n.voidElements&&n.voidElements.test(String(h)),C=[];if($)v&&l($)&&($="\n"+A+i($,A)),w+=$;else if(null!=k&&s(F=[],k).length){let t=v&&~w.indexOf("\n"),r=!1;for(let o=0;o<F.length;o++){let i=F[o];if(null!=i&&!1!==i){let o=x(i,e,n,!0,"svg"===h||"foreignObject"!==h&&c,y);if(v&&!t&&l(o)&&(t=!0),o)if(v){let t=o.length>0&&"<"!=o[0];r&&t?C[C.length-1]+=o:C.push(o),r=t}else C.push(o)}}if(v&&t)for(let t=C.length;t--;)C[t]="\n"+A+i(C[t],A)}if(C.length||$)w+=C.join("");else if(n&&n.xml)return w.substring(0,w.length-1)+" />";return!E||F||$?(v&&~w.indexOf("\n")&&(w+="\n"),w+=`</${h}>`):w=w.replace(/>$/," />"),w}S.shallowRender=(t,e)=>S(t,e,y);const j=/(\\|\"|\')/g,v=Object.prototype.toString,A=Date.prototype.toISOString,O=Error.prototype.toString,k=RegExp.prototype.toString,$=Symbol.prototype.toString,w=/^Symbol\((.*)\)(.*)$/,F=/\n/gi,E=Object.getOwnPropertySymbols||(t=>[]);function C(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function P(t){return $.call(t).replace(w,"Symbol($1)")}function M(t){return"["+O.call(t)+"]"}function N(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(j,"\\$1")}(t)+'"';if("function"===e)return D(t);if("symbol"===e)return P(t);const n=v.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?P(t):"[object Date]"===n?A.call(t):"[object Error]"===n?M(t):"[object RegExp]"===n?k.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":C(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&M(t)}function H(t,e,n,r,o,i,l,c,u,f){let s="";if(t.length){s+=o;const a=n+e;for(let n=0;n<t.length;n++)s+=a+U(t[n],e,a,r,o,i,l,c,u,f),n<t.length-1&&(s+=","+r);s+=o+n}return"["+s+"]"}function I(t,e,n,r,o,i,l,c,u,f){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const s=++c>l;if(!s&&t.toJSON&&"function"==typeof t.toJSON)return U(t.toJSON(),e,n,r,o,i,l,c,u,f);const a=v.call(t);return"[object Arguments]"===a?s?"[Arguments]":function(t,e,n,r,o,i,l,c,u,f){return(f?"":"Arguments ")+H(t,e,n,r,o,i,l,c,u,f)}(t,e,n,r,o,i,l,c,u,f):C(a)?s?"[Array]":function(t,e,n,r,o,i,l,c,u,f){return(f?"":t.constructor.name+" ")+H(t,e,n,r,o,i,l,c,u,f)}(t,e,n,r,o,i,l,c,u,f):"[object Map]"===a?s?"[Map]":function(t,e,n,r,o,i,l,c,u,f){let s="Map {";const a=t.entries();let p=a.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+U(p.value[0],e,t,r,o,i,l,c,u,f)+" => "+U(p.value[1],e,t,r,o,i,l,c,u,f),p=a.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):"[object Set]"===a?s?"[Set]":function(t,e,n,r,o,i,l,c,u,f){let s="Set {";const a=t.entries();let p=a.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+U(p.value[1],e,t,r,o,i,l,c,u,f),p=a.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):"object"==typeof t?s?"[Object]":function(t,e,n,r,o,i,l,c,u,f){let s=(f?"":t.constructor?t.constructor.name+" ":"Object ")+"{",a=Object.keys(t).sort();const p=E(t);if(p.length&&(a=a.filter(t=>!("symbol"==typeof t||"[object Symbol]"===v.call(t))).concat(p)),a.length){s+=o;const p=n+e;for(let n=0;n<a.length;n++){const _=a[n];s+=p+U(_,e,p,r,o,i,l,c,u,f)+": "+U(t[_],e,p,r,o,i,l,c,u,f),n<a.length-1&&(s+=","+r)}s+=o+n}return s+"}"}(t,e,n,r,o,i,l,c,u,f):void 0}function T(t,e,n,r,o,i,l,c,u,f){let s,a=!1;for(let e=0;e<u.length;e++)if(s=u[e],s.test(t)){a=!0;break}return!!a&&s.print(t,function(t){return U(t,e,n,r,o,i,l,c,u,f)},function(t){const r=n+e;return r+t.replace(F,"\n"+r)},{edgeSpacing:o,spacing:r})}function U(t,e,n,r,o,i,l,c,u,f){return N(t)||T(t,e,n,r,o,i,l,c,u,f)||I(t,e,n,r,o,i,l,c,u,f)}const W={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function L(t){return new Array(t+1).join(" ")}let R={test:t=>t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t,print:(t,e,n)=>S(t,R.context,R.opts)},J={plugins:[R]},V={attributeHook:function(t,e,n,r,l){let c=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===c&&!r.functions)return"";if(r.skipFalseAttributes&&!l&&(!1===e||("class"===t||"style"===t)&&""===e))return"";let u="string"==typeof r.pretty?r.pretty:"\t";return"string"!==c?("function"!==c||r.functionNames?(R.context=n,R.opts=r,~(e=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!W.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){const e={};return Object.keys(W).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:W[n]),e.min&&(e.indent=0),e}(e)):e=W;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=L(e.indent),r=[];var l=T(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(l)return l}return N(t)||(n||(n=L(e.indent)),r||(r=[]),I(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,J)).indexOf("\n")&&(e=`${i("\n"+e,u)}\n`)):e="Function",i(`\n${t}={${e}}`,u)):`\n${u}${t}="${o(e)}"`},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function q(t,e,n,r){return S(t,e,n=f(f({},V),n||{}))}export default q;export{q as render};
if("function"!=typeof Symbol){let t=0;Symbol=function(e){return`@@${e}${++t}`},Symbol.for=t=>`@@${t}`}const t=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,e=/[&<>"]/;function n(t){const n=String(t);return e.test(n)?n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):n}let r=(t,e)=>String(t).replace(/(\n+)/g,"$1"+(e||"\t")),o=(t,e,n)=>String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<");const i={};function l(e){let n="";for(let r in e){let o=e[r];null!=o&&""!==o&&(n&&(n+=" "),n+="-"==r[0]?r:i[r]||(i[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===t.test(r)&&(n+="px"),n+=";")}return n||void 0}function c(t,e){for(let n in e)t[n]=e[n];return t}function u(t,e){return Array.isArray(e)?e.reduce(u,t):null!=e&&!1!==e&&t.push(e),t}var s;function a(t){return t.children}s={__e:function(t,e){for(var n,r,o,i=e.__h;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return e.__h=i,n.__E=n}catch(e){t=e}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;const f={shallow:!0},p=[],y=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,g=/[\s\n\\/='"\0<>]/,_=()=>{};d.render=d;const m=[];function d(t,e,n){e=e||{},n=n||{};const r=s.__s;s.__s=!0;const o=b(t,e,n);return s.__c&&s.__c(t,m),s.__s=r,o}function b(t,e,i,f,m,d){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return n(t);let h=i.pretty,S=h&&"string"==typeof h?h:"\t";if(Array.isArray(t)){let n="";for(let r=0;r<t.length;r++)h&&r>0&&(n+="\n"),n+=b(t[r],e,i,f,m,d);return n}let x=t.type,j=t.props,v=!1;if("function"==typeof x){if(v=!0,!i.shallow||!f&&!1!==i.renderRootComponent){if(x===a){const n=[];return u(n,t.props.children),b(n,e,i,!1!==i.shallowHighOrder,m,d)}{let n,r=t.__c={__v:t,context:e,props:t.props,setState:_,forceUpdate:_,__h:[]};if(s.__b&&s.__b(t),s.__r&&s.__r(t),x.prototype&&"function"==typeof x.prototype.render){let o=x.contextType,i=o&&e[o.__c],l=null!=o?i?i.props.value:o.__:e;r=t.__c=new x(j,l),r.__v=t,r._dirty=r.__d=!0,r.props=j,null==r.state&&(r.state={}),null==r._nextState&&null==r.__s&&(r._nextState=r.__s=r.state),r.context=l,x.getDerivedStateFromProps?r.state=c(c({},r.state),x.getDerivedStateFromProps(r.props,r.state)):r.componentWillMount&&(r.componentWillMount(),r.state=r._nextState!==r.state?r._nextState:r.__s!==r.state?r.__s:r.state),n=r.render(r.props,r.state,r.context)}else{let r=x.contextType,o=r&&e[r.__c];n=x.call(t.__c,j,null!=r?o?o.props.value:r.__:e)}return r.getChildContext&&(e=c(c({},e),r.getChildContext())),s.diffed&&s.diffed(t),b(n,e,i,!1!==i.shallowHighOrder,m,d)}}x=(A=x).displayName||A!==Function&&A.name||function(t){let e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){let n=-1;for(let e=p.length;e--;)if(p[e]===t){n=e;break}n<0&&(n=p.push(t)-1),e=`UnnamedComponent${n}`}return e}(A)}var A;let O,w,$="<"+x;if(j){let t=Object.keys(j);i&&!0===i.sortAttributes&&t.sort();for(let r=0;r<t.length;r++){let o=t[r],c=j[o];if("children"===o){O=c;continue}if(g.test(o))continue;if(!(i&&i.allAttributes||"key"!==o&&"ref"!==o&&"__self"!==o&&"__source"!==o&&"defaultValue"!==o))continue;if("className"===o){if(j.class)continue;o="class"}else m&&o.match(/^xlink:?./)&&(o=o.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===o){if(j.for)continue;o="for"}"style"===o&&c&&"object"==typeof c&&(c=l(c)),"a"===o[0]&&"r"===o[1]&&"boolean"==typeof c&&(c=String(c));let u=i.attributeHook&&i.attributeHook(o,c,e,i,v);if(u||""===u)$+=u;else if("dangerouslySetInnerHTML"===o)w=c&&c.__html;else if("textarea"===x&&"value"===o)O=c;else if((c||0===c||""===c)&&"function"!=typeof c){if(!(!0!==c&&""!==c||(c=o,i&&i.xml))){$+=" "+o;continue}if("value"===o){if("select"===x){d=c;continue}"option"===x&&d==c&&($+=" selected")}$+=` ${o}="${n(c)}"`}}}if(h){let t=$.replace(/\n\s*/," ");t===$||~t.indexOf("\n")?h&&~$.indexOf("\n")&&($+="\n"):$=t}if($+=">",g.test(x))throw new Error(`${x} is not a valid HTML tag name in ${$}`);let k,F=y.test(x)||i.voidElements&&i.voidElements.test(x),E=[];if(w)h&&o(w)&&(w="\n"+S+r(w,S)),$+=w;else if(null!=O&&u(k=[],O).length){let t=h&&~$.indexOf("\n"),n=!1;for(let r=0;r<k.length;r++){let l=k[r];if(null!=l&&!1!==l){let r=b(l,e,i,!0,"svg"===x||"foreignObject"!==x&&m,d);if(h&&!t&&o(r)&&(t=!0),r)if(h){let t=r.length>0&&"<"!=r[0];n&&t?E[E.length-1]+=r:E.push(r),n=t}else E.push(r)}}if(h&&t)for(let t=E.length;t--;)E[t]="\n"+S+r(E[t],S)}if(E.length||w)$+=E.join("");else if(i&&i.xml)return $.substring(0,$.length-1)+" />";return!F||k||w?(h&&~$.indexOf("\n")&&($+="\n"),$+=`</${x}>`):$=$.replace(/>$/," />"),$}d.shallowRender=(t,e)=>d(t,e,f);const h=/(\\|\"|\')/g,S=Object.prototype.toString,x=Date.prototype.toISOString,j=Error.prototype.toString,v=RegExp.prototype.toString,A=Symbol.prototype.toString,O=/^Symbol\((.*)\)(.*)$/,w=/\n/gi,$=Object.getOwnPropertySymbols||(t=>[]);function k(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function F(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function E(t){return A.call(t).replace(O,"Symbol($1)")}function C(t){return"["+j.call(t)+"]"}function D(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(h,"\\$1")}(t)+'"';if("function"===e)return F(t);if("symbol"===e)return E(t);const n=S.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?F(t,min):"[object Symbol]"===n?E(t):"[object Date]"===n?x.call(t):"[object Error]"===n?C(t):"[object RegExp]"===n?v.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":k(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&C(t)}function M(t,e,n,r,o,i,l,c,u,s){let a="";if(t.length){a+=o;const f=n+e;for(let n=0;n<t.length;n++)a+=f+I(t[n],e,f,r,o,i,l,c,u,s),n<t.length-1&&(a+=","+r);a+=o+n}return"["+a+"]"}function N(t,e,n,r,o,i,l,c,u,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const a=++c>l;if(!a&&t.toJSON&&"function"==typeof t.toJSON)return I(t.toJSON(),e,n,r,o,i,l,c,u,s);const f=S.call(t);return"[object Arguments]"===f?a?"[Arguments]":function(t,e,n,r,o,i,l,c,u,s){return(s?"":"Arguments ")+M(t,e,n,r,o,i,l,c,u,s)}(t,e,n,r,o,i,l,c,u,s):k(f)?a?"[Array]":function(t,e,n,r,o,i,l,c,u,s){return(s?"":t.constructor.name+" ")+M(t,e,n,r,o,i,l,c,u,s)}(t,e,n,r,o,i,l,c,u,s):"[object Map]"===f?a?"[Map]":function(t,e,n,r,o,i,l,c,u,s){let a="Map {";const f=t.entries();let p=f.next();if(!p.done){a+=o;const t=n+e;for(;!p.done;)a+=t+I(p.value[0],e,t,r,o,i,l,c,u,s)+" => "+I(p.value[1],e,t,r,o,i,l,c,u,s),p=f.next(),p.done||(a+=","+r);a+=o+n}return a+"}"}(t,e,n,r,o,i,l,c,u,s):"[object Set]"===f?a?"[Set]":function(t,e,n,r,o,i,l,c,u,s){let a="Set {";const f=t.entries();let p=f.next();if(!p.done){a+=o;const t=n+e;for(;!p.done;)a+=t+I(p.value[1],e,t,r,o,i,l,c,u,s),p=f.next(),p.done||(a+=","+r);a+=o+n}return a+"}"}(t,e,n,r,o,i,l,c,u,s):"object"==typeof t?a?"[Object]":function(t,e,n,r,o,i,l,c,u,s){let a=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=$(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===S.call(t))).concat(p)),f.length){a+=o;const p=n+e;for(let n=0;n<f.length;n++){const y=f[n];a+=p+I(y,e,p,r,o,i,l,c,u,s)+": "+I(t[y],e,p,r,o,i,l,c,u,s),n<f.length-1&&(a+=","+r)}a+=o+n}return a+"}"}(t,e,n,r,o,i,l,c,u,s):void 0}function H(t,e,n,r,o,i,l,c,u,s){let a,f=!1;for(let e=0;e<u.length;e++)if(a=u[e],a.test(t)){f=!0;break}return!!f&&a.print(t,function(t){return I(t,e,n,r,o,i,l,c,u,s)},function(t){const r=n+e;return r+t.replace(w,"\n"+r)},{edgeSpacing:o,spacing:r})}function I(t,e,n,r,o,i,l,c,u,s){return D(t)||H(t,e,n,r,o,i,l,c,u,s)||N(t,e,n,r,o,i,l,c,u,s)}const P={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function T(t){return new Array(t+1).join(" ")}let U={test:t=>t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t,print:(t,e,n)=>d(t,U.context,U.opts)},W={plugins:[U]},L={attributeHook:function(t,e,o,i,l){let c=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===c&&!i.functions)return"";if(i.skipFalseAttributes&&!l&&(!1===e||("class"===t||"style"===t)&&""===e))return"";let u="string"==typeof i.pretty?i.pretty:"\t";return"string"!==c?("function"!==c||i.functionNames?(U.context=o,U.opts=i,~(e=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!P.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){const e={};return Object.keys(P).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:P[n]),e.min&&(e.indent=0),e}(e)):e=P;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=T(e.indent),r=[];var l=H(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(l)return l}return D(t)||(n||(n=T(e.indent)),r||(r=[]),N(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,W)).indexOf("\n")&&(e=`${r("\n"+e,u)}\n`)):e="Function",r(`\n${t}={${e}}`,u)):`\n${u}${t}="${n(e)}"`},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function R(t,e,n,r){return d(t,e,n=c(c({},L),n||{}))}export default R;export{R as render};
//# sourceMappingURL=jsx.modern.js.map

@@ -1,2 +0,2 @@

if("function"!=typeof Symbol){var t=0;Symbol=function(n){return"@@"+n+ ++t},Symbol.for=function(t){return"@@"+t}}var n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,e=/[&<>"]/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},o=function(t){return r[t]||t};function i(t){return"string"!=typeof t&&(t=String(t)),t.replace(e,o)}var u,l=function(t,n){return String(t).replace(/(\n+)/g,"$1"+(n||"\t"))},c=function(t,n,e){return String(t).length>(n||40)||!e&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},a={};function f(t){var e="";for(var r in t){var o=t[r];null!=o&&""!==o&&(e&&(e+=" "),e+="-"==r[0]?r:a[r]||(a[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),e+=": ",e+=o,"number"==typeof o&&!1===n.test(r)&&(e+="px"),e+=";")}return e||void 0}function s(t,n){for(var e in n)t[e]=n[e];return t}function p(t,n){return Array.isArray(n)?n.reduce(p,t):null!=n&&!1!==n&&t.push(n),t}function _(t,n,e,r,o){var i={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u.__v:o};return null!=u.vnode&&u.vnode(i),i}function y(t){return t.children}u={__e:function(t,n){for(var e,r,o,i=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=i,e.__E=e}catch(n){t=n}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var d={shallow:!0},g=[],m=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,b=/[\s\n\\/='"\0<>]/,h=function(){};S.render=S;var v=[];function S(t,n,e){var r=x(t,n,e);return u.__c&&u.__c(t,v),r}function x(t,n,e,r,o,a){if(null==t||"boolean"==typeof t)return"";Array.isArray(t)&&(t=function(t,n,e){var r,o,i,u=arguments,l={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:l[i]=n[i];if(arguments.length>3)for(e=[e],i=3;i<arguments.length;i++)e.push(u[i]);if(null!=e&&(l.children=e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return _(t,l,r,o,null)}(y,null,t));var d=t.type,v=t.props,S=!1;n=n||{};var j,A=(e=e||{}).pretty,O=A&&"string"==typeof A?A:"\t";if("object"!=typeof t&&!d)return i(t);if("function"==typeof d){if(S=!0,!e.shallow||!r&&!1!==e.renderRootComponent){if(d===y){var k="",w=[];p(w,t.props.children);for(var F=0;F<w.length;F++)k+=(F>0&&A?"\n":"")+x(w[F],n,e,!1!==e.shallowHighOrder,o,a);return k}var E,C=t.__c={__v:t,context:n,props:t.props,setState:h,forceUpdate:h,__h:[]};if(u.__b&&u.__b(t),u.__r&&u.__r(t),d.prototype&&"function"==typeof d.prototype.render){var D=d.contextType,P=D&&n[D.__c],M=null!=D?P?P.props.value:D.__:n;(C=t.__c=new d(v,M)).__v=t,C._dirty=C.__d=!0,C.props=v,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=M,d.getDerivedStateFromProps?C.state=s(s({},C.state),d.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E=C.render(C.props,C.state,C.context)}else{var N=d.contextType,H=N&&n[N.__c];E=d.call(t.__c,v,null!=N?H?H.props.value:N.__:n)}return C.getChildContext&&(n=s(s({},n),C.getChildContext())),u.diffed&&u.diffed(t),x(E,n,e,!1!==e.shallowHighOrder,o,a)}d=(j=d).displayName||j!==Function&&j.name||function(t){var n=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!n){for(var e=-1,r=g.length;r--;)if(g[r]===t){e=r;break}e<0&&(e=g.push(t)-1),n="UnnamedComponent"+e}return n}(j)}var I,$,T="";if(v){var U=Object.keys(v);e&&!0===e.sortAttributes&&U.sort();for(var W=0;W<U.length;W++){var L=U[W],R=v[L];if("children"!==L){if(!L.match(/[\s\n\\/='"\0<>]/)&&(e&&e.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L&&"defaultValue"!==L)){if("className"===L){if(v.class)continue;L="class"}else o&&L.match(/^xlink:?./)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(v.for)continue;L="for"}"style"===L&&R&&"object"==typeof R&&(R=f(R)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof R&&(R=String(R));var J=e.attributeHook&&e.attributeHook(L,R,n,e,S);if(J||""===J)T+=J;else if("dangerouslySetInnerHTML"===L)$=R&&R.__html;else if("textarea"===d&&"value"===L)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=L,e&&e.xml))){T+=" "+L;continue}if("value"===L){if("select"===d){a=R;continue}"option"===d&&a==R&&(T+=" selected")}T+=" "+L+'="'+i(R)+'"'}}}else I=R}}if(A){var V=T.replace(/^\n\s*/," ");V===T||~V.indexOf("\n")?A&&~T.indexOf("\n")&&(T+="\n"):T=V}if(T="<"+d+T+">",b.test(String(d)))throw new Error(d+" is not a valid HTML tag name in "+T);var q,z=m.test(String(d))||e.voidElements&&e.voidElements.test(String(d)),B=[];if($)A&&c($)&&($="\n"+O+l($,O)),T+=$;else if(null!=I&&p(q=[],I).length){for(var G=A&&~T.indexOf("\n"),Z=!1,K=0;K<q.length;K++){var Q=q[K];if(null!=Q&&!1!==Q){var X=x(Q,n,e,!0,"svg"===d||"foreignObject"!==d&&o,a);if(A&&!G&&c(X)&&(G=!0),X)if(A){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(A&&G)for(var tt=B.length;tt--;)B[tt]="\n"+O+l(B[tt],O)}if(B.length||$)T+=B.join("");else if(e&&e.xml)return T.substring(0,T.length-1)+" />";return!z||q||$?(A&&~T.indexOf("\n")&&(T+="\n"),T+="</"+d+">"):T=T.replace(/>$/," />"),T}S.shallowRender=function(t,n){return S(t,n,d)};const j=/(\\|\"|\')/g,A=Object.prototype.toString,O=Date.prototype.toISOString,k=Error.prototype.toString,w=RegExp.prototype.toString,F=Symbol.prototype.toString,E=/^Symbol\((.*)\)(.*)$/,C=/\n/gi,D=Object.getOwnPropertySymbols||(t=>[]);function P(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function M(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function N(t){return F.call(t).replace(E,"Symbol($1)")}function H(t){return"["+k.call(t)+"]"}function I(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const n=typeof t;if("number"===n)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===n)return'"'+function(t){return t.replace(j,"\\$1")}(t)+'"';if("function"===n)return M(t);if("symbol"===n)return N(t);const e=A.call(t);return"[object WeakMap]"===e?"WeakMap {}":"[object WeakSet]"===e?"WeakSet {}":"[object Function]"===e||"[object GeneratorFunction]"===e?M(t,min):"[object Symbol]"===e?N(t):"[object Date]"===e?O.call(t):"[object Error]"===e?H(t):"[object RegExp]"===e?w.call(t):"[object Arguments]"===e&&0===t.length?"Arguments []":P(e)&&0===t.length?t.constructor.name+" []":t instanceof Error&&H(t)}function $(t,n,e,r,o,i,u,l,c,a){let f="";if(t.length){f+=o;const s=e+n;for(let e=0;e<t.length;e++)f+=s+W(t[e],n,s,r,o,i,u,l,c,a),e<t.length-1&&(f+=","+r);f+=o+e}return"["+f+"]"}function T(t,n,e,r,o,i,u,l,c,a){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const f=++l>u;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return W(t.toJSON(),n,e,r,o,i,u,l,c,a);const s=A.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,n,e,r,o,i,u,l,c,a){return(a?"":"Arguments ")+$(t,n,e,r,o,i,u,l,c,a)}(t,n,e,r,o,i,u,l,c,a):P(s)?f?"[Array]":function(t,n,e,r,o,i,u,l,c,a){return(a?"":t.constructor.name+" ")+$(t,n,e,r,o,i,u,l,c,a)}(t,n,e,r,o,i,u,l,c,a):"[object Map]"===s?f?"[Map]":function(t,n,e,r,o,i,u,l,c,a){let f="Map {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=e+n;for(;!p.done;)f+=t+W(p.value[0],n,t,r,o,i,u,l,c,a)+" => "+W(p.value[1],n,t,r,o,i,u,l,c,a),p=s.next(),p.done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):"[object Set]"===s?f?"[Set]":function(t,n,e,r,o,i,u,l,c,a){let f="Set {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=e+n;for(;!p.done;)f+=t+W(p.value[1],n,t,r,o,i,u,l,c,a),p=s.next(),p.done||(f+=","+r);f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):"object"==typeof t?f?"[Object]":function(t,n,e,r,o,i,u,l,c,a){let f=(a?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort();const p=D(t);if(p.length&&(s=s.filter(t=>!("symbol"==typeof t||"[object Symbol]"===A.call(t))).concat(p)),s.length){f+=o;const p=e+n;for(let e=0;e<s.length;e++){const _=s[e];f+=p+W(_,n,p,r,o,i,u,l,c,a)+": "+W(t[_],n,p,r,o,i,u,l,c,a),e<s.length-1&&(f+=","+r)}f+=o+e}return f+"}"}(t,n,e,r,o,i,u,l,c,a):void 0}function U(t,n,e,r,o,i,u,l,c,a){let f,s=!1;for(let n=0;n<c.length;n++)if(f=c[n],f.test(t)){s=!0;break}return!!s&&f.print(t,function(t){return W(t,n,e,r,o,i,u,l,c,a)},function(t){const r=e+n;return r+t.replace(C,"\n"+r)},{edgeSpacing:o,spacing:r})}function W(t,n,e,r,o,i,u,l,c,a){return I(t)||U(t,n,e,r,o,i,u,l,c,a)||T(t,n,e,r,o,i,u,l,c,a)}const L={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function R(t){return new Array(t+1).join(" ")}var J={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,n,e){return S(t,J.context,J.opts)}},V={plugins:[J]},q={attributeHook:function(t,n,e,r,o){var u=typeof n;if("dangerouslySetInnerHTML"===t)return!1;if(null==n||"function"===u&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===n||("class"===t||"style"===t)&&""===n))return"";var c="string"==typeof r.pretty?r.pretty:"\t";return"string"!==u?("function"!==u||r.functionNames?(J.context=e,J.opts=r,~(n=function(t,n){let e,r;n?(function(t){if(Object.keys(t).forEach(t=>{if(!L.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(n),n=function(t){const n={};return Object.keys(L).forEach(e=>n[e]=t.hasOwnProperty(e)?t[e]:L[e]),n.min&&(n.indent=0),n}(n)):n=L;const o=n.min?" ":"\n",i=n.min?"":"\n";if(n&&n.plugins.length){e=R(n.indent),r=[];var u=U(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min);if(u)return u}return I(t)||(e||(e=R(n.indent)),r||(r=[]),T(t,e,"",o,i,r,n.maxDepth,0,n.plugins,n.min))}(n,V)).indexOf("\n")&&(n=l("\n"+n,c)+"\n")):n="Function",l("\n"+t+"={"+n+"}",c)):"\n"+c+t+'="'+i(n)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function z(t,n,e,r){return S(t,n,e=s(s({},q),e||{}))}export default z;export{z as render};
if("function"!=typeof Symbol){var t=0;Symbol=function(e){return"@@"+e+ ++t},Symbol.for=function(t){return"@@"+t}}var e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,n=/[&<>"]/;function r(t){var e=String(t);return n.test(e)?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e}var o,i=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},c=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},a={};function u(t){var n="";for(var r in t){var o=t[r];null!=o&&""!==o&&(n&&(n+=" "),n+="-"==r[0]?r:a[r]||(a[r]=r.replace(/([A-Z])/g,"-$1").toLowerCase()),n+=": ",n+=o,"number"==typeof o&&!1===e.test(r)&&(n+="px"),n+=";")}return n||void 0}function l(t,e){for(var n in e)t[n]=e[n];return t}function f(t,e){return Array.isArray(e)?e.reduce(f,t):null!=e&&!1!==e&&t.push(e),t}function s(t){return t.children}o={__e:function(t,e){for(var n,r,o,i=e.__h;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return e.__h=i,n.__E=n}catch(e){t=e}throw t},__v:0},"function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var p={shallow:!0},y=[],g=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,_=/[\s\n\\/='"\0<>]/,m=function(){};b.render=b;var d=[];function b(t,e,n){e=e||{},n=n||{};var r=o.__s;o.__s=!0;var i=h(t,e,n);return o.__c&&o.__c(t,d),o.__s=r,i}function h(t,e,n,a,p,d){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return r(t);var b=n.pretty,v=b&&"string"==typeof b?b:"\t";if(Array.isArray(t)){for(var S="",x=0;x<t.length;x++)b&&x>0&&(S+="\n"),S+=h(t[x],e,n,a,p,d);return S}var j,A=t.type,O=t.props,w=!1;if("function"==typeof A){if(w=!0,!n.shallow||!a&&!1!==n.renderRootComponent){if(A===s){var k=[];return f(k,t.props.children),h(k,e,n,!1!==n.shallowHighOrder,p,d)}var F,E=t.__c={__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__h:[]};if(o.__b&&o.__b(t),o.__r&&o.__r(t),A.prototype&&"function"==typeof A.prototype.render){var C=A.contextType,D=C&&e[C.__c],M=null!=C?D?D.props.value:C.__:e;(E=t.__c=new A(O,M)).__v=t,E._dirty=E.__d=!0,E.props=O,null==E.state&&(E.state={}),null==E._nextState&&null==E.__s&&(E._nextState=E.__s=E.state),E.context=M,A.getDerivedStateFromProps?E.state=l(l({},E.state),A.getDerivedStateFromProps(E.props,E.state)):E.componentWillMount&&(E.componentWillMount(),E.state=E._nextState!==E.state?E._nextState:E.__s!==E.state?E.__s:E.state),F=E.render(E.props,E.state,E.context)}else{var N=A.contextType,H=N&&e[N.__c];F=A.call(t.__c,O,null!=N?H?H.props.value:N.__:e)}return E.getChildContext&&(e=l(l({},e),E.getChildContext())),o.diffed&&o.diffed(t),h(F,e,n,!1!==n.shallowHighOrder,p,d)}A=(j=A).displayName||j!==Function&&j.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=y.length;r--;)if(y[r]===t){n=r;break}n<0&&(n=y.push(t)-1),e="UnnamedComponent"+n}return e}(j)}var I,P,$="<"+A;if(O){var T=Object.keys(O);n&&!0===n.sortAttributes&&T.sort();for(var U=0;U<T.length;U++){var W=T[U],L=O[W];if("children"!==W){if(!_.test(W)&&(n&&n.allAttributes||"key"!==W&&"ref"!==W&&"__self"!==W&&"__source"!==W&&"defaultValue"!==W)){if("className"===W){if(O.class)continue;W="class"}else p&&W.match(/^xlink:?./)&&(W=W.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===W){if(O.for)continue;W="for"}"style"===W&&L&&"object"==typeof L&&(L=u(L)),"a"===W[0]&&"r"===W[1]&&"boolean"==typeof L&&(L=String(L));var R=n.attributeHook&&n.attributeHook(W,L,e,n,w);if(R||""===R)$+=R;else if("dangerouslySetInnerHTML"===W)P=L&&L.__html;else if("textarea"===A&&"value"===W)I=L;else if((L||0===L||""===L)&&"function"!=typeof L){if(!(!0!==L&&""!==L||(L=W,n&&n.xml))){$+=" "+W;continue}if("value"===W){if("select"===A){d=L;continue}"option"===A&&d==L&&($+=" selected")}$+=" "+W+'="'+r(L)+'"'}}}else I=L}}if(b){var J=$.replace(/\n\s*/," ");J===$||~J.indexOf("\n")?b&&~$.indexOf("\n")&&($+="\n"):$=J}if($+=">",_.test(A))throw new Error(A+" is not a valid HTML tag name in "+$);var V,q=g.test(A)||n.voidElements&&n.voidElements.test(A),z=[];if(P)b&&c(P)&&(P="\n"+v+i(P,v)),$+=P;else if(null!=I&&f(V=[],I).length){for(var B=b&&~$.indexOf("\n"),G=!1,Z=0;Z<V.length;Z++){var K=V[Z];if(null!=K&&!1!==K){var Q=h(K,e,n,!0,"svg"===A||"foreignObject"!==A&&p,d);if(b&&!B&&c(Q)&&(B=!0),Q)if(b){var X=Q.length>0&&"<"!=Q[0];G&&X?z[z.length-1]+=Q:z.push(Q),G=X}else z.push(Q)}}if(b&&B)for(var Y=z.length;Y--;)z[Y]="\n"+v+i(z[Y],v)}if(z.length||P)$+=z.join("");else if(n&&n.xml)return $.substring(0,$.length-1)+" />";return!q||V||P?(b&&~$.indexOf("\n")&&($+="\n"),$+="</"+A+">"):$=$.replace(/>$/," />"),$}b.shallowRender=function(t,e){return b(t,e,p)};const v=/(\\|\"|\')/g,S=Object.prototype.toString,x=Date.prototype.toISOString,j=Error.prototype.toString,A=RegExp.prototype.toString,O=Symbol.prototype.toString,w=/^Symbol\((.*)\)(.*)$/,k=/\n/gi,F=Object.getOwnPropertySymbols||(t=>[]);function E(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function C(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return O.call(t).replace(w,"Symbol($1)")}function M(t){return"["+j.call(t)+"]"}function N(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(v,"\\$1")}(t)+'"';if("function"===e)return C(t);if("symbol"===e)return D(t);const n=S.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?C(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?x.call(t):"[object Error]"===n?M(t):"[object RegExp]"===n?A.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":E(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&M(t)}function H(t,e,n,r,o,i,c,a,u,l){let f="";if(t.length){f+=o;const s=n+e;for(let n=0;n<t.length;n++)f+=s+$(t[n],e,s,r,o,i,c,a,u,l),n<t.length-1&&(f+=","+r);f+=o+n}return"["+f+"]"}function I(t,e,n,r,o,i,c,a,u,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const f=++a>c;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return $(t.toJSON(),e,n,r,o,i,c,a,u,l);const s=S.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,e,n,r,o,i,c,a,u,l){return(l?"":"Arguments ")+H(t,e,n,r,o,i,c,a,u,l)}(t,e,n,r,o,i,c,a,u,l):E(s)?f?"[Array]":function(t,e,n,r,o,i,c,a,u,l){return(l?"":t.constructor.name+" ")+H(t,e,n,r,o,i,c,a,u,l)}(t,e,n,r,o,i,c,a,u,l):"[object Map]"===s?f?"[Map]":function(t,e,n,r,o,i,c,a,u,l){let f="Map {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=n+e;for(;!p.done;)f+=t+$(p.value[0],e,t,r,o,i,c,a,u,l)+" => "+$(p.value[1],e,t,r,o,i,c,a,u,l),p=s.next(),p.done||(f+=","+r);f+=o+n}return f+"}"}(t,e,n,r,o,i,c,a,u,l):"[object Set]"===s?f?"[Set]":function(t,e,n,r,o,i,c,a,u,l){let f="Set {";const s=t.entries();let p=s.next();if(!p.done){f+=o;const t=n+e;for(;!p.done;)f+=t+$(p.value[1],e,t,r,o,i,c,a,u,l),p=s.next(),p.done||(f+=","+r);f+=o+n}return f+"}"}(t,e,n,r,o,i,c,a,u,l):"object"==typeof t?f?"[Object]":function(t,e,n,r,o,i,c,a,u,l){let f=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort();const p=F(t);if(p.length&&(s=s.filter(t=>!("symbol"==typeof t||"[object Symbol]"===S.call(t))).concat(p)),s.length){f+=o;const p=n+e;for(let n=0;n<s.length;n++){const y=s[n];f+=p+$(y,e,p,r,o,i,c,a,u,l)+": "+$(t[y],e,p,r,o,i,c,a,u,l),n<s.length-1&&(f+=","+r)}f+=o+n}return f+"}"}(t,e,n,r,o,i,c,a,u,l):void 0}function P(t,e,n,r,o,i,c,a,u,l){let f,s=!1;for(let e=0;e<u.length;e++)if(f=u[e],f.test(t)){s=!0;break}return!!s&&f.print(t,function(t){return $(t,e,n,r,o,i,c,a,u,l)},function(t){const r=n+e;return r+t.replace(k,"\n"+r)},{edgeSpacing:o,spacing:r})}function $(t,e,n,r,o,i,c,a,u,l){return N(t)||P(t,e,n,r,o,i,c,a,u,l)||I(t,e,n,r,o,i,c,a,u,l)}const T={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function U(t){return new Array(t+1).join(" ")}var W={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return b(t,W.context,W.opts)}},L={plugins:[W]},R={attributeHook:function(t,e,n,o,c){var a=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===a&&!o.functions)return"";if(o.skipFalseAttributes&&!c&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var u="string"==typeof o.pretty?o.pretty:"\t";return"string"!==a?("function"!==a||o.functionNames?(W.context=n,W.opts=o,~(e=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!T.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){const e={};return Object.keys(T).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:T[n]),e.min&&(e.indent=0),e}(e)):e=T;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=U(e.indent),r=[];var c=P(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(c)return c}return N(t)||(n||(n=U(e.indent)),r||(r=[]),I(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,L)).indexOf("\n")&&(e=i("\n"+e,u)+"\n")):e="Function",i("\n"+t+"={"+e+"}",u)):"\n"+u+t+'="'+r(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function J(t,e,n,r){return b(t,e,n=l(l({},R),n||{}))}export default J;export{J as render};
//# sourceMappingURL=jsx.module.js.map
{
"name": "preact-render-to-string",
"amdName": "preactRenderToString",
"version": "5.1.16",
"version": "5.1.17",
"description": "Render JSX to an HTML string, with support for Preact components.",

@@ -25,3 +25,4 @@ "main": "dist/index.js",

"scripts": {
"bench": "node -r @babel/register benchmarks index.js",
"bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js",
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.js && v8 --module benchmarks/.v8.modern.js",
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition",

@@ -32,4 +33,4 @@ "postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js",

"copy-typescript-definition": "copyfiles -f src/*.d.ts dist",
"test": "eslint src test && tsc && npm run test:mocha",
"test:mocha": "mocha -r @babel/register test/**/*.js",
"test": "eslint src test && tsc && npm run test:mocha && npm run bench",
"test:mocha": "BABEL_ENV=test mocha -r @babel/register -r test/setup.js test/**/*.test.js",
"format": "prettier src/**/*.{d.ts,js} test/**/*.js --write",

@@ -70,13 +71,24 @@ "prepublishOnly": "npm run build",

"babel": {
"presets": [
"@babel/preset-env"
],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "h"
}
]
]
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": true
}
}
]
],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "h"
}
]
]
}
}
},

@@ -83,0 +95,0 @@ "author": "Jason Miller <jason@developit.ca>",

@@ -9,4 +9,6 @@ import {

} from './util';
import { options, Fragment, createElement } from 'preact';
import { options, Fragment } from 'preact';
/** @typedef {import('preact').VNode} VNode */
const SHALLOW = { shallow: true };

@@ -32,3 +34,3 @@

* @param {Boolean} [options.pretty=false] If `true`, adds whitespace for readability
* @param {RegEx|undefined} [options.voidElements] RegeEx that matches elements that are considered void (self-closing)
* @param {RegExp|undefined} [options.voidElements] RegeEx that matches elements that are considered void (self-closing)
*/

@@ -48,6 +50,19 @@ renderToString.render = renderToString;

function renderToString(vnode, context, opts) {
context = context || {};
opts = opts || {};
// Performance optimization: `renderToString` is synchronous and we
// therefore don't execute any effects. To do that we pass an empty
// array to `options._commit` (`__c`). But we can go one step further
// and avoid a lot of dirty checks and allocations by setting
// `options._skipEffects` (`__s`) too.
const previousSkipEffects = options.__s;
options.__s = true;
const res = _renderToString(vnode, context, opts);
// options._commit, we don't schedule any effects in this library right now,
// so we can pass an empty queue to this hook.
if (options.__c) options.__c(vnode, EMPTY_ARR);
options.__s = previousSkipEffects;
return res;

@@ -62,5 +77,24 @@ }

// wrap array nodes in Fragment
// #text nodes
if (typeof vnode !== 'object') {
return encodeEntities(vnode);
}
let pretty = opts.pretty,
indentChar = pretty && typeof pretty === 'string' ? pretty : '\t';
if (Array.isArray(vnode)) {
vnode = createElement(Fragment, null, vnode);
let rendered = '';
for (let i = 0; i < vnode.length; i++) {
if (pretty && i > 0) rendered += '\n';
rendered += _renderToString(
vnode[i],
context,
opts,
inner,
isSvgMode,
selectValue
);
}
return rendered;
}

@@ -71,13 +105,3 @@

isComponent = false;
context = context || {};
opts = opts || {};
let pretty = opts.pretty,
indentChar = pretty && typeof pretty === 'string' ? pretty : '\t';
// #text nodes
if (typeof vnode !== 'object' && !nodeName) {
return encodeEntities(vnode);
}
// components

@@ -89,19 +113,12 @@ if (typeof nodeName === 'function') {

} else if (nodeName === Fragment) {
let rendered = '';
let children = [];
const children = [];
getChildren(children, vnode.props.children);
for (let i = 0; i < children.length; i++) {
rendered +=
(i > 0 && pretty ? '\n' : '') +
_renderToString(
children[i],
context,
opts,
opts.shallowHighOrder !== false,
isSvgMode,
selectValue
);
}
return rendered;
return _renderToString(
children,
context,
opts,
opts.shallowHighOrder !== false,
isSvgMode,
selectValue
);
} else {

@@ -206,3 +223,3 @@ let rendered;

// render JSX to HTML
let s = '',
let s = '<' + nodeName,
propChildren,

@@ -225,3 +242,3 @@ html;

if (name.match(/[\s\n\\/='"\0<>]/)) continue;
if (UNSAFE_NAME.test(name)) continue;

@@ -298,3 +315,3 @@ if (

if (pretty) {
let sub = s.replace(/^\n\s*/, ' ');
let sub = s.replace(/\n\s*/, ' ');
if (sub !== s && !~sub.indexOf('\n')) s = sub;

@@ -304,9 +321,10 @@ else if (pretty && ~s.indexOf('\n')) s += '\n';

s = `<${nodeName}${s}>`;
if (UNSAFE_NAME.test(String(nodeName)))
s += '>';
if (UNSAFE_NAME.test(nodeName))
throw new Error(`${nodeName} is not a valid HTML tag name in ${s}`);
let isVoid =
VOID_ELEMENTS.test(String(nodeName)) ||
(opts.voidElements && opts.voidElements.test(String(nodeName)));
VOID_ELEMENTS.test(nodeName) ||
(opts.voidElements && opts.voidElements.test(nodeName));
let pieces = [];

@@ -313,0 +331,0 @@

// DOM properties that should NOT have "px" added when numeric
export const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;
const HTML_ENTITY_REG = /[&<>"]/g;
const tagsToReplace = {
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;'
};
const replaceTag = (tag) => tagsToReplace[tag] || tag;
export function encodeEntities(s) {
if (typeof s !== 'string') s = String(s);
return s.replace(HTML_ENTITY_REG, replaceTag);
const ENCODED_ENTITIES = /[&<>"]/;
export function encodeEntities(input) {
const s = String(input);
if (!ENCODED_ENTITIES.test(s)) {
return s;
}
return s
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;');
}

@@ -16,0 +17,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc