!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],t):t((e||self).preactRenderToString={},e.preact)}(this,function(e,t){var n=/[\s\n\\/='"\0<>]/,r=/^(xlink|xmlns|xml)([A-Z])/,o=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,i=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,a=/["&<]/;function s(e){if(0===e.length||!1===a.test(e))return e;for(var t=0,n=0,r="",o="";n");if(O||("string"==typeof I?O=s(I):null!=I&&!1!==I&&!0!==I&&(O=F(I,a,"svg"===E||"foreignObject"!==E&&c,l,e,p))),y&&y(e),e.__=null,b&&b(e),!O&&L.has(E))return N+"/>";var K="",G=N+">";return Array.isArray(O)?[G].concat(O,[K]):"string"!=typeof O?[G,O,K]:G+O+K}var L=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),j=A,D=A;e.default=A,e.render=j,e.renderToStaticMarkup=D,e.renderToString=A,e.renderToStringAsync=function(e,n){try{var r,o=t.options.__s;t.options.__s=!0,m=t.options.__b,y=t.options.diffed,g=t.options.__r,b=t.options.unmount;var i=t.h(t.Fragment,null);return i.__k=[e],Promise.resolve(v(function(){var t=F(e,n||S,!1,void 0,i,!0),o=function(){if(Array.isArray(t)){var e=function(){var e=o.join("");return r=1,e},n=0,o=t,i=_(function(){return!!o.some(function(e){return"function"==typeof e.then})&&n++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(e):e()}}();return o&&o.then?o.then(function(e){return r?e:t}):r?o:t},function(n,r){if(t.options.__c&&t.options.__c(e,k),t.options.__s=o,k.length=0,n)throw r;return r}))}catch(e){return Promise.reject(e)}}}); //# sourceMappingURL=index.umd.js.map