Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

preact-render-to-string

Package Overview
Dependencies
Maintainers
8
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 6.5.11 to 6.5.12

2

dist/commonjs.js

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

var e=require("preact"),t=/[\s\n\\/='"\0<>]/,n=/^(xlink|xmlns|xml)([A-Z])/,r=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,o=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,i=new Set(["draggable","spellcheck"]),a=/["&<]/;function s(e){if(0===e.length||!1===a.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var c={},l=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),u=/[A-Z]/g;function p(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:c[n]||(c[n]=n.replace(u,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function f(){this.__d=!0}function h(e,t){return{__v:e,context:t,props:e.props,setState:f,forceUpdate:f,__d:!0,__h:new Array(0)}}function d(e,t,n){if(!e.s){if(n instanceof _){if(!n.s)return void(n.o=d.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(d.bind(null,e,t),d.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var _=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{d(r,1,i(this.v))}catch(e){d(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?d(r,1,t?t(o):o):n?d(r,1,n(o)):d(r,2,o)}catch(e){d(r,2,e)}},r},e}();function v(e){return e instanceof _&&1&e.s}function m(e,t,n){for(var r;;){var o=e();if(v(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!v(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!v(a)){r=2;break}}}var s=new _,c=d.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(p)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!v(a))return void a.then(p).then(void 0,c);if(!(o=e())||v(o)&&!o.v)return void d(s,1,i);if(o.then)return void o.then(u).then(void 0,c);v(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):d(s,1,i)}function p(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):d(s,1,i)}}function g(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var y,b,k,x,w={},C=[],S=Array.isArray,A=Object.assign;function F(t,n,r){var o=e.options.__s;e.options.__s=!0,y=e.options.__b,b=e.options.diffed,k=e.options.__r,x=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{var a=T(t,n||w,!1,void 0,i,!1,r);return S(a)?a.join(""):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options.__c&&e.options.__c(t,C),e.options.__s=o,C.length=0}}function L(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=w),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=A({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),k&&k(e),n.render(n.props,n.state,t)}function T(a,c,l,u,f,d,_){if(null==a||!0===a||!1===a||""===a)return"";var v=typeof a;if("object"!=v)return"function"==v?"":"string"==v?s(a):a+"";if(S(a)){var m,g="";f.__k=a;for(var C=0;C<a.length;C++){var F=a[C];if(null!=F&&"boolean"!=typeof F){var j,D=T(F,c,l,u,f,d,_);"string"==typeof D?g+=D:(m||(m=[]),g&&m.push(g),g="",S(D)?(j=m).push.apply(j,D):m.push(D))}}return m?(g&&m.push(g),m):g}if(void 0!==a.constructor)return"";a.__=f,y&&y(a);var P=a.type,M=a.props;if("function"==typeof P){var U,Z,W,$=c;if(P===e.Fragment){if("tpl"in M){for(var q="",z=0;z<M.tpl.length;z++)if(q+=M.tpl[z],M.exprs&&z<M.exprs.length){var H=M.exprs[z];if(null==H)continue;"object"!=typeof H||void 0!==H.constructor&&!S(H)?q+=H:q+=T(H,c,l,u,a,d,_)}return q}if("UNSTABLE_comment"in M)return"\x3c!--"+s(M.UNSTABLE_comment)+"--\x3e";Z=M.children}else{if(null!=(U=P.contextType)){var N=c[U.__c];$=N?N.props.value:U.__}var B=P.prototype&&"function"==typeof P.prototype.render;if(B)Z=L(a,$),W=a.__c;else{a.__c=W=h(a,$);for(var I=0;W.__d&&I++<25;)W.__d=!1,k&&k(a),Z=P.call(W,M,$);W.__d=!0}if(null!=W.getChildContext&&(c=A({},c,W.getChildContext())),B&&e.options.errorBoundaries&&(P.getDerivedStateFromError||W.componentDidCatch)){Z=null!=Z&&Z.type===e.Fragment&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z;try{return T(Z,c,l,u,a,d,_)}catch(t){return P.getDerivedStateFromError&&(W.__s=P.getDerivedStateFromError(t)),W.componentDidCatch&&W.componentDidCatch(t,w),W.__d?(Z=L(a,c),null!=(W=a.__c).getChildContext&&(c=A({},c,W.getChildContext())),T(Z=null!=Z&&Z.type===e.Fragment&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z,c,l,u,a,d,_)):""}finally{b&&b(a),a.__=null,x&&x(a)}}}Z=null!=Z&&Z.type===e.Fragment&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z;try{var O=T(Z,c,l,u,a,d,_);return b&&b(a),a.__=null,e.options.unmount&&e.options.unmount(a),O}catch(t){if(!d&&_&&_.onError){var R=_.onError(t,a,function(e){return T(e,c,l,u,a,d,_)});if(void 0!==R)return R;var V=e.options.__e;return V&&V(t,a),""}if(!d)throw t;if(!t||"function"!=typeof t.then)throw t;return t.then(function e(){try{return T(Z,c,l,u,a,d,_)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return T(Z,c,l,u,a,d,_)},e)}})}}var K,G="<"+P,J="";for(var Q in M){var X=M[Q];if("function"!=typeof X||"class"===Q||"className"===Q){switch(Q){case"children":K=X;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in M)continue;Q="for";break;case"className":if("class"in M)continue;Q="class";break;case"defaultChecked":Q="checked";break;case"defaultSelected":Q="selected";break;case"defaultValue":case"value":switch(Q="value",P){case"textarea":K=X;continue;case"select":u=X;continue;case"option":u!=X||"selected"in M||(G+=" selected")}break;case"dangerouslySetInnerHTML":J=X&&X.__html;continue;case"style":"object"==typeof X&&(X=p(X));break;case"acceptCharset":Q="accept-charset";break;case"httpEquiv":Q="http-equiv";break;default:if(n.test(Q))Q=Q.replace(n,"$1:$2").toLowerCase();else{if(t.test(Q))continue;"-"!==Q[4]&&!i.has(Q)||null==X?l?o.test(Q)&&(Q="panose1"===Q?"panose-1":Q.replace(/([A-Z])/g,"-$1").toLowerCase()):r.test(Q)&&(Q=Q.toLowerCase()):X+=""}}null!=X&&!1!==X&&(G=!0===X||""===X?G+" "+Q:G+" "+Q+'="'+("string"==typeof X?s(X):X+"")+'"')}}if(t.test(P))throw new Error(P+" is not a valid HTML tag name in "+G+">");if(J||("string"==typeof K?J=s(K):null!=K&&!1!==K&&!0!==K&&(J=T(K,c,"svg"===P||"foreignObject"!==P&&l,u,a,d,_))),b&&b(a),a.__=null,x&&x(a),!J&&E.has(P))return G+"/>";var Y="</"+P+">",ee=G+">";return S(J)?[ee].concat(J,[Y]):"string"!=typeof J?[ee,J,Y]:ee+J+Y}var E=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),j=F,D=F;exports.default=F,exports.render=j,exports.renderToStaticMarkup=D,exports.renderToString=F,exports.renderToStringAsync=function(t,n){try{var r=e.options.__s;e.options.__s=!0,y=e.options.__b,b=e.options.diffed,k=e.options.__r,x=e.options.unmount;var o=e.h(e.Fragment,null);return o.__k=[t],Promise.resolve(g(function(){return Promise.resolve(T(t,n||w,!1,void 0,o,!0,void 0)).then(function(e){var t,n=function(){if(S(e)){var n=function(){var e=o.join("");return t=1,e},r=0,o=e,i=m(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}}();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(n,o){if(e.options.__c&&e.options.__c(t,C),e.options.__s=r,C.length=0,n)throw o;return o}))}catch(e){return Promise.reject(e)}};
var e=require("preact"),t=/[\s\n\\/='"\0<>]/,n=/^(xlink|xmlns|xml)([A-Z])/,r=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,o=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,i=new Set(["draggable","spellcheck"]),a=/["&<]/;function s(e){if(0===e.length||!1===a.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var c={},l=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),u=/[A-Z]/g;function p(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:c[n]||(c[n]=n.replace(u,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function f(){this.__d=!0}function h(e,t){return{__v:e,context:t,props:e.props,setState:f,forceUpdate:f,__d:!0,__h:new Array(0)}}function d(e,t,n){if(!e.s){if(n instanceof _){if(!n.s)return void(n.o=d.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(d.bind(null,e,t),d.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var _=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{d(r,1,i(this.v))}catch(e){d(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?d(r,1,t?t(o):o):n?d(r,1,n(o)):d(r,2,o)}catch(e){d(r,2,e)}},r},e}();function v(e){return e instanceof _&&1&e.s}function m(e,t,n){for(var r;;){var o=e();if(v(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!v(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!v(a)){r=2;break}}}var s=new _,c=d.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(p)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!v(a))return void a.then(p).then(void 0,c);if(!(o=e())||v(o)&&!o.v)return void d(s,1,i);if(o.then)return void o.then(u).then(void 0,c);v(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):d(s,1,i)}function p(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):d(s,1,i)}}function g(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var y,b,k,x,w={},C=[],S=Array.isArray,A=Object.assign;function F(t,n,r){var o=e.options.__s;e.options.__s=!0,y=e.options.__b,b=e.options.diffed,k=e.options.__r,x=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{var a=T(t,n||w,!1,void 0,i,!1,r);return S(a)?a.join(""):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options.__c&&e.options.__c(t,C),e.options.__s=o,C.length=0}}function L(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=w),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=A({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),k&&k(e),n.render(n.props,n.state,t)}function T(a,c,l,u,f,d,_){if(null==a||!0===a||!1===a||""===a)return"";var v=typeof a;if("object"!=v)return"function"==v?"":"string"==v?s(a):a+"";if(S(a)){var m,g="";f.__k=a;for(var C=a.length,F=0;F<C;F++){var j=a[F];if(null!=j&&"boolean"!=typeof j){var D,P=T(j,c,l,u,f,d,_);"string"==typeof P?g+=P:(m||(m=new Array(C)),g&&m.push(g),g="",S(P)?(D=m).push.apply(D,P):m.push(P))}}return m?(g&&m.push(g),m):g}if(void 0!==a.constructor)return"";a.__=f,y&&y(a);var M=a.type,U=a.props;if("function"==typeof M){var Z,W,$,q=c;if(M===e.Fragment){if("tpl"in U){for(var z="",H=0;H<U.tpl.length;H++)if(z+=U.tpl[H],U.exprs&&H<U.exprs.length){var N=U.exprs[H];if(null==N)continue;"object"!=typeof N||void 0!==N.constructor&&!S(N)?z+=N:z+=T(N,c,l,u,a,d,_)}return z}if("UNSTABLE_comment"in U)return"\x3c!--"+s(U.UNSTABLE_comment)+"--\x3e";W=U.children}else{if(null!=(Z=M.contextType)){var B=c[Z.__c];q=B?B.props.value:Z.__}var I=M.prototype&&"function"==typeof M.prototype.render;if(I)W=L(a,q),$=a.__c;else{a.__c=$=h(a,q);for(var O=0;$.__d&&O++<25;)$.__d=!1,k&&k(a),W=M.call($,U,q);$.__d=!0}if(null!=$.getChildContext&&(c=A({},c,$.getChildContext())),I&&e.options.errorBoundaries&&(M.getDerivedStateFromError||$.componentDidCatch)){W=null!=W&&W.type===e.Fragment&&null==W.key&&null==W.props.tpl?W.props.children:W;try{return T(W,c,l,u,a,d,_)}catch(t){return M.getDerivedStateFromError&&($.__s=M.getDerivedStateFromError(t)),$.componentDidCatch&&$.componentDidCatch(t,w),$.__d?(W=L(a,c),null!=($=a.__c).getChildContext&&(c=A({},c,$.getChildContext())),T(W=null!=W&&W.type===e.Fragment&&null==W.key&&null==W.props.tpl?W.props.children:W,c,l,u,a,d,_)):""}finally{b&&b(a),a.__=null,x&&x(a)}}}W=null!=W&&W.type===e.Fragment&&null==W.key&&null==W.props.tpl?W.props.children:W;try{var R=T(W,c,l,u,a,d,_);return b&&b(a),a.__=null,e.options.unmount&&e.options.unmount(a),R}catch(t){if(!d&&_&&_.onError){var V=_.onError(t,a,function(e){return T(e,c,l,u,a,d,_)});if(void 0!==V)return V;var K=e.options.__e;return K&&K(t,a),""}if(!d)throw t;if(!t||"function"!=typeof t.then)throw t;return t.then(function e(){try{return T(W,c,l,u,a,d,_)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return T(W,c,l,u,a,d,_)},e)}})}}var G,J="<"+M,Q="";for(var X in U){var Y=U[X];if("function"!=typeof Y||"class"===X||"className"===X){switch(X){case"children":G=Y;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in U)continue;X="for";break;case"className":if("class"in U)continue;X="class";break;case"defaultChecked":X="checked";break;case"defaultSelected":X="selected";break;case"defaultValue":case"value":switch(X="value",M){case"textarea":G=Y;continue;case"select":u=Y;continue;case"option":u!=Y||"selected"in U||(J+=" selected")}break;case"dangerouslySetInnerHTML":Q=Y&&Y.__html;continue;case"style":"object"==typeof Y&&(Y=p(Y));break;case"acceptCharset":X="accept-charset";break;case"httpEquiv":X="http-equiv";break;default:if(n.test(X))X=X.replace(n,"$1:$2").toLowerCase();else{if(t.test(X))continue;"-"!==X[4]&&!i.has(X)||null==Y?l?o.test(X)&&(X="panose1"===X?"panose-1":X.replace(/([A-Z])/g,"-$1").toLowerCase()):r.test(X)&&(X=X.toLowerCase()):Y+=""}}null!=Y&&!1!==Y&&(J=!0===Y||""===Y?J+" "+X:J+" "+X+'="'+("string"==typeof Y?s(Y):Y+"")+'"')}}if(t.test(M))throw new Error(M+" is not a valid HTML tag name in "+J+">");if(Q||("string"==typeof G?Q=s(G):null!=G&&!1!==G&&!0!==G&&(Q=T(G,c,"svg"===M||"foreignObject"!==M&&l,u,a,d,_))),b&&b(a),a.__=null,x&&x(a),!Q&&E.has(M))return J+"/>";var ee="</"+M+">",te=J+">";return S(Q)?[te].concat(Q,[ee]):"string"!=typeof Q?[te,Q,ee]:te+Q+ee}var E=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),j=F,D=F;exports.default=F,exports.render=j,exports.renderToStaticMarkup=D,exports.renderToString=F,exports.renderToStringAsync=function(t,n){try{var r=e.options.__s;e.options.__s=!0,y=e.options.__b,b=e.options.diffed,k=e.options.__r,x=e.options.unmount;var o=e.h(e.Fragment,null);return o.__k=[t],Promise.resolve(g(function(){return Promise.resolve(T(t,n||w,!1,void 0,o,!0,void 0)).then(function(e){var t,n=function(){if(S(e)){var n=function(){var e=o.join("");return t=1,e},r=0,o=e,i=m(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}}();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(n,o){if(e.options.__c&&e.options.__c(t,C),e.options.__s=r,C.length=0,n)throw o;return o}))}catch(e){return Promise.reject(e)}};
//# sourceMappingURL=index.js.map

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

import{options as e,h as t,Fragment as n}from"preact";var r=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=new Set(["draggable","spellcheck"]),s=/["&<]/;function l(e){if(0===e.length||!1===s.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var u={},f=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function h(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:u[n]||(u[n]=n.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||f.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function d(){this.__d=!0}function _(e,t){return{__v:e,context:t,props:e.props,setState:d,forceUpdate:d,__d:!0,__h:new Array(0)}}function v(e,t,n){if(!e.s){if(n instanceof m){if(!n.s)return void(n.o=v.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(v.bind(null,e,t),v.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var m=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{v(r,1,i(this.v))}catch(e){v(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?v(r,1,t?t(o):o):n?v(r,1,n(o)):v(r,2,o)}catch(e){v(r,2,e)}},r},e}();function y(e){return e instanceof m&&1&e.s}function g(e,t,n){for(var r;;){var o=e();if(y(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!y(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!y(a)){r=2;break}}}var c=new m,s=v.bind(null,c,2);return(0===r?o.then(u):1===r?i.then(l):a.then(f)).then(void 0,s),c;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!y(a))return void a.then(f).then(void 0,s);if(!(o=e())||y(o)&&!o.v)return void v(c,1,i);if(o.then)return void o.then(u).then(void 0,s);y(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,s)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,s):l(i):v(c,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,s):u(o):v(c,1,i)}}function b(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var k,w,x,C,S=function(r,o){try{var i=e.__s;e.__s=!0,k=e.__b,w=e.diffed,x=e.__r,C=e.unmount;var a=t(n,null);return a.__k=[r],Promise.resolve(b(function(){return Promise.resolve(U(r,o||A,!1,void 0,a,!0,void 0)).then(function(e){var t,n=function(){if(E(e)){var n=function(){var e=o.join(j);return t=1,e},r=0,o=e,i=g(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}}();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(t,n){if(e.__c&&e.__c(r,L),e.__s=i,L.length=0,t)throw n;return n}))}catch(e){return Promise.reject(e)}},A={},L=[],E=Array.isArray,T=Object.assign,j="";function D(r,o,i){var a=e.__s;e.__s=!0,k=e.__b,w=e.diffed,x=e.__r,C=e.unmount;var c=t(n,null);c.__k=[r];try{var s=U(r,o||A,!1,void 0,c,!1,i);return E(s)?s.join(j):s}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(r,L),e.__s=a,L.length=0}}function P(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=A),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=T({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),x&&x(e),n.render(n.props,n.state,t)}function U(t,s,u,f,p,d,v){if(null==t||!0===t||!1===t||t===j)return j;var m=typeof t;if("object"!=m)return"function"==m?j:"string"==m?l(t):t+j;if(E(t)){var y,g=j;p.__k=t;for(var b=0;b<t.length;b++){var S=t[b];if(null!=S&&"boolean"!=typeof S){var L,D=U(S,s,u,f,p,d,v);"string"==typeof D?g+=D:(y||(y=[]),g&&y.push(g),g=j,E(D)?(L=y).push.apply(L,D):y.push(D))}}return y?(g&&y.push(g),y):g}if(void 0!==t.constructor)return j;t.__=p,k&&k(t);var F=t.type,M=t.props;if("function"==typeof F){var W,$,z,H=s;if(F===n){if("tpl"in M){for(var N=j,q=0;q<M.tpl.length;q++)if(N+=M.tpl[q],M.exprs&&q<M.exprs.length){var B=M.exprs[q];if(null==B)continue;"object"!=typeof B||void 0!==B.constructor&&!E(B)?N+=B:N+=U(B,s,u,f,t,d,v)}return N}if("UNSTABLE_comment"in M)return"\x3c!--"+l(M.UNSTABLE_comment)+"--\x3e";$=M.children}else{if(null!=(W=F.contextType)){var I=s[W.__c];H=I?I.props.value:W.__}var O=F.prototype&&"function"==typeof F.prototype.render;if(O)$=P(t,H),z=t.__c;else{t.__c=z=_(t,H);for(var R=0;z.__d&&R++<25;)z.__d=!1,x&&x(t),$=F.call(z,M,H);z.__d=!0}if(null!=z.getChildContext&&(s=T({},s,z.getChildContext())),O&&e.errorBoundaries&&(F.getDerivedStateFromError||z.componentDidCatch)){$=null!=$&&$.type===n&&null==$.key&&null==$.props.tpl?$.props.children:$;try{return U($,s,u,f,t,d,v)}catch(e){return F.getDerivedStateFromError&&(z.__s=F.getDerivedStateFromError(e)),z.componentDidCatch&&z.componentDidCatch(e,A),z.__d?($=P(t,s),null!=(z=t.__c).getChildContext&&(s=T({},s,z.getChildContext())),U($=null!=$&&$.type===n&&null==$.key&&null==$.props.tpl?$.props.children:$,s,u,f,t,d,v)):j}finally{w&&w(t),t.__=null,C&&C(t)}}}$=null!=$&&$.type===n&&null==$.key&&null==$.props.tpl?$.props.children:$;try{var V=U($,s,u,f,t,d,v);return w&&w(t),t.__=null,e.unmount&&e.unmount(t),V}catch(n){if(!d&&v&&v.onError){var K=v.onError(n,t,function(e){return U(e,s,u,f,t,d,v)});if(void 0!==K)return K;var G=e.__e;return G&&G(n,t),j}if(!d)throw n;if(!n||"function"!=typeof n.then)throw n;return n.then(function e(){try{return U($,s,u,f,t,d,v)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return U($,s,u,f,t,d,v)},e)}})}}var J,Q="<"+F,X=j;for(var Y in M){var ee=M[Y];if("function"!=typeof ee||"class"===Y||"className"===Y){switch(Y){case"children":J=ee;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in M)continue;Y="for";break;case"className":if("class"in M)continue;Y="class";break;case"defaultChecked":Y="checked";break;case"defaultSelected":Y="selected";break;case"defaultValue":case"value":switch(Y="value",F){case"textarea":J=ee;continue;case"select":f=ee;continue;case"option":f!=ee||"selected"in M||(Q+=" selected")}break;case"dangerouslySetInnerHTML":X=ee&&ee.__html;continue;case"style":"object"==typeof ee&&(ee=h(ee));break;case"acceptCharset":Y="accept-charset";break;case"httpEquiv":Y="http-equiv";break;default:if(o.test(Y))Y=Y.replace(o,"$1:$2").toLowerCase();else{if(r.test(Y))continue;"-"!==Y[4]&&!c.has(Y)||null==ee?u?a.test(Y)&&(Y="panose1"===Y?"panose-1":Y.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(Y)&&(Y=Y.toLowerCase()):ee+=j}}null!=ee&&!1!==ee&&(Q=!0===ee||ee===j?Q+" "+Y:Q+" "+Y+'="'+("string"==typeof ee?l(ee):ee+j)+'"')}}if(r.test(F))throw new Error(F+" is not a valid HTML tag name in "+Q+">");if(X||("string"==typeof J?X=l(J):null!=J&&!1!==J&&!0!==J&&(X=U(J,s,"svg"===F||"foreignObject"!==F&&u,f,t,d,v))),w&&w(t),t.__=null,C&&C(t),!X&&Z.has(F))return Q+"/>";var te="</"+F+">",ne=Q+">";return E(X)?[ne].concat(X,[te]):"string"!=typeof X?[ne,X,te]:ne+X+te}var Z=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),F=D,M=D;export default D;export{F as render,M as renderToStaticMarkup,D as renderToString,S as renderToStringAsync};
import{options as e,h as t,Fragment as n}from"preact";var r=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=new Set(["draggable","spellcheck"]),s=/["&<]/;function l(e){if(0===e.length||!1===s.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var u={},f=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function h(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:u[n]||(u[n]=n.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||f.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function d(){this.__d=!0}function _(e,t){return{__v:e,context:t,props:e.props,setState:d,forceUpdate:d,__d:!0,__h:new Array(0)}}function v(e,t,n){if(!e.s){if(n instanceof m){if(!n.s)return void(n.o=v.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(v.bind(null,e,t),v.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var m=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{v(r,1,i(this.v))}catch(e){v(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?v(r,1,t?t(o):o):n?v(r,1,n(o)):v(r,2,o)}catch(e){v(r,2,e)}},r},e}();function y(e){return e instanceof m&&1&e.s}function g(e,t,n){for(var r;;){var o=e();if(y(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!y(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!y(a)){r=2;break}}}var c=new m,s=v.bind(null,c,2);return(0===r?o.then(u):1===r?i.then(l):a.then(f)).then(void 0,s),c;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!y(a))return void a.then(f).then(void 0,s);if(!(o=e())||y(o)&&!o.v)return void v(c,1,i);if(o.then)return void o.then(u).then(void 0,s);y(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,s)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,s):l(i):v(c,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,s):u(o):v(c,1,i)}}function b(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var k,w,x,C,A=function(r,o){try{var i=e.__s;e.__s=!0,k=e.__b,w=e.diffed,x=e.__r,C=e.unmount;var a=t(n,null);return a.__k=[r],Promise.resolve(b(function(){return Promise.resolve(U(r,o||S,!1,void 0,a,!0,void 0)).then(function(e){var t,n=function(){if(E(e)){var n=function(){var e=o.join(j);return t=1,e},r=0,o=e,i=g(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}}();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(t,n){if(e.__c&&e.__c(r,L),e.__s=i,L.length=0,t)throw n;return n}))}catch(e){return Promise.reject(e)}},S={},L=[],E=Array.isArray,T=Object.assign,j="";function D(r,o,i){var a=e.__s;e.__s=!0,k=e.__b,w=e.diffed,x=e.__r,C=e.unmount;var c=t(n,null);c.__k=[r];try{var s=U(r,o||S,!1,void 0,c,!1,i);return E(s)?s.join(j):s}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(r,L),e.__s=a,L.length=0}}function P(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=S),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=T({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),x&&x(e),n.render(n.props,n.state,t)}function U(t,s,u,f,p,d,v){if(null==t||!0===t||!1===t||t===j)return j;var m=typeof t;if("object"!=m)return"function"==m?j:"string"==m?l(t):t+j;if(E(t)){var y,g=j;p.__k=t;for(var b=t.length,A=0;A<b;A++){var L=t[A];if(null!=L&&"boolean"!=typeof L){var D,F=U(L,s,u,f,p,d,v);"string"==typeof F?g+=F:(y||(y=new Array(b)),g&&y.push(g),g=j,E(F)?(D=y).push.apply(D,F):y.push(F))}}return y?(g&&y.push(g),y):g}if(void 0!==t.constructor)return j;t.__=p,k&&k(t);var M=t.type,W=t.props;if("function"==typeof M){var $,z,H,N=s;if(M===n){if("tpl"in W){for(var q=j,B=0;B<W.tpl.length;B++)if(q+=W.tpl[B],W.exprs&&B<W.exprs.length){var I=W.exprs[B];if(null==I)continue;"object"!=typeof I||void 0!==I.constructor&&!E(I)?q+=I:q+=U(I,s,u,f,t,d,v)}return q}if("UNSTABLE_comment"in W)return"\x3c!--"+l(W.UNSTABLE_comment)+"--\x3e";z=W.children}else{if(null!=($=M.contextType)){var O=s[$.__c];N=O?O.props.value:$.__}var R=M.prototype&&"function"==typeof M.prototype.render;if(R)z=P(t,N),H=t.__c;else{t.__c=H=_(t,N);for(var V=0;H.__d&&V++<25;)H.__d=!1,x&&x(t),z=M.call(H,W,N);H.__d=!0}if(null!=H.getChildContext&&(s=T({},s,H.getChildContext())),R&&e.errorBoundaries&&(M.getDerivedStateFromError||H.componentDidCatch)){z=null!=z&&z.type===n&&null==z.key&&null==z.props.tpl?z.props.children:z;try{return U(z,s,u,f,t,d,v)}catch(e){return M.getDerivedStateFromError&&(H.__s=M.getDerivedStateFromError(e)),H.componentDidCatch&&H.componentDidCatch(e,S),H.__d?(z=P(t,s),null!=(H=t.__c).getChildContext&&(s=T({},s,H.getChildContext())),U(z=null!=z&&z.type===n&&null==z.key&&null==z.props.tpl?z.props.children:z,s,u,f,t,d,v)):j}finally{w&&w(t),t.__=null,C&&C(t)}}}z=null!=z&&z.type===n&&null==z.key&&null==z.props.tpl?z.props.children:z;try{var K=U(z,s,u,f,t,d,v);return w&&w(t),t.__=null,e.unmount&&e.unmount(t),K}catch(n){if(!d&&v&&v.onError){var G=v.onError(n,t,function(e){return U(e,s,u,f,t,d,v)});if(void 0!==G)return G;var J=e.__e;return J&&J(n,t),j}if(!d)throw n;if(!n||"function"!=typeof n.then)throw n;return n.then(function e(){try{return U(z,s,u,f,t,d,v)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return U(z,s,u,f,t,d,v)},e)}})}}var Q,X="<"+M,Y=j;for(var ee in W){var te=W[ee];if("function"!=typeof te||"class"===ee||"className"===ee){switch(ee){case"children":Q=te;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in W)continue;ee="for";break;case"className":if("class"in W)continue;ee="class";break;case"defaultChecked":ee="checked";break;case"defaultSelected":ee="selected";break;case"defaultValue":case"value":switch(ee="value",M){case"textarea":Q=te;continue;case"select":f=te;continue;case"option":f!=te||"selected"in W||(X+=" selected")}break;case"dangerouslySetInnerHTML":Y=te&&te.__html;continue;case"style":"object"==typeof te&&(te=h(te));break;case"acceptCharset":ee="accept-charset";break;case"httpEquiv":ee="http-equiv";break;default:if(o.test(ee))ee=ee.replace(o,"$1:$2").toLowerCase();else{if(r.test(ee))continue;"-"!==ee[4]&&!c.has(ee)||null==te?u?a.test(ee)&&(ee="panose1"===ee?"panose-1":ee.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(ee)&&(ee=ee.toLowerCase()):te+=j}}null!=te&&!1!==te&&(X=!0===te||te===j?X+" "+ee:X+" "+ee+'="'+("string"==typeof te?l(te):te+j)+'"')}}if(r.test(M))throw new Error(M+" is not a valid HTML tag name in "+X+">");if(Y||("string"==typeof Q?Y=l(Q):null!=Q&&!1!==Q&&!0!==Q&&(Y=U(Q,s,"svg"===M||"foreignObject"!==M&&u,f,t,d,v))),w&&w(t),t.__=null,C&&C(t),!Y&&Z.has(M))return X+"/>";var ne="</"+M+">",re=X+">";return E(Y)?[re].concat(Y,[ne]):"string"!=typeof Y?[re,Y,ne]:re+Y+ne}var Z=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),F=D,M=D;export default D;export{F as render,M as renderToStaticMarkup,D as renderToString,A as renderToStringAsync};
//# sourceMappingURL=index.module.js.map

@@ -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=/[\s\n\\/='"\0<>]/,r=/^(xlink|xmlns|xml)([A-Z])/,o=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,a=new Set(["draggable","spellcheck"]),s=/["&<]/;function c(e){if(0===e.length||!1===s.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var l={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),f=/[A-Z]/g;function p(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:l[n]||(l[n]=n.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function h(){this.__d=!0}function d(e,t){return{__v:e,context:t,props:e.props,setState:h,forceUpdate:h,__d:!0,__h:new Array(0)}}function _(e,t,n){if(!e.s){if(n instanceof v){if(!n.s)return void(n.o=_.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(_.bind(null,e,t),_.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var v=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{_(r,1,i(this.v))}catch(e){_(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?_(r,1,t?t(o):o):n?_(r,1,n(o)):_(r,2,o)}catch(e){_(r,2,e)}},r},e}();function m(e){return e instanceof v&&1&e.s}function g(e,t,n){for(var r;;){var o=e();if(m(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!m(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!m(a)){r=2;break}}}var s=new v,c=_.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(f)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!m(a))return void a.then(f).then(void 0,c);if(!(o=e())||m(o)&&!o.v)return void _(s,1,i);if(o.then)return void o.then(u).then(void 0,c);m(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):_(s,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):_(s,1,i)}}function y(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var b,k,x,w,S={},C=[],A=Array.isArray,T=Object.assign,F="";function L(e,n,r){var o=t.options.__s;t.options.__s=!0,b=t.options.__b,k=t.options.diffed,x=t.options.__r,w=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{var a=j(e,n||S,!1,void 0,i,!1,r);return A(a)?a.join(F):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,C),t.options.__s=o,C.length=0}}function E(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=S),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=T({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),x&&x(e),n.render(n.props,n.state,t)}function j(e,s,l,u,f,h,_){if(null==e||!0===e||!1===e||e===F)return F;var v=typeof e;if("object"!=v)return"function"==v?F:"string"==v?c(e):e+F;if(A(e)){var m,g=F;f.__k=e;for(var y=0;y<e.length;y++){var C=e[y];if(null!=C&&"boolean"!=typeof C){var L,P=j(C,s,l,u,f,h,_);"string"==typeof P?g+=P:(m||(m=[]),g&&m.push(g),g=F,A(P)?(L=m).push.apply(L,P):m.push(P))}}return m?(g&&m.push(g),m):g}if(void 0!==e.constructor)return F;e.__=f,b&&b(e);var M=e.type,U=e.props;if("function"==typeof M){var Z,W,$,q=s;if(M===t.Fragment){if("tpl"in U){for(var z=F,H=0;H<U.tpl.length;H++)if(z+=U.tpl[H],U.exprs&&H<U.exprs.length){var N=U.exprs[H];if(null==N)continue;"object"!=typeof N||void 0!==N.constructor&&!A(N)?z+=N:z+=j(N,s,l,u,e,h,_)}return z}if("UNSTABLE_comment"in U)return"\x3c!--"+c(U.UNSTABLE_comment)+"--\x3e";W=U.children}else{if(null!=(Z=M.contextType)){var B=s[Z.__c];q=B?B.props.value:Z.__}var I=M.prototype&&"function"==typeof M.prototype.render;if(I)W=E(e,q),$=e.__c;else{e.__c=$=d(e,q);for(var O=0;$.__d&&O++<25;)$.__d=!1,x&&x(e),W=M.call($,U,q);$.__d=!0}if(null!=$.getChildContext&&(s=T({},s,$.getChildContext())),I&&t.options.errorBoundaries&&(M.getDerivedStateFromError||$.componentDidCatch)){W=null!=W&&W.type===t.Fragment&&null==W.key&&null==W.props.tpl?W.props.children:W;try{return j(W,s,l,u,e,h,_)}catch(n){return M.getDerivedStateFromError&&($.__s=M.getDerivedStateFromError(n)),$.componentDidCatch&&$.componentDidCatch(n,S),$.__d?(W=E(e,s),null!=($=e.__c).getChildContext&&(s=T({},s,$.getChildContext())),j(W=null!=W&&W.type===t.Fragment&&null==W.key&&null==W.props.tpl?W.props.children:W,s,l,u,e,h,_)):F}finally{k&&k(e),e.__=null,w&&w(e)}}}W=null!=W&&W.type===t.Fragment&&null==W.key&&null==W.props.tpl?W.props.children:W;try{var R=j(W,s,l,u,e,h,_);return k&&k(e),e.__=null,t.options.unmount&&t.options.unmount(e),R}catch(n){if(!h&&_&&_.onError){var V=_.onError(n,e,function(t){return j(t,s,l,u,e,h,_)});if(void 0!==V)return V;var K=t.options.__e;return K&&K(n,e),F}if(!h)throw n;if(!n||"function"!=typeof n.then)throw n;return n.then(function t(){try{return j(W,s,l,u,e,h,_)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return j(W,s,l,u,e,h,_)},t)}})}}var G,J="<"+M,Q=F;for(var X in U){var Y=U[X];if("function"!=typeof Y||"class"===X||"className"===X){switch(X){case"children":G=Y;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in U)continue;X="for";break;case"className":if("class"in U)continue;X="class";break;case"defaultChecked":X="checked";break;case"defaultSelected":X="selected";break;case"defaultValue":case"value":switch(X="value",M){case"textarea":G=Y;continue;case"select":u=Y;continue;case"option":u!=Y||"selected"in U||(J+=" selected")}break;case"dangerouslySetInnerHTML":Q=Y&&Y.__html;continue;case"style":"object"==typeof Y&&(Y=p(Y));break;case"acceptCharset":X="accept-charset";break;case"httpEquiv":X="http-equiv";break;default:if(r.test(X))X=X.replace(r,"$1:$2").toLowerCase();else{if(n.test(X))continue;"-"!==X[4]&&!a.has(X)||null==Y?l?i.test(X)&&(X="panose1"===X?"panose-1":X.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(X)&&(X=X.toLowerCase()):Y+=F}}null!=Y&&!1!==Y&&(J=!0===Y||Y===F?J+" "+X:J+" "+X+'="'+("string"==typeof Y?c(Y):Y+F)+'"')}}if(n.test(M))throw new Error(M+" is not a valid HTML tag name in "+J+">");if(Q||("string"==typeof G?Q=c(G):null!=G&&!1!==G&&!0!==G&&(Q=j(G,s,"svg"===M||"foreignObject"!==M&&l,u,e,h,_))),k&&k(e),e.__=null,w&&w(e),!Q&&D.has(M))return J+"/>";var ee="</"+M+">",te=J+">";return A(Q)?[te].concat(Q,[ee]):"string"!=typeof Q?[te,Q,ee]:te+Q+ee}var D=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),P=L,M=L;e.default=L,e.render=P,e.renderToStaticMarkup=M,e.renderToString=L,e.renderToStringAsync=function(e,n){try{var r=t.options.__s;t.options.__s=!0,b=t.options.__b,k=t.options.diffed,x=t.options.__r,w=t.options.unmount;var o=t.h(t.Fragment,null);return o.__k=[e],Promise.resolve(y(function(){return Promise.resolve(j(e,n||S,!1,void 0,o,!0,void 0)).then(function(e){var t,n=function(){if(A(e)){var n=function(){var e=o.join(F);return t=1,e},r=0,o=e,i=g(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}}();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(n,o){if(t.options.__c&&t.options.__c(e,C),t.options.__s=r,C.length=0,n)throw o;return o}))}catch(e){return Promise.reject(e)}}});
!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=/[\s\n\\/='"\0<>]/,r=/^(xlink|xmlns|xml)([A-Z])/,o=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,a=new Set(["draggable","spellcheck"]),s=/["&<]/;function c(e){if(0===e.length||!1===s.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var l={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),f=/[A-Z]/g;function p(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:l[n]||(l[n]=n.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function h(){this.__d=!0}function d(e,t){return{__v:e,context:t,props:e.props,setState:h,forceUpdate:h,__d:!0,__h:new Array(0)}}function _(e,t,n){if(!e.s){if(n instanceof v){if(!n.s)return void(n.o=_.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(_.bind(null,e,t),_.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var v=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{_(r,1,i(this.v))}catch(e){_(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?_(r,1,t?t(o):o):n?_(r,1,n(o)):_(r,2,o)}catch(e){_(r,2,e)}},r},e}();function m(e){return e instanceof v&&1&e.s}function g(e,t,n){for(var r;;){var o=e();if(m(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!m(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!m(a)){r=2;break}}}var s=new v,c=_.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(f)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!m(a))return void a.then(f).then(void 0,c);if(!(o=e())||m(o)&&!o.v)return void _(s,1,i);if(o.then)return void o.then(u).then(void 0,c);m(i=n())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,c)}function u(e){e?(i=n())&&i.then?i.then(l).then(void 0,c):l(i):_(s,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):_(s,1,i)}}function y(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var b,k,w,x,S={},C=[],A=Array.isArray,T=Object.assign,F="";function L(e,n,r){var o=t.options.__s;t.options.__s=!0,b=t.options.__b,k=t.options.diffed,w=t.options.__r,x=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{var a=j(e,n||S,!1,void 0,i,!1,r);return A(a)?a.join(F):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,C),t.options.__s=o,C.length=0}}function E(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,null==n.state&&(n.state=S),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=T({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),w&&w(e),n.render(n.props,n.state,t)}function j(e,s,l,u,f,h,_){if(null==e||!0===e||!1===e||e===F)return F;var v=typeof e;if("object"!=v)return"function"==v?F:"string"==v?c(e):e+F;if(A(e)){var m,g=F;f.__k=e;for(var y=e.length,C=0;C<y;C++){var L=e[C];if(null!=L&&"boolean"!=typeof L){var P,M=j(L,s,l,u,f,h,_);"string"==typeof M?g+=M:(m||(m=new Array(y)),g&&m.push(g),g=F,A(M)?(P=m).push.apply(P,M):m.push(M))}}return m?(g&&m.push(g),m):g}if(void 0!==e.constructor)return F;e.__=f,b&&b(e);var U=e.type,Z=e.props;if("function"==typeof U){var W,$,q,z=s;if(U===t.Fragment){if("tpl"in Z){for(var H=F,N=0;N<Z.tpl.length;N++)if(H+=Z.tpl[N],Z.exprs&&N<Z.exprs.length){var B=Z.exprs[N];if(null==B)continue;"object"!=typeof B||void 0!==B.constructor&&!A(B)?H+=B:H+=j(B,s,l,u,e,h,_)}return H}if("UNSTABLE_comment"in Z)return"\x3c!--"+c(Z.UNSTABLE_comment)+"--\x3e";$=Z.children}else{if(null!=(W=U.contextType)){var I=s[W.__c];z=I?I.props.value:W.__}var O=U.prototype&&"function"==typeof U.prototype.render;if(O)$=E(e,z),q=e.__c;else{e.__c=q=d(e,z);for(var R=0;q.__d&&R++<25;)q.__d=!1,w&&w(e),$=U.call(q,Z,z);q.__d=!0}if(null!=q.getChildContext&&(s=T({},s,q.getChildContext())),O&&t.options.errorBoundaries&&(U.getDerivedStateFromError||q.componentDidCatch)){$=null!=$&&$.type===t.Fragment&&null==$.key&&null==$.props.tpl?$.props.children:$;try{return j($,s,l,u,e,h,_)}catch(n){return U.getDerivedStateFromError&&(q.__s=U.getDerivedStateFromError(n)),q.componentDidCatch&&q.componentDidCatch(n,S),q.__d?($=E(e,s),null!=(q=e.__c).getChildContext&&(s=T({},s,q.getChildContext())),j($=null!=$&&$.type===t.Fragment&&null==$.key&&null==$.props.tpl?$.props.children:$,s,l,u,e,h,_)):F}finally{k&&k(e),e.__=null,x&&x(e)}}}$=null!=$&&$.type===t.Fragment&&null==$.key&&null==$.props.tpl?$.props.children:$;try{var V=j($,s,l,u,e,h,_);return k&&k(e),e.__=null,t.options.unmount&&t.options.unmount(e),V}catch(n){if(!h&&_&&_.onError){var K=_.onError(n,e,function(t){return j(t,s,l,u,e,h,_)});if(void 0!==K)return K;var G=t.options.__e;return G&&G(n,e),F}if(!h)throw n;if(!n||"function"!=typeof n.then)throw n;return n.then(function t(){try{return j($,s,l,u,e,h,_)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return j($,s,l,u,e,h,_)},t)}})}}var J,Q="<"+U,X=F;for(var Y in Z){var ee=Z[Y];if("function"!=typeof ee||"class"===Y||"className"===Y){switch(Y){case"children":J=ee;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in Z)continue;Y="for";break;case"className":if("class"in Z)continue;Y="class";break;case"defaultChecked":Y="checked";break;case"defaultSelected":Y="selected";break;case"defaultValue":case"value":switch(Y="value",U){case"textarea":J=ee;continue;case"select":u=ee;continue;case"option":u!=ee||"selected"in Z||(Q+=" selected")}break;case"dangerouslySetInnerHTML":X=ee&&ee.__html;continue;case"style":"object"==typeof ee&&(ee=p(ee));break;case"acceptCharset":Y="accept-charset";break;case"httpEquiv":Y="http-equiv";break;default:if(r.test(Y))Y=Y.replace(r,"$1:$2").toLowerCase();else{if(n.test(Y))continue;"-"!==Y[4]&&!a.has(Y)||null==ee?l?i.test(Y)&&(Y="panose1"===Y?"panose-1":Y.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(Y)&&(Y=Y.toLowerCase()):ee+=F}}null!=ee&&!1!==ee&&(Q=!0===ee||ee===F?Q+" "+Y:Q+" "+Y+'="'+("string"==typeof ee?c(ee):ee+F)+'"')}}if(n.test(U))throw new Error(U+" is not a valid HTML tag name in "+Q+">");if(X||("string"==typeof J?X=c(J):null!=J&&!1!==J&&!0!==J&&(X=j(J,s,"svg"===U||"foreignObject"!==U&&l,u,e,h,_))),k&&k(e),e.__=null,x&&x(e),!X&&D.has(U))return Q+"/>";var te="</"+U+">",ne=Q+">";return A(X)?[ne].concat(X,[te]):"string"!=typeof X?[ne,X,te]:ne+X+te}var D=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),P=L,M=L;e.default=L,e.render=P,e.renderToStaticMarkup=M,e.renderToString=L,e.renderToStringAsync=function(e,n){try{var r=t.options.__s;t.options.__s=!0,b=t.options.__b,k=t.options.diffed,w=t.options.__r,x=t.options.unmount;var o=t.h(t.Fragment,null);return o.__k=[e],Promise.resolve(y(function(){return Promise.resolve(j(e,n||S,!1,void 0,o,!0,void 0)).then(function(e){var t,n=function(){if(A(e)){var n=function(){var e=o.join(F);return t=1,e},r=0,o=e,i=g(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}}();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(n,o){if(t.options.__c&&t.options.__c(e,C),t.options.__s=r,C.length=0,n)throw o;return o}))}catch(e){return Promise.reject(e)}}});
//# sourceMappingURL=index.umd.js.map

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

var t=require("preact");if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(t){return"@@"+t}}var n=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,r=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=/["&<]/;function l(t){if(0===t.length||!1===c.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var s=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("<")},f={},p=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),d=/[A-Z]/g;function g(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:f[n]||(f[n]=n.replace(d,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||p.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function y(t,e){return Array.isArray(e)?e.reduce(y,t):null!=e&&!1!==e&&t.push(e),t}function v(){this.__d=!0}function b(t,e){return{__v:t,context:e,props:t.props,setState:v,forceUpdate:v,__d:!0,__h:new Array(0)}}function m(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var h=[],_=[];function x(e,n,r,o){var i=t.options.__s;t.options.__s=!0;try{return j(e,n||{},r,o)}finally{t.options.__c&&t.options.__c(e,_),t.options.__s=i,_.length=0}}function j(e,c,f,p,d,v){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":l(e+"");var h=f.pretty,_=h&&"string"==typeof h?h:"\t";if(Array.isArray(e)){for(var x="",k=0;k<e.length;k++)h&&k>0&&(x+="\n"),x+=j(e[k],c,f,p,d,v);return x}if(void 0!==e.constructor)return"";t.options.__b&&t.options.__b(e);var w,A=e.type,O=e.props,F=!1;if("function"==typeof A){if(F=!0,!f.shallow||!p&&!1!==f.renderRootComponent||A===t.Fragment){if(A===t.Fragment){var C=[];return y(C,e.props.children),j(C,c,f,!1!==f.shallowHighOrder,d,v)}var E,M=e.__c=b(e,c),$=t.options.__r;if(A.prototype&&"function"==typeof A.prototype.render){var H=m(A,c);(M=e.__c=new A(O,H)).__v=e,M._dirty=M.__d=!0,M.props=O,null==M.state&&(M.state={}),null==M._nextState&&null==M.__s&&(M._nextState=M.__s=M.state),M.context=H,A.getDerivedStateFromProps?M.state=Object.assign({},M.state,A.getDerivedStateFromProps(M.props,M.state)):M.componentWillMount&&(M.componentWillMount(),M.state=M._nextState!==M.state?M._nextState:M.__s!==M.state?M.__s:M.state),$&&$(e),E=M.render(M.props,M.state,M.context)}else for(var L=m(A,c),I=0;M.__d&&I++<25;)M.__d=!1,$&&$(e),E=A.call(e.__c,O,L);M.getChildContext&&(c=Object.assign({},c,M.getChildContext()));var N=j(E,c,f,!1!==f.shallowHighOrder,d,v);return t.options.diffed&&t.options.diffed(e),N}A=(w=A).displayName||w!==Function&&w.name||S(w)}var D,W,T="<"+A;if(O){var U=Object.keys(O);f&&!0===f.sortAttributes&&U.sort();for(var Z=0;Z<U.length;Z++){var P=U[Z],R=O[P];if("children"!==P){if(!r.test(P)&&(f&&f.allAttributes||"key"!==P&&"ref"!==P&&"__self"!==P&&"__source"!==P)){if("defaultValue"===P)P="value";else if("defaultChecked"===P)P="checked";else if("defaultSelected"===P)P="selected";else if("className"===P){if(void 0!==O.class)continue;P="class"}else"acceptCharset"===P?P="accept-charset":"httpEquiv"===P?P="http-equiv":o.test(P)?P=P.replace(o,"$1:$2").toLowerCase():d?a.test(P)&&(P="panose1"===P?"panose-1":P.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(P)&&(P=P.toLowerCase());if("htmlFor"===P){if(O.for)continue;P="for"}"style"===P&&R&&"object"==typeof R&&(R=g(R)),"a"===P[0]&&"r"===P[1]&&"boolean"==typeof R&&(R=String(R));var q=f.attributeHook&&f.attributeHook(P,R,c,f,F);if(q||""===q)T+=q;else if("dangerouslySetInnerHTML"===P)W=R&&R.__html;else if("textarea"===A&&"value"===P)D=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=P,f&&f.xml))){T=T+" "+P;continue}if("value"===P){if("select"===A){v=R;continue}"option"===A&&v==R&&void 0===O.selected&&(T+=" selected")}T=T+" "+P+'="'+l(R+"")+'"'}}}else D=R}}if(h){var z=T.replace(/\n\s*/," ");z===T||~z.indexOf("\n")?h&&~T.indexOf("\n")&&(T+="\n"):T=z}if(T+=">",r.test(A))throw new Error(A+" is not a valid HTML tag name in "+T);var J,V=n.test(A)||f.voidElements&&f.voidElements.test(A),B=[];if(W)h&&u(W)&&(W="\n"+_+s(W,_)),T+=W;else if(null!=D&&y(J=[],D).length){for(var G=h&&~T.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=j(X,c,f,!0,"svg"===A||"foreignObject"!==A&&d,v);if(h&&!G&&u(Y)&&(G=!0),Y)if(h){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(h&&G)for(var et=B.length;et--;)B[et]="\n"+_+s(B[et],_)}if(t.options.diffed&&t.options.diffed(e),B.length||W)T+=B.join("");else if(f&&f.xml)return T.substring(0,T.length-1)+" />";return!V||J||W?(h&&~T.indexOf("\n")&&(T+="\n"),T=T+"</"+A+">"):T=T.replace(/>$/," />"),T}function S(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=h.length;r--;)if(h[r]===t){n=r;break}n<0&&(n=h.push(t)-1),e="UnnamedComponent"+n}return e}var k=/(\\|\"|\')/g,w=function(t){return t.replace(k,"\\$1")},A=Object.prototype.toString,O=Date.prototype.toISOString,F=Error.prototype.toString,C=RegExp.prototype.toString,E=Symbol.prototype.toString,M=/^Symbol\((.*)\)(.*)$/,$=/\n/gi,H=Object.getOwnPropertySymbols||function(t){return[]};function L(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 I(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return E.call(t).replace(M,"Symbol($1)")}function W(t){return"["+F.call(t)+"]"}function T(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 I(t);if("string"===e)return'"'+w(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);var n=A.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?O.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?C.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":L(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function U(t,e,n,r,o,i,a,c,l,s){var u="";if(t.length){u+=o;for(var f=n+e,p=0;p<t.length;p++)u+=f+B(t[p],e,f,r,o,i,a,c,l,s),p<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function Z(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+U(t,e,n,r,o,i,a,c,l,s)}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){var u="Map {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+B(p.value[0],e,d,r,o,i,a,c,l,s)+" => "+B(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){var u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort(),p=H(t);if(p.length&&(f=f.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===A.call(t))}).concat(p)),f.length){u+=o;for(var d=n+e,g=0;g<f.length;g++){var y=f[g];u+=d+B(y,e,d,r,o,i,a,c,l,s)+": "+B(t[y],e,d,r,o,i,a,c,l,s),g<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,l,s){var u="Set {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+B(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return B(t.toJSON(),e,n,r,o,i,a,c,l,s);var f=A.call(t);return"[object Arguments]"===f?u?"[Arguments]":Z(t,e,n,r,o,i,a,c,l,s):L(f)?u?"[Array]":P(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":R(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":z(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":q(t,e,n,r,o,i,a,c,l,s):void 0}function V(t,e,n,r,o,i,a,c,l,s){for(var u,f=!1,p=0;p<l.length;p++)if((u=l[p]).test(t)){f=!0;break}return!!f&&u.print(t,function(t){return B(t,e,n,r,o,i,a,c,l,s)},function(t){var r=n+e;return r+t.replace($,"\n"+r)},{edgeSpacing:o,spacing:r})}function B(t,e,n,r,o,i,a,c,l,s){return T(t)||V(t,e,n,r,o,i,a,c,l,s)||J(t,e,n,r,o,i,a,c,l,s)}var G={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function K(t){if(Object.keys(t).forEach(function(t){if(!G.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")}function Q(t){var e={};return Object.keys(G).forEach(function(n){return e[n]=t.hasOwnProperty(n)?t[n]:G[n]}),e.min&&(e.indent=0),e}function X(t){return new Array(t+1).join(" ")}var Y=function(t,e){var n,r;e?(K(e),e=Q(e)):e=G;var o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){var a=V(t,n=X(e.indent),"",o,i,r=[],e.maxDepth,0,e.plugins,e.min);if(a)return a}return T(t)||(n||(n=X(e.indent)),r||(r=[]),J(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},tt={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return x(t,tt.context,tt.opts,!0)}},et={plugins:[tt]},nt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(tt.context=n,tt.opts=r,~(e=Y(e,et)).indexOf("\n")&&(e=s("\n"+e,a)+"\n")):e="Function",s("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function rt(t,e,n){var r=Object.assign({},nt,n||{});return r.jsx||(r.attributeHook=null),x(t,e,r)}var ot={shallow:!0};exports.default=rt,exports.render=rt,exports.shallowRender=function(t,e,n){return rt(t,e,Object.assign({},ot,n||{}))};
var t=require("preact");if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(t){return"@@"+t}}var n=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,r=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,i=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,a=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,c=/["&<]/;function l(t){if(0===t.length||!1===c.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var s=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("<")},f={},p=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),d=/[A-Z]/g;function g(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:f[n]||(f[n]=n.replace(d,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||p.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function y(t,e){return Array.isArray(e)?e.reduce(y,t):null!=e&&!1!==e&&t.push(e),t}function v(){this.__d=!0}function b(t,e){return{__v:t,context:e,props:t.props,setState:v,forceUpdate:v,__d:!0,__h:new Array(0)}}function m(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var h=[],_=[];function x(e,n,r,o){var i=t.options.__s;t.options.__s=!0;try{return j(e,n||{},r,o)}finally{t.options.__c&&t.options.__c(e,_),t.options.__s=i,_.length=0}}function j(e,c,f,p,d,v){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":l(e+"");var h=f.pretty,_=h&&"string"==typeof h?h:"\t";if(Array.isArray(e)){for(var x="",k=0;k<e.length;k++)h&&k>0&&(x+="\n"),x+=j(e[k],c,f,p,d,v);return x}if(void 0!==e.constructor)return"";t.options.__b&&t.options.__b(e);var w,A=e.type,O=e.props,F=!1;if("function"==typeof A){if(F=!0,!f.shallow||!p&&!1!==f.renderRootComponent||A===t.Fragment){if(A===t.Fragment){var C=[];return y(C,e.props.children),j(C,c,f,!1!==f.shallowHighOrder,d,v)}var E,M=e.__c=b(e,c),$=t.options.__r;if(A.prototype&&"function"==typeof A.prototype.render){var H=m(A,c);(M=e.__c=new A(O,H)).__v=e,M._dirty=M.__d=!0,M.props=O,null==M.state&&(M.state={}),null==M._nextState&&null==M.__s&&(M._nextState=M.__s=M.state),M.context=H,A.getDerivedStateFromProps?M.state=Object.assign({},M.state,A.getDerivedStateFromProps(M.props,M.state)):M.componentWillMount&&(M.componentWillMount(),M.state=M._nextState!==M.state?M._nextState:M.__s!==M.state?M.__s:M.state),$&&$(e),E=M.render(M.props,M.state,M.context)}else for(var L=m(A,c),I=0;M.__d&&I++<25;)M.__d=!1,$&&$(e),E=A.call(e.__c,O,L);M.getChildContext&&(c=Object.assign({},c,M.getChildContext()));var N=j(E,c,f,!1!==f.shallowHighOrder,d,v);return t.options.diffed&&t.options.diffed(e),N}A=(w=A).displayName||w!==Function&&w.name||S(w)}var D,W,T="<"+A;if(O){var U=Object.keys(O);f&&!0===f.sortAttributes&&U.sort();for(var Z=0;Z<U.length;Z++){var P=U[Z],R=O[P];if("children"!==P){if(!r.test(P)&&(f&&f.allAttributes||"key"!==P&&"ref"!==P&&"__self"!==P&&"__source"!==P)){if("defaultValue"===P)P="value";else if("defaultChecked"===P)P="checked";else if("defaultSelected"===P)P="selected";else if("className"===P){if(void 0!==O.class)continue;P="class"}else"acceptCharset"===P?P="accept-charset":"httpEquiv"===P?P="http-equiv":o.test(P)?P=P.replace(o,"$1:$2").toLowerCase():d?a.test(P)&&(P="panose1"===P?"panose-1":P.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(P)&&(P=P.toLowerCase());if("htmlFor"===P){if(O.for)continue;P="for"}"style"===P&&R&&"object"==typeof R&&(R=g(R)),"a"===P[0]&&"r"===P[1]&&"boolean"==typeof R&&(R=String(R));var q=f.attributeHook&&f.attributeHook(P,R,c,f,F);if(q||""===q)T+=q;else if("dangerouslySetInnerHTML"===P)W=R&&R.__html;else if("textarea"===A&&"value"===P)D=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=P,f&&f.xml))){T=T+" "+P;continue}if("value"===P){if("select"===A){v=R;continue}"option"===A&&v==R&&void 0===O.selected&&(T+=" selected")}T=T+" "+P+'="'+l(R+"")+'"'}}}else D=R}}if(h){var z=T.replace(/\n\s*/," ");z===T||~z.indexOf("\n")?h&&~T.indexOf("\n")&&(T+="\n"):T=z}if(T+=">",r.test(A))throw new Error(A+" is not a valid HTML tag name in "+T);var J,V=n.test(A)||f.voidElements&&f.voidElements.test(A),B=[];if(W)h&&u(W)&&(W="\n"+_+s(W,_)),T+=W;else if(null!=D&&y(J=[],D).length){for(var G=h&&~T.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=j(X,c,f,!0,"svg"===A||"foreignObject"!==A&&d,v);if(h&&!G&&u(Y)&&(G=!0),Y)if(h){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(h&&G)for(var et=B.length;et--;)B[et]="\n"+_+s(B[et],_)}if(t.options.diffed&&t.options.diffed(e),B.length||W)T+=B.join("");else if(f&&f.xml)return T.substring(0,T.length-1)+" />";return!V||J||W?(h&&~T.indexOf("\n")&&(T+="\n"),T=T+"</"+A+">"):T=T.replace(/>$/," />"),T}function S(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=h.length;r--;)if(h[r]===t){n=r;break}n<0&&(n=h.push(t)-1),e="UnnamedComponent"+n}return e}var k=/(\\|\"|\')/g,w=function(t){return t.replace(k,"\\$1")},A=Object.prototype.toString,O=Date.prototype.toISOString,F=Error.prototype.toString,C=RegExp.prototype.toString,E=Symbol.prototype.toString,M=/^Symbol\((.*)\)(.*)$/,$=/\n/gi,H=Object.getOwnPropertySymbols||function(t){return[]};function L(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 I(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return E.call(t).replace(M,"Symbol($1)")}function W(t){return"["+F.call(t)+"]"}function T(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 I(t);if("string"===e)return'"'+w(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);var n=A.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?O.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?C.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":L(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function U(t,e,n,r,o,i,a,c,l,s){var u="";if(t.length){u+=o;for(var f=n+e,p=0;p<t.length;p++)u+=f+B(t[p],e,f,r,o,i,a,c,l,s),p<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function Z(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+U(t,e,n,r,o,i,a,c,l,s)}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){var u="Map {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+B(p.value[0],e,d,r,o,i,a,c,l,s)+" => "+B(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){var u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort(),p=H(t);if(p.length&&(f=f.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===A.call(t))}).concat(p)),f.length){u+=o;for(var d=n+e,g=0;g<f.length;g++){var y=f[g];u+=d+B(y,e,d,r,o,i,a,c,l,s)+": "+B(t[y],e,d,r,o,i,a,c,l,s),g<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,l,s){var u="Set {",f=t.entries(),p=f.next();if(!p.done){u+=o;for(var d=n+e;!p.done;)u+=d+B(p.value[1],e,d,r,o,i,a,c,l,s),(p=f.next()).done||(u+=","+r);u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return B(t.toJSON(),e,n,r,o,i,a,c,l,s);var f=A.call(t);return"[object Arguments]"===f?u?"[Arguments]":Z(t,e,n,r,o,i,a,c,l,s):L(f)?u?"[Array]":P(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":R(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":z(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":q(t,e,n,r,o,i,a,c,l,s):void 0}function V(t,e,n,r,o,i,a,c,l,s){for(var u,f=!1,p=0;p<l.length;p++)if((u=l[p]).test(t)){f=!0;break}return!!f&&u.print(t,function(t){return B(t,e,n,r,o,i,a,c,l,s)},function(t){var r=n+e;return r+t.replace($,"\n"+r)},{edgeSpacing:o,spacing:r})}function B(t,e,n,r,o,i,a,c,l,s){return T(t)||V(t,e,n,r,o,i,a,c,l,s)||J(t,e,n,r,o,i,a,c,l,s)}var G={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function K(t){if(Object.keys(t).forEach(function(t){if(!G.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")}function Q(t){var e={};return Object.keys(G).forEach(function(n){return e[n]=t.hasOwnProperty(n)?t[n]:G[n]}),e.min&&(e.indent=0),e}function X(t){return new Array(t+1).join(" ")}var Y=function(t,e){var n,r;e?(K(e),e=Q(e)):e=G;var o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){var a=V(t,n=X(e.indent),"",o,i,r=[],e.maxDepth,0,e.plugins,e.min);if(a)return a}return T(t)||(n||(n=X(e.indent)),r||(r=[]),J(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},tt={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return x(t,tt.context,tt.opts,!0)}},et={plugins:[tt]},nt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(tt.context=n,tt.opts=r,~(e=Y(e,et)).indexOf("\n")&&(e=s("\n"+e,a)+"\n")):e="Function",s("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function rt(t,e,n){var r=Object.assign({},nt,n||{});return r.jsx||(r.attributeHook=null),x(t,e,r)}var ot={shallow:!0};exports.default=rt,exports.render=rt,exports.shallowRender=function(t,e,n){return rt(t,e,Object.assign({},ot,n||{}))};
//# sourceMappingURL=index.js.map

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

import{options as t,Fragment as e}from"preact";if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,l=/["&<]/;function s(t){if(0===t.length||!1===l.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function m(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__d:!0,__h:new Array(0)}}function v(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var _=[],x=[];function j(e,n,r,o){var i=t.__s;t.__s=!0;try{return S(e,n||{},r,o)}finally{t.__c&&t.__c(e,x),t.__s=i,x.length=0}}function S(n,l,p,d,g,m){if(null==n||"boolean"==typeof n)return"";if("object"!=typeof n)return"function"==typeof n?"":s(n+"");var _=p.pretty,x=_&&"string"==typeof _?_:"\t";if(Array.isArray(n)){for(var j="",A=0;A<n.length;A++)_&&A>0&&(j+="\n"),j+=S(n[A],l,p,d,g,m);return j}if(void 0!==n.constructor)return"";t.__b&&t.__b(n);var w,O=n.type,C=n.props,F=!1;if("function"==typeof O){if(F=!0,!p.shallow||!d&&!1!==p.renderRootComponent||O===e){if(O===e){var E=[];return b(E,n.props.children),S(E,l,p,!1!==p.shallowHighOrder,g,m)}var M,$=n.__c=h(n,l),H=t.__r;if(O.prototype&&"function"==typeof O.prototype.render){var L=v(O,l);($=n.__c=new O(C,L)).__v=n,$._dirty=$.__d=!0,$.props=C,null==$.state&&($.state={}),null==$._nextState&&null==$.__s&&($._nextState=$.__s=$.state),$.context=L,O.getDerivedStateFromProps?$.state=Object.assign({},$.state,O.getDerivedStateFromProps($.props,$.state)):$.componentWillMount&&($.componentWillMount(),$.state=$._nextState!==$.state?$._nextState:$.__s!==$.state?$.__s:$.state),H&&H(n),M=$.render($.props,$.state,$.context)}else for(var I=v(O,l),N=0;$.__d&&N++<25;)$.__d=!1,H&&H(n),M=O.call(n.__c,C,I);$.getChildContext&&(l=Object.assign({},l,$.getChildContext()));var D=S(M,l,p,!1!==p.shallowHighOrder,g,m);return t.diffed&&t.diffed(n),D}O=(w=O).displayName||w!==Function&&w.name||k(w)}var W,T,U="<"+O;if(C){var Z=Object.keys(C);p&&!0===p.sortAttributes&&Z.sort();for(var P=0;P<Z.length;P++){var R=Z[P],z=C[R];if("children"!==R){if(!o.test(R)&&(p&&p.allAttributes||"key"!==R&&"ref"!==R&&"__self"!==R&&"__source"!==R)){if("defaultValue"===R)R="value";else if("defaultChecked"===R)R="checked";else if("defaultSelected"===R)R="selected";else if("className"===R){if(void 0!==C.class)continue;R="class"}else"acceptCharset"===R?R="accept-charset":"httpEquiv"===R?R="http-equiv":i.test(R)?R=R.replace(i,"$1:$2").toLowerCase():g?c.test(R)&&(R="panose1"===R?"panose-1":R.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(R)&&(R=R.toLowerCase());if("htmlFor"===R){if(C.for)continue;R="for"}"style"===R&&z&&"object"==typeof z&&(z=y(z)),"a"===R[0]&&"r"===R[1]&&"boolean"==typeof z&&(z=String(z));var q=p.attributeHook&&p.attributeHook(R,z,l,p,F);if(q||""===q)U+=q;else if("dangerouslySetInnerHTML"===R)T=z&&z.__html;else if("textarea"===O&&"value"===R)W=z;else if((z||0===z||""===z)&&"function"!=typeof z){if(!(!0!==z&&""!==z||(z=R,p&&p.xml))){U=U+" "+R;continue}if("value"===R){if("select"===O){m=z;continue}"option"===O&&m==z&&void 0===C.selected&&(U+=" selected")}U=U+" "+R+'="'+s(z+"")+'"'}}}else W=z}}if(_){var J=U.replace(/\n\s*/," ");J===U||~J.indexOf("\n")?_&&~U.indexOf("\n")&&(U+="\n"):U=J}if(U+=">",o.test(O))throw new Error(O+" is not a valid HTML tag name in "+U);var V,B=r.test(O)||p.voidElements&&p.voidElements.test(O),G=[];if(T)_&&f(T)&&(T="\n"+x+u(T,x)),U+=T;else if(null!=W&&b(V=[],W).length){for(var K=_&&~U.indexOf("\n"),Q=!1,X=0;X<V.length;X++){var Y=V[X];if(null!=Y&&!1!==Y){var tt=S(Y,l,p,!0,"svg"===O||"foreignObject"!==O&&g,m);if(_&&!K&&f(tt)&&(K=!0),tt)if(_){var et=tt.length>0&&"<"!=tt[0];Q&&et?G[G.length-1]+=tt:G.push(tt),Q=et}else G.push(tt)}}if(_&&K)for(var nt=G.length;nt--;)G[nt]="\n"+x+u(G[nt],x)}if(t.diffed&&t.diffed(n),G.length||T)U+=G.join("");else if(p&&p.xml)return U.substring(0,U.length-1)+" />";return!B||V||T?(_&&~U.indexOf("\n")&&(U+="\n"),U=U+"</"+O+">"):U=U.replace(/>$/," />"),U}function k(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=_.length;r--;)if(_[r]===t){n=r;break}n<0&&(n=_.push(t)-1),e="UnnamedComponent"+n}return e}const A=/(\\|\"|\')/g;var w=function(t){return t.replace(A,"\\$1")};const O=Object.prototype.toString,C=Date.prototype.toISOString,F=Error.prototype.toString,E=RegExp.prototype.toString,M=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function I(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!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function W(t){return M.call(t).replace($,"Symbol($1)")}function T(t){return"["+F.call(t)+"]"}function U(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 N(t);if("string"===e)return'"'+w(t)+'"';if("function"===e)return D(t);if("symbol"===e)return W(t);const n=O.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?W(t):"[object Date]"===n?C.call(t):"[object Error]"===n?T(t):"[object RegExp]"===n?E.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":I(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&T(t)}function Z(t,e,n,r,o,i,a,c,l,s){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+G(t[n],e,f,r,o,i,a,c,l,s),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+Z(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+Z(t,e,n,r,o,i,a,c,l,s)}function z(t,e,n,r,o,i,a,c,l,s){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[0],e,t,r,o,i,a,c,l,s)+" => "+G(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){let u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===O.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+G(d,e,p,r,o,i,a,c,l,s)+": "+G(t[d],e,p,r,o,i,a,c,l,s),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,l,s){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function V(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return G(t.toJSON(),e,n,r,o,i,a,c,l,s);const f=O.call(t);return"[object Arguments]"===f?u?"[Arguments]":P(t,e,n,r,o,i,a,c,l,s):I(f)?u?"[Array]":R(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":z(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":J(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":q(t,e,n,r,o,i,a,c,l,s):void 0}function B(t,e,n,r,o,i,a,c,l,s){let u,f=!1;for(let e=0;e<l.length;e++)if(u=l[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return G(t,e,n,r,o,i,a,c,l,s)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function G(t,e,n,r,o,i,a,c,l,s){return U(t)||B(t,e,n,r,o,i,a,c,l,s)||V(t,e,n,r,o,i,a,c,l,s)}const K={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function Q(t){if(Object.keys(t).forEach(t=>{if(!K.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")}function X(t){const e={};return Object.keys(K).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:K[n]),e.min&&(e.indent=0),e}function Y(t){return new Array(t+1).join(" ")}var tt=function(t,e){let n,r;e?(Q(e),e=X(e)):e=K;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=Y(e.indent),r=[];var a=B(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return U(t)||(n||(n=Y(e.indent)),r||(r=[]),V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},et={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return j(t,et.context,et.opts,!0)}},nt={plugins:[et]},rt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(et.context=n,et.opts=r,~(e=tt(e,nt)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+s(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function ot(t,e,n){var r=Object.assign({},rt,n||{});return r.jsx||(r.attributeHook=null),j(t,e,r)}var it={shallow:!0};function at(t,e,n){return ot(t,e,Object.assign({},it,n||{}))}export default ot;export{ot as render,at as shallowRender};
import{options as t,Fragment as e}from"preact";if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,l=/["&<]/;function s(t){if(0===t.length||!1===l.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function m(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__d:!0,__h:new Array(0)}}function v(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var _=[],x=[];function j(e,n,r,o){var i=t.__s;t.__s=!0;try{return S(e,n||{},r,o)}finally{t.__c&&t.__c(e,x),t.__s=i,x.length=0}}function S(n,l,p,d,g,m){if(null==n||"boolean"==typeof n)return"";if("object"!=typeof n)return"function"==typeof n?"":s(n+"");var _=p.pretty,x=_&&"string"==typeof _?_:"\t";if(Array.isArray(n)){for(var j="",A=0;A<n.length;A++)_&&A>0&&(j+="\n"),j+=S(n[A],l,p,d,g,m);return j}if(void 0!==n.constructor)return"";t.__b&&t.__b(n);var w,O=n.type,C=n.props,F=!1;if("function"==typeof O){if(F=!0,!p.shallow||!d&&!1!==p.renderRootComponent||O===e){if(O===e){var E=[];return b(E,n.props.children),S(E,l,p,!1!==p.shallowHighOrder,g,m)}var M,$=n.__c=h(n,l),H=t.__r;if(O.prototype&&"function"==typeof O.prototype.render){var L=v(O,l);($=n.__c=new O(C,L)).__v=n,$._dirty=$.__d=!0,$.props=C,null==$.state&&($.state={}),null==$._nextState&&null==$.__s&&($._nextState=$.__s=$.state),$.context=L,O.getDerivedStateFromProps?$.state=Object.assign({},$.state,O.getDerivedStateFromProps($.props,$.state)):$.componentWillMount&&($.componentWillMount(),$.state=$._nextState!==$.state?$._nextState:$.__s!==$.state?$.__s:$.state),H&&H(n),M=$.render($.props,$.state,$.context)}else for(var I=v(O,l),N=0;$.__d&&N++<25;)$.__d=!1,H&&H(n),M=O.call(n.__c,C,I);$.getChildContext&&(l=Object.assign({},l,$.getChildContext()));var D=S(M,l,p,!1!==p.shallowHighOrder,g,m);return t.diffed&&t.diffed(n),D}O=(w=O).displayName||w!==Function&&w.name||k(w)}var W,T,U="<"+O;if(C){var Z=Object.keys(C);p&&!0===p.sortAttributes&&Z.sort();for(var P=0;P<Z.length;P++){var R=Z[P],z=C[R];if("children"!==R){if(!o.test(R)&&(p&&p.allAttributes||"key"!==R&&"ref"!==R&&"__self"!==R&&"__source"!==R)){if("defaultValue"===R)R="value";else if("defaultChecked"===R)R="checked";else if("defaultSelected"===R)R="selected";else if("className"===R){if(void 0!==C.class)continue;R="class"}else"acceptCharset"===R?R="accept-charset":"httpEquiv"===R?R="http-equiv":i.test(R)?R=R.replace(i,"$1:$2").toLowerCase():g?c.test(R)&&(R="panose1"===R?"panose-1":R.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(R)&&(R=R.toLowerCase());if("htmlFor"===R){if(C.for)continue;R="for"}"style"===R&&z&&"object"==typeof z&&(z=y(z)),"a"===R[0]&&"r"===R[1]&&"boolean"==typeof z&&(z=String(z));var q=p.attributeHook&&p.attributeHook(R,z,l,p,F);if(q||""===q)U+=q;else if("dangerouslySetInnerHTML"===R)T=z&&z.__html;else if("textarea"===O&&"value"===R)W=z;else if((z||0===z||""===z)&&"function"!=typeof z){if(!(!0!==z&&""!==z||(z=R,p&&p.xml))){U=U+" "+R;continue}if("value"===R){if("select"===O){m=z;continue}"option"===O&&m==z&&void 0===C.selected&&(U+=" selected")}U=U+" "+R+'="'+s(z+"")+'"'}}}else W=z}}if(_){var J=U.replace(/\n\s*/," ");J===U||~J.indexOf("\n")?_&&~U.indexOf("\n")&&(U+="\n"):U=J}if(U+=">",o.test(O))throw new Error(O+" is not a valid HTML tag name in "+U);var V,B=r.test(O)||p.voidElements&&p.voidElements.test(O),G=[];if(T)_&&f(T)&&(T="\n"+x+u(T,x)),U+=T;else if(null!=W&&b(V=[],W).length){for(var K=_&&~U.indexOf("\n"),Q=!1,X=0;X<V.length;X++){var Y=V[X];if(null!=Y&&!1!==Y){var tt=S(Y,l,p,!0,"svg"===O||"foreignObject"!==O&&g,m);if(_&&!K&&f(tt)&&(K=!0),tt)if(_){var et=tt.length>0&&"<"!=tt[0];Q&&et?G[G.length-1]+=tt:G.push(tt),Q=et}else G.push(tt)}}if(_&&K)for(var nt=G.length;nt--;)G[nt]="\n"+x+u(G[nt],x)}if(t.diffed&&t.diffed(n),G.length||T)U+=G.join("");else if(p&&p.xml)return U.substring(0,U.length-1)+" />";return!B||V||T?(_&&~U.indexOf("\n")&&(U+="\n"),U=U+"</"+O+">"):U=U.replace(/>$/," />"),U}function k(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=_.length;r--;)if(_[r]===t){n=r;break}n<0&&(n=_.push(t)-1),e="UnnamedComponent"+n}return e}const A=/(\\|\"|\')/g;var w=function(t){return t.replace(A,"\\$1")};const O=Object.prototype.toString,C=Date.prototype.toISOString,F=Error.prototype.toString,E=RegExp.prototype.toString,M=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function I(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!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function W(t){return M.call(t).replace($,"Symbol($1)")}function T(t){return"["+F.call(t)+"]"}function U(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 N(t);if("string"===e)return'"'+w(t)+'"';if("function"===e)return D(t);if("symbol"===e)return W(t);const n=O.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?W(t):"[object Date]"===n?C.call(t):"[object Error]"===n?T(t):"[object RegExp]"===n?E.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":I(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&T(t)}function Z(t,e,n,r,o,i,a,c,l,s){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+G(t[n],e,f,r,o,i,a,c,l,s),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function P(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+Z(t,e,n,r,o,i,a,c,l,s)}function R(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+Z(t,e,n,r,o,i,a,c,l,s)}function z(t,e,n,r,o,i,a,c,l,s){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[0],e,t,r,o,i,a,c,l,s)+" => "+G(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function q(t,e,n,r,o,i,a,c,l,s){let u=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===O.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+G(d,e,p,r,o,i,a,c,l,s)+": "+G(t[d],e,p,r,o,i,a,c,l,s),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,l,s){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[1],e,t,r,o,i,a,c,l,s),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function V(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return G(t.toJSON(),e,n,r,o,i,a,c,l,s);const f=O.call(t);return"[object Arguments]"===f?u?"[Arguments]":P(t,e,n,r,o,i,a,c,l,s):I(f)?u?"[Array]":R(t,e,n,r,o,i,a,c,l,s):"[object Map]"===f?u?"[Map]":z(t,e,n,r,o,i,a,c,l,s):"[object Set]"===f?u?"[Set]":J(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?u?"[Object]":q(t,e,n,r,o,i,a,c,l,s):void 0}function B(t,e,n,r,o,i,a,c,l,s){let u,f=!1;for(let e=0;e<l.length;e++)if(u=l[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return G(t,e,n,r,o,i,a,c,l,s)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function G(t,e,n,r,o,i,a,c,l,s){return U(t)||B(t,e,n,r,o,i,a,c,l,s)||V(t,e,n,r,o,i,a,c,l,s)}const K={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function Q(t){if(Object.keys(t).forEach(t=>{if(!K.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")}function X(t){const e={};return Object.keys(K).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:K[n]),e.min&&(e.indent=0),e}function Y(t){return new Array(t+1).join(" ")}var tt=function(t,e){let n,r;e?(Q(e),e=X(e)):e=K;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=Y(e.indent),r=[];var a=B(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return U(t)||(n||(n=Y(e.indent)),r||(r=[]),V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},et={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return j(t,et.context,et.opts,!0)}},nt={plugins:[et]},rt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(et.context=n,et.opts=r,~(e=tt(e,nt)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+s(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function ot(t,e,n){var r=Object.assign({},rt,n||{});return r.jsx||(r.attributeHook=null),j(t,e,r)}var it={shallow:!0};function at(t,e,n){return ot(t,e,Object.assign({},it,n||{}))}export default ot;export{ot as render,at as shallowRender};
//# sourceMappingURL=index.module.js.map

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],e):e((t||self).preactRenderToString={},t.preact)}(this,function(t,e){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,s=/["&<]/;function l(t){if(0===t.length||!1===s.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function m(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__d:!0,__h:new Array(0)}}function v(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var _=[],x=[];function j(t,n,r,o){var i=e.options.__s;e.options.__s=!0;try{return S(t,n||{},r,o)}finally{e.options.__c&&e.options.__c(t,x),e.options.__s=i,x.length=0}}function S(t,n,s,p,d,g){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return"function"==typeof t?"":l(t+"");var m=s.pretty,_=m&&"string"==typeof m?m:"\t";if(Array.isArray(t)){for(var x="",j=0;j<t.length;j++)m&&j>0&&(x+="\n"),x+=S(t[j],n,s,p,d,g);return x}if(void 0!==t.constructor)return"";e.options.__b&&e.options.__b(t);var w,A=t.type,O=t.props,F=!1;if("function"==typeof A){if(F=!0,!s.shallow||!p&&!1!==s.renderRootComponent||A===e.Fragment){if(A===e.Fragment){var C=[];return b(C,t.props.children),S(C,n,s,!1!==s.shallowHighOrder,d,g)}var E,M=t.__c=h(t,n),$=e.options.__r;if(A.prototype&&"function"==typeof A.prototype.render){var H=v(A,n);(M=t.__c=new A(O,H)).__v=t,M._dirty=M.__d=!0,M.props=O,null==M.state&&(M.state={}),null==M._nextState&&null==M.__s&&(M._nextState=M.__s=M.state),M.context=H,A.getDerivedStateFromProps?M.state=Object.assign({},M.state,A.getDerivedStateFromProps(M.props,M.state)):M.componentWillMount&&(M.componentWillMount(),M.state=M._nextState!==M.state?M._nextState:M.__s!==M.state?M.__s:M.state),$&&$(t),E=M.render(M.props,M.state,M.context)}else for(var L=v(A,n),I=0;M.__d&&I++<25;)M.__d=!1,$&&$(t),E=A.call(t.__c,O,L);M.getChildContext&&(n=Object.assign({},n,M.getChildContext()));var T=S(E,n,s,!1!==s.shallowHighOrder,d,g);return e.options.diffed&&e.options.diffed(t),T}A=(w=A).displayName||w!==Function&&w.name||k(w)}var N,D,W="<"+A;if(O){var R=Object.keys(O);s&&!0===s.sortAttributes&&R.sort();for(var U=0;U<R.length;U++){var Z=R[U],P=O[Z];if("children"!==Z){if(!o.test(Z)&&(s&&s.allAttributes||"key"!==Z&&"ref"!==Z&&"__self"!==Z&&"__source"!==Z)){if("defaultValue"===Z)Z="value";else if("defaultChecked"===Z)Z="checked";else if("defaultSelected"===Z)Z="selected";else if("className"===Z){if(void 0!==O.class)continue;Z="class"}else"acceptCharset"===Z?Z="accept-charset":"httpEquiv"===Z?Z="http-equiv":i.test(Z)?Z=Z.replace(i,"$1:$2").toLowerCase():d?c.test(Z)&&(Z="panose1"===Z?"panose-1":Z.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(Z)&&(Z=Z.toLowerCase());if("htmlFor"===Z){if(O.for)continue;Z="for"}"style"===Z&&P&&"object"==typeof P&&(P=y(P)),"a"===Z[0]&&"r"===Z[1]&&"boolean"==typeof P&&(P=String(P));var q=s.attributeHook&&s.attributeHook(Z,P,n,s,F);if(q||""===q)W+=q;else if("dangerouslySetInnerHTML"===Z)D=P&&P.__html;else if("textarea"===A&&"value"===Z)N=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=Z,s&&s.xml))){W=W+" "+Z;continue}if("value"===Z){if("select"===A){g=P;continue}"option"===A&&g==P&&void 0===O.selected&&(W+=" selected")}W=W+" "+Z+'="'+l(P+"")+'"'}}}else N=P}}if(m){var z=W.replace(/\n\s*/," ");z===W||~z.indexOf("\n")?m&&~W.indexOf("\n")&&(W+="\n"):W=z}if(W+=">",o.test(A))throw new Error(A+" is not a valid HTML tag name in "+W);var J,V=r.test(A)||s.voidElements&&s.voidElements.test(A),B=[];if(D)m&&f(D)&&(D="\n"+_+u(D,_)),W+=D;else if(null!=N&&b(J=[],N).length){for(var G=m&&~W.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=S(X,n,s,!0,"svg"===A||"foreignObject"!==A&&d,g);if(m&&!G&&f(Y)&&(G=!0),Y)if(m){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(m&&G)for(var et=B.length;et--;)B[et]="\n"+_+u(B[et],_)}if(e.options.diffed&&e.options.diffed(t),B.length||D)W+=B.join("");else if(s&&s.xml)return W.substring(0,W.length-1)+" />";return!V||J||D?(m&&~W.indexOf("\n")&&(W+="\n"),W=W+"</"+A+">"):W=W.replace(/>$/," />"),W}function k(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=_.length;r--;)if(_[r]===t){n=r;break}n<0&&(n=_.push(t)-1),e="UnnamedComponent"+n}return e}const w=/(\\|\"|\')/g;var A=function(t){return t.replace(w,"\\$1")};const O=Object.prototype.toString,F=Date.prototype.toISOString,C=Error.prototype.toString,E=RegExp.prototype.toString,M=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function I(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 T(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return M.call(t).replace($,"Symbol($1)")}function W(t){return"["+C.call(t)+"]"}function R(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 T(t);if("string"===e)return'"'+A(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);const n=O.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?F.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?E.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":I(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function U(t,e,n,r,o,i,a,c,s,l){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+G(t[n],e,f,r,o,i,a,c,s,l),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function Z(t,e,n,r,o,i,a,c,s,l){return(l?"":"Arguments ")+U(t,e,n,r,o,i,a,c,s,l)}function P(t,e,n,r,o,i,a,c,s,l){return(l?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,s,l)}function q(t,e,n,r,o,i,a,c,s,l){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[0],e,t,r,o,i,a,c,s,l)+" => "+G(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,s,l){let u=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===O.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+G(d,e,p,r,o,i,a,c,s,l)+": "+G(t[d],e,p,r,o,i,a,c,s,l),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,s,l){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function V(t,e,n,r,o,i,a,c,s,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return G(t.toJSON(),e,n,r,o,i,a,c,s,l);const f=O.call(t);return"[object Arguments]"===f?u?"[Arguments]":Z(t,e,n,r,o,i,a,c,s,l):I(f)?u?"[Array]":P(t,e,n,r,o,i,a,c,s,l):"[object Map]"===f?u?"[Map]":q(t,e,n,r,o,i,a,c,s,l):"[object Set]"===f?u?"[Set]":J(t,e,n,r,o,i,a,c,s,l):"object"==typeof t?u?"[Object]":z(t,e,n,r,o,i,a,c,s,l):void 0}function B(t,e,n,r,o,i,a,c,s,l){let u,f=!1;for(let e=0;e<s.length;e++)if(u=s[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return G(t,e,n,r,o,i,a,c,s,l)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function G(t,e,n,r,o,i,a,c,s,l){return R(t)||B(t,e,n,r,o,i,a,c,s,l)||V(t,e,n,r,o,i,a,c,s,l)}const K={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function Q(t){if(Object.keys(t).forEach(t=>{if(!K.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")}function X(t){const e={};return Object.keys(K).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:K[n]),e.min&&(e.indent=0),e}function Y(t){return new Array(t+1).join(" ")}var tt=function(t,e){let n,r;e?(Q(e),e=X(e)):e=K;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=Y(e.indent),r=[];var a=B(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return R(t)||(n||(n=Y(e.indent)),r||(r=[]),V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},et={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return j(t,et.context,et.opts,!0)}},nt={plugins:[et]},rt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(et.context=n,et.opts=r,~(e=tt(e,nt)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function ot(t,e,n){var r=Object.assign({},rt,n||{});return r.jsx||(r.attributeHook=null),j(t,e,r)}var it={shallow:!0};t.default=ot,t.render=ot,t.shallowRender=function(t,e,n){return ot(t,e,Object.assign({},it,n||{}))}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],e):e((t||self).preactRenderToString={},t.preact)}(this,function(t,e){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^(xlink|xmlns|xml)([A-Z])/,a=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,c=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,s=/["&<]/;function l(t){if(0===t.length||!1===s.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},f=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},p={},d=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),g=/[A-Z]/g;function y(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:p[n]||(p[n]=n.replace(g,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||d.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function b(t,e){return Array.isArray(e)?e.reduce(b,t):null!=e&&!1!==e&&t.push(e),t}function m(){this.__d=!0}function h(t,e){return{__v:t,context:e,props:t.props,setState:m,forceUpdate:m,__d:!0,__h:new Array(0)}}function v(t,e){var n=t.contextType,r=n&&e[n.__c];return null!=n?r?r.props.value:n.__:e}var _=[],x=[];function j(t,n,r,o){var i=e.options.__s;e.options.__s=!0;try{return S(t,n||{},r,o)}finally{e.options.__c&&e.options.__c(t,x),e.options.__s=i,x.length=0}}function S(t,n,s,p,d,g){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return"function"==typeof t?"":l(t+"");var m=s.pretty,_=m&&"string"==typeof m?m:"\t";if(Array.isArray(t)){for(var x="",j=0;j<t.length;j++)m&&j>0&&(x+="\n"),x+=S(t[j],n,s,p,d,g);return x}if(void 0!==t.constructor)return"";e.options.__b&&e.options.__b(t);var w,A=t.type,O=t.props,F=!1;if("function"==typeof A){if(F=!0,!s.shallow||!p&&!1!==s.renderRootComponent||A===e.Fragment){if(A===e.Fragment){var C=[];return b(C,t.props.children),S(C,n,s,!1!==s.shallowHighOrder,d,g)}var E,M=t.__c=h(t,n),$=e.options.__r;if(A.prototype&&"function"==typeof A.prototype.render){var H=v(A,n);(M=t.__c=new A(O,H)).__v=t,M._dirty=M.__d=!0,M.props=O,null==M.state&&(M.state={}),null==M._nextState&&null==M.__s&&(M._nextState=M.__s=M.state),M.context=H,A.getDerivedStateFromProps?M.state=Object.assign({},M.state,A.getDerivedStateFromProps(M.props,M.state)):M.componentWillMount&&(M.componentWillMount(),M.state=M._nextState!==M.state?M._nextState:M.__s!==M.state?M.__s:M.state),$&&$(t),E=M.render(M.props,M.state,M.context)}else for(var L=v(A,n),I=0;M.__d&&I++<25;)M.__d=!1,$&&$(t),E=A.call(t.__c,O,L);M.getChildContext&&(n=Object.assign({},n,M.getChildContext()));var T=S(E,n,s,!1!==s.shallowHighOrder,d,g);return e.options.diffed&&e.options.diffed(t),T}A=(w=A).displayName||w!==Function&&w.name||k(w)}var N,D,W="<"+A;if(O){var R=Object.keys(O);s&&!0===s.sortAttributes&&R.sort();for(var U=0;U<R.length;U++){var Z=R[U],P=O[Z];if("children"!==Z){if(!o.test(Z)&&(s&&s.allAttributes||"key"!==Z&&"ref"!==Z&&"__self"!==Z&&"__source"!==Z)){if("defaultValue"===Z)Z="value";else if("defaultChecked"===Z)Z="checked";else if("defaultSelected"===Z)Z="selected";else if("className"===Z){if(void 0!==O.class)continue;Z="class"}else"acceptCharset"===Z?Z="accept-charset":"httpEquiv"===Z?Z="http-equiv":i.test(Z)?Z=Z.replace(i,"$1:$2").toLowerCase():d?c.test(Z)&&(Z="panose1"===Z?"panose-1":Z.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(Z)&&(Z=Z.toLowerCase());if("htmlFor"===Z){if(O.for)continue;Z="for"}"style"===Z&&P&&"object"==typeof P&&(P=y(P)),"a"===Z[0]&&"r"===Z[1]&&"boolean"==typeof P&&(P=String(P));var q=s.attributeHook&&s.attributeHook(Z,P,n,s,F);if(q||""===q)W+=q;else if("dangerouslySetInnerHTML"===Z)D=P&&P.__html;else if("textarea"===A&&"value"===Z)N=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=Z,s&&s.xml))){W=W+" "+Z;continue}if("value"===Z){if("select"===A){g=P;continue}"option"===A&&g==P&&void 0===O.selected&&(W+=" selected")}W=W+" "+Z+'="'+l(P+"")+'"'}}}else N=P}}if(m){var z=W.replace(/\n\s*/," ");z===W||~z.indexOf("\n")?m&&~W.indexOf("\n")&&(W+="\n"):W=z}if(W+=">",o.test(A))throw new Error(A+" is not a valid HTML tag name in "+W);var J,V=r.test(A)||s.voidElements&&s.voidElements.test(A),B=[];if(D)m&&f(D)&&(D="\n"+_+u(D,_)),W+=D;else if(null!=N&&b(J=[],N).length){for(var G=m&&~W.indexOf("\n"),K=!1,Q=0;Q<J.length;Q++){var X=J[Q];if(null!=X&&!1!==X){var Y=S(X,n,s,!0,"svg"===A||"foreignObject"!==A&&d,g);if(m&&!G&&f(Y)&&(G=!0),Y)if(m){var tt=Y.length>0&&"<"!=Y[0];K&&tt?B[B.length-1]+=Y:B.push(Y),K=tt}else B.push(Y)}}if(m&&G)for(var et=B.length;et--;)B[et]="\n"+_+u(B[et],_)}if(e.options.diffed&&e.options.diffed(t),B.length||D)W+=B.join("");else if(s&&s.xml)return W.substring(0,W.length-1)+" />";return!V||J||D?(m&&~W.indexOf("\n")&&(W+="\n"),W=W+"</"+A+">"):W=W.replace(/>$/," />"),W}function k(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=_.length;r--;)if(_[r]===t){n=r;break}n<0&&(n=_.push(t)-1),e="UnnamedComponent"+n}return e}const w=/(\\|\"|\')/g;var A=function(t){return t.replace(w,"\\$1")};const O=Object.prototype.toString,F=Date.prototype.toISOString,C=Error.prototype.toString,E=RegExp.prototype.toString,M=Symbol.prototype.toString,$=/^Symbol\((.*)\)(.*)$/,H=/\n/gi,L=Object.getOwnPropertySymbols||(t=>[]);function I(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 T(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return M.call(t).replace($,"Symbol($1)")}function W(t){return"["+C.call(t)+"]"}function R(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 T(t);if("string"===e)return'"'+A(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);const n=O.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?F.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?E.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":I(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function U(t,e,n,r,o,i,a,c,s,l){let u="";if(t.length){u+=o;const f=n+e;for(let n=0;n<t.length;n++)u+=f+G(t[n],e,f,r,o,i,a,c,s,l),n<t.length-1&&(u+=","+r);u+=o+n}return"["+u+"]"}function Z(t,e,n,r,o,i,a,c,s,l){return(l?"":"Arguments ")+U(t,e,n,r,o,i,a,c,s,l)}function P(t,e,n,r,o,i,a,c,s,l){return(l?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,s,l)}function q(t,e,n,r,o,i,a,c,s,l){let u="Map {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[0],e,t,r,o,i,a,c,s,l)+" => "+G(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function z(t,e,n,r,o,i,a,c,s,l){let u=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=L(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===O.call(t))).concat(p)),f.length){u+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];u+=p+G(d,e,p,r,o,i,a,c,s,l)+": "+G(t[d],e,p,r,o,i,a,c,s,l),n<f.length-1&&(u+=","+r)}u+=o+n}return u+"}"}function J(t,e,n,r,o,i,a,c,s,l){let u="Set {";const f=t.entries();let p=f.next();if(!p.done){u+=o;const t=n+e;for(;!p.done;)u+=t+G(p.value[1],e,t,r,o,i,a,c,s,l),p=f.next(),p.done||(u+=","+r);u+=o+n}return u+"}"}function V(t,e,n,r,o,i,a,c,s,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const u=++c>a;if(!u&&t.toJSON&&"function"==typeof t.toJSON)return G(t.toJSON(),e,n,r,o,i,a,c,s,l);const f=O.call(t);return"[object Arguments]"===f?u?"[Arguments]":Z(t,e,n,r,o,i,a,c,s,l):I(f)?u?"[Array]":P(t,e,n,r,o,i,a,c,s,l):"[object Map]"===f?u?"[Map]":q(t,e,n,r,o,i,a,c,s,l):"[object Set]"===f?u?"[Set]":J(t,e,n,r,o,i,a,c,s,l):"object"==typeof t?u?"[Object]":z(t,e,n,r,o,i,a,c,s,l):void 0}function B(t,e,n,r,o,i,a,c,s,l){let u,f=!1;for(let e=0;e<s.length;e++)if(u=s[e],u.test(t)){f=!0;break}return!!f&&u.print(t,function(t){return G(t,e,n,r,o,i,a,c,s,l)},function(t){const r=n+e;return r+t.replace(H,"\n"+r)},{edgeSpacing:o,spacing:r})}function G(t,e,n,r,o,i,a,c,s,l){return R(t)||B(t,e,n,r,o,i,a,c,s,l)||V(t,e,n,r,o,i,a,c,s,l)}const K={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function Q(t){if(Object.keys(t).forEach(t=>{if(!K.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")}function X(t){const e={};return Object.keys(K).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:K[n]),e.min&&(e.indent=0),e}function Y(t){return new Array(t+1).join(" ")}var tt=function(t,e){let n,r;e?(Q(e),e=X(e)):e=K;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=Y(e.indent),r=[];var a=B(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return R(t)||(n||(n=Y(e.indent)),r||(r=[]),V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},et={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return j(t,et.context,et.opts,!0)}},nt={plugins:[et]},rt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(et.context=n,et.opts=r,~(e=tt(e,nt)).indexOf("\n")&&(e=u("\n"+e,a)+"\n")):e="Function",u("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+l(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function ot(t,e,n){var r=Object.assign({},rt,n||{});return r.jsx||(r.attributeHook=null),j(t,e,r)}var it={shallow:!0};t.default=ot,t.render=ot,t.shallowRender=function(t,e,n){return ot(t,e,Object.assign({},it,n||{}))}});
//# sourceMappingURL=index.umd.js.map

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

var e=require("preact"),t=/[\s\n\\/='"\0<>]/,r=/^(xlink|xmlns|xml)([A-Z])/,n=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,o=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,i=new Set(["draggable","spellcheck"]),a=/["&<]/;function s(e){if(0===e.length||!1===a.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var c={},l=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),u=/[A-Z]/g;function p(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:c[r]||(c[r]=r.replace(u,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function f(){this.__d=!0}function d(e,t){return{__v:e,context:t,props:e.props,setState:f,forceUpdate:f,__d:!0,__h:new Array(0)}}var h,v,_,m,g=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},b={},y=[],x=Array.isArray,k=Object.assign;function w(t,r,n){var o=e.options.__s;e.options.__s=!0,h=e.options.__b,v=e.options.diffed,_=e.options.__r,m=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{var a=S(t,r||b,!1,void 0,i,!1,n);return x(a)?a.join(""):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options.__c&&e.options.__c(t,y),e.options.__s=o,y.length=0}}function C(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=b),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=k({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),_&&_(e),r.render(r.props,r.state,t)}function S(a,c,l,u,f,g,y){if(null==a||!0===a||!1===a||""===a)return"";var w=typeof a;if("object"!=w)return"function"==w?"":"string"==w?s(a):a+"";if(x(a)){var A,L="";f.__k=a;for(var P=0;P<a.length;P++){var F=a[P];if(null!=F&&"boolean"!=typeof F){var T,j=S(F,c,l,u,f,g,y);"string"==typeof j?L+=j:(A||(A=[]),L&&A.push(L),L="",x(j)?(T=A).push.apply(T,j):A.push(j))}}return A?(L&&A.push(L),A):L}if(void 0!==a.constructor)return"";a.__=f,h&&h(a);var W=a.type,D=a.props;if("function"==typeof W){var N,M,U,Z=c;if(W===e.Fragment){if("tpl"in D){for(var q="",$=0;$<D.tpl.length;$++)if(q+=D.tpl[$],D.exprs&&$<D.exprs.length){var H=D.exprs[$];if(null==H)continue;"object"!=typeof H||void 0!==H.constructor&&!x(H)?q+=H:q+=S(H,c,l,u,a,g,y)}return q}if("UNSTABLE_comment"in D)return"\x3c!--"+s(D.UNSTABLE_comment)+"--\x3e";M=D.children}else{if(null!=(N=W.contextType)){var R=c[N.__c];Z=R?R.props.value:N.__}var z=W.prototype&&"function"==typeof W.prototype.render;if(z)M=C(a,Z),U=a.__c;else{a.__c=U=d(a,Z);for(var I=0;U.__d&&I++<25;)U.__d=!1,_&&_(a),M=W.call(U,D,Z);U.__d=!0}if(null!=U.getChildContext&&(c=k({},c,U.getChildContext())),z&&e.options.errorBoundaries&&(W.getDerivedStateFromError||U.componentDidCatch)){M=null!=M&&M.type===e.Fragment&&null==M.key&&null==M.props.tpl?M.props.children:M;try{return S(M,c,l,u,a,g,y)}catch(t){return W.getDerivedStateFromError&&(U.__s=W.getDerivedStateFromError(t)),U.componentDidCatch&&U.componentDidCatch(t,b),U.__d?(M=C(a,c),null!=(U=a.__c).getChildContext&&(c=k({},c,U.getChildContext())),S(M=null!=M&&M.type===e.Fragment&&null==M.key&&null==M.props.tpl?M.props.children:M,c,l,u,a,g,y)):""}finally{v&&v(a),a.__=null,m&&m(a)}}}M=null!=M&&M.type===e.Fragment&&null==M.key&&null==M.props.tpl?M.props.children:M;try{var B=S(M,c,l,u,a,g,y);return v&&v(a),a.__=null,e.options.unmount&&e.options.unmount(a),B}catch(t){if(!g&&y&&y.onError){var O=y.onError(t,a,function(e){return S(e,c,l,u,a,g,y)});if(void 0!==O)return O;var V=e.options.__e;return V&&V(t,a),""}if(!g)throw t;if(!t||"function"!=typeof t.then)throw t;return t.then(function e(){try{return S(M,c,l,u,a,g,y)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return S(M,c,l,u,a,g,y)},e)}})}}var K,G="<"+W,J="";for(var Q in D){var X=D[Q];if("function"!=typeof X||"class"===Q||"className"===Q){switch(Q){case"children":K=X;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in D)continue;Q="for";break;case"className":if("class"in D)continue;Q="class";break;case"defaultChecked":Q="checked";break;case"defaultSelected":Q="selected";break;case"defaultValue":case"value":switch(Q="value",W){case"textarea":K=X;continue;case"select":u=X;continue;case"option":u!=X||"selected"in D||(G+=" selected")}break;case"dangerouslySetInnerHTML":J=X&&X.__html;continue;case"style":"object"==typeof X&&(X=p(X));break;case"acceptCharset":Q="accept-charset";break;case"httpEquiv":Q="http-equiv";break;default:if(r.test(Q))Q=Q.replace(r,"$1:$2").toLowerCase();else{if(t.test(Q))continue;"-"!==Q[4]&&!i.has(Q)||null==X?l?o.test(Q)&&(Q="panose1"===Q?"panose-1":Q.replace(/([A-Z])/g,"-$1").toLowerCase()):n.test(Q)&&(Q=Q.toLowerCase()):X+=""}}null!=X&&!1!==X&&(G=!0===X||""===X?G+" "+Q:G+" "+Q+'="'+("string"==typeof X?s(X):X+"")+'"')}}if(t.test(W))throw new Error(W+" is not a valid HTML tag name in "+G+">");if(J||("string"==typeof K?J=s(K):null!=K&&!1!==K&&!0!==K&&(J=S(K,c,"svg"===W||"foreignObject"!==W&&l,u,a,g,y))),v&&v(a),a.__=null,m&&m(a),!J&&E.has(W))return G+"/>";var Y="</"+W+">",ee=G+">";return x(J)?[ee].concat(J,[Y]):"string"!=typeof J?[ee,J,Y]:ee+J+Y}var E=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function A(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var L=function e(t){try{var r=function(){if(t.suspended.length>0){var r=[].concat(t.suspended);return Promise.resolve(Promise.all(t.suspended.map(function(e){return e.promise}))).then(function(){return t.suspended=t.suspended.filter(function(e){return!r.includes(e)}),Promise.resolve(e(t)).then(function(){})})}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},P=function(e,t){var r=t.context,n=t.onWrite,o=t.abortSignal;try{r=r||{};var i={start:Date.now(),abortSignal:o,onWrite:n,onError:F,suspended:[]},a=w(e,r,i);n(a);var s=i.suspended.length,c=function(){if(s>0)return n("<div hidden>"),n('<script>(function(){class e extends HTMLElement{connectedCallback(){var e=this;if(!e.isConnected)return;let t=this.getAttribute("data-target");if(t){for(var r,a,i=document.createNodeIterator(document,128);i.nextNode();){let e=i.referenceNode;if(e.data=="preact-island:"+t?r=e:e.data=="/preact-island:"+t&&(a=e),r&&a)break}r&&a&&requestAnimationFrame((()=>{for(var t=a.previousSibling;t!=r&&t&&t!=r;)a.parentNode.removeChild(t),t=a.previousSibling;for(i=r;e.firstChild;)r=e.firstChild,e.removeChild(r),i.after(r),i=r;e.parentNode.removeChild(e)}))}}}customElements.define("preact-island",e);}())<\/script>'),Promise.resolve(L(i)).then(function(){n("</div>")})}();return Promise.resolve(c&&c.then?c.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function F(e,t,r){var n=this;if(e&&e.then){for(;t=t.__;){var o=t.__c;if(o&&o.__c)break}if(t){var i=t.__v,a=this.suspended.find(function(e){return e.id===i}),s=new g,c=this.abortSignal;c&&(c.aborted?s.resolve():c.addEventListener("abort",s.resolve));var l=e.then(function(){if(!c||!c.aborted){var e=r(t.props.children);e&&n.onWrite(A(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([l,s.promise])});var u=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+u+"\x3c!--/preact-island:"+i+"--\x3e"}}}exports.renderToReadableStream=function(e,t){var r=new g,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){P(e,{context:t,onError:function(e){r.reject(e),o.abort(e)},onWrite:function(e){o.enqueue(n.encode(e))}}).then(function(){o.close(),r.resolve()}).catch(function(e){o.error(e),r.reject(e)})}});return o.allReady=r.promise,o};
var e=require("preact"),t=/[\s\n\\/='"\0<>]/,r=/^(xlink|xmlns|xml)([A-Z])/,n=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,o=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,i=new Set(["draggable","spellcheck"]),a=/["&<]/;function s(e){if(0===e.length||!1===a.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var c={},l=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),u=/[A-Z]/g;function p(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:c[r]||(c[r]=r.replace(u,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function f(){this.__d=!0}function d(e,t){return{__v:e,context:t,props:e.props,setState:f,forceUpdate:f,__d:!0,__h:new Array(0)}}var h,v,_,m,g=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},y={},b=[],x=Array.isArray,k=Object.assign;function w(t,r,n){var o=e.options.__s;e.options.__s=!0,h=e.options.__b,v=e.options.diffed,_=e.options.__r,m=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{var a=S(t,r||y,!1,void 0,i,!1,n);return x(a)?a.join(""):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options.__c&&e.options.__c(t,b),e.options.__s=o,b.length=0}}function C(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=y),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=k({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),_&&_(e),r.render(r.props,r.state,t)}function S(a,c,l,u,f,g,b){if(null==a||!0===a||!1===a||""===a)return"";var w=typeof a;if("object"!=w)return"function"==w?"":"string"==w?s(a):a+"";if(x(a)){var E,L="";f.__k=a;for(var P=a.length,F=0;F<P;F++){var T=a[F];if(null!=T&&"boolean"!=typeof T){var j,W=S(T,c,l,u,f,g,b);"string"==typeof W?L+=W:(E||(E=new Array(P)),L&&E.push(L),L="",x(W)?(j=E).push.apply(j,W):E.push(W))}}return E?(L&&E.push(L),E):L}if(void 0!==a.constructor)return"";a.__=f,h&&h(a);var D=a.type,N=a.props;if("function"==typeof D){var M,U,Z,q=c;if(D===e.Fragment){if("tpl"in N){for(var $="",H=0;H<N.tpl.length;H++)if($+=N.tpl[H],N.exprs&&H<N.exprs.length){var R=N.exprs[H];if(null==R)continue;"object"!=typeof R||void 0!==R.constructor&&!x(R)?$+=R:$+=S(R,c,l,u,a,g,b)}return $}if("UNSTABLE_comment"in N)return"\x3c!--"+s(N.UNSTABLE_comment)+"--\x3e";U=N.children}else{if(null!=(M=D.contextType)){var z=c[M.__c];q=z?z.props.value:M.__}var I=D.prototype&&"function"==typeof D.prototype.render;if(I)U=C(a,q),Z=a.__c;else{a.__c=Z=d(a,q);for(var B=0;Z.__d&&B++<25;)Z.__d=!1,_&&_(a),U=D.call(Z,N,q);Z.__d=!0}if(null!=Z.getChildContext&&(c=k({},c,Z.getChildContext())),I&&e.options.errorBoundaries&&(D.getDerivedStateFromError||Z.componentDidCatch)){U=null!=U&&U.type===e.Fragment&&null==U.key&&null==U.props.tpl?U.props.children:U;try{return S(U,c,l,u,a,g,b)}catch(t){return D.getDerivedStateFromError&&(Z.__s=D.getDerivedStateFromError(t)),Z.componentDidCatch&&Z.componentDidCatch(t,y),Z.__d?(U=C(a,c),null!=(Z=a.__c).getChildContext&&(c=k({},c,Z.getChildContext())),S(U=null!=U&&U.type===e.Fragment&&null==U.key&&null==U.props.tpl?U.props.children:U,c,l,u,a,g,b)):""}finally{v&&v(a),a.__=null,m&&m(a)}}}U=null!=U&&U.type===e.Fragment&&null==U.key&&null==U.props.tpl?U.props.children:U;try{var O=S(U,c,l,u,a,g,b);return v&&v(a),a.__=null,e.options.unmount&&e.options.unmount(a),O}catch(t){if(!g&&b&&b.onError){var V=b.onError(t,a,function(e){return S(e,c,l,u,a,g,b)});if(void 0!==V)return V;var K=e.options.__e;return K&&K(t,a),""}if(!g)throw t;if(!t||"function"!=typeof t.then)throw t;return t.then(function e(){try{return S(U,c,l,u,a,g,b)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return S(U,c,l,u,a,g,b)},e)}})}}var G,J="<"+D,Q="";for(var X in N){var Y=N[X];if("function"!=typeof Y||"class"===X||"className"===X){switch(X){case"children":G=Y;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in N)continue;X="for";break;case"className":if("class"in N)continue;X="class";break;case"defaultChecked":X="checked";break;case"defaultSelected":X="selected";break;case"defaultValue":case"value":switch(X="value",D){case"textarea":G=Y;continue;case"select":u=Y;continue;case"option":u!=Y||"selected"in N||(J+=" selected")}break;case"dangerouslySetInnerHTML":Q=Y&&Y.__html;continue;case"style":"object"==typeof Y&&(Y=p(Y));break;case"acceptCharset":X="accept-charset";break;case"httpEquiv":X="http-equiv";break;default:if(r.test(X))X=X.replace(r,"$1:$2").toLowerCase();else{if(t.test(X))continue;"-"!==X[4]&&!i.has(X)||null==Y?l?o.test(X)&&(X="panose1"===X?"panose-1":X.replace(/([A-Z])/g,"-$1").toLowerCase()):n.test(X)&&(X=X.toLowerCase()):Y+=""}}null!=Y&&!1!==Y&&(J=!0===Y||""===Y?J+" "+X:J+" "+X+'="'+("string"==typeof Y?s(Y):Y+"")+'"')}}if(t.test(D))throw new Error(D+" is not a valid HTML tag name in "+J+">");if(Q||("string"==typeof G?Q=s(G):null!=G&&!1!==G&&!0!==G&&(Q=S(G,c,"svg"===D||"foreignObject"!==D&&l,u,a,g,b))),v&&v(a),a.__=null,m&&m(a),!Q&&A.has(D))return J+"/>";var ee="</"+D+">",te=J+">";return x(Q)?[te].concat(Q,[ee]):"string"!=typeof Q?[te,Q,ee]:te+Q+ee}var A=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function E(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var L=function e(t){try{var r=function(){if(t.suspended.length>0){var r=[].concat(t.suspended);return Promise.resolve(Promise.all(t.suspended.map(function(e){return e.promise}))).then(function(){return t.suspended=t.suspended.filter(function(e){return!r.includes(e)}),Promise.resolve(e(t)).then(function(){})})}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},P=function(e,t){var r=t.context,n=t.onWrite,o=t.abortSignal;try{r=r||{};var i={start:Date.now(),abortSignal:o,onWrite:n,onError:F,suspended:[]},a=w(e,r,i);n(a);var s=i.suspended.length,c=function(){if(s>0)return n("<div hidden>"),n('<script>(function(){class e extends HTMLElement{connectedCallback(){var e=this;if(!e.isConnected)return;let t=this.getAttribute("data-target");if(t){for(var r,a,i=document.createNodeIterator(document,128);i.nextNode();){let e=i.referenceNode;if(e.data=="preact-island:"+t?r=e:e.data=="/preact-island:"+t&&(a=e),r&&a)break}r&&a&&requestAnimationFrame((()=>{for(var t=a.previousSibling;t!=r&&t&&t!=r;)a.parentNode.removeChild(t),t=a.previousSibling;for(i=r;e.firstChild;)r=e.firstChild,e.removeChild(r),i.after(r),i=r;e.parentNode.removeChild(e)}))}}}customElements.define("preact-island",e);}())<\/script>'),Promise.resolve(L(i)).then(function(){n("</div>")})}();return Promise.resolve(c&&c.then?c.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function F(e,t,r){var n=this;if(e&&e.then){for(;t=t.__;){var o=t.__c;if(o&&o.__c)break}if(t){var i=t.__v,a=this.suspended.find(function(e){return e.id===i}),s=new g,c=this.abortSignal;c&&(c.aborted?s.resolve():c.addEventListener("abort",s.resolve));var l=e.then(function(){if(!c||!c.aborted){var e=r(t.props.children);e&&n.onWrite(E(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([l,s.promise])});var u=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+u+"\x3c!--/preact-island:"+i+"--\x3e"}}}exports.renderToReadableStream=function(e,t){var r=new g,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){P(e,{context:t,onError:function(e){r.reject(e),o.abort(e)},onWrite:function(e){o.enqueue(n.encode(e))}}).then(function(){o.close(),r.resolve()}).catch(function(e){o.error(e),r.reject(e)})}});return o.allReady=r.promise,o};
//# sourceMappingURL=index.js.map

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

import{options as e,h as t,Fragment as r}from"preact";var n=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,a=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,s=new Set(["draggable","spellcheck"]),c=/["&<]/;function l(e){if(0===e.length||!1===c.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var u={},p=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),f=/[A-Z]/g;function d(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:u[r]||(u[r]=r.replace(f,"-$&").toLowerCase()),a=";";"number"!=typeof n||o.startsWith("--")||p.has(o)||(a="px;"),t=t+o+":"+n+a}}return t||void 0}function h(){this.__d=!0}function v(e,t){return{__v:e,context:t,props:e.props,setState:h,forceUpdate:h,__d:!0,__h:new Array(0)}}var _,m,g,y,b=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},x={},k=[],w=Array.isArray,C=Object.assign;function S(n,o,a){var i=e.__s;e.__s=!0,_=e.__b,m=e.diffed,g=e.__r,y=e.unmount;var s=t(r,null);s.__k=[n];try{var c=A(n,o||x,!1,void 0,s,!1,a);return w(c)?c.join(""):c}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,k),e.__s=i,k.length=0}}function E(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=x),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=C({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),g&&g(e),r.render(r.props,r.state,t)}function A(t,c,u,p,f,h,b){if(null==t||!0===t||!1===t||""===t)return"";var k=typeof t;if("object"!=k)return"function"==k?"":"string"==k?l(t):t+"";if(w(t)){var S,P="";f.__k=t;for(var j=0;j<t.length;j++){var T=t[j];if(null!=T&&"boolean"!=typeof T){var W,D=A(T,c,u,p,f,h,b);"string"==typeof D?P+=D:(S||(S=[]),P&&S.push(P),P="",w(D)?(W=S).push.apply(W,D):S.push(D))}}return S?(P&&S.push(P),S):P}if(void 0!==t.constructor)return"";t.__=f,_&&_(t);var N=t.type,F=t.props;if("function"==typeof N){var M,U,Z,$=c;if(N===r){if("tpl"in F){for(var q="",H=0;H<F.tpl.length;H++)if(q+=F.tpl[H],F.exprs&&H<F.exprs.length){var z=F.exprs[H];if(null==z)continue;"object"!=typeof z||void 0!==z.constructor&&!w(z)?q+=z:q+=A(z,c,u,p,t,h,b)}return q}if("UNSTABLE_comment"in F)return"\x3c!--"+l(F.UNSTABLE_comment)+"--\x3e";U=F.children}else{if(null!=(M=N.contextType)){var I=c[M.__c];$=I?I.props.value:M.__}var R=N.prototype&&"function"==typeof N.prototype.render;if(R)U=E(t,$),Z=t.__c;else{t.__c=Z=v(t,$);for(var B=0;Z.__d&&B++<25;)Z.__d=!1,g&&g(t),U=N.call(Z,F,$);Z.__d=!0}if(null!=Z.getChildContext&&(c=C({},c,Z.getChildContext())),R&&e.errorBoundaries&&(N.getDerivedStateFromError||Z.componentDidCatch)){U=null!=U&&U.type===r&&null==U.key&&null==U.props.tpl?U.props.children:U;try{return A(U,c,u,p,t,h,b)}catch(e){return N.getDerivedStateFromError&&(Z.__s=N.getDerivedStateFromError(e)),Z.componentDidCatch&&Z.componentDidCatch(e,x),Z.__d?(U=E(t,c),null!=(Z=t.__c).getChildContext&&(c=C({},c,Z.getChildContext())),A(U=null!=U&&U.type===r&&null==U.key&&null==U.props.tpl?U.props.children:U,c,u,p,t,h,b)):""}finally{m&&m(t),t.__=null,y&&y(t)}}}U=null!=U&&U.type===r&&null==U.key&&null==U.props.tpl?U.props.children:U;try{var O=A(U,c,u,p,t,h,b);return m&&m(t),t.__=null,e.unmount&&e.unmount(t),O}catch(r){if(!h&&b&&b.onError){var V=b.onError(r,t,function(e){return A(e,c,u,p,t,h,b)});if(void 0!==V)return V;var K=e.__e;return K&&K(r,t),""}if(!h)throw r;if(!r||"function"!=typeof r.then)throw r;return r.then(function e(){try{return A(U,c,u,p,t,h,b)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return A(U,c,u,p,t,h,b)},e)}})}}var G,J="<"+N,Q="";for(var X in F){var Y=F[X];if("function"!=typeof Y||"class"===X||"className"===X){switch(X){case"children":G=Y;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in F)continue;X="for";break;case"className":if("class"in F)continue;X="class";break;case"defaultChecked":X="checked";break;case"defaultSelected":X="selected";break;case"defaultValue":case"value":switch(X="value",N){case"textarea":G=Y;continue;case"select":p=Y;continue;case"option":p!=Y||"selected"in F||(J+=" selected")}break;case"dangerouslySetInnerHTML":Q=Y&&Y.__html;continue;case"style":"object"==typeof Y&&(Y=d(Y));break;case"acceptCharset":X="accept-charset";break;case"httpEquiv":X="http-equiv";break;default:if(o.test(X))X=X.replace(o,"$1:$2").toLowerCase();else{if(n.test(X))continue;"-"!==X[4]&&!s.has(X)||null==Y?u?i.test(X)&&(X="panose1"===X?"panose-1":X.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(X)&&(X=X.toLowerCase()):Y+=""}}null!=Y&&!1!==Y&&(J=!0===Y||""===Y?J+" "+X:J+" "+X+'="'+("string"==typeof Y?l(Y):Y+"")+'"')}}if(n.test(N))throw new Error(N+" is not a valid HTML tag name in "+J+">");if(Q||("string"==typeof G?Q=l(G):null!=G&&!1!==G&&!0!==G&&(Q=A(G,c,"svg"===N||"foreignObject"!==N&&u,p,t,h,b))),m&&m(t),t.__=null,y&&y(t),!Q&&L.has(N))return J+"/>";var ee="</"+N+">",te=J+">";return w(Q)?[te].concat(Q,[ee]):"string"!=typeof Q?[te,Q,ee]:te+Q+ee}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function P(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var j=function e(t){try{var r=function(){if(t.suspended.length>0){var r=[].concat(t.suspended);return Promise.resolve(Promise.all(t.suspended.map(function(e){return e.promise}))).then(function(){return t.suspended=t.suspended.filter(function(e){return!r.includes(e)}),Promise.resolve(e(t)).then(function(){})})}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},T=function(e,t){var r=t.context,n=t.onWrite,o=t.abortSignal;try{r=r||{};var a={start:Date.now(),abortSignal:o,onWrite:n,onError:W,suspended:[]},i=S(e,r,a);n(i);var s=a.suspended.length,c=function(){if(s>0)return n("<div hidden>"),n('<script>(function(){class e extends HTMLElement{connectedCallback(){var e=this;if(!e.isConnected)return;let t=this.getAttribute("data-target");if(t){for(var r,a,i=document.createNodeIterator(document,128);i.nextNode();){let e=i.referenceNode;if(e.data=="preact-island:"+t?r=e:e.data=="/preact-island:"+t&&(a=e),r&&a)break}r&&a&&requestAnimationFrame((()=>{for(var t=a.previousSibling;t!=r&&t&&t!=r;)a.parentNode.removeChild(t),t=a.previousSibling;for(i=r;e.firstChild;)r=e.firstChild,e.removeChild(r),i.after(r),i=r;e.parentNode.removeChild(e)}))}}}customElements.define("preact-island",e);}())<\/script>'),Promise.resolve(j(a)).then(function(){n("</div>")})}();return Promise.resolve(c&&c.then?c.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function W(e,t,r){var n=this;if(e&&e.then){for(;t=t.__;){var o=t.__c;if(o&&o.__c)break}if(t){var a=t.__v,i=this.suspended.find(function(e){return e.id===a}),s=new b,c=this.abortSignal;c&&(c.aborted?s.resolve():c.addEventListener("abort",s.resolve));var l=e.then(function(){if(!c||!c.aborted){var e=r(t.props.children);e&&n.onWrite(P(a,e))}},this.onError);this.suspended.push({id:a,vnode:t,promise:Promise.race([l,s.promise])});var u=r(t.props.fallback);return i?"":"\x3c!--preact-island:"+a+"--\x3e"+u+"\x3c!--/preact-island:"+a+"--\x3e"}}}function D(e,t){var r=new b,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){T(e,{context:t,onError:function(e){r.reject(e),o.abort(e)},onWrite:function(e){o.enqueue(n.encode(e))}}).then(function(){o.close(),r.resolve()}).catch(function(e){o.error(e),r.reject(e)})}});return o.allReady=r.promise,o}export{D as renderToReadableStream};
import{options as e,h as t,Fragment as r}from"preact";var n=/[\s\n\\/='"\0<>]/,o=/^(xlink|xmlns|xml)([A-Z])/,a=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,s=new Set(["draggable","spellcheck"]),c=/["&<]/;function l(e){if(0===e.length||!1===c.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var u={},p=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),f=/[A-Z]/g;function d(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:u[r]||(u[r]=r.replace(f,"-$&").toLowerCase()),a=";";"number"!=typeof n||o.startsWith("--")||p.has(o)||(a="px;"),t=t+o+":"+n+a}}return t||void 0}function h(){this.__d=!0}function v(e,t){return{__v:e,context:t,props:e.props,setState:h,forceUpdate:h,__d:!0,__h:new Array(0)}}var _,m,g,y,b=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},x={},k=[],w=Array.isArray,C=Object.assign;function S(n,o,a){var i=e.__s;e.__s=!0,_=e.__b,m=e.diffed,g=e.__r,y=e.unmount;var s=t(r,null);s.__k=[n];try{var c=E(n,o||x,!1,void 0,s,!1,a);return w(c)?c.join(""):c}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,k),e.__s=i,k.length=0}}function A(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=x),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=C({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),g&&g(e),r.render(r.props,r.state,t)}function E(t,c,u,p,f,h,b){if(null==t||!0===t||!1===t||""===t)return"";var k=typeof t;if("object"!=k)return"function"==k?"":"string"==k?l(t):t+"";if(w(t)){var S,P="";f.__k=t;for(var j=t.length,T=0;T<j;T++){var W=t[T];if(null!=W&&"boolean"!=typeof W){var D,N=E(W,c,u,p,f,h,b);"string"==typeof N?P+=N:(S||(S=new Array(j)),P&&S.push(P),P="",w(N)?(D=S).push.apply(D,N):S.push(N))}}return S?(P&&S.push(P),S):P}if(void 0!==t.constructor)return"";t.__=f,_&&_(t);var F=t.type,M=t.props;if("function"==typeof F){var U,Z,$,q=c;if(F===r){if("tpl"in M){for(var H="",z=0;z<M.tpl.length;z++)if(H+=M.tpl[z],M.exprs&&z<M.exprs.length){var I=M.exprs[z];if(null==I)continue;"object"!=typeof I||void 0!==I.constructor&&!w(I)?H+=I:H+=E(I,c,u,p,t,h,b)}return H}if("UNSTABLE_comment"in M)return"\x3c!--"+l(M.UNSTABLE_comment)+"--\x3e";Z=M.children}else{if(null!=(U=F.contextType)){var R=c[U.__c];q=R?R.props.value:U.__}var B=F.prototype&&"function"==typeof F.prototype.render;if(B)Z=A(t,q),$=t.__c;else{t.__c=$=v(t,q);for(var O=0;$.__d&&O++<25;)$.__d=!1,g&&g(t),Z=F.call($,M,q);$.__d=!0}if(null!=$.getChildContext&&(c=C({},c,$.getChildContext())),B&&e.errorBoundaries&&(F.getDerivedStateFromError||$.componentDidCatch)){Z=null!=Z&&Z.type===r&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z;try{return E(Z,c,u,p,t,h,b)}catch(e){return F.getDerivedStateFromError&&($.__s=F.getDerivedStateFromError(e)),$.componentDidCatch&&$.componentDidCatch(e,x),$.__d?(Z=A(t,c),null!=($=t.__c).getChildContext&&(c=C({},c,$.getChildContext())),E(Z=null!=Z&&Z.type===r&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z,c,u,p,t,h,b)):""}finally{m&&m(t),t.__=null,y&&y(t)}}}Z=null!=Z&&Z.type===r&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z;try{var V=E(Z,c,u,p,t,h,b);return m&&m(t),t.__=null,e.unmount&&e.unmount(t),V}catch(r){if(!h&&b&&b.onError){var K=b.onError(r,t,function(e){return E(e,c,u,p,t,h,b)});if(void 0!==K)return K;var G=e.__e;return G&&G(r,t),""}if(!h)throw r;if(!r||"function"!=typeof r.then)throw r;return r.then(function e(){try{return E(Z,c,u,p,t,h,b)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return E(Z,c,u,p,t,h,b)},e)}})}}var J,Q="<"+F,X="";for(var Y in M){var ee=M[Y];if("function"!=typeof ee||"class"===Y||"className"===Y){switch(Y){case"children":J=ee;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in M)continue;Y="for";break;case"className":if("class"in M)continue;Y="class";break;case"defaultChecked":Y="checked";break;case"defaultSelected":Y="selected";break;case"defaultValue":case"value":switch(Y="value",F){case"textarea":J=ee;continue;case"select":p=ee;continue;case"option":p!=ee||"selected"in M||(Q+=" selected")}break;case"dangerouslySetInnerHTML":X=ee&&ee.__html;continue;case"style":"object"==typeof ee&&(ee=d(ee));break;case"acceptCharset":Y="accept-charset";break;case"httpEquiv":Y="http-equiv";break;default:if(o.test(Y))Y=Y.replace(o,"$1:$2").toLowerCase();else{if(n.test(Y))continue;"-"!==Y[4]&&!s.has(Y)||null==ee?u?i.test(Y)&&(Y="panose1"===Y?"panose-1":Y.replace(/([A-Z])/g,"-$1").toLowerCase()):a.test(Y)&&(Y=Y.toLowerCase()):ee+=""}}null!=ee&&!1!==ee&&(Q=!0===ee||""===ee?Q+" "+Y:Q+" "+Y+'="'+("string"==typeof ee?l(ee):ee+"")+'"')}}if(n.test(F))throw new Error(F+" is not a valid HTML tag name in "+Q+">");if(X||("string"==typeof J?X=l(J):null!=J&&!1!==J&&!0!==J&&(X=E(J,c,"svg"===F||"foreignObject"!==F&&u,p,t,h,b))),m&&m(t),t.__=null,y&&y(t),!X&&L.has(F))return Q+"/>";var te="</"+F+">",re=Q+">";return w(X)?[re].concat(X,[te]):"string"!=typeof X?[re,X,te]:re+X+te}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function P(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var j=function e(t){try{var r=function(){if(t.suspended.length>0){var r=[].concat(t.suspended);return Promise.resolve(Promise.all(t.suspended.map(function(e){return e.promise}))).then(function(){return t.suspended=t.suspended.filter(function(e){return!r.includes(e)}),Promise.resolve(e(t)).then(function(){})})}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},T=function(e,t){var r=t.context,n=t.onWrite,o=t.abortSignal;try{r=r||{};var a={start:Date.now(),abortSignal:o,onWrite:n,onError:W,suspended:[]},i=S(e,r,a);n(i);var s=a.suspended.length,c=function(){if(s>0)return n("<div hidden>"),n('<script>(function(){class e extends HTMLElement{connectedCallback(){var e=this;if(!e.isConnected)return;let t=this.getAttribute("data-target");if(t){for(var r,a,i=document.createNodeIterator(document,128);i.nextNode();){let e=i.referenceNode;if(e.data=="preact-island:"+t?r=e:e.data=="/preact-island:"+t&&(a=e),r&&a)break}r&&a&&requestAnimationFrame((()=>{for(var t=a.previousSibling;t!=r&&t&&t!=r;)a.parentNode.removeChild(t),t=a.previousSibling;for(i=r;e.firstChild;)r=e.firstChild,e.removeChild(r),i.after(r),i=r;e.parentNode.removeChild(e)}))}}}customElements.define("preact-island",e);}())<\/script>'),Promise.resolve(j(a)).then(function(){n("</div>")})}();return Promise.resolve(c&&c.then?c.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function W(e,t,r){var n=this;if(e&&e.then){for(;t=t.__;){var o=t.__c;if(o&&o.__c)break}if(t){var a=t.__v,i=this.suspended.find(function(e){return e.id===a}),s=new b,c=this.abortSignal;c&&(c.aborted?s.resolve():c.addEventListener("abort",s.resolve));var l=e.then(function(){if(!c||!c.aborted){var e=r(t.props.children);e&&n.onWrite(P(a,e))}},this.onError);this.suspended.push({id:a,vnode:t,promise:Promise.race([l,s.promise])});var u=r(t.props.fallback);return i?"":"\x3c!--preact-island:"+a+"--\x3e"+u+"\x3c!--/preact-island:"+a+"--\x3e"}}}function D(e,t){var r=new b,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){T(e,{context:t,onError:function(e){r.reject(e),o.abort(e)},onWrite:function(e){o.enqueue(n.encode(e))}}).then(function(){o.close(),r.resolve()}).catch(function(e){o.error(e),r.reject(e)})}});return o.allReady=r.promise,o}export{D as renderToReadableStream};
//# sourceMappingURL=index.module.js.map

@@ -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 r=/[\s\n\\/='"\0<>]/,n=/^(xlink|xmlns|xml)([A-Z])/,o=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,a=new Set(["draggable","spellcheck"]),s=/["&<]/;function c(e){if(0===e.length||!1===s.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var l={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function f(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:l[r]||(l[r]=r.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function d(){this.__d=!0}function h(e,t){return{__v:e,context:t,props:e.props,setState:d,forceUpdate:d,__d:!0,__h:new Array(0)}}var v,_,m,g,y=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},b={},x=[],k=Array.isArray,w=Object.assign,C="";function S(e,r,n){var o=t.options.__s;t.options.__s=!0,v=t.options.__b,_=t.options.diffed,m=t.options.__r,g=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{var a=A(e,r||b,!1,void 0,i,!1,n);return k(a)?a.join(C):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,x),t.options.__s=o,x.length=0}}function E(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=b),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=w({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),m&&m(e),r.render(r.props,r.state,t)}function A(e,s,l,u,p,d,y){if(null==e||!0===e||!1===e||e===C)return C;var x=typeof e;if("object"!=x)return"function"==x?C:"string"==x?c(e):e+C;if(k(e)){var S,L=C;p.__k=e;for(var P=0;P<e.length;P++){var j=e[P];if(null!=j&&"boolean"!=typeof j){var F,W=A(j,s,l,u,p,d,y);"string"==typeof W?L+=W:(S||(S=[]),L&&S.push(L),L=C,k(W)?(F=S).push.apply(F,W):S.push(W))}}return S?(L&&S.push(L),S):L}if(void 0!==e.constructor)return C;e.__=p,v&&v(e);var D=e.type,N=e.props;if("function"==typeof D){var M,U,Z,q=s;if(D===t.Fragment){if("tpl"in N){for(var R=C,$=0;$<N.tpl.length;$++)if(R+=N.tpl[$],N.exprs&&$<N.exprs.length){var H=N.exprs[$];if(null==H)continue;"object"!=typeof H||void 0!==H.constructor&&!k(H)?R+=H:R+=A(H,s,l,u,e,d,y)}return R}if("UNSTABLE_comment"in N)return"\x3c!--"+c(N.UNSTABLE_comment)+"--\x3e";U=N.children}else{if(null!=(M=D.contextType)){var z=s[M.__c];q=z?z.props.value:M.__}var I=D.prototype&&"function"==typeof D.prototype.render;if(I)U=E(e,q),Z=e.__c;else{e.__c=Z=h(e,q);for(var B=0;Z.__d&&B++<25;)Z.__d=!1,m&&m(e),U=D.call(Z,N,q);Z.__d=!0}if(null!=Z.getChildContext&&(s=w({},s,Z.getChildContext())),I&&t.options.errorBoundaries&&(D.getDerivedStateFromError||Z.componentDidCatch)){U=null!=U&&U.type===t.Fragment&&null==U.key&&null==U.props.tpl?U.props.children:U;try{return A(U,s,l,u,e,d,y)}catch(r){return D.getDerivedStateFromError&&(Z.__s=D.getDerivedStateFromError(r)),Z.componentDidCatch&&Z.componentDidCatch(r,b),Z.__d?(U=E(e,s),null!=(Z=e.__c).getChildContext&&(s=w({},s,Z.getChildContext())),A(U=null!=U&&U.type===t.Fragment&&null==U.key&&null==U.props.tpl?U.props.children:U,s,l,u,e,d,y)):C}finally{_&&_(e),e.__=null,g&&g(e)}}}U=null!=U&&U.type===t.Fragment&&null==U.key&&null==U.props.tpl?U.props.children:U;try{var O=A(U,s,l,u,e,d,y);return _&&_(e),e.__=null,t.options.unmount&&t.options.unmount(e),O}catch(r){if(!d&&y&&y.onError){var V=y.onError(r,e,function(t){return A(t,s,l,u,e,d,y)});if(void 0!==V)return V;var K=t.options.__e;return K&&K(r,e),C}if(!d)throw r;if(!r||"function"!=typeof r.then)throw r;return r.then(function t(){try{return A(U,s,l,u,e,d,y)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return A(U,s,l,u,e,d,y)},t)}})}}var G,J="<"+D,Q=C;for(var X in N){var Y=N[X];if("function"!=typeof Y||"class"===X||"className"===X){switch(X){case"children":G=Y;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in N)continue;X="for";break;case"className":if("class"in N)continue;X="class";break;case"defaultChecked":X="checked";break;case"defaultSelected":X="selected";break;case"defaultValue":case"value":switch(X="value",D){case"textarea":G=Y;continue;case"select":u=Y;continue;case"option":u!=Y||"selected"in N||(J+=" selected")}break;case"dangerouslySetInnerHTML":Q=Y&&Y.__html;continue;case"style":"object"==typeof Y&&(Y=f(Y));break;case"acceptCharset":X="accept-charset";break;case"httpEquiv":X="http-equiv";break;default:if(n.test(X))X=X.replace(n,"$1:$2").toLowerCase();else{if(r.test(X))continue;"-"!==X[4]&&!a.has(X)||null==Y?l?i.test(X)&&(X="panose1"===X?"panose-1":X.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(X)&&(X=X.toLowerCase()):Y+=C}}null!=Y&&!1!==Y&&(J=!0===Y||Y===C?J+" "+X:J+" "+X+'="'+("string"==typeof Y?c(Y):Y+C)+'"')}}if(r.test(D))throw new Error(D+" is not a valid HTML tag name in "+J+">");if(Q||("string"==typeof G?Q=c(G):null!=G&&!1!==G&&!0!==G&&(Q=A(G,s,"svg"===D||"foreignObject"!==D&&l,u,e,d,y))),_&&_(e),e.__=null,g&&g(e),!Q&&T.has(D))return J+"/>";var ee="</"+D+">",te=J+">";return k(Q)?[te].concat(Q,[ee]):"string"!=typeof Q?[te,Q,ee]:te+Q+ee}var T=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function L(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var P=function e(t){try{var r=function(){if(t.suspended.length>0){var r=[].concat(t.suspended);return Promise.resolve(Promise.all(t.suspended.map(function(e){return e.promise}))).then(function(){return t.suspended=t.suspended.filter(function(e){return!r.includes(e)}),Promise.resolve(e(t)).then(function(){})})}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},j=function(e,t){var r=t.context,n=t.onWrite,o=t.abortSignal;try{r=r||{};var i={start:Date.now(),abortSignal:o,onWrite:n,onError:F,suspended:[]},a=S(e,r,i);n(a);var s=i.suspended.length,c=function(){if(s>0)return n("<div hidden>"),n('<script>(function(){class e extends HTMLElement{connectedCallback(){var e=this;if(!e.isConnected)return;let t=this.getAttribute("data-target");if(t){for(var r,a,i=document.createNodeIterator(document,128);i.nextNode();){let e=i.referenceNode;if(e.data=="preact-island:"+t?r=e:e.data=="/preact-island:"+t&&(a=e),r&&a)break}r&&a&&requestAnimationFrame((()=>{for(var t=a.previousSibling;t!=r&&t&&t!=r;)a.parentNode.removeChild(t),t=a.previousSibling;for(i=r;e.firstChild;)r=e.firstChild,e.removeChild(r),i.after(r),i=r;e.parentNode.removeChild(e)}))}}}customElements.define("preact-island",e);}())<\/script>'),Promise.resolve(P(i)).then(function(){n("</div>")})}();return Promise.resolve(c&&c.then?c.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function F(e,t,r){var n=this;if(e&&e.then){for(;t=t.__;){var o=t.__c;if(o&&o.__c)break}if(t){var i=t.__v,a=this.suspended.find(function(e){return e.id===i}),s=new y,c=this.abortSignal;c&&(c.aborted?s.resolve():c.addEventListener("abort",s.resolve));var l=e.then(function(){if(!c||!c.aborted){var e=r(t.props.children);e&&n.onWrite(L(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([l,s.promise])});var u=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+u+"\x3c!--/preact-island:"+i+"--\x3e"}}}e.renderToReadableStream=function(e,t){var r=new y,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){j(e,{context:t,onError:function(e){r.reject(e),o.abort(e)},onWrite:function(e){o.enqueue(n.encode(e))}}).then(function(){o.close(),r.resolve()}).catch(function(e){o.error(e),r.reject(e)})}});return o.allReady=r.promise,o}});
!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 r=/[\s\n\\/='"\0<>]/,n=/^(xlink|xmlns|xml)([A-Z])/,o=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,a=new Set(["draggable","spellcheck"]),s=/["&<]/;function c(e){if(0===e.length||!1===s.test(e))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var l={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function f(e){var t="";for(var r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:l[r]||(l[r]=r.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function d(){this.__d=!0}function h(e,t){return{__v:e,context:t,props:e.props,setState:d,forceUpdate:d,__d:!0,__h:new Array(0)}}var v,_,m,g,y=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},b={},x=[],k=Array.isArray,w=Object.assign,C="";function S(e,r,n){var o=t.options.__s;t.options.__s=!0,v=t.options.__b,_=t.options.diffed,m=t.options.__r,g=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{var a=E(e,r||b,!1,void 0,i,!1,n);return k(a)?a.join(C):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,x),t.options.__s=o,x.length=0}}function A(e,t){var r,n=e.type,o=!0;return e.__c?(o=!1,(r=e.__c).state=r.__s):r=new n(e.props,t),e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=b),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=w({},r.state,n.getDerivedStateFromProps(r.props,r.state)):o&&r.componentWillMount?(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state):!o&&r.componentWillUpdate&&r.componentWillUpdate(),m&&m(e),r.render(r.props,r.state,t)}function E(e,s,l,u,p,d,y){if(null==e||!0===e||!1===e||e===C)return C;var x=typeof e;if("object"!=x)return"function"==x?C:"string"==x?c(e):e+C;if(k(e)){var S,L=C;p.__k=e;for(var P=e.length,j=0;j<P;j++){var F=e[j];if(null!=F&&"boolean"!=typeof F){var W,D=E(F,s,l,u,p,d,y);"string"==typeof D?L+=D:(S||(S=new Array(P)),L&&S.push(L),L=C,k(D)?(W=S).push.apply(W,D):S.push(D))}}return S?(L&&S.push(L),S):L}if(void 0!==e.constructor)return C;e.__=p,v&&v(e);var N=e.type,M=e.props;if("function"==typeof N){var U,Z,q,R=s;if(N===t.Fragment){if("tpl"in M){for(var $=C,H=0;H<M.tpl.length;H++)if($+=M.tpl[H],M.exprs&&H<M.exprs.length){var z=M.exprs[H];if(null==z)continue;"object"!=typeof z||void 0!==z.constructor&&!k(z)?$+=z:$+=E(z,s,l,u,e,d,y)}return $}if("UNSTABLE_comment"in M)return"\x3c!--"+c(M.UNSTABLE_comment)+"--\x3e";Z=M.children}else{if(null!=(U=N.contextType)){var I=s[U.__c];R=I?I.props.value:U.__}var B=N.prototype&&"function"==typeof N.prototype.render;if(B)Z=A(e,R),q=e.__c;else{e.__c=q=h(e,R);for(var O=0;q.__d&&O++<25;)q.__d=!1,m&&m(e),Z=N.call(q,M,R);q.__d=!0}if(null!=q.getChildContext&&(s=w({},s,q.getChildContext())),B&&t.options.errorBoundaries&&(N.getDerivedStateFromError||q.componentDidCatch)){Z=null!=Z&&Z.type===t.Fragment&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z;try{return E(Z,s,l,u,e,d,y)}catch(r){return N.getDerivedStateFromError&&(q.__s=N.getDerivedStateFromError(r)),q.componentDidCatch&&q.componentDidCatch(r,b),q.__d?(Z=A(e,s),null!=(q=e.__c).getChildContext&&(s=w({},s,q.getChildContext())),E(Z=null!=Z&&Z.type===t.Fragment&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z,s,l,u,e,d,y)):C}finally{_&&_(e),e.__=null,g&&g(e)}}}Z=null!=Z&&Z.type===t.Fragment&&null==Z.key&&null==Z.props.tpl?Z.props.children:Z;try{var V=E(Z,s,l,u,e,d,y);return _&&_(e),e.__=null,t.options.unmount&&t.options.unmount(e),V}catch(r){if(!d&&y&&y.onError){var K=y.onError(r,e,function(t){return E(t,s,l,u,e,d,y)});if(void 0!==K)return K;var G=t.options.__e;return G&&G(r,e),C}if(!d)throw r;if(!r||"function"!=typeof r.then)throw r;return r.then(function t(){try{return E(Z,s,l,u,e,d,y)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return E(Z,s,l,u,e,d,y)},t)}})}}var J,Q="<"+N,X=C;for(var Y in M){var ee=M[Y];if("function"!=typeof ee||"class"===Y||"className"===Y){switch(Y){case"children":J=ee;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in M)continue;Y="for";break;case"className":if("class"in M)continue;Y="class";break;case"defaultChecked":Y="checked";break;case"defaultSelected":Y="selected";break;case"defaultValue":case"value":switch(Y="value",N){case"textarea":J=ee;continue;case"select":u=ee;continue;case"option":u!=ee||"selected"in M||(Q+=" selected")}break;case"dangerouslySetInnerHTML":X=ee&&ee.__html;continue;case"style":"object"==typeof ee&&(ee=f(ee));break;case"acceptCharset":Y="accept-charset";break;case"httpEquiv":Y="http-equiv";break;default:if(n.test(Y))Y=Y.replace(n,"$1:$2").toLowerCase();else{if(r.test(Y))continue;"-"!==Y[4]&&!a.has(Y)||null==ee?l?i.test(Y)&&(Y="panose1"===Y?"panose-1":Y.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(Y)&&(Y=Y.toLowerCase()):ee+=C}}null!=ee&&!1!==ee&&(Q=!0===ee||ee===C?Q+" "+Y:Q+" "+Y+'="'+("string"==typeof ee?c(ee):ee+C)+'"')}}if(r.test(N))throw new Error(N+" is not a valid HTML tag name in "+Q+">");if(X||("string"==typeof J?X=c(J):null!=J&&!1!==J&&!0!==J&&(X=E(J,s,"svg"===N||"foreignObject"!==N&&l,u,e,d,y))),_&&_(e),e.__=null,g&&g(e),!X&&T.has(N))return Q+"/>";var te="</"+N+">",re=Q+">";return k(X)?[re].concat(X,[te]):"string"!=typeof X?[re,X,te]:re+X+te}var T=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function L(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var P=function e(t){try{var r=function(){if(t.suspended.length>0){var r=[].concat(t.suspended);return Promise.resolve(Promise.all(t.suspended.map(function(e){return e.promise}))).then(function(){return t.suspended=t.suspended.filter(function(e){return!r.includes(e)}),Promise.resolve(e(t)).then(function(){})})}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},j=function(e,t){var r=t.context,n=t.onWrite,o=t.abortSignal;try{r=r||{};var i={start:Date.now(),abortSignal:o,onWrite:n,onError:F,suspended:[]},a=S(e,r,i);n(a);var s=i.suspended.length,c=function(){if(s>0)return n("<div hidden>"),n('<script>(function(){class e extends HTMLElement{connectedCallback(){var e=this;if(!e.isConnected)return;let t=this.getAttribute("data-target");if(t){for(var r,a,i=document.createNodeIterator(document,128);i.nextNode();){let e=i.referenceNode;if(e.data=="preact-island:"+t?r=e:e.data=="/preact-island:"+t&&(a=e),r&&a)break}r&&a&&requestAnimationFrame((()=>{for(var t=a.previousSibling;t!=r&&t&&t!=r;)a.parentNode.removeChild(t),t=a.previousSibling;for(i=r;e.firstChild;)r=e.firstChild,e.removeChild(r),i.after(r),i=r;e.parentNode.removeChild(e)}))}}}customElements.define("preact-island",e);}())<\/script>'),Promise.resolve(P(i)).then(function(){n("</div>")})}();return Promise.resolve(c&&c.then?c.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function F(e,t,r){var n=this;if(e&&e.then){for(;t=t.__;){var o=t.__c;if(o&&o.__c)break}if(t){var i=t.__v,a=this.suspended.find(function(e){return e.id===i}),s=new y,c=this.abortSignal;c&&(c.aborted?s.resolve():c.addEventListener("abort",s.resolve));var l=e.then(function(){if(!c||!c.aborted){var e=r(t.props.children);e&&n.onWrite(L(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([l,s.promise])});var u=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+u+"\x3c!--/preact-island:"+i+"--\x3e"}}}e.renderToReadableStream=function(e,t){var r=new y,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){j(e,{context:t,onError:function(e){r.reject(e),o.abort(e)},onWrite:function(e){o.enqueue(n.encode(e))}}).then(function(){o.close(),r.resolve()}).catch(function(e){o.error(e),r.reject(e)})}});return o.allReady=r.promise,o}});
//# sourceMappingURL=index.umd.js.map

@@ -6,3 +6,3 @@ var node_stream = require('node:stream');

const NAMESPACE_REPLACE_REGEX = /^(xlink|xmlns|xml)([A-Z])/;
const HTML_LOWER_CASE = /^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/;
const HTML_LOWER_CASE = /^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/;
const SVG_CAMEL_CASE = /^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/; // Boolean DOM properties that translate to enumerated ('true'/'false') attributes

@@ -258,4 +258,5 @@

parent[CHILDREN] = vnode;
const vnodeLength = vnode.length;
for (let i = 0; i < vnode.length; i++) {
for (let i = 0; i < vnodeLength; i++) {
let child = vnode[i];

@@ -270,3 +271,3 @@ if (child == null || typeof child == 'boolean') continue;

if (!renderArray) {
renderArray = [];
renderArray = new Array(vnodeLength);
}

@@ -273,0 +274,0 @@

@@ -6,3 +6,3 @@ import { PassThrough } from 'node:stream';

const NAMESPACE_REPLACE_REGEX = /^(xlink|xmlns|xml)([A-Z])/;
const HTML_LOWER_CASE = /^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/;
const HTML_LOWER_CASE = /^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/;
const SVG_CAMEL_CASE = /^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/; // Boolean DOM properties that translate to enumerated ('true'/'false') attributes

@@ -258,4 +258,5 @@

parent[CHILDREN] = vnode;
const vnodeLength = vnode.length;
for (let i = 0; i < vnode.length; i++) {
for (let i = 0; i < vnodeLength; i++) {
let child = vnode[i];

@@ -270,3 +271,3 @@ if (child == null || typeof child == 'boolean') continue;

if (!renderArray) {
renderArray = [];
renderArray = new Array(vnodeLength);
}

@@ -273,0 +274,0 @@

@@ -8,3 +8,3 @@ (function (global, factory) {

const NAMESPACE_REPLACE_REGEX = /^(xlink|xmlns|xml)([A-Z])/;
const HTML_LOWER_CASE = /^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/;
const HTML_LOWER_CASE = /^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/;
const SVG_CAMEL_CASE = /^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/; // Boolean DOM properties that translate to enumerated ('true'/'false') attributes

@@ -260,4 +260,5 @@

parent[CHILDREN] = vnode;
const vnodeLength = vnode.length;
for (let i = 0; i < vnode.length; i++) {
for (let i = 0; i < vnodeLength; i++) {
let child = vnode[i];

@@ -272,3 +273,3 @@ if (child == null || typeof child == 'boolean') continue;

if (!renderArray) {
renderArray = [];
renderArray = new Array(vnodeLength);
}

@@ -275,0 +276,0 @@

{
"name": "preact-render-to-string",
"amdName": "preactRenderToString",
"version": "6.5.11",
"version": "6.5.12",
"description": "Render JSX to an HTML string, with support for Preact components.",

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

"mocha": "^8.2.1",
"preact": "^10.13.0",
"preact": "^10.24.0",
"prettier": "^2.2.1",

@@ -150,0 +150,0 @@ "pretty-format": "^3.8.0",

@@ -247,3 +247,4 @@ import {

parent[CHILDREN] = vnode;
for (let i = 0; i < vnode.length; i++) {
const vnodeLength = vnode.length;
for (let i = 0; i < vnodeLength; i++) {
let child = vnode[i];

@@ -266,3 +267,3 @@ if (child == null || typeof child == 'boolean') continue;

if (!renderArray) {
renderArray = [];
renderArray = new Array(vnodeLength);
}

@@ -269,0 +270,0 @@

export const VOID_ELEMENTS = /^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/;
export const UNSAFE_NAME = /[\s\n\\/='"\0<>]/;
export const NAMESPACE_REPLACE_REGEX = /^(xlink|xmlns|xml)([A-Z])/;
export const HTML_LOWER_CASE = /^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/;
export const HTML_LOWER_CASE = /^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/;
export const SVG_CAMEL_CASE = /^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/;

@@ -6,0 +6,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

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