Socket
Socket
Sign inDemoInstall

preact-render-to-string

Package Overview
Dependencies
Maintainers
8
Versions
112
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.1 to 6.5.2

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|spellC|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=/["&<]/;function a(e){if(0===e.length||!1===i.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 s={},c=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"]),l=/[A-Z]/g;function u(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:s[n]||(s[n]=n.replace(l,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||c.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function f(e,t,n){if(!e.s){if(n instanceof p){if(!n.s)return void(n.o=f.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(f.bind(null,e,t),f.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var p=/*#__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{f(r,1,i(this.v))}catch(e){f(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?f(r,1,t?t(o):o):n?f(r,1,n(o)):f(r,2,o)}catch(e){f(r,2,e)}},r},e}();function h(e){return e instanceof p&&1&e.s}function d(e,t,n){for(var r;;){var o=e();if(h(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!h(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!h(a)){r=2;break}}}var s=new p,c=f.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(d)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!h(a))return void a.then(d).then(void 0,c);if(!(o=e())||h(o)&&!o.v)return void f(s,1,i);if(o.then)return void o.then(u).then(void 0,c);h(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):f(s,1,i)}function d(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):f(s,1,i)}}function _(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 v,m,y,g,b=[],k=Array.isArray,x=Object.assign;function w(t,n,r){var o=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{return F(t,n||C,!1,void 0,i,!1,r)}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 A(){this.__d=!0}var C={};function S(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=C),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=x({},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(),y&&y(e),n.render(n.props,n.state,t)}function F(i,s,c,l,f,p,h){if(null==i||!0===i||!1===i||""===i)return"";if("object"!=typeof i)return"function"==typeof i?"":a(i+"");if(k(i)){var d,_="";f.__k=i;for(var b=0;b<i.length;b++){var w=i[b];if(null!=w&&"boolean"!=typeof w){var C,T=F(w,s,c,l,f,p,h);"string"==typeof T?_+=T:(d=d||[],_&&d.push(_),_="",Array.isArray(T)?(C=d).push.apply(C,T):d.push(T))}}return d?(_&&d.push(_),d):_}if(void 0!==i.constructor)return"";i.__=f,v&&v(i);var E,D,j,M=i.type,P=i.props,U=s;if("function"==typeof M){if(M===e.Fragment){if(P.tpl){for(var Z="",W=0;W<P.tpl.length;W++)if(Z+=P.tpl[W],P.exprs&&W<P.exprs.length){var $=P.exprs[W];if(null==$)continue;"object"!=typeof $||void 0!==$.constructor&&!k($)?Z+=$:Z+=F($,s,c,l,i,p,h)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+a(P.UNSTABLE_comment||"")+"--\x3e";D=P.children}else{if(null!=(E=M.contextType)){var q=s[E.__c];U=q?q.props.value:E.__}if(M.prototype&&"function"==typeof M.prototype.render)D=S(i,U),j=i.__c;else{i.__c=j={__v:i,props:P,context:U,setState:A,forceUpdate:A,__d:!0,__h:[]};for(var z=0;j.__d&&z++<25;)j.__d=!1,y&&y(i),D=M.call(j,P,U);j.__d=!0}if(null!=j.getChildContext&&(s=x({},s,j.getChildContext())),(M.getDerivedStateFromError||j.componentDidCatch)&&e.options.errorBoundaries){var H="";D=null!=D&&D.type===e.Fragment&&null==D.key?D.props.children:D;try{return H=F(D,s,c,l,i,p,h)}catch(t){return M.getDerivedStateFromError&&(j.__s=M.getDerivedStateFromError(t)),j.componentDidCatch&&j.componentDidCatch(t,{}),j.__d&&(D=S(i,s),null!=(j=i.__c).getChildContext&&(s=x({},s,j.getChildContext())),H=F(D=null!=D&&D.type===e.Fragment&&null==D.key?D.props.children:D,s,c,l,i,p,h)),H}finally{m&&m(i),i.__=null,g&&g(i)}}}D=null!=D&&D.type===e.Fragment&&null==D.key&&null==D.props.tpl?D.props.children:D;try{var B=F(D,s,c,l,i,p,h);return m&&m(i),i.__=null,e.options.unmount&&e.options.unmount(i),B}catch(t){if(!p&&h&&h.onError){var I=h.onError(t,i,function(e){return F(e,s,c,l,i,p,h)});if(void 0!==I)return I;var N=e.options.__e;return N&&N(t,i),""}if(!p)throw t;if(!t||"function"!=typeof t.then)throw t;var O=function e(){try{return F(D,s,c,l,i,p,h)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return F(D,s,c,l,i,p,h)},function(){return e()})}};return t.then(function(){return O()})}}var R,V="<"+M,K="";for(var G in P){var J=P[G];switch(G){case"children":R=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;G="for";break;case"className":if("class"in P)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",M){case"textarea":R=J;continue;case"select":l=J;continue;case"option":l!=J||"selected"in P||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=u(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(n.test(G))G=G.replace(n,"$1:$2").toLowerCase();else{if(t.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?c?o.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):r.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+a(J+"")+'"')}if(t.test(M))throw new Error(M+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof R?K=a(R):null!=R&&!1!==R&&!0!==R&&(K=F(R,s,"svg"===M||"foreignObject"!==M&&c,l,i,p,h))),m&&m(i),i.__=null,g&&g(i),!K&&L.has(M))return V+"/>";var Q="</"+M+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),T=w,E=w;exports.default=w,exports.render=T,exports.renderToStaticMarkup=E,exports.renderToString=w,exports.renderToStringAsync=function(t,n){try{var r,o=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var i=e.h(e.Fragment,null);return i.__k=[t],Promise.resolve(_(function(){var e=F(t,n||C,!1,void 0,i,!0,void 0),o=function(){if(Array.isArray(e)){var t=function(){var e=o.join("");return r=1,e},n=0,o=e,i=d(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(t):t()}}();return o&&o.then?o.then(function(t){return r?t:e}):r?o:e},function(n,r){if(e.options.__c&&e.options.__c(t,b),e.options.__s=o,b.length=0,n)throw r;return r}))}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|spellC|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=/["&<]/;function a(e){if(0===e.length||!1===i.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 s={},c=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"]),l=/[A-Z]/g;function u(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:s[n]||(s[n]=n.replace(l,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||c.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function f(e,t,n){if(!e.s){if(n instanceof p){if(!n.s)return void(n.o=f.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(f.bind(null,e,t),f.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var p=/*#__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{f(r,1,i(this.v))}catch(e){f(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?f(r,1,t?t(o):o):n?f(r,1,n(o)):f(r,2,o)}catch(e){f(r,2,e)}},r},e}();function h(e){return e instanceof p&&1&e.s}function d(e,t,n){for(var r;;){var o=e();if(h(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!h(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!h(a)){r=2;break}}}var s=new p,c=f.bind(null,s,2);return(0===r?o.then(u):1===r?i.then(l):a.then(d)).then(void 0,c),s;function l(r){i=r;do{if(t&&(a=t())&&a.then&&!h(a))return void a.then(d).then(void 0,c);if(!(o=e())||h(o)&&!o.v)return void f(s,1,i);if(o.then)return void o.then(u).then(void 0,c);h(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):f(s,1,i)}function d(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):f(s,1,i)}}function _(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 v,m,y,g,b=[],k=Array.isArray,x=Object.assign;function w(t,n,r){var o=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{var a=F(t,n||C,!1,void 0,i,!1,r);return Array.isArray(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 A(){this.__d=!0}var C={};function S(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=C),null==n.__s&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=x({},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(),y&&y(e),n.render(n.props,n.state,t)}function F(i,s,c,l,f,p,h){if(null==i||!0===i||!1===i||""===i)return"";if("object"!=typeof i)return"function"==typeof i?"":a(i+"");if(k(i)){var d,_="";f.__k=i;for(var b=0;b<i.length;b++){var w=i[b];if(null!=w&&"boolean"!=typeof w){var C,T=F(w,s,c,l,f,p,h);"string"==typeof T?_+=T:(d=d||[],_&&d.push(_),_="",Array.isArray(T)?(C=d).push.apply(C,T):d.push(T))}}return d?(_&&d.push(_),d):_}if(void 0!==i.constructor)return"";i.__=f,v&&v(i);var E,j,D,M=i.type,P=i.props,U=s;if("function"==typeof M){if(M===e.Fragment){if(P.tpl){for(var Z="",W=0;W<P.tpl.length;W++)if(Z+=P.tpl[W],P.exprs&&W<P.exprs.length){var $=P.exprs[W];if(null==$)continue;"object"!=typeof $||void 0!==$.constructor&&!k($)?Z+=$:Z+=F($,s,c,l,i,p,h)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+a(P.UNSTABLE_comment||"")+"--\x3e";j=P.children}else{if(null!=(E=M.contextType)){var q=s[E.__c];U=q?q.props.value:E.__}if(M.prototype&&"function"==typeof M.prototype.render)j=S(i,U),D=i.__c;else{i.__c=D={__v:i,props:P,context:U,setState:A,forceUpdate:A,__d:!0,__h:[]};for(var z=0;D.__d&&z++<25;)D.__d=!1,y&&y(i),j=M.call(D,P,U);D.__d=!0}if(null!=D.getChildContext&&(s=x({},s,D.getChildContext())),(M.getDerivedStateFromError||D.componentDidCatch)&&e.options.errorBoundaries){var H="";j=null!=j&&j.type===e.Fragment&&null==j.key?j.props.children:j;try{return H=F(j,s,c,l,i,p,h)}catch(t){return M.getDerivedStateFromError&&(D.__s=M.getDerivedStateFromError(t)),D.componentDidCatch&&D.componentDidCatch(t,{}),D.__d&&(j=S(i,s),null!=(D=i.__c).getChildContext&&(s=x({},s,D.getChildContext())),H=F(j=null!=j&&j.type===e.Fragment&&null==j.key?j.props.children:j,s,c,l,i,p,h)),H}finally{m&&m(i),i.__=null,g&&g(i)}}}j=null!=j&&j.type===e.Fragment&&null==j.key&&null==j.props.tpl?j.props.children:j;try{var B=F(j,s,c,l,i,p,h);return m&&m(i),i.__=null,e.options.unmount&&e.options.unmount(i),B}catch(t){if(!p&&h&&h.onError){var I=h.onError(t,i,function(e){return F(e,s,c,l,i,p,h)});if(void 0!==I)return I;var N=e.options.__e;return N&&N(t,i),""}if(!p)throw t;if(!t||"function"!=typeof t.then)throw t;var O=function e(){try{return F(j,s,c,l,i,p,h)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return F(j,s,c,l,i,p,h)},function(){return e()})}};return t.then(function(){return O()})}}var R,V="<"+M,K="";for(var G in P){var J=P[G];switch(G){case"children":R=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;G="for";break;case"className":if("class"in P)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",M){case"textarea":R=J;continue;case"select":l=J;continue;case"option":l!=J||"selected"in P||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=u(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(n.test(G))G=G.replace(n,"$1:$2").toLowerCase();else{if(t.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?c?o.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):r.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+a(J+"")+'"')}if(t.test(M))throw new Error(M+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof R?K=a(R):null!=R&&!1!==R&&!0!==R&&(K=F(R,s,"svg"===M||"foreignObject"!==M&&c,l,i,p,h))),m&&m(i),i.__=null,g&&g(i),!K&&L.has(M))return V+"/>";var Q="</"+M+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),T=w,E=w;exports.default=w,exports.render=T,exports.renderToStaticMarkup=E,exports.renderToString=w,exports.renderToStringAsync=function(t,n){try{var r,o=e.options.__s;e.options.__s=!0,v=e.options.__b,m=e.options.diffed,y=e.options.__r,g=e.options.unmount;var i=e.h(e.Fragment,null);return i.__k=[t],Promise.resolve(_(function(){var e=F(t,n||C,!1,void 0,i,!0,void 0),o=function(){if(Array.isArray(e)){var t=function(){var e=o.join("");return r=1,e},n=0,o=e,i=d(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(t):t()}}();return o&&o.then?o.then(function(t){return r?t:e}):r?o:e},function(n,r){if(e.options.__c&&e.options.__c(t,b),e.options.__s=o,b.length=0,n)throw r;return r}))}catch(e){return Promise.reject(e)}};
//# 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])/,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|spellC|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 s(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 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 r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:l[r]||(l[r]=r.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function h(e,t,r){if(!e.s){if(r instanceof d){if(!r.s)return void(r.o=h.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(h.bind(null,e,t),h.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}var d=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,r){var n=new e,o=this.s;if(o){var i=1&o?t:r;if(i){try{h(n,1,i(this.v))}catch(e){h(n,2,e)}return n}return this}return this.o=function(e){try{var o=e.v;1&e.s?h(n,1,t?t(o):o):r?h(n,1,r(o)):h(n,2,o)}catch(e){h(n,2,e)}},n},e}();function _(e){return e instanceof d&&1&e.s}function v(e,t,r){for(var n;;){var o=e();if(_(o)&&(o=o.v),!o)return i;if(o.then){n=0;break}var i=r();if(i&&i.then){if(!_(i)){n=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!_(a)){n=2;break}}}var c=new d,s=h.bind(null,c,2);return(0===n?o.then(u):1===n?i.then(l):a.then(f)).then(void 0,s),c;function l(n){i=n;do{if(t&&(a=t())&&a.then&&!_(a))return void a.then(f).then(void 0,s);if(!(o=e())||_(o)&&!o.v)return void h(c,1,i);if(o.then)return void o.then(u).then(void 0,s);_(i=r())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,s)}function u(e){e?(i=r())&&i.then?i.then(l).then(void 0,s):l(i):h(c,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,s):u(o):h(c,1,i)}}function m(e,t){try{var r=e()}catch(e){return t(!0,e)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,r)}var y,g,b,k,x=function(n,o){try{var i,a=e.__s;e.__s=!0,y=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var c=t(r,null);return c.__k=[n],Promise.resolve(m(function(){var e=D(n,o||E,!1,void 0,c,!0,void 0),t=function(){if(Array.isArray(e)){var t=function(){var e=n.join("");return i=1,e},r=0,n=e,o=v(function(){return!!n.some(function(e){return"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(n)).then(function(e){n=e.flat()})});return o&&o.then?o.then(t):t()}}();return t&&t.then?t.then(function(t){return i?t:e}):i?t:e},function(t,r){if(e.__c&&e.__c(n,w),e.__s=a,w.length=0,t)throw r;return r}))}catch(e){return Promise.reject(e)}},w=[],A=Array.isArray,C=Object.assign;function S(n,o,i){var a=e.__s;e.__s=!0,y=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var c=t(r,null);c.__k=[n];try{return D(n,o||E,!1,void 0,c,!1,i)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,w),e.__s=a,w.length=0}}function L(){this.__d=!0}var E={};function T(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=E),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(),b&&b(e),r.render(r.props,r.state,t)}function D(t,c,l,u,f,h,d){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t+"");if(A(t)){var _,v="";f.__k=t;for(var m=0;m<t.length;m++){var x=t[m];if(null!=x&&"boolean"!=typeof x){var w,S=D(x,c,l,u,f,h,d);"string"==typeof S?v+=S:(_=_||[],v&&_.push(v),v="",Array.isArray(S)?(w=_).push.apply(w,S):_.push(S))}}return _?(v&&_.push(v),_):v}if(void 0!==t.constructor)return"";t.__=f,y&&y(t);var E,P,U,Z=t.type,F=t.props,M=c;if("function"==typeof Z){if(Z===r){if(F.tpl){for(var W="",$=0;$<F.tpl.length;$++)if(W+=F.tpl[$],F.exprs&&$<F.exprs.length){var z=F.exprs[$];if(null==z)continue;"object"!=typeof z||void 0!==z.constructor&&!A(z)?W+=z:W+=D(z,c,l,u,t,h,d)}return W}if(F.UNSTABLE_comment)return"\x3c!--"+s(F.UNSTABLE_comment||"")+"--\x3e";P=F.children}else{if(null!=(E=Z.contextType)){var H=c[E.__c];M=H?H.props.value:E.__}if(Z.prototype&&"function"==typeof Z.prototype.render)P=T(t,M),U=t.__c;else{t.__c=U={__v:t,props:F,context:M,setState:L,forceUpdate:L,__d:!0,__h:[]};for(var q=0;U.__d&&q++<25;)U.__d=!1,b&&b(t),P=Z.call(U,F,M);U.__d=!0}if(null!=U.getChildContext&&(c=C({},c,U.getChildContext())),(Z.getDerivedStateFromError||U.componentDidCatch)&&e.errorBoundaries){var B="";P=null!=P&&P.type===r&&null==P.key?P.props.children:P;try{return B=D(P,c,l,u,t,h,d)}catch(e){return Z.getDerivedStateFromError&&(U.__s=Z.getDerivedStateFromError(e)),U.componentDidCatch&&U.componentDidCatch(e,{}),U.__d&&(P=T(t,c),null!=(U=t.__c).getChildContext&&(c=C({},c,U.getChildContext())),B=D(P=null!=P&&P.type===r&&null==P.key?P.props.children:P,c,l,u,t,h,d)),B}finally{g&&g(t),t.__=null,k&&k(t)}}}P=null!=P&&P.type===r&&null==P.key&&null==P.props.tpl?P.props.children:P;try{var I=D(P,c,l,u,t,h,d);return g&&g(t),t.__=null,e.unmount&&e.unmount(t),I}catch(r){if(!h&&d&&d.onError){var N=d.onError(r,t,function(e){return D(e,c,l,u,t,h,d)});if(void 0!==N)return N;var O=e.__e;return O&&O(r,t),""}if(!h)throw r;if(!r||"function"!=typeof r.then)throw r;var R=function e(){try{return D(P,c,l,u,t,h,d)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return D(P,c,l,u,t,h,d)},function(){return e()})}};return r.then(function(){return R()})}}var V,K="<"+Z,G="";for(var J in F){var Q=F[J];switch(J){case"children":V=Q;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in F)continue;J="for";break;case"className":if("class"in F)continue;J="class";break;case"defaultChecked":J="checked";break;case"defaultSelected":J="selected";break;case"defaultValue":case"value":switch(J="value",Z){case"textarea":V=Q;continue;case"select":u=Q;continue;case"option":u!=Q||"selected"in F||(K+=" selected")}break;case"dangerouslySetInnerHTML":G=Q&&Q.__html;continue;case"style":"object"==typeof Q&&(Q=p(Q));break;case"acceptCharset":J="accept-charset";break;case"httpEquiv":J="http-equiv";break;default:if(o.test(J))J=J.replace(o,"$1:$2").toLowerCase();else{if(n.test(J))continue;"-"!==J[4]&&"draggable"!==J||null==Q?l?a.test(J)&&(J="panose1"===J?"panose-1":J.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(J)&&(J=J.toLowerCase()):Q+=""}}null!=Q&&!1!==Q&&"function"!=typeof Q&&(K=!0===Q||""===Q?K+" "+J:K+" "+J+'="'+s(Q+"")+'"')}if(n.test(Z))throw new Error(Z+" is not a valid HTML tag name in "+K+">");if(G||("string"==typeof V?G=s(V):null!=V&&!1!==V&&!0!==V&&(G=D(V,c,"svg"===Z||"foreignObject"!==Z&&l,u,t,h,d))),g&&g(t),t.__=null,k&&k(t),!G&&j.has(Z))return K+"/>";var X="</"+Z+">",Y=K+">";return Array.isArray(G)?[Y].concat(G,[X]):"string"!=typeof G?[Y,G,X]:Y+G+X}var j=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),P=S,U=S;export default S;export{P as render,U as renderToStaticMarkup,S as renderToString,x as renderToStringAsync};
import{options as e,h as t,Fragment as r}from"preact";var n=/[\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|spellC|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 s(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 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 r in e){var n=e[r];if(null!=n&&""!==n){var o="-"==r[0]?r:l[r]||(l[r]=r.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}function h(e,t,r){if(!e.s){if(r instanceof d){if(!r.s)return void(r.o=h.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(h.bind(null,e,t),h.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}var d=/*#__PURE__*/function(){function e(){}return e.prototype.then=function(t,r){var n=new e,o=this.s;if(o){var i=1&o?t:r;if(i){try{h(n,1,i(this.v))}catch(e){h(n,2,e)}return n}return this}return this.o=function(e){try{var o=e.v;1&e.s?h(n,1,t?t(o):o):r?h(n,1,r(o)):h(n,2,o)}catch(e){h(n,2,e)}},n},e}();function _(e){return e instanceof d&&1&e.s}function v(e,t,r){for(var n;;){var o=e();if(_(o)&&(o=o.v),!o)return i;if(o.then){n=0;break}var i=r();if(i&&i.then){if(!_(i)){n=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!_(a)){n=2;break}}}var c=new d,s=h.bind(null,c,2);return(0===n?o.then(u):1===n?i.then(l):a.then(f)).then(void 0,s),c;function l(n){i=n;do{if(t&&(a=t())&&a.then&&!_(a))return void a.then(f).then(void 0,s);if(!(o=e())||_(o)&&!o.v)return void h(c,1,i);if(o.then)return void o.then(u).then(void 0,s);_(i=r())&&(i=i.v)}while(!i||!i.then);i.then(l).then(void 0,s)}function u(e){e?(i=r())&&i.then?i.then(l).then(void 0,s):l(i):h(c,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,s):u(o):h(c,1,i)}}function y(e,t){try{var r=e()}catch(e){return t(!0,e)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,r)}var m,g,b,k,x=function(n,o){try{var i,a=e.__s;e.__s=!0,m=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var c=t(r,null);return c.__k=[n],Promise.resolve(y(function(){var e=j(n,o||E,!1,void 0,c,!0,void 0),t=function(){if(Array.isArray(e)){var t=function(){var e=n.join("");return i=1,e},r=0,n=e,o=v(function(){return!!n.some(function(e){return"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(n)).then(function(e){n=e.flat()})});return o&&o.then?o.then(t):t()}}();return t&&t.then?t.then(function(t){return i?t:e}):i?t:e},function(t,r){if(e.__c&&e.__c(n,w),e.__s=a,w.length=0,t)throw r;return r}))}catch(e){return Promise.reject(e)}},w=[],A=Array.isArray,C=Object.assign;function S(n,o,i){var a=e.__s;e.__s=!0,m=e.__b,g=e.diffed,b=e.__r,k=e.unmount;var c=t(r,null);c.__k=[n];try{var s=j(n,o||E,!1,void 0,c,!1,i);return Array.isArray(s)?s.join(""):s}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,w),e.__s=a,w.length=0}}function L(){this.__d=!0}var E={};function T(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=E),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(),b&&b(e),r.render(r.props,r.state,t)}function j(t,c,l,u,f,h,d){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t+"");if(A(t)){var _,v="";f.__k=t;for(var y=0;y<t.length;y++){var x=t[y];if(null!=x&&"boolean"!=typeof x){var w,S=j(x,c,l,u,f,h,d);"string"==typeof S?v+=S:(_=_||[],v&&_.push(v),v="",Array.isArray(S)?(w=_).push.apply(w,S):_.push(S))}}return _?(v&&_.push(v),_):v}if(void 0!==t.constructor)return"";t.__=f,m&&m(t);var E,P,U,Z=t.type,F=t.props,M=c;if("function"==typeof Z){if(Z===r){if(F.tpl){for(var W="",$=0;$<F.tpl.length;$++)if(W+=F.tpl[$],F.exprs&&$<F.exprs.length){var z=F.exprs[$];if(null==z)continue;"object"!=typeof z||void 0!==z.constructor&&!A(z)?W+=z:W+=j(z,c,l,u,t,h,d)}return W}if(F.UNSTABLE_comment)return"\x3c!--"+s(F.UNSTABLE_comment||"")+"--\x3e";P=F.children}else{if(null!=(E=Z.contextType)){var H=c[E.__c];M=H?H.props.value:E.__}if(Z.prototype&&"function"==typeof Z.prototype.render)P=T(t,M),U=t.__c;else{t.__c=U={__v:t,props:F,context:M,setState:L,forceUpdate:L,__d:!0,__h:[]};for(var q=0;U.__d&&q++<25;)U.__d=!1,b&&b(t),P=Z.call(U,F,M);U.__d=!0}if(null!=U.getChildContext&&(c=C({},c,U.getChildContext())),(Z.getDerivedStateFromError||U.componentDidCatch)&&e.errorBoundaries){var B="";P=null!=P&&P.type===r&&null==P.key?P.props.children:P;try{return B=j(P,c,l,u,t,h,d)}catch(e){return Z.getDerivedStateFromError&&(U.__s=Z.getDerivedStateFromError(e)),U.componentDidCatch&&U.componentDidCatch(e,{}),U.__d&&(P=T(t,c),null!=(U=t.__c).getChildContext&&(c=C({},c,U.getChildContext())),B=j(P=null!=P&&P.type===r&&null==P.key?P.props.children:P,c,l,u,t,h,d)),B}finally{g&&g(t),t.__=null,k&&k(t)}}}P=null!=P&&P.type===r&&null==P.key&&null==P.props.tpl?P.props.children:P;try{var I=j(P,c,l,u,t,h,d);return g&&g(t),t.__=null,e.unmount&&e.unmount(t),I}catch(r){if(!h&&d&&d.onError){var N=d.onError(r,t,function(e){return j(e,c,l,u,t,h,d)});if(void 0!==N)return N;var O=e.__e;return O&&O(r,t),""}if(!h)throw r;if(!r||"function"!=typeof r.then)throw r;var R=function e(){try{return j(P,c,l,u,t,h,d)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return j(P,c,l,u,t,h,d)},function(){return e()})}};return r.then(function(){return R()})}}var V,K="<"+Z,G="";for(var J in F){var Q=F[J];switch(J){case"children":V=Q;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in F)continue;J="for";break;case"className":if("class"in F)continue;J="class";break;case"defaultChecked":J="checked";break;case"defaultSelected":J="selected";break;case"defaultValue":case"value":switch(J="value",Z){case"textarea":V=Q;continue;case"select":u=Q;continue;case"option":u!=Q||"selected"in F||(K+=" selected")}break;case"dangerouslySetInnerHTML":G=Q&&Q.__html;continue;case"style":"object"==typeof Q&&(Q=p(Q));break;case"acceptCharset":J="accept-charset";break;case"httpEquiv":J="http-equiv";break;default:if(o.test(J))J=J.replace(o,"$1:$2").toLowerCase();else{if(n.test(J))continue;"-"!==J[4]&&"draggable"!==J||null==Q?l?a.test(J)&&(J="panose1"===J?"panose-1":J.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(J)&&(J=J.toLowerCase()):Q+=""}}null!=Q&&!1!==Q&&"function"!=typeof Q&&(K=!0===Q||""===Q?K+" "+J:K+" "+J+'="'+s(Q+"")+'"')}if(n.test(Z))throw new Error(Z+" is not a valid HTML tag name in "+K+">");if(G||("string"==typeof V?G=s(V):null!=V&&!1!==V&&!0!==V&&(G=j(V,c,"svg"===Z||"foreignObject"!==Z&&l,u,t,h,d))),g&&g(t),t.__=null,k&&k(t),!G&&D.has(Z))return K+"/>";var X="</"+Z+">",Y=K+">";return Array.isArray(G)?[Y].concat(G,[X]):"string"!=typeof G?[Y,G,X]:Y+G+X}var D=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),P=S,U=S;export default S;export{P as render,U as renderToStaticMarkup,S as renderToString,x 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|spellC|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=/["&<]/;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 f(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 p(e,t,n){if(!e.s){if(n instanceof h){if(!n.s)return void(n.o=p.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(p.bind(null,e,t),p.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var h=/*#__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{p(r,1,i(this.v))}catch(e){p(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?p(r,1,t?t(o):o):n?p(r,1,n(o)):p(r,2,o)}catch(e){p(r,2,e)}},r},e}();function d(e){return e instanceof h&&1&e.s}function _(e,t,n){for(var r;;){var o=e();if(d(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!d(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!d(a)){r=2;break}}}var s=new h,c=p.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&&!d(a))return void a.then(f).then(void 0,c);if(!(o=e())||d(o)&&!o.v)return void p(s,1,i);if(o.then)return void o.then(u).then(void 0,c);d(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):p(s,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):p(s,1,i)}}function v(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 m,y,g,b,k=[],x=Array.isArray,w=Object.assign;function A(e,n,r){var o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{return F(e,n||S,!1,void 0,i,!1,r)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0}}function C(){this.__d=!0}var S={};function T(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=w({},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(),g&&g(e),n.render(n.props,n.state,t)}function F(e,a,c,l,u,p,h){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":s(e+"");if(x(e)){var d,_="";u.__k=e;for(var v=0;v<e.length;v++){var k=e[v];if(null!=k&&"boolean"!=typeof k){var A,S=F(k,a,c,l,u,p,h);"string"==typeof S?_+=S:(d=d||[],_&&d.push(_),_="",Array.isArray(S)?(A=d).push.apply(A,S):d.push(S))}}return d?(_&&d.push(_),d):_}if(void 0!==e.constructor)return"";e.__=u,m&&m(e);var E,j,D,M=e.type,P=e.props,U=a;if("function"==typeof M){if(M===t.Fragment){if(P.tpl){for(var Z="",W=0;W<P.tpl.length;W++)if(Z+=P.tpl[W],P.exprs&&W<P.exprs.length){var $=P.exprs[W];if(null==$)continue;"object"!=typeof $||void 0!==$.constructor&&!x($)?Z+=$:Z+=F($,a,c,l,e,p,h)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+s(P.UNSTABLE_comment||"")+"--\x3e";j=P.children}else{if(null!=(E=M.contextType)){var q=a[E.__c];U=q?q.props.value:E.__}if(M.prototype&&"function"==typeof M.prototype.render)j=T(e,U),D=e.__c;else{e.__c=D={__v:e,props:P,context:U,setState:C,forceUpdate:C,__d:!0,__h:[]};for(var z=0;D.__d&&z++<25;)D.__d=!1,g&&g(e),j=M.call(D,P,U);D.__d=!0}if(null!=D.getChildContext&&(a=w({},a,D.getChildContext())),(M.getDerivedStateFromError||D.componentDidCatch)&&t.options.errorBoundaries){var H="";j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j;try{return H=F(j,a,c,l,e,p,h)}catch(n){return M.getDerivedStateFromError&&(D.__s=M.getDerivedStateFromError(n)),D.componentDidCatch&&D.componentDidCatch(n,{}),D.__d&&(j=T(e,a),null!=(D=e.__c).getChildContext&&(a=w({},a,D.getChildContext())),H=F(j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j,a,c,l,e,p,h)),H}finally{y&&y(e),e.__=null,b&&b(e)}}}j=null!=j&&j.type===t.Fragment&&null==j.key&&null==j.props.tpl?j.props.children:j;try{var B=F(j,a,c,l,e,p,h);return y&&y(e),e.__=null,t.options.unmount&&t.options.unmount(e),B}catch(n){if(!p&&h&&h.onError){var I=h.onError(n,e,function(t){return F(t,a,c,l,e,p,h)});if(void 0!==I)return I;var N=t.options.__e;return N&&N(n,e),""}if(!p)throw n;if(!n||"function"!=typeof n.then)throw n;var O=function t(){try{return F(j,a,c,l,e,p,h)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return F(j,a,c,l,e,p,h)},function(){return t()})}};return n.then(function(){return O()})}}var R,V="<"+M,K="";for(var G in P){var J=P[G];switch(G){case"children":R=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;G="for";break;case"className":if("class"in P)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",M){case"textarea":R=J;continue;case"select":l=J;continue;case"option":l!=J||"selected"in P||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=f(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(r.test(G))G=G.replace(r,"$1:$2").toLowerCase();else{if(n.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?c?i.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+s(J+"")+'"')}if(n.test(M))throw new Error(M+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof R?K=s(R):null!=R&&!1!==R&&!0!==R&&(K=F(R,a,"svg"===M||"foreignObject"!==M&&c,l,e,p,h))),y&&y(e),e.__=null,b&&b(e),!K&&L.has(M))return V+"/>";var Q="</"+M+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),E=A,j=A;e.default=A,e.render=E,e.renderToStaticMarkup=j,e.renderToString=A,e.renderToStringAsync=function(e,n){try{var r,o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);return i.__k=[e],Promise.resolve(v(function(){var t=F(e,n||S,!1,void 0,i,!0,void 0),o=function(){if(Array.isArray(t)){var e=function(){var e=o.join("");return r=1,e},n=0,o=t,i=_(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(e):e()}}();return o&&o.then?o.then(function(e){return r?e:t}):r?o:t},function(n,r){if(t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0,n)throw r;return r}))}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|spellC|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=/["&<]/;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 f(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 p(e,t,n){if(!e.s){if(n instanceof h){if(!n.s)return void(n.o=p.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(p.bind(null,e,t),p.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var h=/*#__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{p(r,1,i(this.v))}catch(e){p(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?p(r,1,t?t(o):o):n?p(r,1,n(o)):p(r,2,o)}catch(e){p(r,2,e)}},r},e}();function d(e){return e instanceof h&&1&e.s}function _(e,t,n){for(var r;;){var o=e();if(d(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!d(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!d(a)){r=2;break}}}var s=new h,c=p.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&&!d(a))return void a.then(f).then(void 0,c);if(!(o=e())||d(o)&&!o.v)return void p(s,1,i);if(o.then)return void o.then(u).then(void 0,c);d(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):p(s,1,i)}function f(){(o=e())?o.then?o.then(u).then(void 0,c):u(o):p(s,1,i)}}function v(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 m,y,g,b,k=[],x=Array.isArray,w=Object.assign;function A(e,n,r){var o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{var a=F(e,n||S,!1,void 0,i,!1,r);return Array.isArray(a)?a.join(""):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0}}function C(){this.__d=!0}var S={};function T(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=w({},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(),g&&g(e),n.render(n.props,n.state,t)}function F(e,a,c,l,u,p,h){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":s(e+"");if(x(e)){var d,_="";u.__k=e;for(var v=0;v<e.length;v++){var k=e[v];if(null!=k&&"boolean"!=typeof k){var A,S=F(k,a,c,l,u,p,h);"string"==typeof S?_+=S:(d=d||[],_&&d.push(_),_="",Array.isArray(S)?(A=d).push.apply(A,S):d.push(S))}}return d?(_&&d.push(_),d):_}if(void 0!==e.constructor)return"";e.__=u,m&&m(e);var E,j,D,M=e.type,P=e.props,U=a;if("function"==typeof M){if(M===t.Fragment){if(P.tpl){for(var Z="",W=0;W<P.tpl.length;W++)if(Z+=P.tpl[W],P.exprs&&W<P.exprs.length){var $=P.exprs[W];if(null==$)continue;"object"!=typeof $||void 0!==$.constructor&&!x($)?Z+=$:Z+=F($,a,c,l,e,p,h)}return Z}if(P.UNSTABLE_comment)return"\x3c!--"+s(P.UNSTABLE_comment||"")+"--\x3e";j=P.children}else{if(null!=(E=M.contextType)){var q=a[E.__c];U=q?q.props.value:E.__}if(M.prototype&&"function"==typeof M.prototype.render)j=T(e,U),D=e.__c;else{e.__c=D={__v:e,props:P,context:U,setState:C,forceUpdate:C,__d:!0,__h:[]};for(var z=0;D.__d&&z++<25;)D.__d=!1,g&&g(e),j=M.call(D,P,U);D.__d=!0}if(null!=D.getChildContext&&(a=w({},a,D.getChildContext())),(M.getDerivedStateFromError||D.componentDidCatch)&&t.options.errorBoundaries){var H="";j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j;try{return H=F(j,a,c,l,e,p,h)}catch(n){return M.getDerivedStateFromError&&(D.__s=M.getDerivedStateFromError(n)),D.componentDidCatch&&D.componentDidCatch(n,{}),D.__d&&(j=T(e,a),null!=(D=e.__c).getChildContext&&(a=w({},a,D.getChildContext())),H=F(j=null!=j&&j.type===t.Fragment&&null==j.key?j.props.children:j,a,c,l,e,p,h)),H}finally{y&&y(e),e.__=null,b&&b(e)}}}j=null!=j&&j.type===t.Fragment&&null==j.key&&null==j.props.tpl?j.props.children:j;try{var B=F(j,a,c,l,e,p,h);return y&&y(e),e.__=null,t.options.unmount&&t.options.unmount(e),B}catch(n){if(!p&&h&&h.onError){var I=h.onError(n,e,function(t){return F(t,a,c,l,e,p,h)});if(void 0!==I)return I;var N=t.options.__e;return N&&N(n,e),""}if(!p)throw n;if(!n||"function"!=typeof n.then)throw n;var O=function t(){try{return F(j,a,c,l,e,p,h)}catch(n){if(!n||"function"!=typeof n.then)throw n;return n.then(function(){return F(j,a,c,l,e,p,h)},function(){return t()})}};return n.then(function(){return O()})}}var R,V="<"+M,K="";for(var G in P){var J=P[G];switch(G){case"children":R=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in P)continue;G="for";break;case"className":if("class"in P)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",M){case"textarea":R=J;continue;case"select":l=J;continue;case"option":l!=J||"selected"in P||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=f(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(r.test(G))G=G.replace(r,"$1:$2").toLowerCase();else{if(n.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?c?i.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+s(J+"")+'"')}if(n.test(M))throw new Error(M+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof R?K=s(R):null!=R&&!1!==R&&!0!==R&&(K=F(R,a,"svg"===M||"foreignObject"!==M&&c,l,e,p,h))),y&&y(e),e.__=null,b&&b(e),!K&&L.has(M))return V+"/>";var Q="</"+M+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),E=A,j=A;e.default=A,e.render=E,e.renderToStaticMarkup=j,e.renderToString=A,e.renderToStringAsync=function(e,n){try{var r,o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);return i.__k=[e],Promise.resolve(v(function(){var t=F(e,n||S,!1,void 0,i,!0,void 0),o=function(){if(Array.isArray(t)){var e=function(){var e=o.join("");return r=1,e},n=0,o=t,i=_(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(e):e()}}();return o&&o.then?o.then(function(e){return r?e:t}):r?o:t},function(n,r){if(t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0,n)throw r;return r}))}catch(e){return Promise.reject(e)}}});
//# sourceMappingURL=index.umd.js.map

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

try {
return _renderToString(vnode, context || EMPTY_OBJ, false, undefined, parent, false, _rendererState);
const rendered = _renderToString(vnode, context || EMPTY_OBJ, false, undefined, parent, false, _rendererState);
if (Array.isArray(rendered)) {
return rendered.join('');
}
return rendered;
} catch (e) {

@@ -140,0 +146,0 @@ if (e.then) {

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

try {
return _renderToString(vnode, context || EMPTY_OBJ, false, undefined, parent, false, _rendererState);
const rendered = _renderToString(vnode, context || EMPTY_OBJ, false, undefined, parent, false, _rendererState);
if (Array.isArray(rendered)) {
return rendered.join('');
}
return rendered;
} catch (e) {

@@ -140,0 +146,0 @@ if (e.then) {

@@ -139,3 +139,9 @@ (function (global, factory) {

try {
return _renderToString(vnode, context || EMPTY_OBJ, false, undefined, parent, false, _rendererState);
const rendered = _renderToString(vnode, context || EMPTY_OBJ, false, undefined, parent, false, _rendererState);
if (Array.isArray(rendered)) {
return rendered.join('');
}
return rendered;
} catch (e) {

@@ -142,0 +148,0 @@ if (e.then) {

@@ -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|spellC|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=/["&<]/;function a(e){if(0===e.length||!1===i.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={},s=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 l(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("--")||s.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}var p,f,d,h,v=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},_=[],m=Array.isArray,y=Object.assign;function g(t,r,n){var o=e.options.__s;e.options.__s=!0,p=e.options.__b,f=e.options.diffed,d=e.options.__r,h=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{return k(t,r||x,!1,void 0,i,!1,n)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options.__c&&e.options.__c(t,_),e.options.__s=o,_.length=0}}function b(){this.__d=!0}var x={};function w(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=y({},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(),d&&d(e),r.render(r.props,r.state,t)}function k(i,c,s,u,v,_,g){if(null==i||!0===i||!1===i||""===i)return"";if("object"!=typeof i)return"function"==typeof i?"":a(i+"");if(m(i)){var x,C="";v.__k=i;for(var A=0;A<i.length;A++){var E=i[A];if(null!=E&&"boolean"!=typeof E){var P,j=k(E,c,s,u,v,_,g);"string"==typeof j?C+=j:(x=x||[],C&&x.push(C),C="",Array.isArray(j)?(P=x).push.apply(P,j):x.push(j))}}return x?(C&&x.push(C),x):C}if(void 0!==i.constructor)return"";i.__=v,p&&p(i);var O,F,L,T=i.type,D=i.props,R=c;if("function"==typeof T){if(T===e.Fragment){if(D.tpl){for(var W="",M=0;M<D.tpl.length;M++)if(W+=D.tpl[M],D.exprs&&M<D.exprs.length){var N=D.exprs[M];if(null==N)continue;"object"!=typeof N||void 0!==N.constructor&&!m(N)?W+=N:W+=k(N,c,s,u,i,_,g)}return W}if(D.UNSTABLE_comment)return"\x3c!--"+a(D.UNSTABLE_comment||"")+"--\x3e";F=D.children}else{if(null!=(O=T.contextType)){var U=c[O.__c];R=U?U.props.value:O.__}if(T.prototype&&"function"==typeof T.prototype.render)F=w(i,R),L=i.__c;else{i.__c=L={__v:i,props:D,context:R,setState:b,forceUpdate:b,__d:!0,__h:[]};for(var Z=0;L.__d&&Z++<25;)L.__d=!1,d&&d(i),F=T.call(L,D,R);L.__d=!0}if(null!=L.getChildContext&&(c=y({},c,L.getChildContext())),(T.getDerivedStateFromError||L.componentDidCatch)&&e.options.errorBoundaries){var q="";F=null!=F&&F.type===e.Fragment&&null==F.key?F.props.children:F;try{return q=k(F,c,s,u,i,_,g)}catch(t){return T.getDerivedStateFromError&&(L.__s=T.getDerivedStateFromError(t)),L.componentDidCatch&&L.componentDidCatch(t,{}),L.__d&&(F=w(i,c),null!=(L=i.__c).getChildContext&&(c=y({},c,L.getChildContext())),q=k(F=null!=F&&F.type===e.Fragment&&null==F.key?F.props.children:F,c,s,u,i,_,g)),q}finally{f&&f(i),i.__=null,h&&h(i)}}}F=null!=F&&F.type===e.Fragment&&null==F.key&&null==F.props.tpl?F.props.children:F;try{var $=k(F,c,s,u,i,_,g);return f&&f(i),i.__=null,e.options.unmount&&e.options.unmount(i),$}catch(t){if(!_&&g&&g.onError){var H=g.onError(t,i,function(e){return k(e,c,s,u,i,_,g)});if(void 0!==H)return H;var I=e.options.__e;return I&&I(t,i),""}if(!_)throw t;if(!t||"function"!=typeof t.then)throw t;var z=function e(){try{return k(F,c,s,u,i,_,g)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return k(F,c,s,u,i,_,g)},function(){return e()})}};return t.then(function(){return z()})}}var B,V="<"+T,K="";for(var G in D){var J=D[G];switch(G){case"children":B=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in D)continue;G="for";break;case"className":if("class"in D)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",T){case"textarea":B=J;continue;case"select":u=J;continue;case"option":u!=J||"selected"in D||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=l(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(r.test(G))G=G.replace(r,"$1:$2").toLowerCase();else{if(t.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?s?o.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):n.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+a(J+"")+'"')}if(t.test(T))throw new Error(T+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof B?K=a(B):null!=B&&!1!==B&&!0!==B&&(K=k(B,c,"svg"===T||"foreignObject"!==T&&s,u,i,_,g))),f&&f(i),i.__=null,h&&h(i),!K&&S.has(T))return V+"/>";var Q="</"+T+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var S=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function P(e,t,r){return P=E()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&A(o,r.prototype),o},P.apply(null,arguments)}function j(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function O(e){var t="function"==typeof Map?new Map:void 0;return O=function(e){if(null===e||!j(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return P(e,arguments,C(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)},O(e)}var F=function(){var e=/*#__PURE__*/function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.connectedCallback=function(){var e=this;if(e.isConnected){var t=this.getAttribute("data-target");if(t){for(var r,n,o=document.createNodeIterator(document,128);o.nextNode();){var i=o.referenceNode;if(i.data=="preact-island:"+t?r=i:i.data=="/preact-island:"+t&&(n=i),r&&n)break}if(r&&n){for(var a=n.previousSibling;a!=r&&a&&a!=r;)n.parentNode.removeChild(a),a=n.previousSibling;requestAnimationFrame(function(){for(var t=0;t<=e.children.length;t++)n.parentNode.insertBefore(e.children[t],n);e.parentNode.removeChild(e)})}}}},n}(/*#__PURE__*/O(HTMLElement));customElements.define("preact-island",e)}.toString(),L=F.slice(F.indexOf("{")+1,F.lastIndexOf("}")).replace(/\n\s+/gm,"");function T(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var D=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)}},R=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:W,suspended:[]},a=g(e,r,i);n(a);var c=i.suspended.length,s=function(){if(c>0)return n("<div hidden>"),n("<script>(function(){"+L+"}())<\/script>"),Promise.resolve(D(i)).then(function(){n("</div>")})}();return Promise.resolve(s&&s.then?s.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 i=t.__v,a=this.suspended.find(function(e){return e.id===i}),c=new v,s=this.abortSignal;s&&(s.aborted?c.resolve():s.addEventListener("abort",c.resolve));var u=e.then(function(){if(!s||!s.aborted){var e=r(t.props.children);e&&n.onWrite(T(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([u,c.promise])});var l=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+l+"\x3c!--/preact-island:"+i+"--\x3e"}}}exports.renderToReadableStream=function(e,t){var r=new v,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){R(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|spellC|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=/["&<]/;function a(e){if(0===e.length||!1===i.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={},s=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 l(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("--")||s.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}var p,f,d,h,v=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},_=[],m=Array.isArray,y=Object.assign;function g(t,r,n){var o=e.options.__s;e.options.__s=!0,p=e.options.__b,f=e.options.diffed,d=e.options.__r,h=e.options.unmount;var i=e.h(e.Fragment,null);i.__k=[t];try{var a=k(t,r||x,!1,void 0,i,!1,n);return Array.isArray(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,_),e.options.__s=o,_.length=0}}function b(){this.__d=!0}var x={};function w(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=y({},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(),d&&d(e),r.render(r.props,r.state,t)}function k(i,c,s,u,v,_,g){if(null==i||!0===i||!1===i||""===i)return"";if("object"!=typeof i)return"function"==typeof i?"":a(i+"");if(m(i)){var x,C="";v.__k=i;for(var A=0;A<i.length;A++){var E=i[A];if(null!=E&&"boolean"!=typeof E){var P,j=k(E,c,s,u,v,_,g);"string"==typeof j?C+=j:(x=x||[],C&&x.push(C),C="",Array.isArray(j)?(P=x).push.apply(P,j):x.push(j))}}return x?(C&&x.push(C),x):C}if(void 0!==i.constructor)return"";i.__=v,p&&p(i);var O,F,L,T=i.type,D=i.props,R=c;if("function"==typeof T){if(T===e.Fragment){if(D.tpl){for(var W="",M=0;M<D.tpl.length;M++)if(W+=D.tpl[M],D.exprs&&M<D.exprs.length){var N=D.exprs[M];if(null==N)continue;"object"!=typeof N||void 0!==N.constructor&&!m(N)?W+=N:W+=k(N,c,s,u,i,_,g)}return W}if(D.UNSTABLE_comment)return"\x3c!--"+a(D.UNSTABLE_comment||"")+"--\x3e";F=D.children}else{if(null!=(O=T.contextType)){var U=c[O.__c];R=U?U.props.value:O.__}if(T.prototype&&"function"==typeof T.prototype.render)F=w(i,R),L=i.__c;else{i.__c=L={__v:i,props:D,context:R,setState:b,forceUpdate:b,__d:!0,__h:[]};for(var Z=0;L.__d&&Z++<25;)L.__d=!1,d&&d(i),F=T.call(L,D,R);L.__d=!0}if(null!=L.getChildContext&&(c=y({},c,L.getChildContext())),(T.getDerivedStateFromError||L.componentDidCatch)&&e.options.errorBoundaries){var q="";F=null!=F&&F.type===e.Fragment&&null==F.key?F.props.children:F;try{return q=k(F,c,s,u,i,_,g)}catch(t){return T.getDerivedStateFromError&&(L.__s=T.getDerivedStateFromError(t)),L.componentDidCatch&&L.componentDidCatch(t,{}),L.__d&&(F=w(i,c),null!=(L=i.__c).getChildContext&&(c=y({},c,L.getChildContext())),q=k(F=null!=F&&F.type===e.Fragment&&null==F.key?F.props.children:F,c,s,u,i,_,g)),q}finally{f&&f(i),i.__=null,h&&h(i)}}}F=null!=F&&F.type===e.Fragment&&null==F.key&&null==F.props.tpl?F.props.children:F;try{var $=k(F,c,s,u,i,_,g);return f&&f(i),i.__=null,e.options.unmount&&e.options.unmount(i),$}catch(t){if(!_&&g&&g.onError){var H=g.onError(t,i,function(e){return k(e,c,s,u,i,_,g)});if(void 0!==H)return H;var I=e.options.__e;return I&&I(t,i),""}if(!_)throw t;if(!t||"function"!=typeof t.then)throw t;var z=function e(){try{return k(F,c,s,u,i,_,g)}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(function(){return k(F,c,s,u,i,_,g)},function(){return e()})}};return t.then(function(){return z()})}}var B,V="<"+T,K="";for(var G in D){var J=D[G];switch(G){case"children":B=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in D)continue;G="for";break;case"className":if("class"in D)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",T){case"textarea":B=J;continue;case"select":u=J;continue;case"option":u!=J||"selected"in D||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=l(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(r.test(G))G=G.replace(r,"$1:$2").toLowerCase();else{if(t.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?s?o.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):n.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+a(J+"")+'"')}if(t.test(T))throw new Error(T+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof B?K=a(B):null!=B&&!1!==B&&!0!==B&&(K=k(B,c,"svg"===T||"foreignObject"!==T&&s,u,i,_,g))),f&&f(i),i.__=null,h&&h(i),!K&&S.has(T))return V+"/>";var Q="</"+T+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var S=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function P(e,t,r){return P=E()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&A(o,r.prototype),o},P.apply(null,arguments)}function j(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function O(e){var t="function"==typeof Map?new Map:void 0;return O=function(e){if(null===e||!j(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return P(e,arguments,C(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)},O(e)}var F=function(){var e=/*#__PURE__*/function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.connectedCallback=function(){var e=this;if(e.isConnected){var t=this.getAttribute("data-target");if(t){for(var r,n,o=document.createNodeIterator(document,128);o.nextNode();){var i=o.referenceNode;if(i.data=="preact-island:"+t?r=i:i.data=="/preact-island:"+t&&(n=i),r&&n)break}if(r&&n){for(var a=n.previousSibling;a!=r&&a&&a!=r;)n.parentNode.removeChild(a),a=n.previousSibling;requestAnimationFrame(function(){for(var t=0;t<=e.children.length;t++)n.parentNode.insertBefore(e.children[t],n);e.parentNode.removeChild(e)})}}}},n}(/*#__PURE__*/O(HTMLElement));customElements.define("preact-island",e)}.toString(),L=F.slice(F.indexOf("{")+1,F.lastIndexOf("}")).replace(/\n\s+/gm,"");function T(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var D=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)}},R=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:W,suspended:[]},a=g(e,r,i);n(a);var c=i.suspended.length,s=function(){if(c>0)return n("<div hidden>"),n("<script>(function(){"+L+"}())<\/script>"),Promise.resolve(D(i)).then(function(){n("</div>")})}();return Promise.resolve(s&&s.then?s.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 i=t.__v,a=this.suspended.find(function(e){return e.id===i}),c=new v,s=this.abortSignal;s&&(s.aborted?c.resolve():s.addEventListener("abort",c.resolve));var u=e.then(function(){if(!s||!s.aborted){var e=r(t.props.children);e&&n.onWrite(T(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([u,c.promise])});var l=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+l+"\x3c!--/preact-island:"+i+"--\x3e"}}}exports.renderToReadableStream=function(e,t){var r=new v,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){R(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=stream.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])/,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|spellC|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 s(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={},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"]),f=/[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:u[r]||(u[r]=r.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}var d,h,v,_,m=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},y=[],g=Array.isArray,b=Object.assign;function x(n,o,i){var a=e.__s;e.__s=!0,d=e.__b,h=e.diffed,v=e.__r,_=e.unmount;var c=t(r,null);c.__k=[n];try{return C(n,o||k,!1,void 0,c,!1,i)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,y),e.__s=a,y.length=0}}function w(){this.__d=!0}var k={};function S(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=k),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=b({},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(),v&&v(e),r.render(r.props,r.state,t)}function C(t,c,u,l,f,m,y){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t+"");if(g(t)){var x,k="";f.__k=t;for(var E=0;E<t.length;E++){var P=t[E];if(null!=P&&"boolean"!=typeof P){var j,O=C(P,c,u,l,f,m,y);"string"==typeof O?k+=O:(x=x||[],k&&x.push(k),k="",Array.isArray(O)?(j=x).push.apply(j,O):x.push(O))}}return x?(k&&x.push(k),x):k}if(void 0!==t.constructor)return"";t.__=f,d&&d(t);var L,T,D,W=t.type,F=t.props,M=c;if("function"==typeof W){if(W===r){if(F.tpl){for(var N="",R=0;R<F.tpl.length;R++)if(N+=F.tpl[R],F.exprs&&R<F.exprs.length){var U=F.exprs[R];if(null==U)continue;"object"!=typeof U||void 0!==U.constructor&&!g(U)?N+=U:N+=C(U,c,u,l,t,m,y)}return N}if(F.UNSTABLE_comment)return"\x3c!--"+s(F.UNSTABLE_comment||"")+"--\x3e";T=F.children}else{if(null!=(L=W.contextType)){var Z=c[L.__c];M=Z?Z.props.value:L.__}if(W.prototype&&"function"==typeof W.prototype.render)T=S(t,M),D=t.__c;else{t.__c=D={__v:t,props:F,context:M,setState:w,forceUpdate:w,__d:!0,__h:[]};for(var $=0;D.__d&&$++<25;)D.__d=!1,v&&v(t),T=W.call(D,F,M);D.__d=!0}if(null!=D.getChildContext&&(c=b({},c,D.getChildContext())),(W.getDerivedStateFromError||D.componentDidCatch)&&e.errorBoundaries){var q="";T=null!=T&&T.type===r&&null==T.key?T.props.children:T;try{return q=C(T,c,u,l,t,m,y)}catch(e){return W.getDerivedStateFromError&&(D.__s=W.getDerivedStateFromError(e)),D.componentDidCatch&&D.componentDidCatch(e,{}),D.__d&&(T=S(t,c),null!=(D=t.__c).getChildContext&&(c=b({},c,D.getChildContext())),q=C(T=null!=T&&T.type===r&&null==T.key?T.props.children:T,c,u,l,t,m,y)),q}finally{h&&h(t),t.__=null,_&&_(t)}}}T=null!=T&&T.type===r&&null==T.key&&null==T.props.tpl?T.props.children:T;try{var H=C(T,c,u,l,t,m,y);return h&&h(t),t.__=null,e.unmount&&e.unmount(t),H}catch(r){if(!m&&y&&y.onError){var I=y.onError(r,t,function(e){return C(e,c,u,l,t,m,y)});if(void 0!==I)return I;var z=e.__e;return z&&z(r,t),""}if(!m)throw r;if(!r||"function"!=typeof r.then)throw r;var B=function e(){try{return C(T,c,u,l,t,m,y)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return C(T,c,u,l,t,m,y)},function(){return e()})}};return r.then(function(){return B()})}}var V,K="<"+W,G="";for(var J in F){var Q=F[J];switch(J){case"children":V=Q;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in F)continue;J="for";break;case"className":if("class"in F)continue;J="class";break;case"defaultChecked":J="checked";break;case"defaultSelected":J="selected";break;case"defaultValue":case"value":switch(J="value",W){case"textarea":V=Q;continue;case"select":l=Q;continue;case"option":l!=Q||"selected"in F||(K+=" selected")}break;case"dangerouslySetInnerHTML":G=Q&&Q.__html;continue;case"style":"object"==typeof Q&&(Q=p(Q));break;case"acceptCharset":J="accept-charset";break;case"httpEquiv":J="http-equiv";break;default:if(o.test(J))J=J.replace(o,"$1:$2").toLowerCase();else{if(n.test(J))continue;"-"!==J[4]&&"draggable"!==J||null==Q?u?a.test(J)&&(J="panose1"===J?"panose-1":J.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(J)&&(J=J.toLowerCase()):Q+=""}}null!=Q&&!1!==Q&&"function"!=typeof Q&&(K=!0===Q||""===Q?K+" "+J:K+" "+J+'="'+s(Q+"")+'"')}if(n.test(W))throw new Error(W+" is not a valid HTML tag name in "+K+">");if(G||("string"==typeof V?G=s(V):null!=V&&!1!==V&&!0!==V&&(G=C(V,c,"svg"===W||"foreignObject"!==W&&u,l,t,m,y))),h&&h(t),t.__=null,_&&_(t),!G&&A.has(W))return K+"/>";var X="</"+W+">",Y=K+">";return Array.isArray(G)?[Y].concat(G,[X]):"string"!=typeof G?[Y,G,X]:Y+G+X}var A=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t){return P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},P(e,t)}function j(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function O(e,t,r){return O=j()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&P(o,r.prototype),o},O.apply(null,arguments)}function L(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!L(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return O(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),P(r,e)},T(e)}var D=function(){var e=/*#__PURE__*/function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.connectedCallback=function(){var e=this;if(e.isConnected){var t=this.getAttribute("data-target");if(t){for(var r,n,o=document.createNodeIterator(document,128);o.nextNode();){var i=o.referenceNode;if(i.data=="preact-island:"+t?r=i:i.data=="/preact-island:"+t&&(n=i),r&&n)break}if(r&&n){for(var a=n.previousSibling;a!=r&&a&&a!=r;)n.parentNode.removeChild(a),a=n.previousSibling;requestAnimationFrame(function(){for(var t=0;t<=e.children.length;t++)n.parentNode.insertBefore(e.children[t],n);e.parentNode.removeChild(e)})}}}},n}(/*#__PURE__*/T(HTMLElement));customElements.define("preact-island",e)}.toString(),W=D.slice(D.indexOf("{")+1,D.lastIndexOf("}")).replace(/\n\s+/gm,"");function F(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var M=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)}},N=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:R,suspended:[]},a=x(e,r,i);n(a);var c=i.suspended.length,s=function(){if(c>0)return n("<div hidden>"),n("<script>(function(){"+W+"}())<\/script>"),Promise.resolve(M(i)).then(function(){n("</div>")})}();return Promise.resolve(s&&s.then?s.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function R(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}),c=new m,s=this.abortSignal;s&&(s.aborted?c.resolve():s.addEventListener("abort",c.resolve));var u=e.then(function(){if(!s||!s.aborted){var e=r(t.props.children);e&&n.onWrite(F(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([u,c.promise])});var l=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+l+"\x3c!--/preact-island:"+i+"--\x3e"}}}function U(e,t){var r=new m,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){N(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{U 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])/,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|spellC|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 s(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={},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"]),f=/[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:u[r]||(u[r]=r.replace(f,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||l.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}var d,h,v,_,m=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},y=[],g=Array.isArray,b=Object.assign;function x(n,o,i){var a=e.__s;e.__s=!0,d=e.__b,h=e.diffed,v=e.__r,_=e.unmount;var c=t(r,null);c.__k=[n];try{var s=C(n,o||k,!1,void 0,c,!1,i);return Array.isArray(s)?s.join(""):s}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.__c&&e.__c(n,y),e.__s=a,y.length=0}}function w(){this.__d=!0}var k={};function S(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=k),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=b({},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(),v&&v(e),r.render(r.props,r.state,t)}function C(t,c,u,l,f,m,y){if(null==t||!0===t||!1===t||""===t)return"";if("object"!=typeof t)return"function"==typeof t?"":s(t+"");if(g(t)){var x,k="";f.__k=t;for(var E=0;E<t.length;E++){var P=t[E];if(null!=P&&"boolean"!=typeof P){var j,O=C(P,c,u,l,f,m,y);"string"==typeof O?k+=O:(x=x||[],k&&x.push(k),k="",Array.isArray(O)?(j=x).push.apply(j,O):x.push(O))}}return x?(k&&x.push(k),x):k}if(void 0!==t.constructor)return"";t.__=f,d&&d(t);var L,T,D,W=t.type,F=t.props,M=c;if("function"==typeof W){if(W===r){if(F.tpl){for(var N="",R=0;R<F.tpl.length;R++)if(N+=F.tpl[R],F.exprs&&R<F.exprs.length){var U=F.exprs[R];if(null==U)continue;"object"!=typeof U||void 0!==U.constructor&&!g(U)?N+=U:N+=C(U,c,u,l,t,m,y)}return N}if(F.UNSTABLE_comment)return"\x3c!--"+s(F.UNSTABLE_comment||"")+"--\x3e";T=F.children}else{if(null!=(L=W.contextType)){var Z=c[L.__c];M=Z?Z.props.value:L.__}if(W.prototype&&"function"==typeof W.prototype.render)T=S(t,M),D=t.__c;else{t.__c=D={__v:t,props:F,context:M,setState:w,forceUpdate:w,__d:!0,__h:[]};for(var $=0;D.__d&&$++<25;)D.__d=!1,v&&v(t),T=W.call(D,F,M);D.__d=!0}if(null!=D.getChildContext&&(c=b({},c,D.getChildContext())),(W.getDerivedStateFromError||D.componentDidCatch)&&e.errorBoundaries){var q="";T=null!=T&&T.type===r&&null==T.key?T.props.children:T;try{return q=C(T,c,u,l,t,m,y)}catch(e){return W.getDerivedStateFromError&&(D.__s=W.getDerivedStateFromError(e)),D.componentDidCatch&&D.componentDidCatch(e,{}),D.__d&&(T=S(t,c),null!=(D=t.__c).getChildContext&&(c=b({},c,D.getChildContext())),q=C(T=null!=T&&T.type===r&&null==T.key?T.props.children:T,c,u,l,t,m,y)),q}finally{h&&h(t),t.__=null,_&&_(t)}}}T=null!=T&&T.type===r&&null==T.key&&null==T.props.tpl?T.props.children:T;try{var H=C(T,c,u,l,t,m,y);return h&&h(t),t.__=null,e.unmount&&e.unmount(t),H}catch(r){if(!m&&y&&y.onError){var I=y.onError(r,t,function(e){return C(e,c,u,l,t,m,y)});if(void 0!==I)return I;var z=e.__e;return z&&z(r,t),""}if(!m)throw r;if(!r||"function"!=typeof r.then)throw r;var B=function e(){try{return C(T,c,u,l,t,m,y)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return C(T,c,u,l,t,m,y)},function(){return e()})}};return r.then(function(){return B()})}}var V,K="<"+W,G="";for(var J in F){var Q=F[J];switch(J){case"children":V=Q;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in F)continue;J="for";break;case"className":if("class"in F)continue;J="class";break;case"defaultChecked":J="checked";break;case"defaultSelected":J="selected";break;case"defaultValue":case"value":switch(J="value",W){case"textarea":V=Q;continue;case"select":l=Q;continue;case"option":l!=Q||"selected"in F||(K+=" selected")}break;case"dangerouslySetInnerHTML":G=Q&&Q.__html;continue;case"style":"object"==typeof Q&&(Q=p(Q));break;case"acceptCharset":J="accept-charset";break;case"httpEquiv":J="http-equiv";break;default:if(o.test(J))J=J.replace(o,"$1:$2").toLowerCase();else{if(n.test(J))continue;"-"!==J[4]&&"draggable"!==J||null==Q?u?a.test(J)&&(J="panose1"===J?"panose-1":J.replace(/([A-Z])/g,"-$1").toLowerCase()):i.test(J)&&(J=J.toLowerCase()):Q+=""}}null!=Q&&!1!==Q&&"function"!=typeof Q&&(K=!0===Q||""===Q?K+" "+J:K+" "+J+'="'+s(Q+"")+'"')}if(n.test(W))throw new Error(W+" is not a valid HTML tag name in "+K+">");if(G||("string"==typeof V?G=s(V):null!=V&&!1!==V&&!0!==V&&(G=C(V,c,"svg"===W||"foreignObject"!==W&&u,l,t,m,y))),h&&h(t),t.__=null,_&&_(t),!G&&A.has(W))return K+"/>";var X="</"+W+">",Y=K+">";return Array.isArray(G)?[Y].concat(G,[X]):"string"!=typeof G?[Y,G,X]:Y+G+X}var A=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t){return P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},P(e,t)}function j(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function O(e,t,r){return O=j()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&P(o,r.prototype),o},O.apply(null,arguments)}function L(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!L(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return O(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),P(r,e)},T(e)}var D=function(){var e=/*#__PURE__*/function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.connectedCallback=function(){var e=this;if(e.isConnected){var t=this.getAttribute("data-target");if(t){for(var r,n,o=document.createNodeIterator(document,128);o.nextNode();){var i=o.referenceNode;if(i.data=="preact-island:"+t?r=i:i.data=="/preact-island:"+t&&(n=i),r&&n)break}if(r&&n){for(var a=n.previousSibling;a!=r&&a&&a!=r;)n.parentNode.removeChild(a),a=n.previousSibling;requestAnimationFrame(function(){for(var t=0;t<=e.children.length;t++)n.parentNode.insertBefore(e.children[t],n);e.parentNode.removeChild(e)})}}}},n}(/*#__PURE__*/T(HTMLElement));customElements.define("preact-island",e)}.toString(),W=D.slice(D.indexOf("{")+1,D.lastIndexOf("}")).replace(/\n\s+/gm,"");function F(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var M=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)}},N=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:R,suspended:[]},a=x(e,r,i);n(a);var c=i.suspended.length,s=function(){if(c>0)return n("<div hidden>"),n("<script>(function(){"+W+"}())<\/script>"),Promise.resolve(M(i)).then(function(){n("</div>")})}();return Promise.resolve(s&&s.then?s.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function R(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}),c=new m,s=this.abortSignal;s&&(s.aborted?c.resolve():s.addEventListener("abort",c.resolve));var u=e.then(function(){if(!s||!s.aborted){var e=r(t.props.children);e&&n.onWrite(F(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([u,c.promise])});var l=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+l+"\x3c!--/preact-island:"+i+"--\x3e"}}}function U(e,t){var r=new m,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){N(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{U as renderToReadableStream};
//# sourceMappingURL=stream.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|spellC|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=/["&<]/;function c(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 s={},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"]),l=/[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:s[r]||(s[r]=r.replace(l,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}var f,d,h,v,_=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},m=[],y=Array.isArray,g=Object.assign;function b(e,r,n){var o=t.options.__s;t.options.__s=!0,f=t.options.__b,d=t.options.diffed,h=t.options.__r,v=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{return S(e,r||w,!1,void 0,i,!1,n)}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,m),t.options.__s=o,m.length=0}}function x(){this.__d=!0}var w={};function k(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=w),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=g({},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(),h&&h(e),r.render(r.props,r.state,t)}function S(e,a,s,u,l,_,m){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e+"");if(y(e)){var b,w="";l.__k=e;for(var A=0;A<e.length;A++){var E=e[A];if(null!=E&&"boolean"!=typeof E){var P,j=S(E,a,s,u,l,_,m);"string"==typeof j?w+=j:(b=b||[],w&&b.push(w),w="",Array.isArray(j)?(P=b).push.apply(P,j):b.push(j))}}return b?(w&&b.push(w),b):w}if(void 0!==e.constructor)return"";e.__=l,f&&f(e);var O,T,F,L=e.type,D=e.props,R=a;if("function"==typeof L){if(L===t.Fragment){if(D.tpl){for(var W="",M=0;M<D.tpl.length;M++)if(W+=D.tpl[M],D.exprs&&M<D.exprs.length){var N=D.exprs[M];if(null==N)continue;"object"!=typeof N||void 0!==N.constructor&&!y(N)?W+=N:W+=S(N,a,s,u,e,_,m)}return W}if(D.UNSTABLE_comment)return"\x3c!--"+c(D.UNSTABLE_comment||"")+"--\x3e";T=D.children}else{if(null!=(O=L.contextType)){var U=a[O.__c];R=U?U.props.value:O.__}if(L.prototype&&"function"==typeof L.prototype.render)T=k(e,R),F=e.__c;else{e.__c=F={__v:e,props:D,context:R,setState:x,forceUpdate:x,__d:!0,__h:[]};for(var Z=0;F.__d&&Z++<25;)F.__d=!1,h&&h(e),T=L.call(F,D,R);F.__d=!0}if(null!=F.getChildContext&&(a=g({},a,F.getChildContext())),(L.getDerivedStateFromError||F.componentDidCatch)&&t.options.errorBoundaries){var q="";T=null!=T&&T.type===t.Fragment&&null==T.key?T.props.children:T;try{return q=S(T,a,s,u,e,_,m)}catch(r){return L.getDerivedStateFromError&&(F.__s=L.getDerivedStateFromError(r)),F.componentDidCatch&&F.componentDidCatch(r,{}),F.__d&&(T=k(e,a),null!=(F=e.__c).getChildContext&&(a=g({},a,F.getChildContext())),q=S(T=null!=T&&T.type===t.Fragment&&null==T.key?T.props.children:T,a,s,u,e,_,m)),q}finally{d&&d(e),e.__=null,v&&v(e)}}}T=null!=T&&T.type===t.Fragment&&null==T.key&&null==T.props.tpl?T.props.children:T;try{var $=S(T,a,s,u,e,_,m);return d&&d(e),e.__=null,t.options.unmount&&t.options.unmount(e),$}catch(r){if(!_&&m&&m.onError){var H=m.onError(r,e,function(t){return S(t,a,s,u,e,_,m)});if(void 0!==H)return H;var I=t.options.__e;return I&&I(r,e),""}if(!_)throw r;if(!r||"function"!=typeof r.then)throw r;var z=function t(){try{return S(T,a,s,u,e,_,m)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return S(T,a,s,u,e,_,m)},function(){return t()})}};return r.then(function(){return z()})}}var B,V="<"+L,K="";for(var G in D){var J=D[G];switch(G){case"children":B=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in D)continue;G="for";break;case"className":if("class"in D)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",L){case"textarea":B=J;continue;case"select":u=J;continue;case"option":u!=J||"selected"in D||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=p(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(n.test(G))G=G.replace(n,"$1:$2").toLowerCase();else{if(r.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?s?i.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+c(J+"")+'"')}if(r.test(L))throw new Error(L+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof B?K=c(B):null!=B&&!1!==B&&!0!==B&&(K=S(B,a,"svg"===L||"foreignObject"!==L&&s,u,e,_,m))),d&&d(e),e.__=null,v&&v(e),!K&&C.has(L))return V+"/>";var Q="</"+L+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var C=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function j(e,t,r){return j=P()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&E(o,r.prototype),o},j.apply(null,arguments)}function O(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!O(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return j(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),E(r,e)},T(e)}var F=function(){var e=/*#__PURE__*/function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.connectedCallback=function(){var e=this;if(e.isConnected){var t=this.getAttribute("data-target");if(t){for(var r,n,o=document.createNodeIterator(document,128);o.nextNode();){var i=o.referenceNode;if(i.data=="preact-island:"+t?r=i:i.data=="/preact-island:"+t&&(n=i),r&&n)break}if(r&&n){for(var a=n.previousSibling;a!=r&&a&&a!=r;)n.parentNode.removeChild(a),a=n.previousSibling;requestAnimationFrame(function(){for(var t=0;t<=e.children.length;t++)n.parentNode.insertBefore(e.children[t],n);e.parentNode.removeChild(e)})}}}},n}(/*#__PURE__*/T(HTMLElement));customElements.define("preact-island",e)}.toString(),L=F.slice(F.indexOf("{")+1,F.lastIndexOf("}")).replace(/\n\s+/gm,"");function D(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var R=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)}},W=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:M,suspended:[]},a=b(e,r,i);n(a);var c=i.suspended.length,s=function(){if(c>0)return n("<div hidden>"),n("<script>(function(){"+L+"}())<\/script>"),Promise.resolve(R(i)).then(function(){n("</div>")})}();return Promise.resolve(s&&s.then?s.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function M(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}),c=new _,s=this.abortSignal;s&&(s.aborted?c.resolve():s.addEventListener("abort",c.resolve));var u=e.then(function(){if(!s||!s.aborted){var e=r(t.props.children);e&&n.onWrite(D(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([u,c.promise])});var l=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+l+"\x3c!--/preact-island:"+i+"--\x3e"}}}e.renderToReadableStream=function(e,t){var r=new _,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){W(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|spellC|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=/["&<]/;function c(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 s={},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"]),l=/[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:s[r]||(s[r]=r.replace(l,"-$&").toLowerCase()),i=";";"number"!=typeof n||o.startsWith("--")||u.has(o)||(i="px;"),t=t+o+":"+n+i}}return t||void 0}var f,d,h,v,_=function(){var e=this;this.promise=new Promise(function(t,r){e.resolve=t,e.reject=r})},m=[],y=Array.isArray,g=Object.assign;function b(e,r,n){var o=t.options.__s;t.options.__s=!0,f=t.options.__b,d=t.options.diffed,h=t.options.__r,v=t.options.unmount;var i=t.h(t.Fragment,null);i.__k=[e];try{var a=S(e,r||w,!1,void 0,i,!1,n);return Array.isArray(a)?a.join(""):a}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{t.options.__c&&t.options.__c(e,m),t.options.__s=o,m.length=0}}function x(){this.__d=!0}var w={};function k(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=w),null==r.__s&&(r.__s=r.state),n.getDerivedStateFromProps?r.state=g({},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(),h&&h(e),r.render(r.props,r.state,t)}function S(e,a,s,u,l,_,m){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e+"");if(y(e)){var b,w="";l.__k=e;for(var A=0;A<e.length;A++){var j=e[A];if(null!=j&&"boolean"!=typeof j){var E,P=S(j,a,s,u,l,_,m);"string"==typeof P?w+=P:(b=b||[],w&&b.push(w),w="",Array.isArray(P)?(E=b).push.apply(E,P):b.push(P))}}return b?(w&&b.push(w),b):w}if(void 0!==e.constructor)return"";e.__=l,f&&f(e);var O,T,F,L=e.type,D=e.props,R=a;if("function"==typeof L){if(L===t.Fragment){if(D.tpl){for(var W="",M=0;M<D.tpl.length;M++)if(W+=D.tpl[M],D.exprs&&M<D.exprs.length){var N=D.exprs[M];if(null==N)continue;"object"!=typeof N||void 0!==N.constructor&&!y(N)?W+=N:W+=S(N,a,s,u,e,_,m)}return W}if(D.UNSTABLE_comment)return"\x3c!--"+c(D.UNSTABLE_comment||"")+"--\x3e";T=D.children}else{if(null!=(O=L.contextType)){var U=a[O.__c];R=U?U.props.value:O.__}if(L.prototype&&"function"==typeof L.prototype.render)T=k(e,R),F=e.__c;else{e.__c=F={__v:e,props:D,context:R,setState:x,forceUpdate:x,__d:!0,__h:[]};for(var Z=0;F.__d&&Z++<25;)F.__d=!1,h&&h(e),T=L.call(F,D,R);F.__d=!0}if(null!=F.getChildContext&&(a=g({},a,F.getChildContext())),(L.getDerivedStateFromError||F.componentDidCatch)&&t.options.errorBoundaries){var q="";T=null!=T&&T.type===t.Fragment&&null==T.key?T.props.children:T;try{return q=S(T,a,s,u,e,_,m)}catch(r){return L.getDerivedStateFromError&&(F.__s=L.getDerivedStateFromError(r)),F.componentDidCatch&&F.componentDidCatch(r,{}),F.__d&&(T=k(e,a),null!=(F=e.__c).getChildContext&&(a=g({},a,F.getChildContext())),q=S(T=null!=T&&T.type===t.Fragment&&null==T.key?T.props.children:T,a,s,u,e,_,m)),q}finally{d&&d(e),e.__=null,v&&v(e)}}}T=null!=T&&T.type===t.Fragment&&null==T.key&&null==T.props.tpl?T.props.children:T;try{var $=S(T,a,s,u,e,_,m);return d&&d(e),e.__=null,t.options.unmount&&t.options.unmount(e),$}catch(r){if(!_&&m&&m.onError){var H=m.onError(r,e,function(t){return S(t,a,s,u,e,_,m)});if(void 0!==H)return H;var I=t.options.__e;return I&&I(r,e),""}if(!_)throw r;if(!r||"function"!=typeof r.then)throw r;var z=function t(){try{return S(T,a,s,u,e,_,m)}catch(r){if(!r||"function"!=typeof r.then)throw r;return r.then(function(){return S(T,a,s,u,e,_,m)},function(){return t()})}};return r.then(function(){return z()})}}var B,V="<"+L,K="";for(var G in D){var J=D[G];switch(G){case"children":B=J;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in D)continue;G="for";break;case"className":if("class"in D)continue;G="class";break;case"defaultChecked":G="checked";break;case"defaultSelected":G="selected";break;case"defaultValue":case"value":switch(G="value",L){case"textarea":B=J;continue;case"select":u=J;continue;case"option":u!=J||"selected"in D||(V+=" selected")}break;case"dangerouslySetInnerHTML":K=J&&J.__html;continue;case"style":"object"==typeof J&&(J=p(J));break;case"acceptCharset":G="accept-charset";break;case"httpEquiv":G="http-equiv";break;default:if(n.test(G))G=G.replace(n,"$1:$2").toLowerCase();else{if(r.test(G))continue;"-"!==G[4]&&"draggable"!==G||null==J?s?i.test(G)&&(G="panose1"===G?"panose-1":G.replace(/([A-Z])/g,"-$1").toLowerCase()):o.test(G)&&(G=G.toLowerCase()):J+=""}}null!=J&&!1!==J&&"function"!=typeof J&&(V=!0===J||""===J?V+" "+G:V+" "+G+'="'+c(J+"")+'"')}if(r.test(L))throw new Error(L+" is not a valid HTML tag name in "+V+">");if(K||("string"==typeof B?K=c(B):null!=B&&!1!==B&&!0!==B&&(K=S(B,a,"svg"===L||"foreignObject"!==L&&s,u,e,_,m))),d&&d(e),e.__=null,v&&v(e),!K&&C.has(L))return V+"/>";var Q="</"+L+">",X=V+">";return Array.isArray(K)?[X].concat(K,[Q]):"string"!=typeof K?[X,K,Q]:X+K+Q}var C=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function j(e,t){return j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},j(e,t)}function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function P(e,t,r){return P=E()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&j(o,r.prototype),o},P.apply(null,arguments)}function O(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!O(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return P(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,e)},T(e)}var F=function(){var e=/*#__PURE__*/function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.connectedCallback=function(){var e=this;if(e.isConnected){var t=this.getAttribute("data-target");if(t){for(var r,n,o=document.createNodeIterator(document,128);o.nextNode();){var i=o.referenceNode;if(i.data=="preact-island:"+t?r=i:i.data=="/preact-island:"+t&&(n=i),r&&n)break}if(r&&n){for(var a=n.previousSibling;a!=r&&a&&a!=r;)n.parentNode.removeChild(a),a=n.previousSibling;requestAnimationFrame(function(){for(var t=0;t<=e.children.length;t++)n.parentNode.insertBefore(e.children[t],n);e.parentNode.removeChild(e)})}}}},n}(/*#__PURE__*/T(HTMLElement));customElements.define("preact-island",e)}.toString(),L=F.slice(F.indexOf("{")+1,F.lastIndexOf("}")).replace(/\n\s+/gm,"");function D(e,t){return'<preact-island hidden data-target="'+e+'">'+t+"</preact-island>"}var R=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)}},W=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:M,suspended:[]},a=b(e,r,i);n(a);var c=i.suspended.length,s=function(){if(c>0)return n("<div hidden>"),n("<script>(function(){"+L+"}())<\/script>"),Promise.resolve(R(i)).then(function(){n("</div>")})}();return Promise.resolve(s&&s.then?s.then(function(){}):void 0)}catch(e){return Promise.reject(e)}};function M(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}),c=new _,s=this.abortSignal;s&&(s.aborted?c.resolve():s.addEventListener("abort",c.resolve));var u=e.then(function(){if(!s||!s.aborted){var e=r(t.props.children);e&&n.onWrite(D(i,e))}},this.onError);this.suspended.push({id:i,vnode:t,promise:Promise.race([u,c.promise])});var l=r(t.props.fallback);return a?"":"\x3c!--preact-island:"+i+"--\x3e"+l+"\x3c!--/preact-island:"+i+"--\x3e"}}}e.renderToReadableStream=function(e,t){var r=new _,n=new TextEncoder("utf-8"),o=new ReadableStream({start:function(o){W(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=stream.umd.js.map
{
"name": "preact-render-to-string",
"amdName": "preactRenderToString",
"version": "6.5.1",
"version": "6.5.2",
"description": "Render JSX to an HTML string, with support for Preact components.",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

@@ -58,3 +58,3 @@ import {

try {
return _renderToString(
const rendered = _renderToString(
vnode,

@@ -68,2 +68,7 @@ context || EMPTY_OBJ,

);
if (Array.isArray(rendered)) {
return rendered.join('');
}
return rendered;
} catch (e) {

@@ -687,3 +692,2 @@ if (e.then) {

else if (typeof html !== 'string') return [startTag, html, endTag];
return startTag + html + endTag;

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

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