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

preact-render-to-string

Package Overview
Dependencies
Maintainers
11
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 6.0.0 to 6.0.1

dist/jsx.modern.js

2

dist/commonjs.js

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

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

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

module.exports = require('./commonjs').default;
var e=require("preact"),t=/[\s\n\\/='"\0<>]/,r=/^xlink:?./,o=/["&<]/;function n(e){if(0===e.length||!1===o.test(e))return e;for(var t=0,r=0,n="",a="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=a,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var a={},i=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"]),s=/[A-Z]/g;function l(e){var t="";for(var r in e){var o=e[r];if(null!=o&&""!==o){var n="-"==r[0]?r:a[r]||(a[r]=r.replace(s,"-$&").toLowerCase()),l=";";"number"!=typeof o||n.startsWith("--")||i.has(n)||(l="px;"),t=t+n+":"+o+l}}return t||void 0}var c,u,p,f,_=[],d=Array.isArray,v=Object.assign;function h(){this.__d=!0}var g={};function m(o,a,i,s,_){if(null==o||!0===o||!1===o||""===o)return"";if("object"!=typeof o)return"function"==typeof o?"":n(o+"");if(d(o)){var k="";_.__k=o;for(var x=0;x<o.length;x++){var w=o[x];null!=w&&"boolean"!=typeof w&&(k+=m(w,a,i,s,_))}return k}if(void 0!==o.constructor)return"";o.__=_,c&&c(o);var C,S,F,j=o.type,A=o.props,L=a;if("function"==typeof j){if(j===e.Fragment)S=A.children;else{if(null!=(C=j.contextType)){var M=a[C.__c];L=M?M.props.value:C.__}if(j.prototype&&"function"==typeof j.prototype.render)S=function(e,t){var r=e.type,o=new r(e.props,t);return e.__c=o,o.__v=e,o.props=e.props,o.context=t,o.__d=!0,null==o.state&&(o.state=g),null==o.__s&&(o.__s=o.state),r.getDerivedStateFromProps?o.state=v({},o.state,r.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o.__s!==o.state?o.__s:o.state),p&&p(e),o.render(o.props,o.state,t)}(o,L),F=o.__c;else{o.__c=F={__v:o,props:A,context:L,setState:h,forceUpdate:h,__d:!0,__h:[]};for(var z=0;F.__d&&z++<25;)F.__d=!1,p&&p(o),S=j.call(F,A,L);F.__d=!0}null!=F.getChildContext&&(a=v({},a,F.getChildContext()))}var T=m(S=null!=S&&S.type===e.Fragment&&null==S.key?S.props.children:S,a,i,s,o);return u&&u(o),o.__=void 0,f&&f(o),T}var W,q="<"+j,D="";for(var H in A){var O=A[H];switch(H){case"children":W=O;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in A)continue;H="for";break;case"className":if("class"in A)continue;H="class";break;case"defaultChecked":H="checked";break;case"defaultSelected":H="selected";break;case"defaultValue":case"value":switch(H="value",j){case"textarea":W=O;continue;case"select":s=O;continue;case"option":s!=O||"selected"in A||(q+=" selected")}break;case"dangerouslySetInnerHTML":D=O&&O.__html;continue;case"style":"object"==typeof O&&(O=l(O));break;default:if(i&&r.test(H))H=H.toLowerCase().replace(y,"xlink:");else{if(t.test(H))continue;"-"!==H[4]&&"draggable"!==H||null==O||(O+="")}}null!=O&&!1!==O&&"function"!=typeof O&&(q=!0===O||""===O?q+" "+H:q+" "+H+'="'+n(O+"")+'"')}if(t.test(j))throw new Error(j+" is not a valid HTML tag name in "+q+">");return D||("string"==typeof W?D=n(W):null!=W&&!1!==W&&!0!==W&&(D=m(W,a,"svg"===j||"foreignObject"!==j&&i,s,o))),u&&u(o),o.__=void 0,f&&f(o),!D&&b.has(j)?q+"/>":q+">"+D+"</"+j+">"}var y=/^xlink:?/,b=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);module.exports=function(t,r){var o=e.options.__s;e.options.__s=!0,c=e.options.__b,u=e.options.diffed,p=e.options.__r,f=e.options.unmount;var n=e.h(e.Fragment,null);n.__k=[t];try{return m(t,r||g,!1,void 0,n)}finally{e.options.__c&&e.options.__c(t,_),e.options.__s=o,_.length=0}};
//# sourceMappingURL=index.js.map

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

import{options as e,h as t,Fragment as r}from"preact";var o=/[\s\n\\/='"\0<>]/,a=/^xlink:?./,n=/["&<]/;function i(e){if(0===e.length||!1===n.test(e))return e;for(var t=0,r=0,o="",a="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}r!==t&&(o+=e.slice(t,r)),o+=a,t=r+1}return r!==t&&(o+=e.slice(t,r)),o}var s={},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"]),c=/[A-Z]/g;function u(e){var t="";for(var r in e){var o=e[r];if(null!=o&&""!==o){var a="-"==r[0]?r:s[r]||(s[r]=r.replace(c,"-$&").toLowerCase()),n=";";"number"!=typeof o||a.startsWith("--")||l.has(a)||(n="px;"),t=t+a+":"+o+n}}return t||void 0}var f,_,p,d,v=[],h=Array.isArray,g=Object.assign;function y(o,a){var n=e.__s;e.__s=!0,f=e.__b,_=e.diffed,p=e.__r,d=e.unmount;var i=t(r,null);i.__k=[o];try{return x(o,a||b,!1,void 0,i)}finally{e.__c&&e.__c(o,v),e.__s=n,v.length=0}}function m(){this.__d=!0}var b={};function k(e,t){var r=e.type,o=new r(e.props,t);return e.__c=o,o.__v=e,o.props=e.props,o.context=t,o.__d=!0,null==o.state&&(o.state=b),null==o.__s&&(o.__s=o.state),r.getDerivedStateFromProps?o.state=g({},o.state,r.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o.__s!==o.state?o.__s:o.state),p&&p(e),o.render(o.props,o.state,t)}function x(e,t,n,s,l){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":i(e+"");if(h(e)){var c="";l.__k=e;for(var v=0;v<e.length;v++){var y=e[v];null!=y&&"boolean"!=typeof y&&(c+=x(y,t,n,s,l))}return c}if(void 0!==e.constructor)return"";e.__=l,f&&f(e);var b,S,j,A=e.type,L=e.props,M=t;if("function"==typeof A){if(A===r)S=L.children;else{if(null!=(b=A.contextType)){var z=t[b.__c];M=z?z.props.value:b.__}if(A.prototype&&"function"==typeof A.prototype.render)S=k(e,M),j=e.__c;else{e.__c=j={__v:e,props:L,context:M,setState:m,forceUpdate:m,__d:!0,__h:[]};for(var F=0;j.__d&&F++<25;)j.__d=!1,p&&p(e),S=A.call(j,L,M);j.__d=!0}null!=j.getChildContext&&(t=g({},t,j.getChildContext()))}var T=x(S=null!=S&&S.type===r&&null==S.key?S.props.children:S,t,n,s,e);return _&&_(e),e.__=void 0,d&&d(e),T}var W,D="<"+A,H="";for(var O in L){var P=L[O];switch(O){case"children":W=P;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in L)continue;O="for";break;case"className":if("class"in L)continue;O="class";break;case"defaultChecked":O="checked";break;case"defaultSelected":O="selected";break;case"defaultValue":case"value":switch(O="value",A){case"textarea":W=P;continue;case"select":s=P;continue;case"option":s!=P||"selected"in L||(D+=" selected")}break;case"dangerouslySetInnerHTML":H=P&&P.__html;continue;case"style":"object"==typeof P&&(P=u(P));break;default:if(n&&a.test(O))O=O.toLowerCase().replace(w,"xlink:");else{if(o.test(O))continue;"-"!==O[4]&&"draggable"!==O||null==P||(P+="")}}null!=P&&!1!==P&&"function"!=typeof P&&(D=!0===P||""===P?D+" "+O:D+" "+O+'="'+i(P+"")+'"')}if(o.test(A))throw new Error(A+" is not a valid HTML tag name in "+D+">");return H||("string"==typeof W?H=i(W):null!=W&&!1!==W&&!0!==W&&(H=x(W,t,"svg"===A||"foreignObject"!==A&&n,s,e))),_&&_(e),e.__=void 0,d&&d(e),!H&&C.has(A)?D+"/>":D+">"+H+"</"+A+">"}var w=/^xlink:?/,C=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);export default y;
import{options as e,h as t,Fragment as r}from"preact";var o=/[\s\n\\/='"\0<>]/,a=/^xlink:?./,n=/["&<]/;function i(e){if(0===e.length||!1===n.test(e))return e;for(var t=0,r=0,o="",a="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}r!==t&&(o+=e.slice(t,r)),o+=a,t=r+1}return r!==t&&(o+=e.slice(t,r)),o}var s={},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"]),c=/[A-Z]/g;function u(e){var t="";for(var r in e){var o=e[r];if(null!=o&&""!==o){var a="-"==r[0]?r:s[r]||(s[r]=r.replace(c,"-$&").toLowerCase()),n=";";"number"!=typeof o||a.startsWith("--")||l.has(a)||(n="px;"),t=t+a+":"+o+n}}return t||void 0}var f,_,p,d,v=[],h=Array.isArray,g=Object.assign;function y(o,a){var n=e.__s;e.__s=!0,f=e.__b,_=e.diffed,p=e.__r,d=e.unmount;var i=t(r,null);i.__k=[o];try{return k(o,a||b,!1,void 0,i)}finally{e.__c&&e.__c(o,v),e.__s=n,v.length=0}}function m(){this.__d=!0}var b={};function k(e,t,n,s,l){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":i(e+"");if(h(e)){var c="";l.__k=e;for(var v=0;v<e.length;v++){var y=e[v];null!=y&&"boolean"!=typeof y&&(c+=k(y,t,n,s,l))}return c}if(void 0!==e.constructor)return"";e.__=l,f&&f(e);var C,S,j,A=e.type,L=e.props,M=t;if("function"==typeof A){if(A===r)S=L.children;else{if(null!=(C=A.contextType)){var z=t[C.__c];M=z?z.props.value:C.__}if(A.prototype&&"function"==typeof A.prototype.render)S=function(e,t){var r=e.type,o=new r(e.props,t);return e.__c=o,o.__v=e,o.props=e.props,o.context=t,o.__d=!0,null==o.state&&(o.state=b),null==o.__s&&(o.__s=o.state),r.getDerivedStateFromProps?o.state=g({},o.state,r.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o.__s!==o.state?o.__s:o.state),p&&p(e),o.render(o.props,o.state,t)}(e,M),j=e.__c;else{e.__c=j={__v:e,props:L,context:M,setState:m,forceUpdate:m,__d:!0,__h:[]};for(var F=0;j.__d&&F++<25;)j.__d=!1,p&&p(e),S=A.call(j,L,M);j.__d=!0}null!=j.getChildContext&&(t=g({},t,j.getChildContext()))}var T=k(S=null!=S&&S.type===r&&null==S.key?S.props.children:S,t,n,s,e);return _&&_(e),e.__=void 0,d&&d(e),T}var W,D="<"+A,H="";for(var O in L){var P=L[O];switch(O){case"children":W=P;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in L)continue;O="for";break;case"className":if("class"in L)continue;O="class";break;case"defaultChecked":O="checked";break;case"defaultSelected":O="selected";break;case"defaultValue":case"value":switch(O="value",A){case"textarea":W=P;continue;case"select":s=P;continue;case"option":s!=P||"selected"in L||(D+=" selected")}break;case"dangerouslySetInnerHTML":H=P&&P.__html;continue;case"style":"object"==typeof P&&(P=u(P));break;default:if(n&&a.test(O))O=O.toLowerCase().replace(x,"xlink:");else{if(o.test(O))continue;"-"!==O[4]&&"draggable"!==O||null==P||(P+="")}}null!=P&&!1!==P&&"function"!=typeof P&&(D=!0===P||""===P?D+" "+O:D+" "+O+'="'+i(P+"")+'"')}if(o.test(A))throw new Error(A+" is not a valid HTML tag name in "+D+">");return H||("string"==typeof W?H=i(W):null!=W&&!1!==W&&!0!==W&&(H=k(W,t,"svg"===A||"foreignObject"!==A&&n,s,e))),_&&_(e),e.__=void 0,d&&d(e),!H&&w.has(A)?D+"/>":D+">"+H+"</"+A+">"}var x=/^xlink:?/,w=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);export default y;
//# sourceMappingURL=index.module.js.map

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):(e||self).preactRenderToString=t(e.preact)}(this,function(e){var t=/[\s\n\\/='"\0<>]/,o=/^xlink:?./,r=/["&<]/;function n(e){if(0===e.length||!1===r.test(e))return e;for(var t=0,o=0,n="",a="";o<e.length;o++){switch(e.charCodeAt(o)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}o!==t&&(n+=e.slice(t,o)),n+=a,t=o+1}return o!==t&&(n+=e.slice(t,o)),n}var a={},i=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"]),s=/[A-Z]/g;function l(e){var t="";for(var o in e){var r=e[o];if(null!=r&&""!==r){var n="-"==o[0]?o:a[o]||(a[o]=o.replace(s,"-$&").toLowerCase()),l=";";"number"!=typeof r||n.startsWith("--")||i.has(n)||(l="px;"),t=t+n+":"+r+l}}return t||void 0}var c,f,u,p,d=[],_=Array.isArray,v=Object.assign;function h(){this.__d=!0}var g={};function y(e,t){var o=e.type,r=new o(e.props,t);return e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=g),null==r.__s&&(r.__s=r.state),o.getDerivedStateFromProps?r.state=v({},r.state,o.getDerivedStateFromProps(r.props,r.state)):r.componentWillMount&&(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state),u&&u(e),r.render(r.props,r.state,t)}function m(r,a,i,s,d){if(null==r||!0===r||!1===r||""===r)return"";if("object"!=typeof r)return"function"==typeof r?"":n(r+"");if(_(r)){var g="";d.__k=r;for(var x=0;x<r.length;x++){var w=r[x];null!=w&&"boolean"!=typeof w&&(g+=m(w,a,i,s,d))}return g}if(void 0!==r.constructor)return"";r.__=d,c&&c(r);var C,S,F,T=r.type,j=r.props,A=a;if("function"==typeof T){if(T===e.Fragment)S=j.children;else{if(null!=(C=T.contextType)){var L=a[C.__c];A=L?L.props.value:C.__}if(T.prototype&&"function"==typeof T.prototype.render)S=y(r,A),F=r.__c;else{r.__c=F={__v:r,props:j,context:A,setState:h,forceUpdate:h,__d:!0,__h:[]};for(var M=0;F.__d&&M++<25;)F.__d=!1,u&&u(r),S=T.call(F,j,A);F.__d=!0}null!=F.getChildContext&&(a=v({},a,F.getChildContext()))}var z=m(S=null!=S&&S.type===e.Fragment&&null==S.key?S.props.children:S,a,i,s,r);return f&&f(r),r.__=void 0,p&&p(r),z}var W,q="<"+T,D="";for(var H in j){var O=j[H];switch(H){case"children":W=O;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in j)continue;H="for";break;case"className":if("class"in j)continue;H="class";break;case"defaultChecked":H="checked";break;case"defaultSelected":H="selected";break;case"defaultValue":case"value":switch(H="value",T){case"textarea":W=O;continue;case"select":s=O;continue;case"option":s!=O||"selected"in j||(q+=" selected")}break;case"dangerouslySetInnerHTML":D=O&&O.__html;continue;case"style":"object"==typeof O&&(O=l(O));break;default:if(i&&o.test(H))H=H.toLowerCase().replace(b,"xlink:");else{if(t.test(H))continue;"-"!==H[4]&&"draggable"!==H||null==O||(O+="")}}null!=O&&!1!==O&&"function"!=typeof O&&(q=!0===O||""===O?q+" "+H:q+" "+H+'="'+n(O+"")+'"')}if(t.test(T))throw new Error(T+" is not a valid HTML tag name in "+q+">");return D||("string"==typeof W?D=n(W):null!=W&&!1!==W&&!0!==W&&(D=m(W,a,"svg"===T||"foreignObject"!==T&&i,s,r))),f&&f(r),r.__=void 0,p&&p(r),!D&&k.has(T)?q+"/>":q+">"+D+"</"+T+">"}var b=/^xlink:?/,k=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);return function(t,o){var r=e.options.__s;e.options.__s=!0,c=e.options.__b,f=e.options.diffed,u=e.options.__r,p=e.options.unmount;var n=e.h(e.Fragment,null);n.__k=[t];try{return m(t,o||g,!1,void 0,n)}finally{e.options.__c&&e.options.__c(t,d),e.options.__s=r,d.length=0}}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):(e||self).preactRenderToString=t(e.preact)}(this,function(e){var t=/[\s\n\\/='"\0<>]/,o=/^xlink:?./,r=/["&<]/;function n(e){if(0===e.length||!1===r.test(e))return e;for(var t=0,o=0,n="",a="";o<e.length;o++){switch(e.charCodeAt(o)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}o!==t&&(n+=e.slice(t,o)),n+=a,t=o+1}return o!==t&&(n+=e.slice(t,o)),n}var a={},i=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"]),s=/[A-Z]/g;function l(e){var t="";for(var o in e){var r=e[o];if(null!=r&&""!==r){var n="-"==o[0]?o:a[o]||(a[o]=o.replace(s,"-$&").toLowerCase()),l=";";"number"!=typeof r||n.startsWith("--")||i.has(n)||(l="px;"),t=t+n+":"+r+l}}return t||void 0}var c,f,u,p,d=[],_=Array.isArray,v=Object.assign;function h(){this.__d=!0}var g={};function y(r,a,i,s,d){if(null==r||!0===r||!1===r||""===r)return"";if("object"!=typeof r)return"function"==typeof r?"":n(r+"");if(_(r)){var k="";d.__k=r;for(var x=0;x<r.length;x++){var w=r[x];null!=w&&"boolean"!=typeof w&&(k+=y(w,a,i,s,d))}return k}if(void 0!==r.constructor)return"";r.__=d,c&&c(r);var C,S,F,T=r.type,j=r.props,A=a;if("function"==typeof T){if(T===e.Fragment)S=j.children;else{if(null!=(C=T.contextType)){var L=a[C.__c];A=L?L.props.value:C.__}if(T.prototype&&"function"==typeof T.prototype.render)S=function(e,t){var o=e.type,r=new o(e.props,t);return e.__c=r,r.__v=e,r.props=e.props,r.context=t,r.__d=!0,null==r.state&&(r.state=g),null==r.__s&&(r.__s=r.state),o.getDerivedStateFromProps?r.state=v({},r.state,o.getDerivedStateFromProps(r.props,r.state)):r.componentWillMount&&(r.componentWillMount(),r.state=r.__s!==r.state?r.__s:r.state),u&&u(e),r.render(r.props,r.state,t)}(r,A),F=r.__c;else{r.__c=F={__v:r,props:j,context:A,setState:h,forceUpdate:h,__d:!0,__h:[]};for(var M=0;F.__d&&M++<25;)F.__d=!1,u&&u(r),S=T.call(F,j,A);F.__d=!0}null!=F.getChildContext&&(a=v({},a,F.getChildContext()))}var z=y(S=null!=S&&S.type===e.Fragment&&null==S.key?S.props.children:S,a,i,s,r);return f&&f(r),r.__=void 0,p&&p(r),z}var W,q="<"+T,D="";for(var H in j){var O=j[H];switch(H){case"children":W=O;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in j)continue;H="for";break;case"className":if("class"in j)continue;H="class";break;case"defaultChecked":H="checked";break;case"defaultSelected":H="selected";break;case"defaultValue":case"value":switch(H="value",T){case"textarea":W=O;continue;case"select":s=O;continue;case"option":s!=O||"selected"in j||(q+=" selected")}break;case"dangerouslySetInnerHTML":D=O&&O.__html;continue;case"style":"object"==typeof O&&(O=l(O));break;default:if(i&&o.test(H))H=H.toLowerCase().replace(m,"xlink:");else{if(t.test(H))continue;"-"!==H[4]&&"draggable"!==H||null==O||(O+="")}}null!=O&&!1!==O&&"function"!=typeof O&&(q=!0===O||""===O?q+" "+H:q+" "+H+'="'+n(O+"")+'"')}if(t.test(T))throw new Error(T+" is not a valid HTML tag name in "+q+">");return D||("string"==typeof W?D=n(W):null!=W&&!1!==W&&!0!==W&&(D=y(W,a,"svg"===T||"foreignObject"!==T&&i,s,r))),f&&f(r),r.__=void 0,p&&p(r),!D&&b.has(T)?q+"/>":q+">"+D+"</"+T+">"}var m=/^xlink:?/,b=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);return function(t,o){var r=e.options.__s;e.options.__s=!0,c=e.options.__b,f=e.options.diffed,u=e.options.__r,p=e.options.unmount;var n=e.h(e.Fragment,null);n.__k=[t];try{return y(t,o||g,!1,void 0,n)}finally{e.options.__c&&e.options.__c(t,d),e.options.__s=r,d.length=0}}});
//# sourceMappingURL=index.umd.js.map

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

var t=require("preact");if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(t){return"@@"+t}}var n=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,r=/[\s\n\\/='"\0<>]/,o=/^xlink:?./,i=/["&<]/;function a(t){if(0===t.length||!1===i.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},c=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},l={},f=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),s=/[A-Z]/g;function p(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:l[n]||(l[n]=n.replace(s,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||f.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function d(t,e){return Array.isArray(e)?e.reduce(d,t):null!=e&&!1!==e&&t.push(e),t}function g(){this.__d=!0}function y(t,e){return{__v:t,context:e,props:t.props,setState:g,forceUpdate:g,__d:!0,__h:[]}}var b=[],v=[];function m(e,n,r,o){var i=t.options.__s;t.options.__s=!0;try{return h(e,n||{},r,o)}finally{t.options.__c&&t.options.__c(e,v),t.options.__s=i,v.length=0}}function h(e,i,l,f,s,g){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":a(e+"");var b=l.pretty,v=b&&"string"==typeof b?b:"\t";if(Array.isArray(e)){for(var m="",x=0;x<e.length;x++)b&&x>0&&(m+="\n"),m+=h(e[x],i,l,f,s,g);return m}if(void 0!==e.constructor)return"";t.options.__b&&t.options.__b(e);var j,S=e.type,k=e.props,w=!1;if("function"==typeof S){if(w=!0,!l.shallow||!f&&!1!==l.renderRootComponent){if(S===t.Fragment){var O=[];return d(O,e.props.children),h(O,i,l,!1!==l.shallowHighOrder,s,g)}var A,F=e.__c=y(e,i),C=t.options.__r,E=i,M=S.contextType;if(null!=M){var H=i[M.__c];E=H?H.props.value:M.__}if(S.prototype&&"function"==typeof S.prototype.render)(F=e.__c=new S(k,E)).__v=e,F._dirty=F.__d=!0,F.props=k,null==F.state&&(F.state={}),null==F._nextState&&null==F.__s&&(F._nextState=F.__s=F.state),F.context=E,S.getDerivedStateFromProps?F.state=Object.assign({},F.state,S.getDerivedStateFromProps(F.props,F.state)):F.componentWillMount&&(F.componentWillMount(),F.state=F._nextState!==F.state?F._nextState:F.__s!==F.state?F.__s:F.state),C&&C(e),A=F.render(F.props,F.state,F.context);else for(var N=0;F.__d&&N++<25;)F.__d=!1,C&&C(e),A=S.call(e.__c,k,E);F.getChildContext&&(i=Object.assign({},i,F.getChildContext()));var D=h(A,i,l,!1!==l.shallowHighOrder,s,g);return t.options.diffed&&t.options.diffed(e),D}S=(j=S).displayName||j!==Function&&j.name||_(j)}var I,W,$="<"+S;if(k){var U=Object.keys(k);l&&!0===l.sortAttributes&&U.sort();for(var L=0;L<U.length;L++){var P=U[L],R=k[P];if("children"!==P){if(!r.test(P)&&(l&&l.allAttributes||"key"!==P&&"ref"!==P&&"__self"!==P&&"__source"!==P)){if("defaultValue"===P)P="value";else if("defaultChecked"===P)P="checked";else if("defaultSelected"===P)P="selected";else if("className"===P){if(void 0!==k.class)continue;P="class"}else s&&o.test(P)&&(P=P.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===P){if(k.for)continue;P="for"}"style"===P&&R&&"object"==typeof R&&(R=p(R)),"a"===P[0]&&"r"===P[1]&&"boolean"==typeof R&&(R=String(R));var T=l.attributeHook&&l.attributeHook(P,R,i,l,w);if(T||""===T)$+=T;else if("dangerouslySetInnerHTML"===P)W=R&&R.__html;else if("textarea"===S&&"value"===P)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=P,l&&l.xml))){$=$+" "+P;continue}if("value"===P){if("select"===S){g=R;continue}"option"===S&&g==R&&void 0===k.selected&&($+=" selected")}$=$+" "+P+'="'+a(R+"")+'"'}}}else I=R}}if(b){var z=$.replace(/\n\s*/," ");z===$||~z.indexOf("\n")?b&&~$.indexOf("\n")&&($+="\n"):$=z}if($+=">",r.test(S))throw new Error(S+" is not a valid HTML tag name in "+$);var J,q=n.test(S)||l.voidElements&&l.voidElements.test(S),V=[];if(W)b&&c(W)&&(W="\n"+v+u(W,v)),$+=W;else if(null!=I&&d(J=[],I).length){for(var B=b&&~$.indexOf("\n"),G=!1,Z=0;Z<J.length;Z++){var K=J[Z];if(null!=K&&!1!==K){var Q=h(K,i,l,!0,"svg"===S||"foreignObject"!==S&&s,g);if(b&&!B&&c(Q)&&(B=!0),Q)if(b){var X=Q.length>0&&"<"!=Q[0];G&&X?V[V.length-1]+=Q:V.push(Q),G=X}else V.push(Q)}}if(b&&B)for(var Y=V.length;Y--;)V[Y]="\n"+v+u(V[Y],v)}if(t.options.diffed&&t.options.diffed(e),V.length||W)$+=V.join("");else if(l&&l.xml)return $.substring(0,$.length-1)+" />";return!q||J||W?(b&&~$.indexOf("\n")&&($+="\n"),$=$+"</"+S+">"):$=$.replace(/>$/," />"),$}function _(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=b.length;r--;)if(b[r]===t){n=r;break}n<0&&(n=b.push(t)-1),e="UnnamedComponent"+n}return e}var x=/(\\|\"|\')/g,j=function(t){return t.replace(x,"\\$1")},S=Object.prototype.toString,k=Date.prototype.toISOString,w=Error.prototype.toString,O=RegExp.prototype.toString,A=Symbol.prototype.toString,F=/^Symbol\((.*)\)(.*)$/,C=/\n/gi,E=Object.getOwnPropertySymbols||function(t){return[]};function M(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function H(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function N(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function D(t){return A.call(t).replace(F,"Symbol($1)")}function I(t){return"["+w.call(t)+"]"}function W(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;if("number"===e)return H(t);if("string"===e)return'"'+j(t)+'"';if("function"===e)return N(t);if("symbol"===e)return D(t);var n=S.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?N(t,min):"[object Symbol]"===n?D(t):"[object Date]"===n?k.call(t):"[object Error]"===n?I(t):"[object RegExp]"===n?O.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":M(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&I(t)}function $(t,e,n,r,o,i,a,u,c,l){var f="";if(t.length){f+=o;for(var s=n+e,p=0;p<t.length;p++)f+=s+q(t[p],e,s,r,o,i,a,u,c,l),p<t.length-1&&(f+=","+r);f+=o+n}return"["+f+"]"}function U(t,e,n,r,o,i,a,u,c,l){return(l?"":"Arguments ")+$(t,e,n,r,o,i,a,u,c,l)}function L(t,e,n,r,o,i,a,u,c,l){return(l?"":t.constructor.name+" ")+$(t,e,n,r,o,i,a,u,c,l)}function P(t,e,n,r,o,i,a,u,c,l){var f="Map {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=n+e;!p.done;)f+=d+q(p.value[0],e,d,r,o,i,a,u,c,l)+" => "+q(p.value[1],e,d,r,o,i,a,u,c,l),(p=s.next()).done||(f+=","+r);f+=o+n}return f+"}"}function R(t,e,n,r,o,i,a,u,c,l){var f=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort(),p=E(t);if(p.length&&(s=s.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===S.call(t))}).concat(p)),s.length){f+=o;for(var d=n+e,g=0;g<s.length;g++){var y=s[g];f+=d+q(y,e,d,r,o,i,a,u,c,l)+": "+q(t[y],e,d,r,o,i,a,u,c,l),g<s.length-1&&(f+=","+r)}f+=o+n}return f+"}"}function T(t,e,n,r,o,i,a,u,c,l){var f="Set {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=n+e;!p.done;)f+=d+q(p.value[1],e,d,r,o,i,a,u,c,l),(p=s.next()).done||(f+=","+r);f+=o+n}return f+"}"}function z(t,e,n,r,o,i,a,u,c,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var f=++u>a;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return q(t.toJSON(),e,n,r,o,i,a,u,c,l);var s=S.call(t);return"[object Arguments]"===s?f?"[Arguments]":U(t,e,n,r,o,i,a,u,c,l):M(s)?f?"[Array]":L(t,e,n,r,o,i,a,u,c,l):"[object Map]"===s?f?"[Map]":P(t,e,n,r,o,i,a,u,c,l):"[object Set]"===s?f?"[Set]":T(t,e,n,r,o,i,a,u,c,l):"object"==typeof t?f?"[Object]":R(t,e,n,r,o,i,a,u,c,l):void 0}function J(t,e,n,r,o,i,a,u,c,l){for(var f,s=!1,p=0;p<c.length;p++)if((f=c[p]).test(t)){s=!0;break}return!!s&&f.print(t,function(t){return q(t,e,n,r,o,i,a,u,c,l)},function(t){var r=n+e;return r+t.replace(C,"\n"+r)},{edgeSpacing:o,spacing:r})}function q(t,e,n,r,o,i,a,u,c,l){return W(t)||J(t,e,n,r,o,i,a,u,c,l)||z(t,e,n,r,o,i,a,u,c,l)}var V={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function B(t){if(Object.keys(t).forEach(function(t){if(!V.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function G(t){var e={};return Object.keys(V).forEach(function(n){return e[n]=t.hasOwnProperty(n)?t[n]:V[n]}),e.min&&(e.indent=0),e}function Z(t){return new Array(t+1).join(" ")}var K=function(t,e){var n,r;e?(B(e),e=G(e)):e=V;var o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){var a=J(t,n=Z(e.indent),"",o,i,r=[],e.maxDepth,0,e.plugins,e.min);if(a)return a}return W(t)||(n||(n=Z(e.indent)),r||(r=[]),z(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},Q={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return m(t,Q.context,Q.opts,!0)}},X={plugins:[Q]},Y={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var c="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(Q.context=n,Q.opts=r,~(e=K(e,X)).indexOf("\n")&&(e=u("\n"+e,c)+"\n")):e="Function",u("\n"+t+"={"+e+"}",c)):"\n"+c+t+'="'+a(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function tt(t,e,n){var r=Object.assign({},Y,n||{});return r.jsx||(r.attributeHook=null),m(t,e,r)}var et={shallow:!0};exports.default=tt,exports.render=tt,exports.shallowRender=function(t,e,n){return tt(t,e,Object.assign({},et,n||{}))};
var t=require("preact");if("function"!=typeof Symbol){var e=0;Symbol=function(t){return"@@"+t+ ++e},Symbol.for=function(t){return"@@"+t}}var n=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,r=/[\s\n\\/='"\0<>]/,o=/^xlink:?./,i=/["&<]/;function a(t){if(0===t.length||!1===i.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var u=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},c=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},l={},f=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),s=/[A-Z]/g;function p(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:l[n]||(l[n]=n.replace(s,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||f.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function d(t,e){return Array.isArray(e)?e.reduce(d,t):null!=e&&!1!==e&&t.push(e),t}function g(){this.__d=!0}var y=[],b=[];function v(e,n,r,o){var i=t.options.__s;t.options.__s=!0;try{return m(e,n||{},r,o)}finally{t.options.__c&&t.options.__c(e,b),t.options.__s=i,b.length=0}}function m(e,i,l,f,s,b){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":a(e+"");var v=l.pretty,h=v&&"string"==typeof v?v:"\t";if(Array.isArray(e)){for(var _="",x=0;x<e.length;x++)v&&x>0&&(_+="\n"),_+=m(e[x],i,l,f,s,b);return _}if(void 0!==e.constructor)return"";t.options.__b&&t.options.__b(e);var j,S=e.type,k=e.props,w=!1;if("function"==typeof S){if(w=!0,!l.shallow||!f&&!1!==l.renderRootComponent){if(S===t.Fragment){var O=[];return d(O,e.props.children),m(O,i,l,!1!==l.shallowHighOrder,s,b)}var A,F=e.__c=function(t,e){return{__v:t,context:e,props:t.props,setState:g,forceUpdate:g,__d:!0,__h:[]}}(e,i),C=t.options.__r,E=i,M=S.contextType;if(null!=M){var H=i[M.__c];E=H?H.props.value:M.__}if(S.prototype&&"function"==typeof S.prototype.render)(F=e.__c=new S(k,E)).__v=e,F._dirty=F.__d=!0,F.props=k,null==F.state&&(F.state={}),null==F._nextState&&null==F.__s&&(F._nextState=F.__s=F.state),F.context=E,S.getDerivedStateFromProps?F.state=Object.assign({},F.state,S.getDerivedStateFromProps(F.props,F.state)):F.componentWillMount&&(F.componentWillMount(),F.state=F._nextState!==F.state?F._nextState:F.__s!==F.state?F.__s:F.state),C&&C(e),A=F.render(F.props,F.state,F.context);else for(var N=0;F.__d&&N++<25;)F.__d=!1,C&&C(e),A=S.call(e.__c,k,E);F.getChildContext&&(i=Object.assign({},i,F.getChildContext()));var D=m(A,i,l,!1!==l.shallowHighOrder,s,b);return t.options.diffed&&t.options.diffed(e),D}S=(j=S).displayName||j!==Function&&j.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=y.length;r--;)if(y[r]===t){n=r;break}n<0&&(n=y.push(t)-1),e="UnnamedComponent"+n}return e}(j)}var I,W,$="<"+S;if(k){var U=Object.keys(k);l&&!0===l.sortAttributes&&U.sort();for(var L=0;L<U.length;L++){var P=U[L],R=k[P];if("children"!==P){if(!r.test(P)&&(l&&l.allAttributes||"key"!==P&&"ref"!==P&&"__self"!==P&&"__source"!==P)){if("defaultValue"===P)P="value";else if("defaultChecked"===P)P="checked";else if("defaultSelected"===P)P="selected";else if("className"===P){if(void 0!==k.class)continue;P="class"}else s&&o.test(P)&&(P=P.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===P){if(k.for)continue;P="for"}"style"===P&&R&&"object"==typeof R&&(R=p(R)),"a"===P[0]&&"r"===P[1]&&"boolean"==typeof R&&(R=String(R));var T=l.attributeHook&&l.attributeHook(P,R,i,l,w);if(T||""===T)$+=T;else if("dangerouslySetInnerHTML"===P)W=R&&R.__html;else if("textarea"===S&&"value"===P)I=R;else if((R||0===R||""===R)&&"function"!=typeof R){if(!(!0!==R&&""!==R||(R=P,l&&l.xml))){$=$+" "+P;continue}if("value"===P){if("select"===S){b=R;continue}"option"===S&&b==R&&void 0===k.selected&&($+=" selected")}$=$+" "+P+'="'+a(R+"")+'"'}}}else I=R}}if(v){var z=$.replace(/\n\s*/," ");z===$||~z.indexOf("\n")?v&&~$.indexOf("\n")&&($+="\n"):$=z}if($+=">",r.test(S))throw new Error(S+" is not a valid HTML tag name in "+$);var J,q=n.test(S)||l.voidElements&&l.voidElements.test(S),V=[];if(W)v&&c(W)&&(W="\n"+h+u(W,h)),$+=W;else if(null!=I&&d(J=[],I).length){for(var B=v&&~$.indexOf("\n"),G=!1,Z=0;Z<J.length;Z++){var K=J[Z];if(null!=K&&!1!==K){var Q=m(K,i,l,!0,"svg"===S||"foreignObject"!==S&&s,b);if(v&&!B&&c(Q)&&(B=!0),Q)if(v){var X=Q.length>0&&"<"!=Q[0];G&&X?V[V.length-1]+=Q:V.push(Q),G=X}else V.push(Q)}}if(v&&B)for(var Y=V.length;Y--;)V[Y]="\n"+h+u(V[Y],h)}if(t.options.diffed&&t.options.diffed(e),V.length||W)$+=V.join("");else if(l&&l.xml)return $.substring(0,$.length-1)+" />";return!q||J||W?(v&&~$.indexOf("\n")&&($+="\n"),$=$+"</"+S+">"):$=$.replace(/>$/," />"),$}var h=/(\\|\"|\')/g,_=Object.prototype.toString,x=Date.prototype.toISOString,j=Error.prototype.toString,S=RegExp.prototype.toString,k=Symbol.prototype.toString,w=/^Symbol\((.*)\)(.*)$/,O=/\n/gi,A=Object.getOwnPropertySymbols||function(t){return[]};function F(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function C(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function E(t){return k.call(t).replace(w,"Symbol($1)")}function M(t){return"["+j.call(t)+"]"}function H(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(h,"\\$1")}(t)+'"';if("function"===e)return C(t);if("symbol"===e)return E(t);var n=_.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?C(t,min):"[object Symbol]"===n?E(t):"[object Date]"===n?x.call(t):"[object Error]"===n?M(t):"[object RegExp]"===n?S.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":F(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&M(t)}function N(t,e,n,r,o,i,a,u,c,l){var f="";if(t.length){f+=o;for(var s=n+e,p=0;p<t.length;p++)f+=s+W(t[p],e,s,r,o,i,a,u,c,l),p<t.length-1&&(f+=","+r);f+=o+n}return"["+f+"]"}function D(t,e,n,r,o,i,a,u,c,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);var f=++u>a;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return W(t.toJSON(),e,n,r,o,i,a,u,c,l);var s=_.call(t);return"[object Arguments]"===s?f?"[Arguments]":function(t,e,n,r,o,i,a,u,c,l){return(l?"":"Arguments ")+N(t,e,n,r,o,i,a,u,c,l)}(t,e,n,r,o,i,a,u,c,l):F(s)?f?"[Array]":function(t,e,n,r,o,i,a,u,c,l){return(l?"":t.constructor.name+" ")+N(t,e,n,r,o,i,a,u,c,l)}(t,e,n,r,o,i,a,u,c,l):"[object Map]"===s?f?"[Map]":function(t,e,n,r,o,i,a,u,c,l){var f="Map {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=n+e;!p.done;)f+=d+W(p.value[0],e,d,r,o,i,a,u,c,l)+" => "+W(p.value[1],e,d,r,o,i,a,u,c,l),(p=s.next()).done||(f+=","+r);f+=o+n}return f+"}"}(t,e,n,r,o,i,a,u,c,l):"[object Set]"===s?f?"[Set]":function(t,e,n,r,o,i,a,u,c,l){var f="Set {",s=t.entries(),p=s.next();if(!p.done){f+=o;for(var d=n+e;!p.done;)f+=d+W(p.value[1],e,d,r,o,i,a,u,c,l),(p=s.next()).done||(f+=","+r);f+=o+n}return f+"}"}(t,e,n,r,o,i,a,u,c,l):"object"==typeof t?f?"[Object]":function(t,e,n,r,o,i,a,u,c,l){var f=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",s=Object.keys(t).sort(),p=A(t);if(p.length&&(s=s.filter(function(t){return!("symbol"==typeof t||"[object Symbol]"===_.call(t))}).concat(p)),s.length){f+=o;for(var d=n+e,g=0;g<s.length;g++){var y=s[g];f+=d+W(y,e,d,r,o,i,a,u,c,l)+": "+W(t[y],e,d,r,o,i,a,u,c,l),g<s.length-1&&(f+=","+r)}f+=o+n}return f+"}"}(t,e,n,r,o,i,a,u,c,l):void 0}function I(t,e,n,r,o,i,a,u,c,l){for(var f,s=!1,p=0;p<c.length;p++)if((f=c[p]).test(t)){s=!0;break}return!!s&&f.print(t,function(t){return W(t,e,n,r,o,i,a,u,c,l)},function(t){var r=n+e;return r+t.replace(O,"\n"+r)},{edgeSpacing:o,spacing:r})}function W(t,e,n,r,o,i,a,u,c,l){return H(t)||I(t,e,n,r,o,i,a,u,c,l)||D(t,e,n,r,o,i,a,u,c,l)}var $={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function U(t){return new Array(t+1).join(" ")}var L={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return v(t,L.context,L.opts,!0)}},P={plugins:[L]},R={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var c="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(L.context=n,L.opts=r,~(e=function(t,e){var n,r;e?(function(t){if(Object.keys(t).forEach(function(t){if(!$.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){var e={};return Object.keys($).forEach(function(n){return e[n]=t.hasOwnProperty(n)?t[n]:$[n]}),e.min&&(e.indent=0),e}(e)):e=$;var o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){var a=I(t,n=U(e.indent),"",o,i,r=[],e.maxDepth,0,e.plugins,e.min);if(a)return a}return H(t)||(n||(n=U(e.indent)),r||(r=[]),D(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,P)).indexOf("\n")&&(e=u("\n"+e,c)+"\n")):e="Function",u("\n"+t+"={"+e+"}",c)):"\n"+c+t+'="'+a(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function T(t,e,n){var r=Object.assign({},R,n||{});return r.jsx||(r.attributeHook=null),v(t,e,r)}var z={shallow:!0};exports.default=T,exports.render=T,exports.shallowRender=function(t,e,n){return T(t,e,Object.assign({},z,n||{}))};
//# sourceMappingURL=jsx.js.map

@@ -0,0 +0,0 @@ import { VNode } from 'preact';

@@ -1,1 +0,4 @@

module.exports = require('./jsx-entry').default;
const entry = require('./jsx-entry');
entry.default.render = entry.render;
entry.default.shallowRender = entry.shallowRender;
module.exports = entry.default;

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

import{options as t,Fragment as e}from"preact";if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^xlink:?./,a=/["&<]/;function c(t){if(0===t.length||!1===a.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var l=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},u=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},s={},f=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function d(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:s[n]||(s[n]=n.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||f.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function g(t,e){return Array.isArray(e)?e.reduce(g,t):null!=e&&!1!==e&&t.push(e),t}function y(){this.__d=!0}function b(t,e){return{__v:t,context:e,props:t.props,setState:y,forceUpdate:y,__d:!0,__h:[]}}var m=[],h=[];function v(e,n,r,o){var i=t.__s;t.__s=!0;try{return _(e,n||{},r,o)}finally{t.__c&&t.__c(e,h),t.__s=i,h.length=0}}function _(n,a,s,f,p,y){if(null==n||"boolean"==typeof n)return"";if("object"!=typeof n)return"function"==typeof n?"":c(n+"");var m=s.pretty,h=m&&"string"==typeof m?m:"\t";if(Array.isArray(n)){for(var v="",j=0;j<n.length;j++)m&&j>0&&(v+="\n"),v+=_(n[j],a,s,f,p,y);return v}if(void 0!==n.constructor)return"";t.__b&&t.__b(n);var S,k=n.type,O=n.props,w=!1;if("function"==typeof k){if(w=!0,!s.shallow||!f&&!1!==s.renderRootComponent){if(k===e){var A=[];return g(A,n.props.children),_(A,a,s,!1!==s.shallowHighOrder,p,y)}var F,C=n.__c=b(n,a),E=t.__r,M=a,H=k.contextType;if(null!=H){var N=a[H.__c];M=N?N.props.value:H.__}if(k.prototype&&"function"==typeof k.prototype.render)(C=n.__c=new k(O,M)).__v=n,C._dirty=C.__d=!0,C.props=O,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=M,k.getDerivedStateFromProps?C.state=Object.assign({},C.state,k.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E&&E(n),F=C.render(C.props,C.state,C.context);else for(var D=0;C.__d&&D++<25;)C.__d=!1,E&&E(n),F=k.call(n.__c,O,M);C.getChildContext&&(a=Object.assign({},a,C.getChildContext()));var I=_(F,a,s,!1!==s.shallowHighOrder,p,y);return t.diffed&&t.diffed(n),I}k=(S=k).displayName||S!==Function&&S.name||x(S)}var W,$,U="<"+k;if(O){var L=Object.keys(O);s&&!0===s.sortAttributes&&L.sort();for(var P=0;P<L.length;P++){var T=L[P],z=O[T];if("children"!==T){if(!o.test(T)&&(s&&s.allAttributes||"key"!==T&&"ref"!==T&&"__self"!==T&&"__source"!==T)){if("defaultValue"===T)T="value";else if("defaultChecked"===T)T="checked";else if("defaultSelected"===T)T="selected";else if("className"===T){if(void 0!==O.class)continue;T="class"}else p&&i.test(T)&&(T=T.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===T){if(O.for)continue;T="for"}"style"===T&&z&&"object"==typeof z&&(z=d(z)),"a"===T[0]&&"r"===T[1]&&"boolean"==typeof z&&(z=String(z));var J=s.attributeHook&&s.attributeHook(T,z,a,s,w);if(J||""===J)U+=J;else if("dangerouslySetInnerHTML"===T)$=z&&z.__html;else if("textarea"===k&&"value"===T)W=z;else if((z||0===z||""===z)&&"function"!=typeof z){if(!(!0!==z&&""!==z||(z=T,s&&s.xml))){U=U+" "+T;continue}if("value"===T){if("select"===k){y=z;continue}"option"===k&&y==z&&void 0===O.selected&&(U+=" selected")}U=U+" "+T+'="'+c(z+"")+'"'}}}else W=z}}if(m){var R=U.replace(/\n\s*/," ");R===U||~R.indexOf("\n")?m&&~U.indexOf("\n")&&(U+="\n"):U=R}if(U+=">",o.test(k))throw new Error(k+" is not a valid HTML tag name in "+U);var V,q=r.test(k)||s.voidElements&&s.voidElements.test(k),B=[];if($)m&&u($)&&($="\n"+h+l($,h)),U+=$;else if(null!=W&&g(V=[],W).length){for(var G=m&&~U.indexOf("\n"),Z=!1,K=0;K<V.length;K++){var Q=V[K];if(null!=Q&&!1!==Q){var X=_(Q,a,s,!0,"svg"===k||"foreignObject"!==k&&p,y);if(m&&!G&&u(X)&&(G=!0),X)if(m){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(m&&G)for(var tt=B.length;tt--;)B[tt]="\n"+h+l(B[tt],h)}if(t.diffed&&t.diffed(n),B.length||$)U+=B.join("");else if(s&&s.xml)return U.substring(0,U.length-1)+" />";return!q||V||$?(m&&~U.indexOf("\n")&&(U+="\n"),U=U+"</"+k+">"):U=U.replace(/>$/," />"),U}function x(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=m.length;r--;)if(m[r]===t){n=r;break}n<0&&(n=m.push(t)-1),e="UnnamedComponent"+n}return e}const j=/(\\|\"|\')/g;var S=function(t){return t.replace(j,"\\$1")};const k=Object.prototype.toString,O=Date.prototype.toISOString,w=Error.prototype.toString,A=RegExp.prototype.toString,F=Symbol.prototype.toString,C=/^Symbol\((.*)\)(.*)$/,E=/\n/gi,M=Object.getOwnPropertySymbols||(t=>[]);function H(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function N(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function I(t){return F.call(t).replace(C,"Symbol($1)")}function W(t){return"["+w.call(t)+"]"}function $(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return N(t);if("string"===e)return'"'+S(t)+'"';if("function"===e)return D(t);if("symbol"===e)return I(t);const n=k.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?I(t):"[object Date]"===n?O.call(t):"[object Error]"===n?W(t):"[object RegExp]"===n?A.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":H(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&W(t)}function U(t,e,n,r,o,i,a,c,l,u){let s="";if(t.length){s+=o;const f=n+e;for(let n=0;n<t.length;n++)s+=f+q(t[n],e,f,r,o,i,a,c,l,u),n<t.length-1&&(s+=","+r);s+=o+n}return"["+s+"]"}function L(t,e,n,r,o,i,a,c,l,u){return(u?"":"Arguments ")+U(t,e,n,r,o,i,a,c,l,u)}function P(t,e,n,r,o,i,a,c,l,u){return(u?"":t.constructor.name+" ")+U(t,e,n,r,o,i,a,c,l,u)}function T(t,e,n,r,o,i,a,c,l,u){let s="Map {";const f=t.entries();let p=f.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+q(p.value[0],e,t,r,o,i,a,c,l,u)+" => "+q(p.value[1],e,t,r,o,i,a,c,l,u),p=f.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}function z(t,e,n,r,o,i,a,c,l,u){let s=(u?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=M(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===k.call(t))).concat(p)),f.length){s+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];s+=p+q(d,e,p,r,o,i,a,c,l,u)+": "+q(t[d],e,p,r,o,i,a,c,l,u),n<f.length-1&&(s+=","+r)}s+=o+n}return s+"}"}function J(t,e,n,r,o,i,a,c,l,u){let s="Set {";const f=t.entries();let p=f.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+q(p.value[1],e,t,r,o,i,a,c,l,u),p=f.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}function R(t,e,n,r,o,i,a,c,l,u){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const s=++c>a;if(!s&&t.toJSON&&"function"==typeof t.toJSON)return q(t.toJSON(),e,n,r,o,i,a,c,l,u);const f=k.call(t);return"[object Arguments]"===f?s?"[Arguments]":L(t,e,n,r,o,i,a,c,l,u):H(f)?s?"[Array]":P(t,e,n,r,o,i,a,c,l,u):"[object Map]"===f?s?"[Map]":T(t,e,n,r,o,i,a,c,l,u):"[object Set]"===f?s?"[Set]":J(t,e,n,r,o,i,a,c,l,u):"object"==typeof t?s?"[Object]":z(t,e,n,r,o,i,a,c,l,u):void 0}function V(t,e,n,r,o,i,a,c,l,u){let s,f=!1;for(let e=0;e<l.length;e++)if(s=l[e],s.test(t)){f=!0;break}return!!f&&s.print(t,function(t){return q(t,e,n,r,o,i,a,c,l,u)},function(t){const r=n+e;return r+t.replace(E,"\n"+r)},{edgeSpacing:o,spacing:r})}function q(t,e,n,r,o,i,a,c,l,u){return $(t)||V(t,e,n,r,o,i,a,c,l,u)||R(t,e,n,r,o,i,a,c,l,u)}const B={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function G(t){if(Object.keys(t).forEach(t=>{if(!B.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function Z(t){const e={};return Object.keys(B).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:B[n]),e.min&&(e.indent=0),e}function K(t){return new Array(t+1).join(" ")}var Q=function(t,e){let n,r;e?(G(e),e=Z(e)):e=B;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=K(e.indent),r=[];var a=V(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return $(t)||(n||(n=K(e.indent)),r||(r=[]),R(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},X={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return v(t,X.context,X.opts,!0)}},Y={plugins:[X]},tt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(X.context=n,X.opts=r,~(e=Q(e,Y)).indexOf("\n")&&(e=l("\n"+e,a)+"\n")):e="Function",l("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+c(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function et(t,e,n){var r=Object.assign({},tt,n||{});return r.jsx||(r.attributeHook=null),v(t,e,r)}var nt={shallow:!0};function rt(t,e,n){return et(t,e,Object.assign({},nt,n||{}))}export default et;export{et as render,rt as shallowRender};
import{options as t,Fragment as e}from"preact";if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^xlink:?./,a=/["&<]/;function c(t){if(0===t.length||!1===a.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var l=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},u=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},s={},f=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function d(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:s[n]||(s[n]=n.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||f.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function g(t,e){return Array.isArray(e)?e.reduce(g,t):null!=e&&!1!==e&&t.push(e),t}function y(){this.__d=!0}var b=[],m=[];function h(e,n,r,o){var i=t.__s;t.__s=!0;try{return v(e,n||{},r,o)}finally{t.__c&&t.__c(e,m),t.__s=i,m.length=0}}function v(n,a,s,f,p,m){if(null==n||"boolean"==typeof n)return"";if("object"!=typeof n)return"function"==typeof n?"":c(n+"");var h=s.pretty,_=h&&"string"==typeof h?h:"\t";if(Array.isArray(n)){for(var x="",j=0;j<n.length;j++)h&&j>0&&(x+="\n"),x+=v(n[j],a,s,f,p,m);return x}if(void 0!==n.constructor)return"";t.__b&&t.__b(n);var S,k=n.type,O=n.props,w=!1;if("function"==typeof k){if(w=!0,!s.shallow||!f&&!1!==s.renderRootComponent){if(k===e){var A=[];return g(A,n.props.children),v(A,a,s,!1!==s.shallowHighOrder,p,m)}var F,C=n.__c=function(t,e){return{__v:t,context:e,props:t.props,setState:y,forceUpdate:y,__d:!0,__h:[]}}(n,a),E=t.__r,M=a,H=k.contextType;if(null!=H){var N=a[H.__c];M=N?N.props.value:H.__}if(k.prototype&&"function"==typeof k.prototype.render)(C=n.__c=new k(O,M)).__v=n,C._dirty=C.__d=!0,C.props=O,null==C.state&&(C.state={}),null==C._nextState&&null==C.__s&&(C._nextState=C.__s=C.state),C.context=M,k.getDerivedStateFromProps?C.state=Object.assign({},C.state,k.getDerivedStateFromProps(C.props,C.state)):C.componentWillMount&&(C.componentWillMount(),C.state=C._nextState!==C.state?C._nextState:C.__s!==C.state?C.__s:C.state),E&&E(n),F=C.render(C.props,C.state,C.context);else for(var D=0;C.__d&&D++<25;)C.__d=!1,E&&E(n),F=k.call(n.__c,O,M);C.getChildContext&&(a=Object.assign({},a,C.getChildContext()));var I=v(F,a,s,!1!==s.shallowHighOrder,p,m);return t.diffed&&t.diffed(n),I}k=(S=k).displayName||S!==Function&&S.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=b.length;r--;)if(b[r]===t){n=r;break}n<0&&(n=b.push(t)-1),e="UnnamedComponent"+n}return e}(S)}var W,$,U="<"+k;if(O){var L=Object.keys(O);s&&!0===s.sortAttributes&&L.sort();for(var P=0;P<L.length;P++){var T=L[P],z=O[T];if("children"!==T){if(!o.test(T)&&(s&&s.allAttributes||"key"!==T&&"ref"!==T&&"__self"!==T&&"__source"!==T)){if("defaultValue"===T)T="value";else if("defaultChecked"===T)T="checked";else if("defaultSelected"===T)T="selected";else if("className"===T){if(void 0!==O.class)continue;T="class"}else p&&i.test(T)&&(T=T.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===T){if(O.for)continue;T="for"}"style"===T&&z&&"object"==typeof z&&(z=d(z)),"a"===T[0]&&"r"===T[1]&&"boolean"==typeof z&&(z=String(z));var J=s.attributeHook&&s.attributeHook(T,z,a,s,w);if(J||""===J)U+=J;else if("dangerouslySetInnerHTML"===T)$=z&&z.__html;else if("textarea"===k&&"value"===T)W=z;else if((z||0===z||""===z)&&"function"!=typeof z){if(!(!0!==z&&""!==z||(z=T,s&&s.xml))){U=U+" "+T;continue}if("value"===T){if("select"===k){m=z;continue}"option"===k&&m==z&&void 0===O.selected&&(U+=" selected")}U=U+" "+T+'="'+c(z+"")+'"'}}}else W=z}}if(h){var R=U.replace(/\n\s*/," ");R===U||~R.indexOf("\n")?h&&~U.indexOf("\n")&&(U+="\n"):U=R}if(U+=">",o.test(k))throw new Error(k+" is not a valid HTML tag name in "+U);var V,q=r.test(k)||s.voidElements&&s.voidElements.test(k),B=[];if($)h&&u($)&&($="\n"+_+l($,_)),U+=$;else if(null!=W&&g(V=[],W).length){for(var G=h&&~U.indexOf("\n"),Z=!1,K=0;K<V.length;K++){var Q=V[K];if(null!=Q&&!1!==Q){var X=v(Q,a,s,!0,"svg"===k||"foreignObject"!==k&&p,m);if(h&&!G&&u(X)&&(G=!0),X)if(h){var Y=X.length>0&&"<"!=X[0];Z&&Y?B[B.length-1]+=X:B.push(X),Z=Y}else B.push(X)}}if(h&&G)for(var tt=B.length;tt--;)B[tt]="\n"+_+l(B[tt],_)}if(t.diffed&&t.diffed(n),B.length||$)U+=B.join("");else if(s&&s.xml)return U.substring(0,U.length-1)+" />";return!q||V||$?(h&&~U.indexOf("\n")&&(U+="\n"),U=U+"</"+k+">"):U=U.replace(/>$/," />"),U}const _=/(\\|\"|\')/g,x=Object.prototype.toString,j=Date.prototype.toISOString,S=Error.prototype.toString,k=RegExp.prototype.toString,O=Symbol.prototype.toString,w=/^Symbol\((.*)\)(.*)$/,A=/\n/gi,F=Object.getOwnPropertySymbols||(t=>[]);function C(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function E(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function M(t){return O.call(t).replace(w,"Symbol($1)")}function H(t){return"["+S.call(t)+"]"}function N(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(_,"\\$1")}(t)+'"';if("function"===e)return E(t);if("symbol"===e)return M(t);const n=x.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?E(t,min):"[object Symbol]"===n?M(t):"[object Date]"===n?j.call(t):"[object Error]"===n?H(t):"[object RegExp]"===n?k.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":C(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&H(t)}function D(t,e,n,r,o,i,a,c,l,u){let s="";if(t.length){s+=o;const f=n+e;for(let n=0;n<t.length;n++)s+=f+$(t[n],e,f,r,o,i,a,c,l,u),n<t.length-1&&(s+=","+r);s+=o+n}return"["+s+"]"}function I(t,e,n,r,o,i,a,c,l,u){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const s=++c>a;if(!s&&t.toJSON&&"function"==typeof t.toJSON)return $(t.toJSON(),e,n,r,o,i,a,c,l,u);const f=x.call(t);return"[object Arguments]"===f?s?"[Arguments]":function(t,e,n,r,o,i,a,c,l,u){return(u?"":"Arguments ")+D(t,e,n,r,o,i,a,c,l,u)}(t,e,n,r,o,i,a,c,l,u):C(f)?s?"[Array]":function(t,e,n,r,o,i,a,c,l,u){return(u?"":t.constructor.name+" ")+D(t,e,n,r,o,i,a,c,l,u)}(t,e,n,r,o,i,a,c,l,u):"[object Map]"===f?s?"[Map]":function(t,e,n,r,o,i,a,c,l,u){let s="Map {";const f=t.entries();let p=f.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+$(p.value[0],e,t,r,o,i,a,c,l,u)+" => "+$(p.value[1],e,t,r,o,i,a,c,l,u),p=f.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,a,c,l,u):"[object Set]"===f?s?"[Set]":function(t,e,n,r,o,i,a,c,l,u){let s="Set {";const f=t.entries();let p=f.next();if(!p.done){s+=o;const t=n+e;for(;!p.done;)s+=t+$(p.value[1],e,t,r,o,i,a,c,l,u),p=f.next(),p.done||(s+=","+r);s+=o+n}return s+"}"}(t,e,n,r,o,i,a,c,l,u):"object"==typeof t?s?"[Object]":function(t,e,n,r,o,i,a,c,l,u){let s=(u?"":t.constructor?t.constructor.name+" ":"Object ")+"{",f=Object.keys(t).sort();const p=F(t);if(p.length&&(f=f.filter(t=>!("symbol"==typeof t||"[object Symbol]"===x.call(t))).concat(p)),f.length){s+=o;const p=n+e;for(let n=0;n<f.length;n++){const d=f[n];s+=p+$(d,e,p,r,o,i,a,c,l,u)+": "+$(t[d],e,p,r,o,i,a,c,l,u),n<f.length-1&&(s+=","+r)}s+=o+n}return s+"}"}(t,e,n,r,o,i,a,c,l,u):void 0}function W(t,e,n,r,o,i,a,c,l,u){let s,f=!1;for(let e=0;e<l.length;e++)if(s=l[e],s.test(t)){f=!0;break}return!!f&&s.print(t,function(t){return $(t,e,n,r,o,i,a,c,l,u)},function(t){const r=n+e;return r+t.replace(A,"\n"+r)},{edgeSpacing:o,spacing:r})}function $(t,e,n,r,o,i,a,c,l,u){return N(t)||W(t,e,n,r,o,i,a,c,l,u)||I(t,e,n,r,o,i,a,c,l,u)}const U={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function L(t){return new Array(t+1).join(" ")}var P={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return h(t,P.context,P.opts,!0)}},T={plugins:[P]},z={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(P.context=n,P.opts=r,~(e=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!U.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){const e={};return Object.keys(U).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:U[n]),e.min&&(e.indent=0),e}(e)):e=U;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=L(e.indent),r=[];var a=W(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return N(t)||(n||(n=L(e.indent)),r||(r=[]),I(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,T)).indexOf("\n")&&(e=l("\n"+e,a)+"\n")):e="Function",l("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+c(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function J(t,e,n){var r=Object.assign({},z,n||{});return r.jsx||(r.attributeHook=null),h(t,e,r)}var R={shallow:!0};function V(t,e,n){return J(t,e,Object.assign({},R,n||{}))}export default J;export{J as render,V as shallowRender};
//# sourceMappingURL=jsx.module.js.map

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],e):e((t||self).preactRenderToString={},t.preact)}(this,function(t,e){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^xlink:?./,a=/["&<]/;function c(t){if(0===t.length||!1===a.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var s=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},l=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},f={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function d(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:f[n]||(f[n]=n.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||u.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function g(t,e){return Array.isArray(e)?e.reduce(g,t):null!=e&&!1!==e&&t.push(e),t}function y(){this.__d=!0}function b(t,e){return{__v:t,context:e,props:t.props,setState:y,forceUpdate:y,__d:!0,__h:[]}}var m=[],h=[];function v(t,n,r,o){var i=e.options.__s;e.options.__s=!0;try{return _(t,n||{},r,o)}finally{e.options.__c&&e.options.__c(t,h),e.options.__s=i,h.length=0}}function _(t,n,a,f,u,p){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return"function"==typeof t?"":c(t+"");var y=a.pretty,m=y&&"string"==typeof y?y:"\t";if(Array.isArray(t)){for(var h="",v=0;v<t.length;v++)y&&v>0&&(h+="\n"),h+=_(t[v],n,a,f,u,p);return h}if(void 0!==t.constructor)return"";e.options.__b&&e.options.__b(t);var j,S=t.type,k=t.props,w=!1;if("function"==typeof S){if(w=!0,!a.shallow||!f&&!1!==a.renderRootComponent){if(S===e.Fragment){var O=[];return g(O,t.props.children),_(O,n,a,!1!==a.shallowHighOrder,u,p)}var A,F=t.__c=b(t,n),C=e.options.__r,E=n,M=S.contextType;if(null!=M){var H=n[M.__c];E=H?H.props.value:M.__}if(S.prototype&&"function"==typeof S.prototype.render)(F=t.__c=new S(k,E)).__v=t,F._dirty=F.__d=!0,F.props=k,null==F.state&&(F.state={}),null==F._nextState&&null==F.__s&&(F._nextState=F.__s=F.state),F.context=E,S.getDerivedStateFromProps?F.state=Object.assign({},F.state,S.getDerivedStateFromProps(F.props,F.state)):F.componentWillMount&&(F.componentWillMount(),F.state=F._nextState!==F.state?F._nextState:F.__s!==F.state?F.__s:F.state),C&&C(t),A=F.render(F.props,F.state,F.context);else for(var N=0;F.__d&&N++<25;)F.__d=!1,C&&C(t),A=S.call(t.__c,k,E);F.getChildContext&&(n=Object.assign({},n,F.getChildContext()));var D=_(A,n,a,!1!==a.shallowHighOrder,u,p);return e.options.diffed&&e.options.diffed(t),D}S=(j=S).displayName||j!==Function&&j.name||x(j)}var I,T,W="<"+S;if(k){var $=Object.keys(k);a&&!0===a.sortAttributes&&$.sort();for(var U=0;U<$.length;U++){var L=$[U],P=k[L];if("children"!==L){if(!o.test(L)&&(a&&a.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L)){if("defaultValue"===L)L="value";else if("defaultChecked"===L)L="checked";else if("defaultSelected"===L)L="selected";else if("className"===L){if(void 0!==k.class)continue;L="class"}else u&&i.test(L)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(k.for)continue;L="for"}"style"===L&&P&&"object"==typeof P&&(P=d(P)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof P&&(P=String(P));var R=a.attributeHook&&a.attributeHook(L,P,n,a,w);if(R||""===R)W+=R;else if("dangerouslySetInnerHTML"===L)T=P&&P.__html;else if("textarea"===S&&"value"===L)I=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=L,a&&a.xml))){W=W+" "+L;continue}if("value"===L){if("select"===S){p=P;continue}"option"===S&&p==P&&void 0===k.selected&&(W+=" selected")}W=W+" "+L+'="'+c(P+"")+'"'}}}else I=P}}if(y){var z=W.replace(/\n\s*/," ");z===W||~z.indexOf("\n")?y&&~W.indexOf("\n")&&(W+="\n"):W=z}if(W+=">",o.test(S))throw new Error(S+" is not a valid HTML tag name in "+W);var J,q=r.test(S)||a.voidElements&&a.voidElements.test(S),V=[];if(T)y&&l(T)&&(T="\n"+m+s(T,m)),W+=T;else if(null!=I&&g(J=[],I).length){for(var B=y&&~W.indexOf("\n"),G=!1,Z=0;Z<J.length;Z++){var K=J[Z];if(null!=K&&!1!==K){var Q=_(K,n,a,!0,"svg"===S||"foreignObject"!==S&&u,p);if(y&&!B&&l(Q)&&(B=!0),Q)if(y){var X=Q.length>0&&"<"!=Q[0];G&&X?V[V.length-1]+=Q:V.push(Q),G=X}else V.push(Q)}}if(y&&B)for(var Y=V.length;Y--;)V[Y]="\n"+m+s(V[Y],m)}if(e.options.diffed&&e.options.diffed(t),V.length||T)W+=V.join("");else if(a&&a.xml)return W.substring(0,W.length-1)+" />";return!q||J||T?(y&&~W.indexOf("\n")&&(W+="\n"),W=W+"</"+S+">"):W=W.replace(/>$/," />"),W}function x(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=m.length;r--;)if(m[r]===t){n=r;break}n<0&&(n=m.push(t)-1),e="UnnamedComponent"+n}return e}const j=/(\\|\"|\')/g;var S=function(t){return t.replace(j,"\\$1")};const k=Object.prototype.toString,w=Date.prototype.toISOString,O=Error.prototype.toString,A=RegExp.prototype.toString,F=Symbol.prototype.toString,C=/^Symbol\((.*)\)(.*)$/,E=/\n/gi,M=Object.getOwnPropertySymbols||(t=>[]);function H(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function N(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function D(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function I(t){return F.call(t).replace(C,"Symbol($1)")}function T(t){return"["+O.call(t)+"]"}function W(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return N(t);if("string"===e)return'"'+S(t)+'"';if("function"===e)return D(t);if("symbol"===e)return I(t);const n=k.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?D(t,min):"[object Symbol]"===n?I(t):"[object Date]"===n?w.call(t):"[object Error]"===n?T(t):"[object RegExp]"===n?A.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":H(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&T(t)}function $(t,e,n,r,o,i,a,c,s,l){let f="";if(t.length){f+=o;const u=n+e;for(let n=0;n<t.length;n++)f+=u+V(t[n],e,u,r,o,i,a,c,s,l),n<t.length-1&&(f+=","+r);f+=o+n}return"["+f+"]"}function U(t,e,n,r,o,i,a,c,s,l){return(l?"":"Arguments ")+$(t,e,n,r,o,i,a,c,s,l)}function L(t,e,n,r,o,i,a,c,s,l){return(l?"":t.constructor.name+" ")+$(t,e,n,r,o,i,a,c,s,l)}function P(t,e,n,r,o,i,a,c,s,l){let f="Map {";const u=t.entries();let p=u.next();if(!p.done){f+=o;const t=n+e;for(;!p.done;)f+=t+V(p.value[0],e,t,r,o,i,a,c,s,l)+" => "+V(p.value[1],e,t,r,o,i,a,c,s,l),p=u.next(),p.done||(f+=","+r);f+=o+n}return f+"}"}function R(t,e,n,r,o,i,a,c,s,l){let f=(l?"":t.constructor?t.constructor.name+" ":"Object ")+"{",u=Object.keys(t).sort();const p=M(t);if(p.length&&(u=u.filter(t=>!("symbol"==typeof t||"[object Symbol]"===k.call(t))).concat(p)),u.length){f+=o;const p=n+e;for(let n=0;n<u.length;n++){const d=u[n];f+=p+V(d,e,p,r,o,i,a,c,s,l)+": "+V(t[d],e,p,r,o,i,a,c,s,l),n<u.length-1&&(f+=","+r)}f+=o+n}return f+"}"}function z(t,e,n,r,o,i,a,c,s,l){let f="Set {";const u=t.entries();let p=u.next();if(!p.done){f+=o;const t=n+e;for(;!p.done;)f+=t+V(p.value[1],e,t,r,o,i,a,c,s,l),p=u.next(),p.done||(f+=","+r);f+=o+n}return f+"}"}function J(t,e,n,r,o,i,a,c,s,l){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const f=++c>a;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return V(t.toJSON(),e,n,r,o,i,a,c,s,l);const u=k.call(t);return"[object Arguments]"===u?f?"[Arguments]":U(t,e,n,r,o,i,a,c,s,l):H(u)?f?"[Array]":L(t,e,n,r,o,i,a,c,s,l):"[object Map]"===u?f?"[Map]":P(t,e,n,r,o,i,a,c,s,l):"[object Set]"===u?f?"[Set]":z(t,e,n,r,o,i,a,c,s,l):"object"==typeof t?f?"[Object]":R(t,e,n,r,o,i,a,c,s,l):void 0}function q(t,e,n,r,o,i,a,c,s,l){let f,u=!1;for(let e=0;e<s.length;e++)if(f=s[e],f.test(t)){u=!0;break}return!!u&&f.print(t,function(t){return V(t,e,n,r,o,i,a,c,s,l)},function(t){const r=n+e;return r+t.replace(E,"\n"+r)},{edgeSpacing:o,spacing:r})}function V(t,e,n,r,o,i,a,c,s,l){return W(t)||q(t,e,n,r,o,i,a,c,s,l)||J(t,e,n,r,o,i,a,c,s,l)}const B={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function G(t){if(Object.keys(t).forEach(t=>{if(!B.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}function Z(t){const e={};return Object.keys(B).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:B[n]),e.min&&(e.indent=0),e}function K(t){return new Array(t+1).join(" ")}var Q=function(t,e){let n,r;e?(G(e),e=Z(e)):e=B;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=K(e.indent),r=[];var a=q(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return W(t)||(n||(n=K(e.indent)),r||(r=[]),J(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))},X={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return v(t,X.context,X.opts,!0)}},Y={plugins:[X]},tt={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(X.context=n,X.opts=r,~(e=Q(e,Y)).indexOf("\n")&&(e=s("\n"+e,a)+"\n")):e="Function",s("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+c(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function et(t,e,n){var r=Object.assign({},tt,n||{});return r.jsx||(r.attributeHook=null),v(t,e,r)}var nt={shallow:!0};t.default=et,t.render=et,t.shallowRender=function(t,e,n){return et(t,e,Object.assign({},nt,n||{}))}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],e):e((t||self).preactRenderToString={},t.preact)}(this,function(t,e){if("function"!=typeof Symbol){var n=0;Symbol=function(t){return"@@"+t+ ++n},Symbol.for=function(t){return"@@"+t}}var r=/^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,o=/[\s\n\\/='"\0<>]/,i=/^xlink:?./,a=/["&<]/;function c(t){if(0===t.length||!1===a.test(t))return t;for(var e=0,n=0,r="",o="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==e&&(r+=t.slice(e,n)),r+=o,e=n+1}return n!==e&&(r+=t.slice(e,n)),r}var l=function(t,e){return String(t).replace(/(\n+)/g,"$1"+(e||"\t"))},s=function(t,e,n){return String(t).length>(e||40)||!n&&-1!==String(t).indexOf("\n")||-1!==String(t).indexOf("<")},f={},u=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),p=/[A-Z]/g;function d(t){var e="";for(var n in t){var r=t[n];if(null!=r&&""!==r){var o="-"==n[0]?n:f[n]||(f[n]=n.replace(p,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||u.has(o)||(i="px;"),e=e+o+":"+r+i}}return e||void 0}function g(t,e){return Array.isArray(e)?e.reduce(g,t):null!=e&&!1!==e&&t.push(e),t}function y(){this.__d=!0}var b=[],m=[];function h(t,n,r,o){var i=e.options.__s;e.options.__s=!0;try{return v(t,n||{},r,o)}finally{e.options.__c&&e.options.__c(t,m),e.options.__s=i,m.length=0}}function v(t,n,a,f,u,p){if(null==t||"boolean"==typeof t)return"";if("object"!=typeof t)return"function"==typeof t?"":c(t+"");var m=a.pretty,h=m&&"string"==typeof m?m:"\t";if(Array.isArray(t)){for(var _="",x=0;x<t.length;x++)m&&x>0&&(_+="\n"),_+=v(t[x],n,a,f,u,p);return _}if(void 0!==t.constructor)return"";e.options.__b&&e.options.__b(t);var j,S=t.type,k=t.props,w=!1;if("function"==typeof S){if(w=!0,!a.shallow||!f&&!1!==a.renderRootComponent){if(S===e.Fragment){var O=[];return g(O,t.props.children),v(O,n,a,!1!==a.shallowHighOrder,u,p)}var A,F=t.__c=function(t,e){return{__v:t,context:e,props:t.props,setState:y,forceUpdate:y,__d:!0,__h:[]}}(t,n),C=e.options.__r,E=n,M=S.contextType;if(null!=M){var H=n[M.__c];E=H?H.props.value:M.__}if(S.prototype&&"function"==typeof S.prototype.render)(F=t.__c=new S(k,E)).__v=t,F._dirty=F.__d=!0,F.props=k,null==F.state&&(F.state={}),null==F._nextState&&null==F.__s&&(F._nextState=F.__s=F.state),F.context=E,S.getDerivedStateFromProps?F.state=Object.assign({},F.state,S.getDerivedStateFromProps(F.props,F.state)):F.componentWillMount&&(F.componentWillMount(),F.state=F._nextState!==F.state?F._nextState:F.__s!==F.state?F.__s:F.state),C&&C(t),A=F.render(F.props,F.state,F.context);else for(var N=0;F.__d&&N++<25;)F.__d=!1,C&&C(t),A=S.call(t.__c,k,E);F.getChildContext&&(n=Object.assign({},n,F.getChildContext()));var D=v(A,n,a,!1!==a.shallowHighOrder,u,p);return e.options.diffed&&e.options.diffed(t),D}S=(j=S).displayName||j!==Function&&j.name||function(t){var e=(Function.prototype.toString.call(t).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!e){for(var n=-1,r=b.length;r--;)if(b[r]===t){n=r;break}n<0&&(n=b.push(t)-1),e="UnnamedComponent"+n}return e}(j)}var I,T,W="<"+S;if(k){var $=Object.keys(k);a&&!0===a.sortAttributes&&$.sort();for(var U=0;U<$.length;U++){var L=$[U],P=k[L];if("children"!==L){if(!o.test(L)&&(a&&a.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L)){if("defaultValue"===L)L="value";else if("defaultChecked"===L)L="checked";else if("defaultSelected"===L)L="selected";else if("className"===L){if(void 0!==k.class)continue;L="class"}else u&&i.test(L)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(k.for)continue;L="for"}"style"===L&&P&&"object"==typeof P&&(P=d(P)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof P&&(P=String(P));var R=a.attributeHook&&a.attributeHook(L,P,n,a,w);if(R||""===R)W+=R;else if("dangerouslySetInnerHTML"===L)T=P&&P.__html;else if("textarea"===S&&"value"===L)I=P;else if((P||0===P||""===P)&&"function"!=typeof P){if(!(!0!==P&&""!==P||(P=L,a&&a.xml))){W=W+" "+L;continue}if("value"===L){if("select"===S){p=P;continue}"option"===S&&p==P&&void 0===k.selected&&(W+=" selected")}W=W+" "+L+'="'+c(P+"")+'"'}}}else I=P}}if(m){var z=W.replace(/\n\s*/," ");z===W||~z.indexOf("\n")?m&&~W.indexOf("\n")&&(W+="\n"):W=z}if(W+=">",o.test(S))throw new Error(S+" is not a valid HTML tag name in "+W);var J,q=r.test(S)||a.voidElements&&a.voidElements.test(S),V=[];if(T)m&&s(T)&&(T="\n"+h+l(T,h)),W+=T;else if(null!=I&&g(J=[],I).length){for(var B=m&&~W.indexOf("\n"),G=!1,Z=0;Z<J.length;Z++){var K=J[Z];if(null!=K&&!1!==K){var Q=v(K,n,a,!0,"svg"===S||"foreignObject"!==S&&u,p);if(m&&!B&&s(Q)&&(B=!0),Q)if(m){var X=Q.length>0&&"<"!=Q[0];G&&X?V[V.length-1]+=Q:V.push(Q),G=X}else V.push(Q)}}if(m&&B)for(var Y=V.length;Y--;)V[Y]="\n"+h+l(V[Y],h)}if(e.options.diffed&&e.options.diffed(t),V.length||T)W+=V.join("");else if(a&&a.xml)return W.substring(0,W.length-1)+" />";return!q||J||T?(m&&~W.indexOf("\n")&&(W+="\n"),W=W+"</"+S+">"):W=W.replace(/>$/," />"),W}const _=/(\\|\"|\')/g,x=Object.prototype.toString,j=Date.prototype.toISOString,S=Error.prototype.toString,k=RegExp.prototype.toString,w=Symbol.prototype.toString,O=/^Symbol\((.*)\)(.*)$/,A=/\n/gi,F=Object.getOwnPropertySymbols||(t=>[]);function C(t){return"[object Array]"===t||"[object ArrayBuffer]"===t||"[object DataView]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object Int8Array]"===t||"[object Int16Array]"===t||"[object Int32Array]"===t||"[object Uint8Array]"===t||"[object Uint8ClampedArray]"===t||"[object Uint16Array]"===t||"[object Uint32Array]"===t}function E(t){return""===t.name?"[Function anonymous]":"[Function "+t.name+"]"}function M(t){return w.call(t).replace(O,"Symbol($1)")}function H(t){return"["+S.call(t)+"]"}function N(t){if(!0===t||!1===t)return""+t;if(void 0===t)return"undefined";if(null===t)return"null";const e=typeof t;if("number"===e)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===e)return'"'+function(t){return t.replace(_,"\\$1")}(t)+'"';if("function"===e)return E(t);if("symbol"===e)return M(t);const n=x.call(t);return"[object WeakMap]"===n?"WeakMap {}":"[object WeakSet]"===n?"WeakSet {}":"[object Function]"===n||"[object GeneratorFunction]"===n?E(t,min):"[object Symbol]"===n?M(t):"[object Date]"===n?j.call(t):"[object Error]"===n?H(t):"[object RegExp]"===n?k.call(t):"[object Arguments]"===n&&0===t.length?"Arguments []":C(n)&&0===t.length?t.constructor.name+" []":t instanceof Error&&H(t)}function D(t,e,n,r,o,i,a,c,l,s){let f="";if(t.length){f+=o;const u=n+e;for(let n=0;n<t.length;n++)f+=u+W(t[n],e,u,r,o,i,a,c,l,s),n<t.length-1&&(f+=","+r);f+=o+n}return"["+f+"]"}function I(t,e,n,r,o,i,a,c,l,s){if((i=i.slice()).indexOf(t)>-1)return"[Circular]";i.push(t);const f=++c>a;if(!f&&t.toJSON&&"function"==typeof t.toJSON)return W(t.toJSON(),e,n,r,o,i,a,c,l,s);const u=x.call(t);return"[object Arguments]"===u?f?"[Arguments]":function(t,e,n,r,o,i,a,c,l,s){return(s?"":"Arguments ")+D(t,e,n,r,o,i,a,c,l,s)}(t,e,n,r,o,i,a,c,l,s):C(u)?f?"[Array]":function(t,e,n,r,o,i,a,c,l,s){return(s?"":t.constructor.name+" ")+D(t,e,n,r,o,i,a,c,l,s)}(t,e,n,r,o,i,a,c,l,s):"[object Map]"===u?f?"[Map]":function(t,e,n,r,o,i,a,c,l,s){let f="Map {";const u=t.entries();let p=u.next();if(!p.done){f+=o;const t=n+e;for(;!p.done;)f+=t+W(p.value[0],e,t,r,o,i,a,c,l,s)+" => "+W(p.value[1],e,t,r,o,i,a,c,l,s),p=u.next(),p.done||(f+=","+r);f+=o+n}return f+"}"}(t,e,n,r,o,i,a,c,l,s):"[object Set]"===u?f?"[Set]":function(t,e,n,r,o,i,a,c,l,s){let f="Set {";const u=t.entries();let p=u.next();if(!p.done){f+=o;const t=n+e;for(;!p.done;)f+=t+W(p.value[1],e,t,r,o,i,a,c,l,s),p=u.next(),p.done||(f+=","+r);f+=o+n}return f+"}"}(t,e,n,r,o,i,a,c,l,s):"object"==typeof t?f?"[Object]":function(t,e,n,r,o,i,a,c,l,s){let f=(s?"":t.constructor?t.constructor.name+" ":"Object ")+"{",u=Object.keys(t).sort();const p=F(t);if(p.length&&(u=u.filter(t=>!("symbol"==typeof t||"[object Symbol]"===x.call(t))).concat(p)),u.length){f+=o;const p=n+e;for(let n=0;n<u.length;n++){const d=u[n];f+=p+W(d,e,p,r,o,i,a,c,l,s)+": "+W(t[d],e,p,r,o,i,a,c,l,s),n<u.length-1&&(f+=","+r)}f+=o+n}return f+"}"}(t,e,n,r,o,i,a,c,l,s):void 0}function T(t,e,n,r,o,i,a,c,l,s){let f,u=!1;for(let e=0;e<l.length;e++)if(f=l[e],f.test(t)){u=!0;break}return!!u&&f.print(t,function(t){return W(t,e,n,r,o,i,a,c,l,s)},function(t){const r=n+e;return r+t.replace(A,"\n"+r)},{edgeSpacing:o,spacing:r})}function W(t,e,n,r,o,i,a,c,l,s){return N(t)||T(t,e,n,r,o,i,a,c,l,s)||I(t,e,n,r,o,i,a,c,l,s)}const $={indent:2,min:!1,maxDepth:Infinity,plugins:[]};function U(t){return new Array(t+1).join(" ")}var L={test:function(t){return t&&"object"==typeof t&&"type"in t&&"props"in t&&"key"in t},print:function(t,e,n){return h(t,L.context,L.opts,!0)}},P={plugins:[L]},R={attributeHook:function(t,e,n,r,o){var i=typeof e;if("dangerouslySetInnerHTML"===t)return!1;if(null==e||"function"===i&&!r.functions)return"";if(r.skipFalseAttributes&&!o&&(!1===e||("class"===t||"style"===t)&&""===e))return"";var a="string"==typeof r.pretty?r.pretty:"\t";return"string"!==i?("function"!==i||r.functionNames?(L.context=n,L.opts=r,~(e=function(t,e){let n,r;e?(function(t){if(Object.keys(t).forEach(t=>{if(!$.hasOwnProperty(t))throw new Error("prettyFormat: Invalid option: "+t)}),t.min&&void 0!==t.indent&&0!==t.indent)throw new Error("prettyFormat: Cannot run with min option and indent")}(e),e=function(t){const e={};return Object.keys($).forEach(n=>e[n]=t.hasOwnProperty(n)?t[n]:$[n]),e.min&&(e.indent=0),e}(e)):e=$;const o=e.min?" ":"\n",i=e.min?"":"\n";if(e&&e.plugins.length){n=U(e.indent),r=[];var a=T(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min);if(a)return a}return N(t)||(n||(n=U(e.indent)),r||(r=[]),I(t,n,"",o,i,r,e.maxDepth,0,e.plugins,e.min))}(e,P)).indexOf("\n")&&(e=l("\n"+e,a)+"\n")):e="Function",l("\n"+t+"={"+e+"}",a)):"\n"+a+t+'="'+c(e)+'"'},jsx:!0,xml:!1,functions:!0,functionNames:!0,skipFalseAttributes:!0,pretty:" "};function z(t,e,n){var r=Object.assign({},R,n||{});return r.jsx||(r.attributeHook=null),h(t,e,r)}var J={shallow:!0};t.default=z,t.render=z,t.shallowRender=function(t,e,n){return z(t,e,Object.assign({},J,n||{}))}});
//# sourceMappingURL=jsx.umd.js.map
module.exports = require('./dist/jsx'); // eslint-disable-line
{
"name": "preact-render-to-string",
"amdName": "preactRenderToString",
"version": "6.0.0",
"version": "6.0.1",
"description": "Render JSX to an HTML string, with support for Preact components.",

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

@@ -0,0 +0,0 @@ # preact-render-to-string

@@ -0,0 +0,0 @@ // Options hooks

import { VNode } from 'preact';
export default function renderToString(vnode: VNode, context?: any): string;

@@ -0,0 +0,0 @@ import { encodeEntities, styleObjToCss, UNSAFE_NAME, XLINK } from './util';

@@ -0,0 +0,0 @@ import { VNode } from 'preact';

@@ -0,0 +0,0 @@ import './polyfills';

@@ -0,0 +0,0 @@ if (typeof Symbol !== 'function') {

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ export const VOID_ELEMENTS = /^(?:area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/;

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