@appthen/cli 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ var pp=function(e){for(var t=arguments.length,s=0;++s<t;)e=hp(e,arguments[s]);re
|
|
|
72
72
|
`,cliCategory:n},requirePragma:{since:"1.7.0",category:u,type:"boolean",default:!1,description:s`
|
|
73
73
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
74
74
|
in order for it to be formatted.
|
|
75
|
-
`,cliCategory:a},tabWidth:{type:"int",category:c,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:c,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:c,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:r,CATEGORY_EDITOR:n,CATEGORY_FORMAT:i,CATEGORY_OTHER:a,CATEGORY_OUTPUT:o,CATEGORY_GLOBAL:c,CATEGORY_SPECIAL:u,options:l}}}),z=d({"src/main/support.js"(e,t){x();var n={compare:B(),lt:j(),gte:M()},i=R(),a=U().version,o=$().options;function c(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:c=!1,showInternal:l=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=a.split("-",1)[0],h=e.flatMap((e=>e.languages||[])).filter(f),d=i(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),o),"name").filter((e=>f(e)&&m(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map(y).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(f).sort(((e,t)=>n.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>f(e)&&m(e))),"parser"===t.name&&u(t,h,e));let s=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:s})}));return{languages:h,options:d};function f(e){return t||!("since"in e)||e.since&&n.gte(p,e.since)}function m(e){return c||!("deprecated"in e)||e.deprecated&&n.lt(p,e.deprecated)}function y(e){return l?e:r(e,s)}}function u(e,t,s){let r=new Set(e.choices.map((e=>e.value)));for(let n of t)if(n.parsers)for(let t of n.parsers)if(!r.has(t)){r.add(t);let i=s.find((e=>e.parsers&&e.parsers[t])),a=n.name;i&&i.name&&(a+=` (plugin: ${i.name})`),e.choices.push({value:t,description:a})}}t.exports={getSupportInfo:c}}}),H=d({"src/utils/is-non-empty-array.js"(e,t){function s(e){return Array.isArray(e)&&e.length>0}x(),t.exports=s}});function V(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var G=h({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){x()}});function W(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(V(),"")}var J=h({"node_modules/strip-ansi/index.js"(){x(),G()}});function X(e){return!!Number.isInteger(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}var K=h({"node_modules/is-fullwidth-code-point/index.js"(){x()}}),Y=d({"node_modules/emoji-regex/index.js"(e,t){x(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),Z={};function Q(e){if("string"!=typeof e||0===e.length||0===(e=W(e)).length)return 0;e=e.replace((0,ee.default)()," ");let t=0;for(let s=0;s<e.length;s++){let r=e.codePointAt(s);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&s++,t+=X(r)?2:1)}return t}f(Z,{default:()=>Q});var ee,te=h({"node_modules/string-width/index.js"(){x(),J(),K(),ee=y(Y())}}),se=d({"src/utils/get-string-width.js"(e,t){x();var s=(te(),g(Z)).default,r=/[^\x20-\x7F]/;function n(e){return e?r.test(e)?s(e):e.length:0}t.exports=n}}),re=d({"src/utils/text/skip.js"(e,t){function s(e){return(t,s,r)=>{let n=r&&r.backwards;if(!1===s)return!1;let{length:i}=t,a=s;for(;a>=0&&a<i;){let s=t.charAt(a);if(e instanceof RegExp){if(!e.test(s))return a}else if(!e.includes(s))return a;n?a--:a++}return(-1===a||a===i)&&a}}x();var r=s(/\s/),n=s(" \t"),i=s(",; \t"),a=s(/[^\n\r]/);t.exports={skipWhitespace:r,skipSpaces:n,skipToLineEnd:i,skipEverythingButNewLine:a}}}),ne=d({"src/utils/text/skip-inline-comment.js"(e,t){function s(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let s=t+2;s<e.length;++s)if("*"===e.charAt(s)&&"/"===e.charAt(s+1))return s+2;return t}x(),t.exports=s}}),ie=d({"src/utils/text/skip-trailing-comment.js"(e,t){x();var{skipEverythingButNewLine:s}=re();function r(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?s(e,t):t)}t.exports=r}}),ae=d({"src/utils/text/skip-newline.js"(e,t){function s(e,t,s){let r=s&&s.backwards;if(!1===t)return!1;let n=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===n)return t-2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t-1}else{if("\r"===n&&"\n"===e.charAt(t+1))return t+2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t+1}return t}x(),t.exports=s}}),oe=d({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){x();var s=ne(),r=ae(),n=ie(),{skipSpaces:i}=re();function a(e,t){let a=null,o=t;for(;o!==a;)a=o,o=i(e,o),o=s(e,o),o=n(e,o),o=r(e,o);return o}t.exports=a}}),ce=d({"src/common/util.js"(e,t){x();var{default:s}=(k(),g(S)),r=D(),{getSupportInfo:n}=z(),i=H(),a=se(),{skipWhitespace:o,skipSpaces:c,skipToLineEnd:u,skipEverythingButNewLine:l}=re(),p=ne(),h=ie(),d=ae(),f=oe(),m=e=>e[e.length-2];function y(e){return(t,s,r)=>{let n=r&&r.backwards;if(!1===s)return!1;let{length:i}=t,a=s;for(;a>=0&&a<i;){let s=t.charAt(a);if(e instanceof RegExp){if(!e.test(s))return a}else if(!e.includes(s))return a;n?a--:a++}return(-1===a||a===i)&&a}}function v(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=c(e,s.backwards?t-1:t,s);return r!==d(e,r,s)}function b(e,t,s){for(let r=t;r<s;++r)if("\n"===e.charAt(r))return!0;return!1}function E(e,t,s){let r=s(t)-1;return r=c(e,r,{backwards:!0}),r=d(e,r,{backwards:!0}),r=c(e,r,{backwards:!0}),r!==d(e,r,{backwards:!0})}function C(e,t){let s=null,r=t;for(;r!==s;)s=r,r=u(e,r),r=p(e,r),r=c(e,r);return r=h(e,r),r=d(e,r),!1!==r&&v(e,r)}function A(e,t,s){return C(e,s(t))}function w(e,t,s){return f(e,s(t))}function T(e,t,s){return e.charAt(w(e,t,s))}function P(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c(e,s.backwards?t-1:t,s)!==t}function _(e,t){let s=0;for(let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r<e.length;++r)"\t"===e[r]?s=s+t-s%t:s++;return s}function N(e,t){let s=e.lastIndexOf("\n");return-1===s?0:_(e.slice(s+1).match(/^[\t ]*/)[0],t)}function I(e,t){let s={quote:'"',regex:/"/g,escaped:"""},r={quote:"'",regex:/'/g,escaped:"'"},n="'"===t?r:s,i=n===r?s:r,a=n;return(e.includes(n.quote)||e.includes(i.quote))&&(a=(e.match(n.regex)||[]).length>(e.match(i.regex)||[]).length?i:n),a}function F(e,t){let s=e.slice(1,-1);return O(s,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":I(s,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function O(e,t,s){let r='"'===t?"'":'"',n=/\\(.)|(["'])/gs,i=e.replace(n,((e,n,i)=>n===r?n:i===t?"\\"+i:i||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(n)?n:"\\"+n)));return t+i+t}function L(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function B(e,t){let r=e.match(new RegExp(`(${s(t)})+`,"g"));return null===r?0:r.reduce(((e,s)=>Math.max(e,s.length/t.length)),0)}function j(e,t){let r=e.match(new RegExp(`(${s(t)})+`,"g"));if(null===r)return 0;let n=new Map,i=0;for(let e of r){let s=e.length/t.length;n.set(s,!0),s>i&&(i=s)}for(let e=1;e<i;e++)if(!n.get(e))return e;return i+1}function M(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=W(e)}function R(e,t){t.leading=!0,t.trailing=!1,M(e,t)}function U(e,t,s){t.leading=!1,t.trailing=!1,s&&(t.marker=s),M(e,t)}function q(e,t){t.leading=!1,t.trailing=!0,M(e,t)}function $(e,t){let{languages:s}=n({plugins:t.plugins}),r=s.find((t=>{let{name:s}=t;return s.toLowerCase()===e}))||s.find((t=>{let{aliases:s}=t;return Array.isArray(s)&&s.includes(e)}))||s.find((t=>{let{extensions:s}=t;return Array.isArray(s)&&s.includes(`.${e}`)}));return r&&r.parsers[0]}function V(e){return e&&"front-matter"===e.type}function G(e){let t=new WeakMap;return function(s){return t.has(s)||t.set(s,Symbol(e)),t.get(s)}}function W(e){let t=e.type||e.kind||"(unknown type)",s=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return s.length>20&&(s=s.slice(0,19)+"…"),t+(s?" "+s:"")}t.exports={inferParserByLanguage:$,getStringWidth:a,getMaxContinuousCount:B,getMinNotPresentContinuousCount:j,getPenultimate:m,getLast:r,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:w,getNextNonSpaceNonCommentCharacter:T,skip:y,skipWhitespace:o,skipSpaces:c,skipToLineEnd:u,skipEverythingButNewLine:l,skipInlineComment:p,skipTrailingComment:h,skipNewline:d,isNextLineEmptyAfterIndex:C,isNextLineEmpty:A,isPreviousLineEmpty:E,hasNewline:v,hasNewlineInRange:b,hasSpaces:P,getAlignmentSize:_,getIndentSize:N,getPreferredQuote:I,printString:F,printNumber:L,makeString:O,addLeadingComment:R,addDanglingComment:U,addTrailingComment:q,isFrontMatterNode:V,isNonEmptyArray:i,createGroupIdMapper:G}}}),ue=d({"vendors/html-tag-names.json"(e,t){t.exports={htmlTagNames:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}}}),le=d({"src/language-html/utils/array-to-map.js"(e,t){function s(e){let t=Object.create(null);for(let s of e)t[s]=!0;return t}x(),t.exports=s}}),pe=d({"src/language-html/utils/html-tag-names.js"(e,t){x();var{htmlTagNames:s}=ue(),r=le()(s);t.exports=r}}),he=d({"vendors/html-element-attributes.json"(e,t){t.exports={htmlElementAttributes:{"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["for","form"],legend:["align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","media","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size"],slot:["name"],source:["height","media","sizes","src","srcset","type","width"],style:["media","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]}}}}),de=d({"src/language-html/utils/map-object.js"(e,t){function s(e,t){let s=Object.create(null);for(let[r,n]of Object.entries(e))s[r]=t(n,r);return s}x(),t.exports=s}}),fe=d({"src/language-html/utils/html-elements-attributes.js"(e,t){x();var{htmlElementAttributes:s}=he(),r=de()(s,le());t.exports=r}}),ye=d({"src/language-html/utils/is-unknown-namespace.js"(e,t){function s(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}x(),t.exports=s}}),ge=d({"src/language-html/pragma.js"(e,t){function s(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function r(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}x(),t.exports={hasPragma:s,insertPragma:r}}}),xe=d({"src/language-html/ast.js"(e,t){x();var s={attrs:!0,children:!0},r=new Set(["parent"]),n=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let t of new Set([...r,...Object.keys(e)]))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in s&&(t=t.map((e=>this.createChild(e)))),!r.has(e))return void(this[e]=t);Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(e){let t;for(let r in s){let s=this[r];if(s){let a=i(s,(t=>t.map(e)));t!==s&&(t||(t=new n({parent:this.parent})),t.setProperty(r,a))}}if(t)for(let e in this)e in s||(t[e]=this[e]);return e(t||this)}walk(e){for(let t in s){let s=this[t];if(s)for(let t=0;t<s.length;t++)s[t].walk(e)}e(this)}createChild(e){let t=e instanceof n?e.clone():new n(e);return t.setProperty("parent",this),t}insertChildBefore(e,t){this.children.splice(this.children.indexOf(e),0,this.createChild(t))}removeChild(e){this.children.splice(this.children.indexOf(e),1)}replaceChild(e,t){this.children[this.children.indexOf(e)]=this.createChild(t)}clone(){return new n(this)}get firstChild(){var e;return null===(e=this.children)||void 0===e?void 0:e[0]}get lastChild(){var e;return null===(e=this.children)||void 0===e?void 0:e[this.children.length-1]}get prev(){var e;return null===(e=this.parent)||void 0===e?void 0:e.children[this.parent.children.indexOf(this)-1]}get next(){var e;return null===(e=this.parent)||void 0===e?void 0:e.children[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map((e=>[e.fullName,e.value])))}};function i(e,t){let s=e.map(t);return s.some(((t,s)=>t!==e[s]))?s:e}t.exports={Node:n}}}),ve=d({"src/language-html/conditional-comment.js"(e,t){x();var{ParseSourceSpan:s}=A(),r=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:i},{regex:/^\[if([^\]]*)]><!$/,parse:a},{regex:/^<!\s*\[endif]$/,parse:o}];function n(e,t){if(e.value)for(let{regex:s,parse:n}of r){let r=e.value.match(s);if(r)return n(e,t,r)}return null}function i(e,t,r){let[,n,i,a]=r,o=4+n.length,c=e.sourceSpan.start.moveBy(o),u=c.moveBy(a.length),[l,p]=(()=>{try{return[!0,t(a,c).children]}catch{return[!1,[{type:"text",value:a,sourceSpan:new s(c,u)}]]}})();return{type:"ieConditionalComment",complete:l,children:p,condition:i.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new s(e.sourceSpan.start,c),endSourceSpan:new s(u,e.sourceSpan.end)}}function a(e,t,s){let[,r]=s;return{type:"ieConditionalStartComment",condition:r.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan}}function o(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}t.exports={parseIeConditionalComment:n}}}),be=d({"src/language-html/loc.js"(e,t){function s(e){return e.sourceSpan.start.offset}function r(e){return e.sourceSpan.end.offset}x(),t.exports={locStart:s,locEnd:r}}}),Ee=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){var t;function s(e){if(":"!=e[0])return[null,e];let t=e.indexOf(":",1);if(-1==t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function r(e){return"ng-container"===s(e)[1]}function n(e){return"ng-content"===s(e)[1]}function i(e){return"ng-template"===s(e)[1]}function a(e){return null===e?null:s(e)[0]}function o(e,t){return e?`:${e}:${t}`:t}x(),Object.defineProperty(e,"__esModule",{value:!0}),(t=e.TagContentType||(e.TagContentType={}))[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA",e.splitNsName=s,e.isNgContainer=r,e.isNgContent=n,e.isNgTemplate=i,e.getNsPrefix=a,e.mergeNsAndName=o,e.NAMED_ENTITIES={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},e.NGSP_UNICODE="",e.NAMED_ENTITIES.ngsp=e.NGSP_UNICODE}}),Ce=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_tags.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t,s,r=Ee(),n=class{constructor(){let{closedByChildren:e,implicitNamespacePrefix:t,contentType:s=r.TagContentType.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,e&&e.length>0&&e.forEach((e=>this.closedByChildren[e]=!0)),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}};function i(e){return s||(t=new n,s={base:new n({isVoid:!0}),meta:new n({isVoid:!0}),area:new n({isVoid:!0}),embed:new n({isVoid:!0}),link:new n({isVoid:!0}),img:new n({isVoid:!0}),input:new n({isVoid:!0}),param:new n({isVoid:!0}),hr:new n({isVoid:!0}),br:new n({isVoid:!0}),source:new n({isVoid:!0}),track:new n({isVoid:!0}),wbr:new n({isVoid:!0}),p:new n({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new n({closedByChildren:["tbody","tfoot"]}),tbody:new n({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new n({closedByChildren:["tbody"],closedByParent:!0}),tr:new n({closedByChildren:["tr"],closedByParent:!0}),td:new n({closedByChildren:["td","th"],closedByParent:!0}),th:new n({closedByChildren:["td","th"],closedByParent:!0}),col:new n({isVoid:!0}),svg:new n({implicitNamespacePrefix:"svg"}),math:new n({implicitNamespacePrefix:"math"}),li:new n({closedByChildren:["li"],closedByParent:!0}),dt:new n({closedByChildren:["dt","dd"]}),dd:new n({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new n({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new n({closedByChildren:["optgroup"],closedByParent:!0}),option:new n({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new n({ignoreFirstLf:!0}),listing:new n({ignoreFirstLf:!0}),style:new n({contentType:r.TagContentType.RAW_TEXT}),script:new n({contentType:r.TagContentType.RAW_TEXT}),title:new n({contentType:r.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new n({contentType:r.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),s[e]||t}e.HtmlTagDefinition=n,e.getHtmlTagDefinition=i}}),Ae=d({"node_modules/angular-html-parser/lib/compiler/src/ast_path.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.path=e,this.position=t}get empty(){return!this.path||!this.path.length}get head(){return this.path[0]}get tail(){return this.path[this.path.length-1]}parentOf(e){return e&&this.path[this.path.indexOf(e)-1]}childOf(e){return this.path[this.path.indexOf(e)+1]}first(e){for(let t=this.path.length-1;t>=0;t--){let s=this.path[t];if(s instanceof e)return s}}push(e){this.path.push(e)}pop(){return this.path.pop()}};e.AstPath=t}}),we=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/ast.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ae(),s=class{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s,this.type="text"}visit(e,t){return e.visitText(this,t)}};e.Text=s;var r=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="cdata"}visit(e,t){return e.visitCdata(this,t)}};e.CDATA=r;var n=class{constructor(e,t,s,r,n,i){this.switchValue=e,this.type=t,this.cases=s,this.sourceSpan=r,this.switchValueSourceSpan=n,this.i18n=i}visit(e,t){return e.visitExpansion(this,t)}};e.Expansion=n;var i=class{constructor(e,t,s,r,n){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=n}visit(e,t){return e.visitExpansionCase(this,t)}};e.ExpansionCase=i;var a=class{constructor(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;this.name=e,this.value=t,this.sourceSpan=s,this.valueSpan=r,this.nameSpan=n,this.i18n=i,this.type="attribute"}visit(e,t){return e.visitAttribute(this,t)}};e.Attribute=a;var o=class{constructor(e,t,s,r){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.name=e,this.attrs=t,this.children=s,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i,this.nameSpan=a,this.i18n=o,this.type="element"}visit(e,t){return e.visitElement(this,t)}};e.Element=o;var c=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment"}visit(e,t){return e.visitComment(this,t)}};e.Comment=c;var u=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType"}visit(e,t){return e.visitDocType(this,t)}};function l(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=[],n=e.visit?t=>e.visit(t,s)||t.visit(e,s):t=>t.visit(e,s);return t.forEach((e=>{let t=n(e);t&&r.push(t)})),r}e.DocType=u,e.visitAll=l;var p=class{constructor(){}visitElement(e,t){this.visitChildren(t,(t=>{t(e.attrs),t(e.children)}))}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,(t=>{t(e.cases)}))}visitExpansionCase(e,t){}visitChildren(e,t){let s=[],r=this;function n(t){t&&s.push(l(r,t,e))}return t(n),Array.prototype.concat.apply([],s)}};function h(e){let t=e.sourceSpan.start.offset,s=e.sourceSpan.end.offset;return e instanceof o&&(e.endSourceSpan?s=e.endSourceSpan.end.offset:e.children&&e.children.length&&(s=h(e.children[e.children.length-1]).end)),{start:t,end:s}}function d(e,s){let r=[];return l(new class extends p{visit(e,t){let n=h(e);if(!(n.start<=s&&s<n.end))return!0;r.push(e)}},e),new t.AstPath(r,s)}e.RecursiveVisitor=p,e.findNode=d}}),De=d({"node_modules/angular-html-parser/lib/compiler/src/assertions.js"(e){function t(e,t){if(null!=t){if(!Array.isArray(t))throw new Error(`Expected '${e}' to be an array of strings.`);for(let s=0;s<t.length;s+=1)if("string"!=typeof t[s])throw new Error(`Expected '${e}' to be an array of strings.`)}}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.assertArrayOfStrings=t;var s=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function r(e,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){let e=t[0],r=t[1];s.forEach((t=>{if(t.test(e)||t.test(r))throw new Error(`['${e}', '${r}'] contains unusable interpolation symbol.`)}))}}e.assertInterpolationSymbols=r}}),Se=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/interpolation_config.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=De(),s=class{constructor(e,t){this.start=e,this.end=t}static fromArray(r){return r?(t.assertInterpolationSymbols("interpolation",r),new s(r[0],r[1])):e.DEFAULT_INTERPOLATION_CONFIG}};e.InterpolationConfig=s,e.DEFAULT_INTERPOLATION_CONFIG=new s("{{","}}")}}),Pe=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/lexer.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t,s=v(),r=A(),n=Se(),i=Ee();!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE_START=14]="DOC_TYPE_START",e[e.DOC_TYPE_END=15]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",e[e.EOF=21]="EOF"}(t=e.TokenType||(e.TokenType={}));var a=class{constructor(e,t,s){this.type=e,this.parts=t,this.sourceSpan=s}};e.Token=a;var o=class extends r.ParseError{constructor(e,t,s){super(s,e),this.tokenType=t}};e.TokenError=o;var c=class{constructor(e,t){this.tokens=e,this.errors=t}};function u(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new f(new r.ParseSourceFile(e,t),s,n).tokenize()}e.TokenizeResult=c,e.tokenize=u;var l=/\r\n?/g;function p(e){return`Unexpected character "${e===s.$EOF?"EOF":String.fromCharCode(e)}"`}function h(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}var d=class{constructor(e){this.error=e}},f=class{constructor(e,t,s){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||n.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map((e=>e.codePointAt(0)||0)),this._canSelfClose=s.canSelfClose||!1,this._allowHtmComponentClosingTags=s.allowHtmComponentClosingTags||!1;let r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new P(e,r):new S(e,r);try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return e.replace(l,"\n")}tokenize(){for(;this._cursor.peek()!==s.$EOF;){let e=this._cursor.clone();try{if(this._attemptCharCode(s.$LT))if(this._attemptCharCode(s.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(s.$SLASH))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(s.$QUESTION)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(t.EOF),this._endToken([]),new c(T(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(C(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===s.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=t,this._currentTokenType=e}_endToken(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();if(null===this._currentTokenStart)throw new o("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new o("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let s=new a(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let s=new o(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new d(s)}handleError(e){if(e instanceof k&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof d))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!w(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let s=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=s,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.clone().diff(s)<t)throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(e){if(e&&this._cursor.peek()===s.$AMPERSAND)return this._decodeEntity();{let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}}_decodeEntity(){let e=this._cursor.clone();if(this._cursor.advance(),!this._attemptCharCode(s.$HASH)){let t=this._cursor.clone();if(this._attemptCharCodeUntilFn(E),this._cursor.peek()!=s.$SEMICOLON)return this._cursor=t,"&";let r=this._cursor.getChars(t);this._cursor.advance();let n=i.NAMED_ENTITIES[r];if(!n)throw this._createError(h(r),this._cursor.getSpan(e));return n}{let t=this._attemptCharCode(s.$x)||this._attemptCharCode(s.$X),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(b),this._cursor.peek()!=s.$SEMICOLON)throw this._createError(p(this._cursor.peek()),this._cursor.getSpan());let n=this._cursor.getChars(r);this._cursor.advance();try{let e=parseInt(n,t?16:10);return String.fromCharCode(e)}catch{throw this._createError(h(this._cursor.getChars(e)),this._cursor.getSpan())}}}_consumeRawText(e,s){this._beginToken(e?t.ESCAPABLE_RAW_TEXT:t.RAW_TEXT);let r=[];for(;;){let t=this._cursor.clone(),n=s();if(this._cursor=t,n)break;r.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(t.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("--\x3e"))),this._beginToken(t.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(e){this._beginToken(t.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===s.$GT)),this._beginToken(t.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(t.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(t.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(t.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===s.$GT)),this._beginToken(t.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e,t=this._cursor.clone(),r="";for(;this._cursor.peek()!==s.$COLON&&!g(this._cursor.peek());)this._cursor.advance();return this._cursor.peek()===s.$COLON?(r=this._cursor.getChars(t),this._cursor.advance(),e=this._cursor.clone()):e=t,this._requireCharCodeUntilFn(y,""===r?0:1),[r,this._cursor.getChars(e)]}_consumeTagOpen(e){let r,n,a,o=this.tokens.length,c=this._cursor.clone(),u=[];try{if(!s.isAsciiLetter(this._cursor.peek()))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(e));for(a=this._consumeTagOpenStart(e),n=a.parts[0],r=a.parts[1],this._attemptCharCodeUntilFn(m);this._cursor.peek()!==s.$SLASH&&this._cursor.peek()!==s.$GT;){let[e,t]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(m),this._attemptCharCode(s.$EQ)){this._attemptCharCodeUntilFn(m);let s=this._consumeAttributeValue();u.push({prefix:e,name:t,value:s})}else u.push({prefix:e,name:t});this._attemptCharCodeUntilFn(m)}this._consumeTagOpenEnd()}catch(s){if(s instanceof d)return this._cursor=c,a&&(this.tokens.length=o),this._beginToken(t.TEXT,e),void this._endToken(["<"]);throw s}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===t.TAG_OPEN_END_VOID)return;let l=this._getTagContentType(r,n,this._fullNameStack.length>0,u);this._handleFullNameStackForTagOpen(n,r),l===i.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):l===i.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,(()=>!!(this._attemptCharCode(s.$LT)&&this._attemptCharCode(s.$SLASH)&&(this._attemptCharCodeUntilFn(m),this._attemptStrCaseInsensitive(e?`${e}:${r}`:r)))&&(this._attemptCharCodeUntilFn(m),this._attemptCharCode(s.$GT)))),this._beginToken(t.TAG_CLOSE),this._requireCharCodeUntilFn((e=>e===s.$GT),3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(t.TAG_OPEN_START,e);let s=this._consumePrefixAndName();return this._endToken(s)}_consumeAttributeName(){let e=this._cursor.peek();if(e===s.$SQ||e===s.$DQ)throw this._createError(p(e),this._cursor.getSpan());this._beginToken(t.ATTR_NAME);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===s.$SQ||this._cursor.peek()===s.$DQ){this._beginToken(t.ATTR_QUOTE);let s=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(s)]),this._beginToken(t.ATTR_VALUE);let r=[];for(;this._cursor.peek()!==s;)r.push(this._readChar(!0));e=this._processCarriageReturns(r.join("")),this._endToken([e]),this._beginToken(t.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(s)])}else{this._beginToken(t.ATTR_VALUE);let s=this._cursor.clone();this._requireCharCodeUntilFn(y,1),e=this._processCarriageReturns(this._cursor.getChars(s)),this._endToken([e])}return e}_consumeTagOpenEnd(){let e=this._attemptCharCode(s.$SLASH)?t.TAG_OPEN_END_VOID:t.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(s.$GT),this._endToken([])}_consumeTagClose(e){if(this._beginToken(t.TAG_CLOSE,e),this._attemptCharCodeUntilFn(m),this._allowHtmComponentClosingTags&&this._attemptCharCode(s.$SLASH))this._attemptCharCodeUntilFn(m),this._requireCharCode(s.$GT),this._endToken([]);else{let[e,t]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(m),this._requireCharCode(s.$GT),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(t.EXPANSION_FORM_START),this._requireCharCode(s.$LBRACE),this._endToken([]),this._expansionCaseStack.push(t.EXPANSION_FORM_START),this._beginToken(t.RAW_TEXT);let e=this._readUntil(s.$COMMA);this._endToken([e]),this._requireCharCode(s.$COMMA),this._attemptCharCodeUntilFn(m),this._beginToken(t.RAW_TEXT);let r=this._readUntil(s.$COMMA);this._endToken([r]),this._requireCharCode(s.$COMMA),this._attemptCharCodeUntilFn(m)}_consumeExpansionCaseStart(){this._beginToken(t.EXPANSION_CASE_VALUE);let e=this._readUntil(s.$LBRACE).trim();this._endToken([e]),this._attemptCharCodeUntilFn(m),this._beginToken(t.EXPANSION_CASE_EXP_START),this._requireCharCode(s.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.push(t.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(t.EXPANSION_CASE_EXP_END),this._requireCharCode(s.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(t.EXPANSION_FORM_END),this._requireCharCode(s.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}_consumeText(){let e=this._cursor.clone();this._beginToken(t.TEXT,e);let s=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(s.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(s.push(this._interpolationConfig.end),this._inInterpolation=!1):s.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(s.join(""))])}_isTextEnd(){return!!(this._cursor.peek()===s.$LT||this._cursor.peek()===s.$EOF||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===s.$RBRACE&&this._isInExpansionCase()))}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===t.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===t.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==s.$LBRACE)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}_handleFullNameStackForTagOpen(e,t){let s=i.mergeNsAndName(e,t);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===s)&&this._fullNameStack.push(s)}_handleFullNameStackForTagClose(e,t){let s=i.mergeNsAndName(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===s&&this._fullNameStack.pop()}};function m(e){return!s.isWhitespace(e)||e===s.$EOF}function y(e){return s.isWhitespace(e)||e===s.$GT||e===s.$SLASH||e===s.$SQ||e===s.$DQ||e===s.$EQ}function g(e){return(e<s.$a||s.$z<e)&&(e<s.$A||s.$Z<e)&&(e<s.$0||e>s.$9)}function b(e){return e==s.$SEMICOLON||e==s.$EOF||!s.isAsciiHexDigit(e)}function E(e){return e==s.$SEMICOLON||e==s.$EOF||!s.isAsciiLetter(e)}function C(e){return e===s.$EQ||s.isAsciiLetter(e)||s.isDigit(e)}function w(e,t){return D(e)==D(t)}function D(e){return e>=s.$a&&e<=s.$z?e-s.$a+s.$A:e}function T(e){let s,r=[];for(let n=0;n<e.length;n++){let i=e[n];s&&s.type==t.TEXT&&i.type==t.TEXT?(s.parts[0]+=i.parts[0],s.sourceSpan.end=i.sourceSpan.end):(s=i,r.push(s))}return r}var S=class{constructor(e,t){if(e instanceof S)this.file=e.file,this.input=e.input,this.end=e.end,this.state=Object.assign({},e.state);else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new S(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){if(e=e||this,t)for(e=e.clone();this.diff(e)>0&&-1!==t.indexOf(e.peek());)e.advance();return new r.ParseSourceSpan(new r.ParseLocation(e.file,e.state.offset,e.state.line,e.state.column),new r.ParseLocation(this.file,this.state.offset,this.state.line,this.state.column))}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new k('Unexpected character "EOF"',this);let t=this.charAt(e.offset);t===s.$LF?(e.line++,e.column=0):s.isNewLine(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?s.$EOF:this.charAt(e.offset)}},P=class extends S{constructor(e,t){e instanceof P?(super(e),this.internalState=Object.assign({},e.internalState)):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new P(this)}getChars(e){let t=e.clone(),s="";for(;t.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(t.peek()),t.advance();return s}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===s.$BACKSLASH)if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),e()===s.$n)this.state.peek=s.$LF;else if(e()===s.$r)this.state.peek=s.$CR;else if(e()===s.$v)this.state.peek=s.$VTAB;else if(e()===s.$t)this.state.peek=s.$TAB;else if(e()===s.$b)this.state.peek=s.$BSPACE;else if(e()===s.$f)this.state.peek=s.$FF;else if(e()===s.$u)if(this.advanceState(this.internalState),e()===s.$LBRACE){this.advanceState(this.internalState);let t=this.clone(),r=0;for(;e()!==s.$RBRACE;)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(t,r)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(e()===s.$x){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(s.isOctalDigit(e())){let t="",r=0,n=this.clone();for(;s.isOctalDigit(e())&&r<3;)n=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(t,8),this.internalState=n.internalState}else s.isNewLine(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let s=this.input.substr(e.internalState.offset,t),r=parseInt(s,16);if(isNaN(r))throw e.state=e.internalState,new k("Invalid hexadecimal escape sequence",e);return r}},k=class{constructor(e,t){this.msg=e,this.cursor=t}};e.CursorError=k}}),ke=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/parser.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=A(),s=we(),r=Pe(),n=Ee(),i=class extends t.ParseError{constructor(e,t,s){super(t,s),this.elementName=e}static create(e,t,s){return new i(e,t,s)}};e.TreeError=i;var a=class{constructor(e,t){this.rootNodes=e,this.errors=t}};e.ParseTreeResult=a;var o=class{constructor(e){this.getTagDefinition=e}parse(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,o=e=>function(t){for(var s=arguments.length,r=new Array(s>1?s-1:0),n=1;n<s;n++)r[n-1]=arguments[n];return e(t.toLowerCase(),...r)},u=n?this.getTagDefinition:o(this.getTagDefinition),l=e=>u(e).contentType,p=n?i:o(i),h=i?(e,t,s,r)=>{let n=p(e,t,s,r);return void 0!==n?n:l(e)}:l,d=r.tokenize(e,t,h,s),f=s&&s.canSelfClose||!1,m=s&&s.allowHtmComponentClosingTags||!1,y=new c(d.tokens,u,f,m,n).build();return new a(y.rootNodes,d.errors.concat(y.errors))}};e.Parser=o;var c=class{constructor(e,t,s,r,n){this.tokens=e,this.getTagDefinition=t,this.canSelfClose=s,this.allowHtmComponentClosingTags=r,this.isTagNameCaseSensitive=n,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}build(){for(;this._peek.type!==r.TokenType.EOF;)this._peek.type===r.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===r.TokenType.TAG_CLOSE?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===r.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===r.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===r.TokenType.TEXT||this._peek.type===r.TokenType.RAW_TEXT||this._peek.type===r.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===r.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===r.TokenType.DOC_TYPE_START?this._consumeDocType(this._advance()):this._advance();return new a(this._rootNodes,this._errors)}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let n=this._advance(),i=this._getText(n),a=this._advanceIf(r.TokenType.CDATA_END);this._addToParent(new s.CDATA(i,new t.ParseSourceSpan(e.sourceSpan.start,(a||n).sourceSpan.end)))}_consumeComment(e){let n=this._advanceIf(r.TokenType.RAW_TEXT),i=this._advanceIf(r.TokenType.COMMENT_END),a=null!=n?n.parts[0].trim():null,o=new t.ParseSourceSpan(e.sourceSpan.start,(i||n||e).sourceSpan.end);this._addToParent(new s.Comment(a,o))}_consumeDocType(e){let n=this._advanceIf(r.TokenType.RAW_TEXT),i=this._advanceIf(r.TokenType.DOC_TYPE_END),a=null!=n?n.parts[0].trim():null,o=new t.ParseSourceSpan(e.sourceSpan.start,(i||n||e).sourceSpan.end);this._addToParent(new s.DocType(a,o))}_consumeExpansion(e){let n=this._advance(),a=this._advance(),o=[];for(;this._peek.type===r.TokenType.EXPANSION_CASE_VALUE;){let e=this._parseExpansionCase();if(!e)return;o.push(e)}if(this._peek.type!==r.TokenType.EXPANSION_FORM_END)return void this._errors.push(i.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));let c=new t.ParseSourceSpan(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new s.Expansion(n.parts[0],a.parts[0],o,c,n.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==r.TokenType.EXPANSION_CASE_EXP_START)return this._errors.push(i.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let n=this._advance(),a=this._collectExpansionExpTokens(n);if(!a)return null;let o=this._advance();a.push(new r.Token(r.TokenType.EOF,[],o.sourceSpan));let u=new c(a,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive).build();if(u.errors.length>0)return this._errors=this._errors.concat(u.errors),null;let l=new t.ParseSourceSpan(e.sourceSpan.start,o.sourceSpan.end),p=new t.ParseSourceSpan(n.sourceSpan.start,o.sourceSpan.end);return new s.ExpansionCase(e.parts[0],u.rootNodes,l,e.sourceSpan,p)}_collectExpansionExpTokens(e){let t=[],s=[r.TokenType.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===r.TokenType.EXPANSION_FORM_START||this._peek.type===r.TokenType.EXPANSION_CASE_EXP_START)&&s.push(this._peek.type),this._peek.type===r.TokenType.EXPANSION_CASE_EXP_END){if(!u(s,r.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(i.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(s.pop(),0==s.length)return t}if(this._peek.type===r.TokenType.EXPANSION_FORM_END){if(!u(s,r.TokenType.EXPANSION_FORM_START))return this._errors.push(i.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;s.pop()}if(this._peek.type===r.TokenType.EOF)return this._errors.push(i.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&"\n"==t[0]){let e=this._getParentElement();null!=e&&0==e.children.length&&this.getTagDefinition(e.name).ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=this._getText(e);t.length>0&&this._addToParent(new s.Text(t,e.sourceSpan))}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let a=e.parts[0],o=e.parts[1],c=[];for(;this._peek.type===r.TokenType.ATTR_NAME;)c.push(this._consumeAttr(this._advance()));let u=this._getElementFullName(a,o,this._getParentElement()),l=!1;if(this._peek.type===r.TokenType.TAG_OPEN_END_VOID){this._advance(),l=!0;let t=this.getTagDefinition(u);this.canSelfClose||t.canSelfClose||null!==n.getNsPrefix(u)||t.isVoid||this._errors.push(i.create(u,e.sourceSpan,`Only void and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===r.TokenType.TAG_OPEN_END&&(this._advance(),l=!1);let p=this._peek.sourceSpan.start,h=new t.ParseSourceSpan(e.sourceSpan.start,p),d=new t.ParseSourceSpan(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new s.Element(u,c,[],h,h,void 0,d);this._pushElement(f),l&&(this._popElement(u),f.endSourceSpan=h)}_pushElement(e){let t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let t=this.allowHtmComponentClosingTags&&0===e.parts.length?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),t&&this.getTagDefinition(t).isVoid)this._errors.push(i.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(t)){let s=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this._errors.push(i.create(t,e.sourceSpan,s))}}_popElement(e){for(let t=this._elementStack.length-1;t>=0;t--){let s=this._elementStack[t];if(!e||(n.getNsPrefix(s.name)?s.name==e:s.name.toLowerCase()==e.toLowerCase()))return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(s.name).closedByParent)return!1}return!1}_consumeAttr(e){let i,a,o=n.mergeNsAndName(e.parts[0],e.parts[1]),c=e.sourceSpan.end,u="";if(this._peek.type===r.TokenType.ATTR_QUOTE&&(a=this._advance().sourceSpan.start),this._peek.type===r.TokenType.ATTR_VALUE){let e=this._advance();u=e.parts[0],c=e.sourceSpan.end,i=e.sourceSpan}return this._peek.type===r.TokenType.ATTR_QUOTE&&(c=this._advance().sourceSpan.end,i=new t.ParseSourceSpan(a,c)),new s.Attribute(o,u,new t.ParseSourceSpan(e.sourceSpan.start,c),i,e.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let e=null;for(let t=this._elementStack.length-1;t>=0;t--){if(!n.isNgContainer(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}}_addToParent(e){let t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)}_insertBeforeContainer(e,t,s){if(t){if(e){let r=e.children.indexOf(t);e.children[r]=s}else this._rootNodes.push(s);s.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,s)}else this._addToParent(s),this._elementStack.push(s)}_getElementFullName(e,t,s){return""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=s&&(e=n.getNsPrefix(s.name)),n.mergeNsAndName(e,t)}};function u(e,t){return e.length>0&&e[e.length-1]===t}}}),_e=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ce(),s=ke(),r=ke();e.ParseTreeResult=r.ParseTreeResult,e.TreeError=r.TreeError;var n=class extends s.Parser{constructor(){super(t.getHtmlTagDefinition)}parse(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4?arguments[4]:void 0;return super.parse(e,t,s,r,n)}};e.HtmlParser=n}}),Ne=d({"node_modules/angular-html-parser/lib/angular-html-parser/src/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=_e(),s=Ee();e.TagContentType=s.TagContentType;var r=null,n=()=>(r||(r=new t.HtmlParser),r);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{canSelfClose:s=!1,allowHtmComponentClosingTags:r=!1,isTagNameCaseSensitive:i=!1,getTagContentType:a}=t;return n().parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:s,allowHtmComponentClosingTags:r},i,a)}e.parse=i}});x();var{ParseSourceSpan:Ie,ParseLocation:Fe,ParseSourceFile:Le}=A(),Be=w(),je=D(),Me=T(),{inferParserByLanguage:Re}=ce(),Ue=pe(),qe=fe(),$e=ye(),{hasPragma:ze}=ge(),{Node:He}=xe(),{parseIeConditionalComment:Ve}=ve(),{locStart:Ge,locEnd:We}=be();function Je(e,t,s){let{canSelfClose:r,normalizeTagName:n,normalizeAttributeName:i,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o,getTagContentType:c}=t,u=Ne(),{RecursiveVisitor:l,visitAll:p}=we(),{ParseSourceSpan:h}=A(),{getHtmlTagDefinition:d}=Ce(),{rootNodes:f,errors:m}=u.parse(e,{canSelfClose:r,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o,getTagContentType:c});if("vue"===s.parser)if(f.some((e=>"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase()))){r=!0,n=!0,i=!0,a=!0,o=!1;let t=u.parse(e,{canSelfClose:r,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o});f=t.rootNodes,m=t.errors}else{let t=e=>{if(!e||"element"!==e.type||"template"!==e.name)return!1;let t=e.attrs.find((e=>"lang"===e.name)),r=t&&t.value;return!r||"html"===Re(r,s)};if(f.some(t)){let s,n=()=>u.parse(e,{canSelfClose:r,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o}),i=()=>s||(s=n()),c=e=>i().rootNodes.find((t=>{let{startSourceSpan:s}=t;return s&&s.start.offset===e.startSourceSpan.start.offset}));for(let e=0;e<f.length;e++){let s=f[e],{endSourceSpan:r,startSourceSpan:n}=s;if(null===r)m=i().errors,f[e]=c(s)||s;else if(t(s)){let t=i(),a=n.end.offset,o=r.start.offset;for(let e of t.errors){let{offset:t}=e.span.start;if(a<t&&t<o){m=[e];break}}f[e]=c(s)||s}}}}if(m.length>0){let{msg:e,span:{start:t,end:s}}=m[0];throw Me(e,{start:{line:t.line+1,column:t.col+1},end:{line:s.line+1,column:s.col+1}})}let y=e=>{let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,s=e.nameSpan.toString(),r=null!==t&&s.startsWith(`${t}:`),n=r?s.slice(t.length+1):s;e.name=n,e.namespace=t,e.hasExplicitNamespace=r},g=e=>{switch(e.type){case"element":y(e);for(let t of e.attrs)y(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString()}},x=(e,t)=>{let s=e.toLowerCase();return t(s)?s:e},v=e=>{if("element"===e.type&&(n&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||$e(e))&&(e.name=x(e.name,(e=>e in Ue))),i)){let t=qe[e.name]||Object.create(null);for(let s of e.attrs)s.namespace||(s.name=x(s.name,(s=>e.name in qe&&(s in qe["*"]||s in t))))}},b=e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new h(e.sourceSpan.start,e.endSourceSpan.end))},E=e=>{if("element"===e.type){let t=d(o?e.name:e.name.toLowerCase());!e.namespace||e.namespace===t.implicitNamespacePrefix||$e(e)?e.tagDefinition=t:e.tagDefinition=d("")}};return p(new class extends l{visit(e){g(e),E(e),v(e),b(e)}},f),f}function Xe(e,t,s){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{frontMatter:n,content:i}=r?Be(e):{frontMatter:null,content:e},a=new Le(e,t.filepath),o=new Fe(a,0,0,0),c=o.moveBy(e.length),u={type:"root",sourceSpan:new Ie(o,c),children:Je(i,s,t)};if(n){let e=new Fe(a,0,0,0),t=e.moveBy(n.raw.length);n.sourceSpan=new Ie(e,t),u.children.unshift(n)}let l=new He(u),p=(r,n)=>{let{offset:i}=n,a=Xe(e.slice(0,i).replace(/[^\n\r]/g," ")+r,t,s,!1);a.sourceSpan=new Ie(n,je(a.children).sourceSpan.end);let o=a.children[0];return o.length===i?a.children.shift():(o.sourceSpan=new Ie(o.sourceSpan.start.moveBy(i),o.sourceSpan.end),o.value=o.value.slice(i)),a};return l.walk((e=>{if("comment"===e.type){let t=Ve(e,p);t&&e.parent.replaceChild(e,t)}})),l}function Ke(){let{name:e,canSelfClose:t=!1,normalizeTagName:s=!1,normalizeAttributeName:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{parse:(o,c,u)=>Xe(o,Object.assign({parser:e},u),{canSelfClose:t,normalizeTagName:s,normalizeAttributeName:r,allowHtmComponentClosingTags:n,isTagNameCaseSensitive:i,getTagContentType:a}),hasPragma:ze,astFormat:"html",locStart:Ge,locEnd:We}}t.exports={parsers:{html:Ke({name:"html",canSelfClose:!0,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0}),angular:Ke({name:"angular",canSelfClose:!0}),vue:Ke({name:"vue",canSelfClose:!0,isTagNameCaseSensitive:!0,getTagContentType:(e,t,s,r)=>{if("html"!==e.toLowerCase()&&!s&&("template"!==e||r.some((e=>{let{name:t,value:s}=e;return"lang"===t&&"html"!==s&&""!==s&&void 0!==s}))))return Ne().TagContentType.RAW_TEXT}}),lwc:Ke({name:"lwc"})}}}));return Le()}()})),Sd=ue(Td),Pd=["css","scss","less","json","html","vue"],kd=function(e){var t=re({customFileTypeParser:{}},e);return function(e,s){var r;if("js"===s||"jsx"===s)r="babel";else if(Pd.indexOf(s)>=0)r=s;else{if(!t.customFileTypeParser[s])return e;r=t.customFileTypeParser[s]}return X.default.format(e,{parser:r,plugins:oe([Ad,Dd,Sd],ae(t.plugins||[]),!1),singleQuote:!0,jsxSingleQuote:!0})}},_d=function(e){return function(t){return ne(void 0,void 0,void 0,(function(){var s,r,n;return ie(this,(function(i){return s=e||"react",r=re({},t),n=r.ir,r.chunks.push({type:Ga.STRING,fileType:Va.JS,name:Hp,content:"\n import { createRef } from '".concat(s,"';\n "),linkAfter:[]}),n.utils&&n.utils.forEach((function(e){"function"===e.type&&r.chunks.push({type:Ga.STRING,fileType:Va.JS,name:Wp,content:"\n export const ".concat(e.name," = ").concat(e.content.value,";\n "),linkAfter:[Hp,Vp,Gp]})})),[2,r]}))}))}};var Nd=function(e){var t,s=e.schema.router;if(s&&0!==(null===(t=s.routes)||void 0===t?void 0:t.length)){var r=[],n=function(e){e.forEach((function(e){e.page&&-1===r.indexOf(e.page)&&r.push(e.page),e.children&&e.children.length>0&&n(e.children)}))};n(s.routes);var i=s.routes.map((function(e){return Fd(e)})),a=r.map((function(e){return function(e,t){var s=e.slice(0,1).toUpperCase()+e.slice(1);return B.variableDeclaration("const",[B.variableDeclarator(B.identifier(s),B.callExpression(B.identifier("lazy"),[B.arrowFunctionExpression([],B.callExpression(B.identifier("import"),[B.stringLiteral(t)]))]))])}(e,"./pages/".concat(e))}));return{fileLazyImports:a,routeElements:i}}};function Id(e){var t;try{var s=pt(e,{sourceType:"module",plugins:["jsx"]});return null===(t=null==s?void 0:s.program)||void 0===t?void 0:t.body[0]}catch(e){return console.error("解析错误:",e),null}}function Fd(e){var t=[];return e.children&&(t=e.children.map((function(e){return Fd(e)}))),e.redirect?Id('<Route path="'.concat(e.path,'" element={<Navigate to="').concat(e.redirect,'"/>}></Route>')):function(e,t,s,r){void 0===s&&(s=!1),void 0===r&&(r=null);var n=[B.jsxAttribute(B.jsxIdentifier("path"),B.stringLiteral(e))];s&&n.push(B.jsxAttribute(B.jsxIdentifier("exact")));var i=B.jsxOpeningElement(B.jsxIdentifier("Route"),n,!r);return t||r?(t&&n.push(B.jsxAttribute(B.jsxIdentifier("element"),B.jsxExpressionContainer(B.jsxElement(B.jsxOpeningElement(B.jsxIdentifier(t.slice(0,1).toUpperCase()+t.slice(1)),[],!0),null,[],!1)))),B.jsxElement(i,B.jsxClosingElement(B.jsxIdentifier("Route")),r||[],!1)):B.jsxElement(i,B.jsxClosingElement(B.jsxIdentifier("Route")),[],!1)}(e.path,e.page,e.exact,t)}var Od=function(e,t,s){var r,n,i,a,o=F.readFileSync("./src/App.jsx","utf8"),c=pt("".concat(o),{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]});c.program.body=c.program.body.filter((function(e){var t,s,r,n;return!("VariableDeclaration"===e.type&&"lazy"===(null===(n=null===(r=null===(s=null===(t=e.declarations)||void 0===t?void 0:t[0])||void 0===s?void 0:s.init)||void 0===r?void 0:r.callee)||void 0===n?void 0:n.name))}));var u=Nd(e);if(u){var l=u.fileLazyImports,p=u.routeElements;j.default(c,{Program:function(e){var t=e.node.body,s=t.findIndex((function(e){return"ExportDefaultDeclaration"===e.type}));t.splice.apply(t,oe([s,0],ae(l),!1))},JSXElement:function(e){var t,s,r=e.node;"Routes"===(null===(s=null===(t=r.openingElement)||void 0===t?void 0:t.name)||void 0===s?void 0:s.name)&&(r.children=p)}})}var h=e.schema.config;if(null===(r=null==h?void 0:h.layout)||void 0===r?void 0:r.componentName){var d,f=h.layout,m=f.componentName,y=f.props,g=Id("\n <".concat(m,"\n ").concat(Object.keys(y||{}).map((function(e){var t="";return"string"==typeof y[e]?t="'".concat(y[e],"'"):"number"==typeof y[e]?t="".concat(y[e]):"object"==typeof y[e]&&(t="{".concat(JSON.stringify(y[e]),"}")),"".concat(e,"=").concat(t)})).join("\n"),"\n ><AntdApp></AntdApp></").concat(m,">\n ")).expression;j.default(c,{JSXElement:function(e){var t,s;"HashRouter"===(null===(s=null===(t=e.node.openingElement)||void 0===t?void 0:t.name)||void 0===s?void 0:s.name)&&(d=e)}});var x=!1;j.default(c,{JSXElement:function(e){var t,s,r,n,i=e.node;"ConfigProvider"!==(null===(s=null===(t=i.openingElement)||void 0===t?void 0:t.name)||void 0===s?void 0:s.name)||x||(o.includes("<AntdApp>")&&d?g.children[0].children=d.parent.children:g.children[0].children=i.children,e.replaceWith(g),x=!0),"HashRouter"!==(null===(n=null===(r=i.openingElement)||void 0===r?void 0:r.name)||void 0===n?void 0:n.name)||x||(g.children[0].children=[i],e.replaceWith(g),x=!0)}})}var v=yr(c).code;!(null===(a=null===(i=null===(n=e.schema)||void 0===n?void 0:n.config)||void 0===i?void 0:i.layout)||void 0===a?void 0:a.componentName)||v.includes("from 'antd'")||v.includes('from "antd"')||(v="import { ConfigProvider, App as AntdApp } from 'antd';\n".concat(v)),F.writeFileSync("./src/App.jsx",v,"utf8")},Ld=function(e){var t=F.readFileSync("./package.json","utf8"),s=JSON.parse(t),r=!1;return e.dependencies&&(Object.keys(e.dependencies).forEach((function(t){s.dependencies[t]!==e.dependencies[t]&&(r=!0)})),Object.keys(s.dependencies).forEach((function(t){s.dependencies[t]!==e.dependencies[t]&&(r=!0)}))),s.dependencies=e.dependencies,F.writeFileSync("./package.json",JSON.stringify(s),"utf8"),r},Bd=require("fs-extra"),jd="$__cacheTime";function Md(e,t){var s,n,i;return ne(this,void 0,void 0,(function(){var e,a,o,c,u,l,p,h,d,f,m,y,g,x,v,b,E,C,A,w,D,T,P,_,N,F,O,L,B,j,M,R,U,q,$;return ie(this,(function(z){switch(z.label){case 0:e=k.default.join(S.default.homedir(),".cache","mengti_temp"),a=k.default.join(S.default.homedir(),".cache","mengti_translate"),t.clear&&ut(a),o=k.default.join(process.cwd()+"/"+(t.output||""))+jd,z.label=1;case 1:return z.trys.push([1,11,,12]),c=Ua.getKey(o),console.log("[最后同步时间] ",c?new Date(Number(c)).toLocaleString():"无"),u=c&&!t.clear?Number(c):0,Ba(t.auth),[4,Rd({projectId:t.id,auth:t.auth,filter:t.filter,folder:t.folder,frame:t.frame,afterTime:u})];case 2:return l=z.sent(),p=l.schema,h=l.project,d=l.documents,f=l.componentDocs,m=l.packageJSON,y=h.documents||[],g=y.map((function(e){return e.fileName})),h&&0!==d.length?(x=t.frame||h.type,b=(v="web"===x)?"vite":"taro",E=t.output,C=function(e){return I.default.createProjectBuilder({template:qh.template,plugins:{components:[Zh(),od({fileType:"jsx"}),ed(e),td(e),Kh(),I.default.plugins.react.containerInitState(),I.default.plugins.react.containerLifeCycle(),sd(),$h(),Ed({nodeTypeMapping:{Div:"View",Component:"React.Fragment",Page:"View",Block:"React.Fragment"}}),I.default.plugins.style.css()],pages:[Zh(),od({fileType:"jsx"}),ed(e),td(e),Kh(),I.default.plugins.react.containerInitState(),I.default.plugins.react.containerLifeCycle(),sd(),$h(),Ed({nodeTypeMapping:{Div:"div",Component:"React.Fragment",Page:"Page",Block:"React.Fragment"}}),I.default.plugins.style.css()],router:[I.default.plugins.common.esmodule(),qh.plugins.router()],entry:[qh.plugins.entry()],constants:[I.default.plugins.project.constants()],utils:[I.default.plugins.common.esmodule(),_d("react")],i18n:[I.default.plugins.project.i18n()],globalStyle:[qh.plugins.globalStyle()],htmlEntry:[qh.plugins.entryHtml()],packageJSON:[qh.plugins.packageJSON()]},postProcessors:[kd()]})}({type:x,solution:b}),t.env&&(A=null===(n=null===(s=h.envInfo)||void 0===s?void 0:s.list)||void 0===n?void 0:n.find((function(e){return e.alias===t.env})),A&&(p.constants=re(re({},p.constants),Ud(A.data)))),[4,C.generateProject(p)]):(console.log(it.yellow("提示:无文件更新,请确认是否保存!如需更新全部,请勾选清除缓存")),[2,0]);case 3:return(w=z.sent()).files=w.files.filter((function(e){return"css"===e.ext||"jsx"===e.ext})),D=I.default.publishers.disk(),ut(e),[4,D.publish({project:w,outputPath:e,projectSlug:"example",createProjectFolder:!1})];case 4:return z.sent(),Bd.existsSync("./".concat(E,"/"))||Bd.mkdirSync("./".concat(E,"/"),{recursive:!0}),T=function(e){return e.path==="./".concat(E,"/")?"".concat(null==E?void 0:E.replace("src/",""),"/").concat(e.fileName.split(".")[0]):"".concat(null==E?void 0:E.replace("src/",""),"/").concat(e.name,"/index")},[4,ct("./".concat(E,"/"))];case 5:return P=z.sent(),[4,ct(e+"/")];case 6:_=z.sent(),N={components:P.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return g.includes(e)})),pages:P.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("pages")&&!e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return g.includes(e)})),pageUrls:P.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("pages")&&!e.path.includes("components")})).filter((function(e){return g.includes(e.name)})).map((function(e){return T(e)}))},F=function(t){var s,r,n,i,a,o,c,u,l,m,y,g,x,C,A,w,D,S;return ie(this,(function(P){switch(P.label){case 0:return(s=_[t]).path.includes("/BasicLayout/")?[3,10]:(r=s.name,"js"!==(n=s.ext)||"utils.js"!==s.fileName?[3,2]:[4,Ao(s,p,h,b)]);case 1:P.sent(),P.label=2;case 2:return"css"!==n&&"scss"!==n||(i=s.path+"/"+s.fileName,"taro"===b?(Bd.renameSync(s.path+"/"+s.fileName,s.path+"/"+s.fileName.replace("css","scss")),i=s.path+"/"+s.fileName.replace("css","scss")):"scss"===n&&(Bd.renameSync(s.path+"/"+s.fileName,s.path+"/"+s.fileName.replace("scss","css")),i=s.path+"/"+s.fileName.replace("scss","css")),(a=Bd.readFileSync(i,"utf8"))&&a.includes("calc")&&Bd.writeFileSync(i,a.replace(/ /g," "),"utf8")),"jsx"!==n&&"tsx"!==n?[3,10]:(o=d.concat(f).find((function(e){return e.fileName.toLowerCase()===r.toLowerCase()})),"Page"===(null==o?void 0:o.type)&&(N.pages.includes(r)||(N.pages.push(r),N.pageUrls.push(T(s)))),"Component"===(null==o?void 0:o.type)&&(N.components.includes(r)||N.components.push(r)),console.log("[BUILD FILE]",s.name),[4,Er(s,b,E)]);case 3:for(c=P.sent(),u=c.code,l=c.images,m=c.svgs,Bd.writeFileSync(s.path+"/"+s.fileName,u),Bd.renameSync(s.path+"/"+s.fileName,s.path+"/"+(v?s.fileName:s.fileName.replace("jsx","tsx"))),v||"Page"!==(null==o?void 0:o.type)||((y=["export default definePageConfig({"]).push(" navigationBarTitleText: '".concat(o.title,"',")),y.push(" navigationStyle: '".concat("custom","',")),y.push(" disableScroll: true,"),y.push("})"),Bd.writeFileSync(s.path+"/index.config.ts",y.join("\n"))),g=[],x=[],A=0;A<m.length;A++)if((C=m[A]).svgStr&&C.fileName)try{Bd.existsSync(s.path+"/icons")||Bd.mkdirSync(s.path+"/icons"),Bd.writeFileSync(s.path+"/icons/"+C.fileName+".svg",C.svgStr),g.push("import ".concat(C.fileName," from './").concat(C.fileName,".svg").concat("vite"===b?"?raw":"","';")),x.push(" ".concat(C.fileName,","))}catch(e){console.log("[saveSvg Error] ",e)}g.length>0&&Bd.writeFileSync(s.path+"/icons/index.ts",g.concat(["const ICONS = {"]).concat(x).concat(["}"]).concat("export default ICONS;").join("\n")),A=0,P.label=4;case 4:if(!(A<l.length))return[3,9];if(!(w=l[A]).url||!w.fileName)return[3,8];P.label=5;case 5:return P.trys.push([5,7,,8]),Bd.existsSync(s.path+"/images")||Bd.mkdirSync(s.path+"/images"),[4,Zi(w.url,s.path+"/images/"+w.fileName)];case 6:return P.sent(),[3,8];case 7:return D=P.sent(),console.log("[downloadFile Error] ",D),[3,8];case 8:return A++,[3,4];case 9:S="./".concat(E,"/").concat(s.name),"Component"===(null==o?void 0:o.type)&&(S="./".concat(E,"/components/").concat(s.name)),Bd.existsSync(S)&&ut(S),"Page"===(null==o?void 0:o.type)&&Bd.copySync("".concat(e,"/src/pages/").concat(s.name),S),"Component"===(null==o?void 0:o.type)&&Bd.copySync("".concat(e,"/src/components/").concat(s.name),S),P.label=10;case 10:return[2]}}))},O=0,z.label=7;case 7:return O<_.length?[5,F(O)]:[3,10];case 8:z.sent(),z.label=9;case 9:return O++,[3,7];case 10:return Ua.setKey(o,String(Date.now())),(L=null===(i=h.appConfig)||void 0===i?void 0:i.indexPage)&&(N.pages=N.pages.sort((function(e,t){return e===L?-1:t===L?1:0})),B=N.pageUrls.find((function(e){return e.includes("/".concat(L,"/"))})),N.pageUrls=N.pageUrls.sort((function(e,t){return e===B?-1:t===B?1:0}))),Bd.writeFileSync("./".concat(E,"/map.json"),JSON.stringify(N)),"vite"===b?(j=Bd.readFileSync("".concat(e,"/src/global.css"),"utf-8"),M=j.split("\n").slice(6).join("\n"),Bd.writeFileSync("./src/App.css",M)):(j=Bd.readFileSync("".concat(e,"/src/global.sscss"),"utf-8"),M=j.split("\n").slice(6).join("\n"),Bd.writeFileSync("./src/global.scss",M),(R=Bd.readFileSync("./src/app.tsx","utf-8")).includes("import './global.scss'")||(U=R.replace("import './app.scss'","import './app.scss'\nimport './global.scss'"),Bd.writeFileSync("./src/app.tsx",U))),Bd.copyFileSync("".concat(e,"/src/utils.js"),"./src/utils/utils.js"),Bd.copyFileSync("".concat(e,"/src/constants.js"),"./src/utils/constants.js"),q=To(h,E,b),Bd.writeFileSync("./src/utils/portal.js",q),v?(Od(h),Ld(m)&&(console.log("[INFO] package.json 文件已更新,将重新安装依赖"),"pnpm",r.execSync("".concat("pnpm"," install --registry=https://registry.npmmirror.com"),{stdio:"inherit"}),console.log("[INFO] 本地依赖已更新,请重新启动项目"))):Do(t.frame||h.type,h,N),Ua.save(),console.log("[INFO ".concat((new Date).toLocaleString(),"] 代码增量同步完成")),[2,0];case 11:return $=z.sent(),console.log(it.red(at($)||"Unexpected error: ".concat($))),Ua.removeKey(o),Ua.save(),"object"==typeof $&&(null==$?void 0:$.stack)&&t.verbose&&console.log(it.gray($.stack)),[2,1];case 12:return[2]}}))}))}function Rd(e){var t,s;return ne(this,void 0,void 0,(function(){var r,n;return ie(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,ja("/editor/getExportDetail",{_id:e.projectId,auth:e.auth,count:!1,folders:null===(t=null==e?void 0:e.folder)||void 0===t?void 0:t.split(","),fileNames:null===(s=e.filter)||void 0===s?void 0:s.split(","),frame:e.frame,afterTime:e.afterTime})];case 1:return"string"==typeof(r=i.sent()).data.schema&&(r.data.schema=JSON.parse(r.data.schema)),[2,r.data];case 2:throw n=i.sent(),console.log("[ERROR] ",n),n;case 3:return[2]}}))}))}var Ud=function(e){var t=e,s=null==e?void 0:e.__enable;return s&&(Object.keys(e).forEach((function(e){s.includes(e)||delete t[e]})),null==t||delete t.__enable),e},qd=function(e,t){return ne(void 0,void 0,void 0,(function(){var e;return ie(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,ja("/file/getUploadToken",re({},t))];case 1:return[2,s.sent().data];case 2:return e=s.sent(),console.log("getUpToken error: ",e),[3,3];case 3:return[2]}}))}))},$d=function(e,t){return ne(void 0,void 0,void 0,(function(){var s,r,n,i,a,o,c;return ie(this,(function(u){switch(u.label){case 0:return[4,qd(0,t)];case 1:s=u.sent(),r=s.token,n=s.key,(i=new wi).append("file",F.createReadStream(e.path+"/"+e.fileName)),i.append("key",n),i.append("token",r),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,Xi.post("https://up-z0.qiniup.com/",i,{headers:i.getHeaders()})];case 3:if(a=u.sent(),null===(c=a.data)||void 0===c?void 0:c.hash)return[2,a.data];throw console.log("File upload failed.",a.data),new Error("File upload failed.");case 4:throw o=u.sent(),console.error("Error uploading file:",o),new Error("Error uploading file");case 5:return[2]}}))}))},zd=function(e){var t=/exports\.(\w+)/.exec(e);return t?t[1]:""};function Hd(e){return ne(this,void 0,void 0,(function(){var t;return ie(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,K.mkdir(e,{recursive:!0})];case 1:return s.sent(),[3,3];case 2:if("EEXIST"===(t=s.sent()).code)return[2];throw t;case 3:return[2]}}))}))}var Vd=pe(T({__proto__:null,default:O.default},[F])),Gd=function(){if("object"==typeof process&&process.versions&&process.versions.electron)try{const e=Vd;if(Object.keys(e).length>0)return e}catch(e){}return O.default},Wd={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24},Jd={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};Jd.INVALID_LOC,Jd.INVALID_CEN,Jd.INVALID_END,Jd.NO_DATA,Jd.BAD_CRC,Jd.FILE_IN_THE_WAY,Jd.UNKNOWN_METHOD,Jd.AVAIL_DATA,Jd.INVALID_DISTANCE,Jd.TO_MANY_CODES,Jd.INVALID_REPEAT_LEN,Jd.INVALID_REPEAT_FIRST,Jd.INCOMPLETE_CODES,Jd.INVALID_DYN_DISTANCE,Jd.INVALID_CODES_LEN,Jd.INVALID_STORE_BLOCK,Jd.INVALID_BLOCK_TYPE,Jd.CANT_EXTRACT_FILE,Jd.CANT_OVERRIDE,Jd.NO_ZIP,Jd.NO_ENTRY,Jd.DIRECTORY_CONTENT_ERROR,Jd.FILE_NOT_FOUND,Jd.NOT_IMPLEMENTED,Jd.INVALID_FILENAME,Jd.INVALID_FORMAT;const Xd=Gd(),Kd="object"==typeof process&&"win32"===process.platform,Yd=e=>e&&"object"==typeof e,Zd=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++)1&t?t=3988292384^t>>>1:t>>>=1;return t>>>0}));function Qd(e){this.sep=k.default.sep,this.fs=Xd,Yd(e)&&Yd(e.fs)&&"function"==typeof e.fs.statSync&&(this.fs=e.fs)}var ef=Qd;Qd.prototype.makeDir=function(e){const t=this;!function(e){let s=e.split(t.sep)[0];e.split(t.sep).forEach((function(e){if(e&&":"!==e.substr(-1,1)){var r;s+=t.sep+e;try{r=t.fs.statSync(s)}catch(e){t.fs.mkdirSync(s)}if(r&&r.isFile())throw Jd.FILE_IN_THE_WAY.replace("%s",s)}}))}(e)},Qd.prototype.writeFileTo=function(e,t,s,r){const n=this;if(n.fs.existsSync(e)){if(!s)return!1;if(n.fs.statSync(e).isDirectory())return!1}var i,a=k.default.dirname(e);n.fs.existsSync(a)||n.makeDir(a);try{i=n.fs.openSync(e,"w",438)}catch(t){n.fs.chmodSync(e,438),i=n.fs.openSync(e,"w",438)}if(i)try{n.fs.writeSync(i,t,0,t.length,0)}finally{n.fs.closeSync(i)}return n.fs.chmodSync(e,r||438),!0},Qd.prototype.writeFileToAsync=function(e,t,s,r,n){"function"==typeof r&&(n=r,r=void 0);const i=this;i.fs.exists(e,(function(a){if(a&&!s)return n(!1);i.fs.stat(e,(function(s,o){if(a&&o.isDirectory())return n(!1);var c=k.default.dirname(e);i.fs.exists(c,(function(s){s||i.makeDir(c),i.fs.open(e,"w",438,(function(s,a){s?i.fs.chmod(e,438,(function(){i.fs.open(e,"w",438,(function(s,a){i.fs.write(a,t,0,t.length,0,(function(){i.fs.close(a,(function(){i.fs.chmod(e,r||438,(function(){n(!0)}))}))}))}))})):a?i.fs.write(a,t,0,t.length,0,(function(){i.fs.close(a,(function(){i.fs.chmod(e,r||438,(function(){n(!0)}))}))})):i.fs.chmod(e,r||438,(function(){n(!0)}))}))}))}))}))},Qd.prototype.findFiles=function(e){const t=this;return function e(s,r,n){"boolean"==typeof r&&(n=r,r=void 0);let i=[];return t.fs.readdirSync(s).forEach((function(a){var o=k.default.join(s,a);t.fs.statSync(o).isDirectory()&&n&&(i=i.concat(e(o,r,n))),r&&!r.test(o)||i.push(k.default.normalize(o)+(t.fs.statSync(o).isDirectory()?t.sep:""))})),i}(e,void 0,!0)},Qd.prototype.getAttributes=function(){},Qd.prototype.setAttributes=function(){},Qd.crc32update=function(e,t){return Zd[255&(e^t)]^e>>>8},Qd.crc32=function(e){"string"==typeof e&&(e=Buffer.from(e,"utf8")),Zd.length||genCRCTable();let t=e.length,s=-1;for(let r=0;r<t;)s=Qd.crc32update(s,e[r++]);return~s>>>0},Qd.methodToString=function(e){switch(e){case Wd.STORED:return"STORED ("+e+")";case Wd.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}},Qd.canonical=function(e){if(!e)return"";var t=k.default.posix.normalize("/"+e.split("\\").join("/"));return k.default.join(".",t)},Qd.sanitize=function(e,t){e=k.default.resolve(k.default.normalize(e));for(var s=t.split("/"),r=0,n=s.length;r<n;r++){var i=k.default.normalize(k.default.join(e,s.slice(r,n).join(k.default.sep)));if(0===i.indexOf(e))return i}return k.default.normalize(k.default.join(e,k.default.basename(t)))},Qd.toBuffer=function(e){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):"string"==typeof e?Buffer.from(e,"utf8"):Buffer.alloc(0)},Qd.readBigUInt64LE=function(e,t){var s=Buffer.from(e.slice(t,t+8));return s.swap64(),parseInt(`0x${s.toString("hex")}`)},Qd.isWin=Kd,Qd.crcTable=Zd;const tf=Gd();tf.existsSync=tf.existsSync||k.default.existsSync;var sf=ef,rf=Wd,nf=Jd,af=function(e){var t=e||"",s={directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0},r=null;return t&&tf.existsSync(t)?(r=tf.statSync(t),s.directory=r.isDirectory(),s.mtime=r.mtime,s.atime=r.atime,s.executable=!!(73&r.mode),s.readonly=!(128&r.mode),s.hidden="."===k.default.basename(t)[0]):console.warn("Invalid path: "+t),{get directory(){return s.directory},get readOnly(){return s.readonly},get hidden(){return s.hidden},get mtime(){return s.mtime},get atime(){return s.atime},get executable(){return s.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:s.directory,isReadOnly:s.readonly,isHidden:s.hidden,isExecutable:s.executable,mTime:s.mtime,aTime:s.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}};sf.Constants=rf,sf.Errors=nf,sf.FileAttr=af;var of=sf.Constants,cf=sf.Constants,uf=function(){var e=20,t=10,s=0,r=0,n=0,i=0,a=0,o=0,c=0,u=0,l=0,p=0,h=0,d=0,f=0;e|=sf.isWin?2560:768,s|=of.FLG_EFS;var m={};function y(e){e=new Date(e),n=(e.getFullYear()-1980&127)<<25|e.getMonth()+1<<21|e.getDate()<<16|e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1}return y(+new Date),{get made(){return e},set made(t){e=t},get version(){return t},set version(e){t=e},get flags(){return s},set flags(e){s=e},get method(){return r},set method(e){switch(e){case of.STORED:this.version=10;case of.DEFLATED:default:this.version=20}r=e},get time(){return new Date(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1)},set time(e){y(e)},get timeHighByte(){return n>>>8&255},get crc(){return i},set crc(e){i=Math.max(0,e)>>>0},get compressedSize(){return a},set compressedSize(e){a=Math.max(0,e)>>>0},get size(){return o},set size(e){o=Math.max(0,e)>>>0},get fileNameLength(){return c},set fileNameLength(e){c=e},get extraLength(){return u},set extraLength(e){u=e},get commentLength(){return l},set commentLength(e){l=e},get diskNumStart(){return p},set diskNumStart(e){p=Math.max(0,e)>>>0},get inAttr(){return h},set inAttr(e){h=Math.max(0,e)>>>0},get attr(){return d},set attr(e){d=Math.max(0,e)>>>0},get fileAttr(){return d?d>>>0>>16&4095:0},get offset(){return f},set offset(e){f=Math.max(0,e)>>>0},get encripted(){return!(1&~s)},get entryHeaderSize(){return of.CENHDR+c+u+l},get realDataOffset(){return f+of.LOCHDR+m.fnameLen+m.extraLen},get dataHeader(){return m},loadDataHeaderFromBinary:function(e){var t=e.slice(f,f+of.LOCHDR);if(t.readUInt32LE(0)!==of.LOCSIG)throw new Error(sf.Errors.INVALID_LOC);m={version:t.readUInt16LE(of.LOCVER),flags:t.readUInt16LE(of.LOCFLG),method:t.readUInt16LE(of.LOCHOW),time:t.readUInt32LE(of.LOCTIM),crc:t.readUInt32LE(of.LOCCRC),compressedSize:t.readUInt32LE(of.LOCSIZ),size:t.readUInt32LE(of.LOCLEN),fnameLen:t.readUInt16LE(of.LOCNAM),extraLen:t.readUInt16LE(of.LOCEXT)}},loadFromBinary:function(m){if(m.length!==of.CENHDR||m.readUInt32LE(0)!==of.CENSIG)throw new Error(sf.Errors.INVALID_CEN);e=m.readUInt16LE(of.CENVEM),t=m.readUInt16LE(of.CENVER),s=m.readUInt16LE(of.CENFLG),r=m.readUInt16LE(of.CENHOW),n=m.readUInt32LE(of.CENTIM),i=m.readUInt32LE(of.CENCRC),a=m.readUInt32LE(of.CENSIZ),o=m.readUInt32LE(of.CENLEN),c=m.readUInt16LE(of.CENNAM),u=m.readUInt16LE(of.CENEXT),l=m.readUInt16LE(of.CENCOM),p=m.readUInt16LE(of.CENDSK),h=m.readUInt16LE(of.CENATT),d=m.readUInt32LE(of.CENATX),f=m.readUInt32LE(of.CENOFF)},dataHeaderToBinary:function(){var e=Buffer.alloc(of.LOCHDR);return e.writeUInt32LE(of.LOCSIG,0),e.writeUInt16LE(t,of.LOCVER),e.writeUInt16LE(s,of.LOCFLG),e.writeUInt16LE(r,of.LOCHOW),e.writeUInt32LE(n,of.LOCTIM),e.writeUInt32LE(i,of.LOCCRC),e.writeUInt32LE(a,of.LOCSIZ),e.writeUInt32LE(o,of.LOCLEN),e.writeUInt16LE(c,of.LOCNAM),e.writeUInt16LE(u,of.LOCEXT),e},entryHeaderToBinary:function(){var m=Buffer.alloc(of.CENHDR+c+u+l);return m.writeUInt32LE(of.CENSIG,0),m.writeUInt16LE(e,of.CENVEM),m.writeUInt16LE(t,of.CENVER),m.writeUInt16LE(s,of.CENFLG),m.writeUInt16LE(r,of.CENHOW),m.writeUInt32LE(n,of.CENTIM),m.writeUInt32LE(i,of.CENCRC),m.writeUInt32LE(a,of.CENSIZ),m.writeUInt32LE(o,of.CENLEN),m.writeUInt16LE(c,of.CENNAM),m.writeUInt16LE(u,of.CENEXT),m.writeUInt16LE(l,of.CENCOM),m.writeUInt16LE(p,of.CENDSK),m.writeUInt16LE(h,of.CENATT),m.writeUInt32LE(d,of.CENATX),m.writeUInt32LE(f,of.CENOFF),m.fill(0,of.CENHDR),m},toJSON:function(){const n=function(e){return e+" bytes"};return{made:e,version:t,flags:s,method:sf.methodToString(r),time:this.time,crc:"0x"+i.toString(16).toUpperCase(),compressedSize:n(a),size:n(o),fileNameLength:n(c),extraLength:n(u),commentLength:n(l),diskNumStart:p,inAttr:h,attr:d,offset:f,entryHeaderSize:n(of.CENHDR+c+u+l)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},lf=function(){var e=0,t=0,s=0,r=0,n=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return s},set size(e){s=e},get offset(){return r},set offset(e){r=e},get commentLength(){return n},set commentLength(e){n=e},get mainHeaderSize(){return cf.ENDHDR+n},loadFromBinary:function(i){if((i.length!==cf.ENDHDR||i.readUInt32LE(0)!==cf.ENDSIG)&&(i.length<cf.ZIP64HDR||i.readUInt32LE(0)!==cf.ZIP64SIG))throw new Error(sf.Errors.INVALID_END);i.readUInt32LE(0)===cf.ENDSIG?(e=i.readUInt16LE(cf.ENDSUB),t=i.readUInt16LE(cf.ENDTOT),s=i.readUInt32LE(cf.ENDSIZ),r=i.readUInt32LE(cf.ENDOFF),n=i.readUInt16LE(cf.ENDCOM)):(e=sf.readBigUInt64LE(i,cf.ZIP64SUB),t=sf.readBigUInt64LE(i,cf.ZIP64TOT),s=sf.readBigUInt64LE(i,cf.ZIP64SIZE),r=sf.readBigUInt64LE(i,cf.ZIP64OFF),n=0)},toBinary:function(){var i=Buffer.alloc(cf.ENDHDR+n);return i.writeUInt32LE(cf.ENDSIG,0),i.writeUInt32LE(0,4),i.writeUInt16LE(e,cf.ENDSUB),i.writeUInt16LE(t,cf.ENDTOT),i.writeUInt32LE(s,cf.ENDSIZ),i.writeUInt32LE(r,cf.ENDOFF),i.writeUInt16LE(n,cf.ENDCOM),i.fill(" ",cf.ENDHDR),i},toJSON:function(){return{diskEntries:e,totalEntries:t,size:s+" bytes",offset:function(e,t){let s=e.toString(16).toUpperCase();for(;s.length<t;)s="0"+s;return"0x"+s}(r,4),commentLength:n}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},pf={EntryHeader:uf,MainHeader:lf};const{randomFillSync:hf}=M.default,df=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;return t>>>0})),ff=(e,t)=>Math.imul(e,t)>>>0,mf=(e,t)=>df[255&(e^t)]^e>>>8,yf=()=>"function"==typeof hf?hf(Buffer.alloc(12)):yf.node();yf.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let s=0;s<t;s++)e[s]=256*Math.random()&255;return e};const gf={genSalt:yf};function xf(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let e=0;e<t.length;e++)this.updateKeys(t[e])}xf.prototype.updateKeys=function(e){const t=this.keys;return t[0]=mf(t[0],e),t[1]+=255&t[0],t[1]=ff(t[1],134775813)+1,t[2]=mf(t[2],t[1]>>>24),e},xf.prototype.next=function(){const e=(2|this.keys[2])>>>0;return ff(e,1^e)>>8&255};var vf={decrypt:function(e,t,s){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const r=function(e){const t=new xf(e);return function(e){const s=Buffer.alloc(e.length);let r=0;for(let n of e)s[r++]=t.updateKeys(n^t.next());return s}}(s),n=r(e.slice(0,12)),i=8&~t.flags?t.crc>>>24:t.timeHighByte;if(n[11]!==i)throw"ADM-ZIP: Wrong Password";return r(e.slice(12))},encrypt:function(e,t,s,r=!1){null==e&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const n=function(e){const t=new xf(e);return function(e,s,r=0){s||(s=Buffer.alloc(e.length));for(let n of e){const e=t.next();s[r++]=n^e,t.updateKeys(n)}return s}}(s),i=gf.genSalt();i[11]=t.crc>>>24&255,r&&(i[10]=t.crc>>>16&255);const a=Buffer.alloc(e.length+12);return n(i,a),n(e,a,12)},_salter:function(e){Buffer.isBuffer(e)&&e.length>=12?gf.genSalt=function(){return e.slice(0,12)}:gf.genSalt="node"===e?yf.node:yf}},bf=function(e){var t=V.default,s={chunkSize:1024*(parseInt(e.length/1024)+1)};return{deflate:function(){return t.deflateRawSync(e,s)},deflateAsync:function(r){var n=t.createDeflateRaw(s),i=[],a=0;n.on("data",(function(e){i.push(e),a+=e.length})),n.on("end",(function(){var e=Buffer.alloc(a),t=0;e.fill(0);for(var s=0;s<i.length;s++){var n=i[s];n.copy(e,t),t+=n.length}r&&r(e)})),n.end(e)}}},Ef=function(e){var t=V.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(s){var r=t.createInflateRaw(),n=[],i=0;r.on("data",(function(e){n.push(e),i+=e.length})),r.on("end",(function(){var e=Buffer.alloc(i),t=0;e.fill(0);for(var r=0;r<n.length;r++){var a=n[r];a.copy(e,t),t+=a.length}s&&s(e)})),r.end(e)}}},Cf={Deflater:bf,Inflater:Ef,ZipCrypto:vf},Af=sf.Constants,wf=function(e){var t=new pf.EntryHeader,s=Buffer.alloc(0),r=Buffer.alloc(0),n=!1,i=null,a=Buffer.alloc(0);function o(){return e&&Buffer.isBuffer(e)?(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize)):Buffer.alloc(0)}function c(e){return!(8&~t.flags&&sf.crc32(e)!==t.dataHeader.crc)}function u(e,r,i){if(void 0===r&&"string"==typeof e&&(i=e,e=void 0),n)return e&&r&&r(Buffer.alloc(0),sf.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var a=o();if(0===a.length)return e&&r&&r(a),a;if(t.encripted){if("string"!=typeof i&&!Buffer.isBuffer(i))throw new Error("ADM-ZIP: Incompatible password parameter");a=Cf.ZipCrypto.decrypt(a,t,i)}var u=Buffer.alloc(t.size);switch(t.method){case sf.Constants.STORED:if(a.copy(u),c(u))return e&&r&&r(u),u;throw e&&r&&r(u,sf.Errors.BAD_CRC),new Error(sf.Errors.BAD_CRC);case sf.Constants.DEFLATED:var l=new Cf.Inflater(a);if(!e){if(l.inflate(u).copy(u,0),!c(u))throw new Error(sf.Errors.BAD_CRC+" "+s.toString());return u}l.inflateAsync((function(e){e.copy(e,0),r&&(c(e)?r(e):r(e,sf.Errors.BAD_CRC))}));break;default:throw e&&r&&r(Buffer.alloc(0),sf.Errors.UNKNOWN_METHOD),new Error(sf.Errors.UNKNOWN_METHOD)}}function l(s,r){if((!i||!i.length)&&Buffer.isBuffer(e))return s&&r&&r(o()),o();if(i.length&&!n){var a;switch(t.method){case sf.Constants.STORED:return t.compressedSize=t.size,a=Buffer.alloc(i.length),i.copy(a),s&&r&&r(a),a;default:case sf.Constants.DEFLATED:var c=new Cf.Deflater(i);if(!s){var u=c.deflate();return t.compressedSize=u.length,u}c.deflateAsync((function(e){a=Buffer.alloc(e.length),t.compressedSize=e.length,e.copy(a),r&&r(a)})),c=null}}else{if(!s||!r)return Buffer.alloc(0);r(Buffer.alloc(0))}}function p(e,t){return(e.readUInt32LE(t+4)<<4)+e.readUInt32LE(t)}function h(e){var s,r,n,i;e.length>=Af.EF_ZIP64_SCOMP&&(s=p(e,Af.EF_ZIP64_SUNCOMP),t.size===Af.EF_ZIP64_OR_32&&(t.size=s)),e.length>=Af.EF_ZIP64_RHO&&(r=p(e,Af.EF_ZIP64_SCOMP),t.compressedSize===Af.EF_ZIP64_OR_32&&(t.compressedSize=r)),e.length>=Af.EF_ZIP64_DSN&&(n=p(e,Af.EF_ZIP64_RHO),t.offset===Af.EF_ZIP64_OR_32&&(t.offset=n)),e.length>=Af.EF_ZIP64_DSN+4&&(i=e.readUInt32LE(Af.EF_ZIP64_DSN),t.diskNumStart===Af.EF_ZIP64_OR_16&&(t.diskNumStart=i))}return{get entryName(){return s.toString()},get rawEntryName(){return s},set entryName(e){var r=(s=sf.toBuffer(e))[s.length-1];n=47===r||92===r,t.fileNameLength=s.length},get extra(){return a},set extra(e){a=e,t.extraLength=e.length,function(e){for(var t,s,r,n=0;n<e.length;)t=e.readUInt16LE(n),n+=2,s=e.readUInt16LE(n),n+=2,r=e.slice(n,n+s),n+=s,Af.ID_ZIP64===t&&h(r)}(e)},get comment(){return r.toString()},set comment(e){r=sf.toBuffer(e),t.commentLength=r.length},get name(){var e=s.toString();return n?e.substr(e.length-1).split("/").pop():e.split("/").pop()},get isDirectory(){return n},getCompressedData:function(){return l(!1,null)},getCompressedDataAsync:function(e){l(!0,e)},setData:function(e){i=sf.toBuffer(e),!n&&i.length?(t.size=i.length,t.method=sf.Constants.DEFLATED,t.crc=sf.crc32(e),t.changed=!0):t.method=sf.Constants.STORED},getData:function(e){return t.changed?i:u(!1,null,e)},getDataAsync:function(e,s){t.changed?e(i):u(!0,e,s)},set attr(e){t.attr=e},get attr(){return t.attr},set header(e){t.loadFromBinary(e)},get header(){return t},packHeader:function(){var e=t.entryHeaderToBinary(),n=sf.Constants.CENHDR;return s.copy(e,n),n+=s.length,t.extraLength&&(a.copy(e,n),n+=t.extraLength),t.commentLength&&r.copy(e,n),e},toJSON:function(){const s=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:s(e),data:s(i)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},Df=function(e,t){var s=[],r={},n=Buffer.alloc(0),i=new pf.MainHeader,a=!1;const o=Object.assign(Object.create(null),t),{noSort:c}=o;function u(){a=!0,r={},s=new Array(i.diskEntries);for(var t=i.offset,n=0;n<s.length;n++){var o=t,c=new wf(e);c.header=e.slice(o,o+=sf.Constants.CENHDR),c.entryName=e.slice(o,o+=c.header.fileNameLength),c.header.extraLength&&(c.extra=e.slice(o,o+=c.header.extraLength)),c.header.commentLength&&(c.comment=e.slice(o,o+c.header.commentLength)),t+=c.header.entryHeaderSize,s[n]=c,r[c.entryName]=c}}function l(){s.length>1&&!c&&s.sort(((e,t)=>e.entryName.toLowerCase().localeCompare(t.entryName.toLowerCase())))}return e?function(t){var s=e.length-sf.Constants.ENDHDR,r=Math.max(0,s-65535),a=r,o=e.length,c=-1,l=0;for(;s>=a;s--)if(80===e[s])if(e.readUInt32LE(s)!==sf.Constants.ENDSIG)if(e.readUInt32LE(s)!==sf.Constants.END64SIG){if(e.readUInt32LE(s)===sf.Constants.ZIP64SIG){c=s,o=s+sf.readBigUInt64LE(e,s+sf.Constants.ZIP64SIZE)+sf.Constants.ZIP64LEAD;break}}else a=r;else c=s,l=s,o=s+sf.Constants.ENDHDR,a=s-sf.Constants.END64HDR;if(!~c)throw new Error(sf.Errors.INVALID_FORMAT);i.loadFromBinary(e.slice(c,o)),i.commentLength&&(n=e.slice(l+sf.Constants.ENDHDR));t&&u()}(o.readEntries):a=!0,{get entries(){return a||u(),s},get comment(){return n.toString()},set comment(e){n=sf.toBuffer(e),i.commentLength=n.length},getEntryCount:function(){return a?s.length:i.diskEntries},forEach:function(t){a?s.forEach(t):function(t){const s=i.diskEntries;let r=i.offset;for(let n=0;n<s;n++){let s=r;const n=new wf(e);n.header=e.slice(s,s+=sf.Constants.CENHDR),n.entryName=e.slice(s,s+=n.header.fileNameLength),r+=n.header.entryHeaderSize,t(n)}}(t)},getEntry:function(e){return a||u(),r[e]||null},setEntry:function(e){a||u(),s.push(e),r[e.entryName]=e,i.totalEntries=s.length},deleteEntry:function(e){a||u();var t=r[e];if(t&&t.isDirectory){var n=this;this.getEntryChildren(t).forEach((function(t){t.entryName!==e&&n.deleteEntry(t.entryName)}))}s.splice(s.indexOf(t),1),delete r[e],i.totalEntries=s.length},getEntryChildren:function(e){if(a||u(),e&&e.isDirectory){const t=[],r=e.entryName,n=r.length;return s.forEach((function(e){e.entryName.substr(0,n)===r&&t.push(e)})),t}return[]},compressToBuffer:function(){a||u(),l();const e=[],t=[];let r=0,o=0;i.size=0,i.offset=0;for(const n of s){const s=n.getCompressedData();n.header.offset=o;const a=n.header.dataHeaderToBinary(),c=n.rawEntryName.length,u=Buffer.alloc(c+n.extra.length);n.rawEntryName.copy(u,0),n.extra.copy(u,c);const l=a.length+u.length+s.length;o+=l,e.push(a),e.push(u),e.push(s);const p=n.packHeader();t.push(p),i.size+=p.length,r+=l+p.length}r+=i.mainHeaderSize,i.offset=o,o=0;const c=Buffer.alloc(r);for(const t of e)t.copy(c,o),o+=t.length;for(const e of t)e.copy(c,o),o+=e.length;const p=i.toBinary();return n&&n.copy(p,sf.Constants.ENDHDR),p.copy(c,o),c},toAsyncBuffer:function(e,t,r,o){try{a||u(),l();const t=[],c=[];let p=0,h=0;i.size=0,i.offset=0;const d=function(s){if(s.length){const e=s.pop(),n=e.entryName+e.extra.toString();r&&r(n),e.getCompressedDataAsync((function(r){o&&o(n),e.header.offset=h;const a=e.header.dataHeaderToBinary(),u=Buffer.alloc(n.length,n),l=a.length+u.length+r.length;h+=l,t.push(a),t.push(u),t.push(r);const f=e.packHeader();c.push(f),i.size+=f.length,p+=l+f.length,d(s)}))}else{p+=i.mainHeaderSize,i.offset=h,h=0;const s=Buffer.alloc(p);t.forEach((function(e){e.copy(s,h),h+=e.length})),c.forEach((function(e){e.copy(s,h),h+=e.length}));const r=i.toBinary();n&&n.copy(r,sf.Constants.ENDHDR),r.copy(s,h),e(s)}};d(s)}catch(e){t(e)}}}};const Tf=(e,t)=>"boolean"==typeof e?e:t,Sf=(e,t)=>"string"==typeof e?e:t,Pf={noSort:!1,readEntries:!1,method:sf.Constants.NONE,fs:null};var kf=function(e,t){let s=null;const r=Object.assign(Object.create(null),Pf);e&&"object"==typeof e&&(e instanceof Uint8Array||(Object.assign(r,e),e=r.input?r.input:void 0,r.input&&delete r.input),Buffer.isBuffer(e)&&(s=e,r.method=sf.Constants.BUFFER,e=void 0)),Object.assign(r,t);const n=new sf(r);if(e&&"string"==typeof e){if(!n.fs.existsSync(e))throw new Error(sf.Errors.INVALID_FILENAME);r.method=sf.Constants.FILE,r.filename=e,s=n.fs.readFileSync(e)}const i=new Df(s,r),{canonical:a,sanitize:o}=sf;function c(e){var t;if(e&&i&&("string"==typeof e&&(t=i.getEntry(e)),"object"==typeof e&&void 0!==e.entryName&&void 0!==e.header&&(t=i.getEntry(e.entryName)),t))return t;return null}function u(e){const{join:t,normalize:s,sep:r}=k.default.posix;return t(".",s(r+e.split("\\").join(r)+r))}return{readFile:function(e,t){var s=c(e);return s&&s.getData(t)||null},readFileAsync:function(e,t){var s=c(e);s?s.getDataAsync(t):t(null,"getEntry failed for:"+e)},readAsText:function(e,t){var s=c(e);if(s){var r=s.getData();if(r&&r.length)return r.toString(t||"utf8")}return""},readAsTextAsync:function(e,t,s){var r=c(e);r?r.getDataAsync((function(e,r){r?t(e,r):e&&e.length?t(e.toString(s||"utf8")):t("")})):t("")},deleteFile:function(e){var t=c(e);t&&i.deleteEntry(t.entryName)},addZipComment:function(e){i.comment=e},getZipComment:function(){return i.comment||""},addZipEntryComment:function(e,t){var s=c(e);s&&(s.comment=t)},getZipEntryComment:function(e){var t=c(e);return t&&t.comment||""},updateFile:function(e,t){var s=c(e);s&&s.setData(t)},addLocalFile:function(e,t,s,r){if(!n.fs.existsSync(e))throw new Error(sf.Errors.FILE_NOT_FOUND.replace("%s",e));{t=t?u(t):"";var i=e.split("\\").join("/").split("/").pop();t+=s||i;const a=n.fs.statSync(e);this.addFile(t,n.fs.readFileSync(e),r,a)}},addLocalFolder:function(e,t,s,r){var i;if(s instanceof RegExp?(i=s,s=function(e){return i.test(e)}):"function"!=typeof s&&(s=function(){return!0}),t=t?u(t):"",e=k.default.normalize(e),!n.fs.existsSync(e))throw new Error(sf.Errors.FILE_NOT_FOUND.replace("%s",e));{const i=n.findFiles(e),a=this;i.length&&i.forEach((function(i){var o=k.default.relative(e,i).split("\\").join("/");if(s(o)){var c=n.fs.statSync(i);c.isFile()?a.addFile(t+o,n.fs.readFileSync(i),"",r||c):a.addFile(t+o+"/",Buffer.alloc(0),"",r||c)}}))}},addLocalFolderAsync:function(e,t,s,r){var i;r instanceof RegExp?(i=r,r=function(e){return i.test(e)}):"function"!=typeof r&&(r=function(){return!0}),s=s?u(s):"",e=k.default.normalize(e);var a=this;n.fs.open(e,"r",(function(i){if(i&&"ENOENT"===i.code)t(void 0,sf.Errors.FILE_NOT_FOUND.replace("%s",e));else if(i)t(void 0,i);else{var o=n.findFiles(e),c=-1,u=function(){if((c+=1)<o.length){var i=o[c],l=k.default.relative(e,i).split("\\").join("/");l=l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),r(l)?n.fs.stat(i,(function(e,r){e&&t(void 0,e),r.isFile()?n.fs.readFile(i,(function(e,n){e?t(void 0,e):(a.addFile(s+l,n,"",r),u())})):(a.addFile(s+l+"/",Buffer.alloc(0),"",r),u())})):process.nextTick((()=>{u()}))}else t(!0,void 0)};u()}}))},addLocalFolderPromise:function(e,t){return new Promise(((s,r)=>{const{filter:n,zipPath:i}=Object.assign({},t);this.addLocalFolderAsync(e,((e,t)=>{t&&r(t),e&&s(this)}),i,n)}))},addFile:function(e,t,s,r){let a=c(e);const o=null!=a;o||(a=new wf,a.entryName=e),a.comment=s||"";const u="object"==typeof r&&r instanceof n.fs.Stats;u&&(a.header.time=r.mtime);var l=a.isDirectory?16:0;let p=a.isDirectory?16384:32768;p|=u?4095&r.mode:"number"==typeof r?4095&r:a.isDirectory?493:420,l=(l|p<<16)>>>0,a.attr=l,a.setData(t),o||i.setEntry(a)},getEntries:function(e){return i.password=e,i?i.entries:[]},getEntry:function(e){return c(e)},getEntryCount:function(){return i.getEntryCount()},forEach:function(e){return i.forEach(e)},extractEntryTo:function(e,t,s,r,u,l){r=Tf(r,!1),u=Tf(u,!1),s=Tf(s,!0),l=Sf(l,Sf(u,void 0));var p=c(e);if(!p)throw new Error(sf.Errors.NO_ENTRY);var h=a(p.entryName),d=o(t,l&&!p.isDirectory?l:s?h:k.default.basename(h));if(p.isDirectory)return i.getEntryChildren(p).forEach((function(e){if(e.isDirectory)return;var i=e.getData();if(!i)throw new Error(sf.Errors.CANT_EXTRACT_FILE);var c=a(e.entryName),l=o(t,s?c:k.default.basename(c));const p=u?e.header.fileAttr:void 0;n.writeFileTo(l,i,r,p)})),!0;var f=p.getData(i.password);if(!f)throw new Error(sf.Errors.CANT_EXTRACT_FILE);if(n.fs.existsSync(d)&&!r)throw new Error(sf.Errors.CANT_OVERRIDE);const m=u?e.header.fileAttr:void 0;return n.writeFileTo(d,f,r,m),!0},test:function(e){if(!i)return!1;for(var t in i.entries)try{if(t.isDirectory)continue;if(!i.entries[t].getData(e))return!1}catch(e){return!1}return!0},extractAllTo:function(e,t,s,r){if(t=Tf(t,!1),r=Sf(s,r),s=Tf(s,!1),!i)throw new Error(sf.Errors.NO_ZIP);i.entries.forEach((function(i){var c=o(e,a(i.entryName.toString()));if(i.isDirectory)return void n.makeDir(c);var u=i.getData(r);if(!u)throw new Error(sf.Errors.CANT_EXTRACT_FILE);const l=s?i.header.fileAttr:void 0;n.writeFileTo(c,u,t,l);try{n.fs.utimesSync(c,i.header.time,i.header.time)}catch(e){throw new Error(sf.Errors.CANT_EXTRACT_FILE)}}))},extractAllToAsync:function(e,t,s,r){if(t=Tf(t,!1),"function"!=typeof s||r||(r=s),s=Tf(s,!1),r||(r=function(e){throw new Error(e)}),!i)return void r(new Error(sf.Errors.NO_ZIP));e=k.default.resolve(e);const c=t=>o(e,k.default.normalize(a(t.entryName.toString()))),u=(e,t)=>new Error(e+': "'+t+'"'),l=[],p=new Set;i.entries.forEach((e=>{e.isDirectory?l.push(e):p.add(e)}));for(const e of l){const t=c(e),i=s?e.header.fileAttr:void 0;try{n.makeDir(t),i&&n.fs.chmodSync(t,i),n.fs.utimesSync(t,e.header.time,e.header.time)}catch(e){r(u("Unable to create folder",t))}}const h=()=>{0===p.size&&r()};for(const i of p.values()){const c=k.default.normalize(a(i.entryName.toString())),l=o(e,c);i.getDataAsync((function(e,a){if(a)r(new Error(a));else if(e){const a=s?i.header.fileAttr:void 0;n.writeFileToAsync(l,e,t,a,(function(e){e?n.fs.utimes(l,i.header.time,i.header.time,(function(e){e?r(u("Unable to set times",l)):(h(),p.delete(i))})):r(u("Unable to write file",l))}))}else r(new Error(sf.Errors.CANT_EXTRACT_FILE))}))}h()},writeZip:function(e,t){if(1===arguments.length&&"function"==typeof e&&(t=e,e=""),!e&&r.filename&&(e=r.filename),e){var s=i.compressToBuffer();if(s){var a=n.writeFileTo(e,s,!0);"function"==typeof t&&t(a?null:new Error("failed"),"")}}},writeZipPromise:function(e,t){const{overwrite:s,perm:i}=Object.assign({overwrite:!0},t);return new Promise(((t,a)=>{!e&&r.filename&&(e=r.filename),e||a("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then((r=>{n.writeFileToAsync(e,r,s,i,(e=>e?t(e):a("ADM-ZIP: Wasn't able to write zip file")))}),a)}))},toBufferPromise:function(){return new Promise(((e,t)=>{i.toAsyncBuffer(e,t)}))},toBuffer:function(e,t,s,r){return this.valueOf=2,"function"==typeof e?(i.toAsyncBuffer(e,t,s,r),null):i.compressToBuffer()}}};function _f(e,t){return ne(this,void 0,void 0,(function(){return ie(this,(function(s){try{new kf(e).extractAllTo(t,!0),O.default.unlinkSync(e)}catch(e){throw console.error("Error extracting template:",e),e}return[2]}))}))}function Nf(e,t){return ne(this,void 0,void 0,(function(){var s,r;return ie(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),console.log("Downloading template from ".concat(e,"...")),[4,Y.default.ensureDir(t)];case 1:return n.sent(),s="".concat(t,"/template").concat(Date.now(),".zip"),[4,Zi(e,s)];case 2:return n.sent(),console.log("Template downloaded."),[4,_f(s,t)];case 3:return n.sent(),[3,5];case 4:throw r=n.sent(),console.error("Error downloading or extracting template:"),r;case 5:return[2]}}))}))}function If(e,t,s){return ne(this,void 0,void 0,(function(){var r,n,i,a,o,c;return ie(this,(function(u){switch(u.label){case 0:return r=process.cwd(),n="".concat(r,"/").concat(s),[4,Nf(t,r)];case 1:return u.sent(),[4,Y.default.readdir(r,{withFileTypes:!0})];case 2:if(i=u.sent(),!(a=i.find((function(t){return t.isDirectory()&&t.name.startsWith(e.zipName||"---")}))))throw new Error("Failed to find the extracted template directory.");return o="".concat(r,"/").concat(a.name),console.log("oldPath",o),[4,Y.default.pathExists(o)];case 3:return c=u.sent(),console.log("isExist: ",c),[4,Y.default.rename("".concat(r,"/").concat(a.name),n)];case 4:return u.sent(),console.log('Project "'.concat(s,'" created successfully from template.')),[2]}}))}))}const Ff=Object.create(null);Ff.open="0",Ff.close="1",Ff.ping="2",Ff.pong="3",Ff.message="4",Ff.upgrade="5",Ff.noop="6";const Of=Object.create(null);Object.keys(Ff).forEach((e=>{Of[Ff[e]]=e}));const Lf={type:"error",data:"parser error"},Bf=({type:e,data:t},s,r)=>t instanceof ArrayBuffer||ArrayBuffer.isView(t)?r(s?t:"b"+jf(t,!0).toString("base64")):r(Ff[e]+(t||"")),jf=(e,t)=>Buffer.isBuffer(e)||e instanceof Uint8Array&&!t?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength);let Mf;const Rf=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Uf(e,t)};const s=e.charAt(0);if("b"===s){const s=Buffer.from(e.substring(1),"base64");return{type:"message",data:Uf(s,t)}}return Of[s]?e.length>1?{type:Of[s],data:e.substring(1)}:{type:Of[s]}:Lf},Uf=(e,t)=>"arraybuffer"===t?e instanceof ArrayBuffer?e:Buffer.isBuffer(e)?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e.buffer:Buffer.isBuffer(e)?e:Buffer.from(e),qf=String.fromCharCode(30);function $f(){return new TransformStream({transform(e,t){!function(e,t){if(e.data instanceof ArrayBuffer||ArrayBuffer.isView(e.data))return t(jf(e.data,!1));Bf(e,!0,(e=>{Mf||(Mf=new TextEncoder),t(Mf.encode(e))}))}(e,(s=>{const r=s.length;let n;if(r<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,r);else if(r<65536){n=new Uint8Array(3);const e=new DataView(n.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{n=new Uint8Array(9);const e=new DataView(n.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(s)}))}})}let zf;function Hf(e){return e.reduce(((e,t)=>e+t.length),0)}function Vf(e,t){if(e[0].length===t)return e.shift();const s=new Uint8Array(t);let r=0;for(let n=0;n<t;n++)s[n]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),s}function Gf(e){if(e)return function(e){for(var t in Gf.prototype)e[t]=Gf.prototype[t];return e}(e)}Gf.prototype.on=Gf.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Gf.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},Gf.prototype.off=Gf.prototype.removeListener=Gf.prototype.removeAllListeners=Gf.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var n=0;n<r.length;n++)if((s=r[n])===t||s.fn===t){r.splice(n,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},Gf.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),s=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(s){r=0;for(var n=(s=s.slice(0)).length;r<n;++r)s[r].apply(this,t)}return this},Gf.prototype.emitReserved=Gf.prototype.emit,Gf.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Gf.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Wf=global;function Jf(e,...t){return t.reduce(((t,s)=>(e.hasOwnProperty(s)&&(t[s]=e[s]),t)),{})}const Xf=Wf.setTimeout,Kf=Wf.clearTimeout;function Yf(e,t){t.useNativeTimers?(e.setTimeoutFn=Xf.bind(Wf),e.clearTimeoutFn=Kf.bind(Wf)):(e.setTimeoutFn=Wf.setTimeout.bind(Wf),e.clearTimeoutFn=Wf.clearTimeout.bind(Wf))}class Zf extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class Qf extends Gf{constructor(e){super(),this.writable=!1,Yf(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new Zf(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Rf(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let s in e)e.hasOwnProperty(s)&&(t.length&&(t+="&"),t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t}(e);return t.length?"?"+t:""}}const em="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),tm=64,sm={};let rm,nm=0,im=0;function am(e){let t="";do{t=em[e%tm]+t,e=Math.floor(e/tm)}while(e>0);return t}function om(){const e=am(+new Date);return e!==rm?(nm=0,rm=e):e+"."+am(nm++)}for(;im<tm;im++)sm[em[im]]=im;
|
|
75
|
+
`,cliCategory:a},tabWidth:{type:"int",category:c,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:c,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:c,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};t.exports={CATEGORY_CONFIG:r,CATEGORY_EDITOR:n,CATEGORY_FORMAT:i,CATEGORY_OTHER:a,CATEGORY_OUTPUT:o,CATEGORY_GLOBAL:c,CATEGORY_SPECIAL:u,options:l}}}),z=d({"src/main/support.js"(e,t){x();var n={compare:B(),lt:j(),gte:M()},i=R(),a=U().version,o=$().options;function c(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:c=!1,showInternal:l=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=a.split("-",1)[0],h=e.flatMap((e=>e.languages||[])).filter(f),d=i(Object.assign({},...e.map((e=>{let{options:t}=e;return t})),o),"name").filter((e=>f(e)&&m(e))).sort(((e,t)=>e.name===t.name?0:e.name<t.name?-1:1)).map(y).map((t=>{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(f).sort(((e,t)=>n.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>f(e)&&m(e))),"parser"===t.name&&u(t,h,e));let s=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:s})}));return{languages:h,options:d};function f(e){return t||!("since"in e)||e.since&&n.gte(p,e.since)}function m(e){return c||!("deprecated"in e)||e.deprecated&&n.lt(p,e.deprecated)}function y(e){return l?e:r(e,s)}}function u(e,t,s){let r=new Set(e.choices.map((e=>e.value)));for(let n of t)if(n.parsers)for(let t of n.parsers)if(!r.has(t)){r.add(t);let i=s.find((e=>e.parsers&&e.parsers[t])),a=n.name;i&&i.name&&(a+=` (plugin: ${i.name})`),e.choices.push({value:t,description:a})}}t.exports={getSupportInfo:c}}}),H=d({"src/utils/is-non-empty-array.js"(e,t){function s(e){return Array.isArray(e)&&e.length>0}x(),t.exports=s}});function V(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var G=h({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){x()}});function W(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(V(),"")}var J=h({"node_modules/strip-ansi/index.js"(){x(),G()}});function X(e){return!!Number.isInteger(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}var K=h({"node_modules/is-fullwidth-code-point/index.js"(){x()}}),Y=d({"node_modules/emoji-regex/index.js"(e,t){x(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),Z={};function Q(e){if("string"!=typeof e||0===e.length||0===(e=W(e)).length)return 0;e=e.replace((0,ee.default)()," ");let t=0;for(let s=0;s<e.length;s++){let r=e.codePointAt(s);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&s++,t+=X(r)?2:1)}return t}f(Z,{default:()=>Q});var ee,te=h({"node_modules/string-width/index.js"(){x(),J(),K(),ee=y(Y())}}),se=d({"src/utils/get-string-width.js"(e,t){x();var s=(te(),g(Z)).default,r=/[^\x20-\x7F]/;function n(e){return e?r.test(e)?s(e):e.length:0}t.exports=n}}),re=d({"src/utils/text/skip.js"(e,t){function s(e){return(t,s,r)=>{let n=r&&r.backwards;if(!1===s)return!1;let{length:i}=t,a=s;for(;a>=0&&a<i;){let s=t.charAt(a);if(e instanceof RegExp){if(!e.test(s))return a}else if(!e.includes(s))return a;n?a--:a++}return(-1===a||a===i)&&a}}x();var r=s(/\s/),n=s(" \t"),i=s(",; \t"),a=s(/[^\n\r]/);t.exports={skipWhitespace:r,skipSpaces:n,skipToLineEnd:i,skipEverythingButNewLine:a}}}),ne=d({"src/utils/text/skip-inline-comment.js"(e,t){function s(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let s=t+2;s<e.length;++s)if("*"===e.charAt(s)&&"/"===e.charAt(s+1))return s+2;return t}x(),t.exports=s}}),ie=d({"src/utils/text/skip-trailing-comment.js"(e,t){x();var{skipEverythingButNewLine:s}=re();function r(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?s(e,t):t)}t.exports=r}}),ae=d({"src/utils/text/skip-newline.js"(e,t){function s(e,t,s){let r=s&&s.backwards;if(!1===t)return!1;let n=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===n)return t-2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t-1}else{if("\r"===n&&"\n"===e.charAt(t+1))return t+2;if("\n"===n||"\r"===n||"\u2028"===n||"\u2029"===n)return t+1}return t}x(),t.exports=s}}),oe=d({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,t){x();var s=ne(),r=ae(),n=ie(),{skipSpaces:i}=re();function a(e,t){let a=null,o=t;for(;o!==a;)a=o,o=i(e,o),o=s(e,o),o=n(e,o),o=r(e,o);return o}t.exports=a}}),ce=d({"src/common/util.js"(e,t){x();var{default:s}=(k(),g(S)),r=D(),{getSupportInfo:n}=z(),i=H(),a=se(),{skipWhitespace:o,skipSpaces:c,skipToLineEnd:u,skipEverythingButNewLine:l}=re(),p=ne(),h=ie(),d=ae(),f=oe(),m=e=>e[e.length-2];function y(e){return(t,s,r)=>{let n=r&&r.backwards;if(!1===s)return!1;let{length:i}=t,a=s;for(;a>=0&&a<i;){let s=t.charAt(a);if(e instanceof RegExp){if(!e.test(s))return a}else if(!e.includes(s))return a;n?a--:a++}return(-1===a||a===i)&&a}}function v(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=c(e,s.backwards?t-1:t,s);return r!==d(e,r,s)}function b(e,t,s){for(let r=t;r<s;++r)if("\n"===e.charAt(r))return!0;return!1}function E(e,t,s){let r=s(t)-1;return r=c(e,r,{backwards:!0}),r=d(e,r,{backwards:!0}),r=c(e,r,{backwards:!0}),r!==d(e,r,{backwards:!0})}function C(e,t){let s=null,r=t;for(;r!==s;)s=r,r=u(e,r),r=p(e,r),r=c(e,r);return r=h(e,r),r=d(e,r),!1!==r&&v(e,r)}function A(e,t,s){return C(e,s(t))}function w(e,t,s){return f(e,s(t))}function T(e,t,s){return e.charAt(w(e,t,s))}function P(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c(e,s.backwards?t-1:t,s)!==t}function _(e,t){let s=0;for(let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r<e.length;++r)"\t"===e[r]?s=s+t-s%t:s++;return s}function N(e,t){let s=e.lastIndexOf("\n");return-1===s?0:_(e.slice(s+1).match(/^[\t ]*/)[0],t)}function I(e,t){let s={quote:'"',regex:/"/g,escaped:"""},r={quote:"'",regex:/'/g,escaped:"'"},n="'"===t?r:s,i=n===r?s:r,a=n;return(e.includes(n.quote)||e.includes(i.quote))&&(a=(e.match(n.regex)||[]).length>(e.match(i.regex)||[]).length?i:n),a}function F(e,t){let s=e.slice(1,-1);return O(s,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":I(s,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function O(e,t,s){let r='"'===t?"'":'"',n=/\\(.)|(["'])/gs,i=e.replace(n,((e,n,i)=>n===r?n:i===t?"\\"+i:i||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(n)?n:"\\"+n)));return t+i+t}function L(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function B(e,t){let r=e.match(new RegExp(`(${s(t)})+`,"g"));return null===r?0:r.reduce(((e,s)=>Math.max(e,s.length/t.length)),0)}function j(e,t){let r=e.match(new RegExp(`(${s(t)})+`,"g"));if(null===r)return 0;let n=new Map,i=0;for(let e of r){let s=e.length/t.length;n.set(s,!0),s>i&&(i=s)}for(let e=1;e<i;e++)if(!n.get(e))return e;return i+1}function M(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=W(e)}function R(e,t){t.leading=!0,t.trailing=!1,M(e,t)}function U(e,t,s){t.leading=!1,t.trailing=!1,s&&(t.marker=s),M(e,t)}function q(e,t){t.leading=!1,t.trailing=!0,M(e,t)}function $(e,t){let{languages:s}=n({plugins:t.plugins}),r=s.find((t=>{let{name:s}=t;return s.toLowerCase()===e}))||s.find((t=>{let{aliases:s}=t;return Array.isArray(s)&&s.includes(e)}))||s.find((t=>{let{extensions:s}=t;return Array.isArray(s)&&s.includes(`.${e}`)}));return r&&r.parsers[0]}function V(e){return e&&"front-matter"===e.type}function G(e){let t=new WeakMap;return function(s){return t.has(s)||t.set(s,Symbol(e)),t.get(s)}}function W(e){let t=e.type||e.kind||"(unknown type)",s=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return s.length>20&&(s=s.slice(0,19)+"…"),t+(s?" "+s:"")}t.exports={inferParserByLanguage:$,getStringWidth:a,getMaxContinuousCount:B,getMinNotPresentContinuousCount:j,getPenultimate:m,getLast:r,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:w,getNextNonSpaceNonCommentCharacter:T,skip:y,skipWhitespace:o,skipSpaces:c,skipToLineEnd:u,skipEverythingButNewLine:l,skipInlineComment:p,skipTrailingComment:h,skipNewline:d,isNextLineEmptyAfterIndex:C,isNextLineEmpty:A,isPreviousLineEmpty:E,hasNewline:v,hasNewlineInRange:b,hasSpaces:P,getAlignmentSize:_,getIndentSize:N,getPreferredQuote:I,printString:F,printNumber:L,makeString:O,addLeadingComment:R,addDanglingComment:U,addTrailingComment:q,isFrontMatterNode:V,isNonEmptyArray:i,createGroupIdMapper:G}}}),ue=d({"vendors/html-tag-names.json"(e,t){t.exports={htmlTagNames:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]}}}),le=d({"src/language-html/utils/array-to-map.js"(e,t){function s(e){let t=Object.create(null);for(let s of e)t[s]=!0;return t}x(),t.exports=s}}),pe=d({"src/language-html/utils/html-tag-names.js"(e,t){x();var{htmlTagNames:s}=ue(),r=le()(s);t.exports=r}}),he=d({"vendors/html-element-attributes.json"(e,t){t.exports={htmlElementAttributes:{"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["for","form"],legend:["align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","media","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size"],slot:["name"],source:["height","media","sizes","src","srcset","type","width"],style:["media","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]}}}}),de=d({"src/language-html/utils/map-object.js"(e,t){function s(e,t){let s=Object.create(null);for(let[r,n]of Object.entries(e))s[r]=t(n,r);return s}x(),t.exports=s}}),fe=d({"src/language-html/utils/html-elements-attributes.js"(e,t){x();var{htmlElementAttributes:s}=he(),r=de()(s,le());t.exports=r}}),ye=d({"src/language-html/utils/is-unknown-namespace.js"(e,t){function s(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}x(),t.exports=s}}),ge=d({"src/language-html/pragma.js"(e,t){function s(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function r(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}x(),t.exports={hasPragma:s,insertPragma:r}}}),xe=d({"src/language-html/ast.js"(e,t){x();var s={attrs:!0,children:!0},r=new Set(["parent"]),n=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let t of new Set([...r,...Object.keys(e)]))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in s&&(t=t.map((e=>this.createChild(e)))),!r.has(e))return void(this[e]=t);Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(e){let t;for(let r in s){let s=this[r];if(s){let a=i(s,(t=>t.map(e)));t!==s&&(t||(t=new n({parent:this.parent})),t.setProperty(r,a))}}if(t)for(let e in this)e in s||(t[e]=this[e]);return e(t||this)}walk(e){for(let t in s){let s=this[t];if(s)for(let t=0;t<s.length;t++)s[t].walk(e)}e(this)}createChild(e){let t=e instanceof n?e.clone():new n(e);return t.setProperty("parent",this),t}insertChildBefore(e,t){this.children.splice(this.children.indexOf(e),0,this.createChild(t))}removeChild(e){this.children.splice(this.children.indexOf(e),1)}replaceChild(e,t){this.children[this.children.indexOf(e)]=this.createChild(t)}clone(){return new n(this)}get firstChild(){var e;return null===(e=this.children)||void 0===e?void 0:e[0]}get lastChild(){var e;return null===(e=this.children)||void 0===e?void 0:e[this.children.length-1]}get prev(){var e;return null===(e=this.parent)||void 0===e?void 0:e.children[this.parent.children.indexOf(this)-1]}get next(){var e;return null===(e=this.parent)||void 0===e?void 0:e.children[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map((e=>[e.fullName,e.value])))}};function i(e,t){let s=e.map(t);return s.some(((t,s)=>t!==e[s]))?s:e}t.exports={Node:n}}}),ve=d({"src/language-html/conditional-comment.js"(e,t){x();var{ParseSourceSpan:s}=A(),r=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:i},{regex:/^\[if([^\]]*)]><!$/,parse:a},{regex:/^<!\s*\[endif]$/,parse:o}];function n(e,t){if(e.value)for(let{regex:s,parse:n}of r){let r=e.value.match(s);if(r)return n(e,t,r)}return null}function i(e,t,r){let[,n,i,a]=r,o=4+n.length,c=e.sourceSpan.start.moveBy(o),u=c.moveBy(a.length),[l,p]=(()=>{try{return[!0,t(a,c).children]}catch{return[!1,[{type:"text",value:a,sourceSpan:new s(c,u)}]]}})();return{type:"ieConditionalComment",complete:l,children:p,condition:i.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new s(e.sourceSpan.start,c),endSourceSpan:new s(u,e.sourceSpan.end)}}function a(e,t,s){let[,r]=s;return{type:"ieConditionalStartComment",condition:r.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan}}function o(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}t.exports={parseIeConditionalComment:n}}}),be=d({"src/language-html/loc.js"(e,t){function s(e){return e.sourceSpan.start.offset}function r(e){return e.sourceSpan.end.offset}x(),t.exports={locStart:s,locEnd:r}}}),Ee=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){var t;function s(e){if(":"!=e[0])return[null,e];let t=e.indexOf(":",1);if(-1==t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function r(e){return"ng-container"===s(e)[1]}function n(e){return"ng-content"===s(e)[1]}function i(e){return"ng-template"===s(e)[1]}function a(e){return null===e?null:s(e)[0]}function o(e,t){return e?`:${e}:${t}`:t}x(),Object.defineProperty(e,"__esModule",{value:!0}),(t=e.TagContentType||(e.TagContentType={}))[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA",e.splitNsName=s,e.isNgContainer=r,e.isNgContent=n,e.isNgTemplate=i,e.getNsPrefix=a,e.mergeNsAndName=o,e.NAMED_ENTITIES={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},e.NGSP_UNICODE="",e.NAMED_ENTITIES.ngsp=e.NGSP_UNICODE}}),Ce=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_tags.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t,s,r=Ee(),n=class{constructor(){let{closedByChildren:e,implicitNamespacePrefix:t,contentType:s=r.TagContentType.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,e&&e.length>0&&e.forEach((e=>this.closedByChildren[e]=!0)),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}};function i(e){return s||(t=new n,s={base:new n({isVoid:!0}),meta:new n({isVoid:!0}),area:new n({isVoid:!0}),embed:new n({isVoid:!0}),link:new n({isVoid:!0}),img:new n({isVoid:!0}),input:new n({isVoid:!0}),param:new n({isVoid:!0}),hr:new n({isVoid:!0}),br:new n({isVoid:!0}),source:new n({isVoid:!0}),track:new n({isVoid:!0}),wbr:new n({isVoid:!0}),p:new n({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new n({closedByChildren:["tbody","tfoot"]}),tbody:new n({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new n({closedByChildren:["tbody"],closedByParent:!0}),tr:new n({closedByChildren:["tr"],closedByParent:!0}),td:new n({closedByChildren:["td","th"],closedByParent:!0}),th:new n({closedByChildren:["td","th"],closedByParent:!0}),col:new n({isVoid:!0}),svg:new n({implicitNamespacePrefix:"svg"}),math:new n({implicitNamespacePrefix:"math"}),li:new n({closedByChildren:["li"],closedByParent:!0}),dt:new n({closedByChildren:["dt","dd"]}),dd:new n({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new n({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new n({closedByChildren:["optgroup"],closedByParent:!0}),option:new n({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new n({ignoreFirstLf:!0}),listing:new n({ignoreFirstLf:!0}),style:new n({contentType:r.TagContentType.RAW_TEXT}),script:new n({contentType:r.TagContentType.RAW_TEXT}),title:new n({contentType:r.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new n({contentType:r.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),s[e]||t}e.HtmlTagDefinition=n,e.getHtmlTagDefinition=i}}),Ae=d({"node_modules/angular-html-parser/lib/compiler/src/ast_path.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.path=e,this.position=t}get empty(){return!this.path||!this.path.length}get head(){return this.path[0]}get tail(){return this.path[this.path.length-1]}parentOf(e){return e&&this.path[this.path.indexOf(e)-1]}childOf(e){return this.path[this.path.indexOf(e)+1]}first(e){for(let t=this.path.length-1;t>=0;t--){let s=this.path[t];if(s instanceof e)return s}}push(e){this.path.push(e)}pop(){return this.path.pop()}};e.AstPath=t}}),we=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/ast.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ae(),s=class{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s,this.type="text"}visit(e,t){return e.visitText(this,t)}};e.Text=s;var r=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="cdata"}visit(e,t){return e.visitCdata(this,t)}};e.CDATA=r;var n=class{constructor(e,t,s,r,n,i){this.switchValue=e,this.type=t,this.cases=s,this.sourceSpan=r,this.switchValueSourceSpan=n,this.i18n=i}visit(e,t){return e.visitExpansion(this,t)}};e.Expansion=n;var i=class{constructor(e,t,s,r,n){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=n}visit(e,t){return e.visitExpansionCase(this,t)}};e.ExpansionCase=i;var a=class{constructor(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;this.name=e,this.value=t,this.sourceSpan=s,this.valueSpan=r,this.nameSpan=n,this.i18n=i,this.type="attribute"}visit(e,t){return e.visitAttribute(this,t)}};e.Attribute=a;var o=class{constructor(e,t,s,r){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.name=e,this.attrs=t,this.children=s,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i,this.nameSpan=a,this.i18n=o,this.type="element"}visit(e,t){return e.visitElement(this,t)}};e.Element=o;var c=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment"}visit(e,t){return e.visitComment(this,t)}};e.Comment=c;var u=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType"}visit(e,t){return e.visitDocType(this,t)}};function l(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=[],n=e.visit?t=>e.visit(t,s)||t.visit(e,s):t=>t.visit(e,s);return t.forEach((e=>{let t=n(e);t&&r.push(t)})),r}e.DocType=u,e.visitAll=l;var p=class{constructor(){}visitElement(e,t){this.visitChildren(t,(t=>{t(e.attrs),t(e.children)}))}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,(t=>{t(e.cases)}))}visitExpansionCase(e,t){}visitChildren(e,t){let s=[],r=this;function n(t){t&&s.push(l(r,t,e))}return t(n),Array.prototype.concat.apply([],s)}};function h(e){let t=e.sourceSpan.start.offset,s=e.sourceSpan.end.offset;return e instanceof o&&(e.endSourceSpan?s=e.endSourceSpan.end.offset:e.children&&e.children.length&&(s=h(e.children[e.children.length-1]).end)),{start:t,end:s}}function d(e,s){let r=[];return l(new class extends p{visit(e,t){let n=h(e);if(!(n.start<=s&&s<n.end))return!0;r.push(e)}},e),new t.AstPath(r,s)}e.RecursiveVisitor=p,e.findNode=d}}),De=d({"node_modules/angular-html-parser/lib/compiler/src/assertions.js"(e){function t(e,t){if(null!=t){if(!Array.isArray(t))throw new Error(`Expected '${e}' to be an array of strings.`);for(let s=0;s<t.length;s+=1)if("string"!=typeof t[s])throw new Error(`Expected '${e}' to be an array of strings.`)}}x(),Object.defineProperty(e,"__esModule",{value:!0}),e.assertArrayOfStrings=t;var s=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function r(e,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){let e=t[0],r=t[1];s.forEach((t=>{if(t.test(e)||t.test(r))throw new Error(`['${e}', '${r}'] contains unusable interpolation symbol.`)}))}}e.assertInterpolationSymbols=r}}),Se=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/interpolation_config.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=De(),s=class{constructor(e,t){this.start=e,this.end=t}static fromArray(r){return r?(t.assertInterpolationSymbols("interpolation",r),new s(r[0],r[1])):e.DEFAULT_INTERPOLATION_CONFIG}};e.InterpolationConfig=s,e.DEFAULT_INTERPOLATION_CONFIG=new s("{{","}}")}}),Pe=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/lexer.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t,s=v(),r=A(),n=Se(),i=Ee();!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE_START=14]="DOC_TYPE_START",e[e.DOC_TYPE_END=15]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",e[e.EOF=21]="EOF"}(t=e.TokenType||(e.TokenType={}));var a=class{constructor(e,t,s){this.type=e,this.parts=t,this.sourceSpan=s}};e.Token=a;var o=class extends r.ParseError{constructor(e,t,s){super(s,e),this.tokenType=t}};e.TokenError=o;var c=class{constructor(e,t){this.tokens=e,this.errors=t}};function u(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new f(new r.ParseSourceFile(e,t),s,n).tokenize()}e.TokenizeResult=c,e.tokenize=u;var l=/\r\n?/g;function p(e){return`Unexpected character "${e===s.$EOF?"EOF":String.fromCharCode(e)}"`}function h(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}var d=class{constructor(e){this.error=e}},f=class{constructor(e,t,s){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||n.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map((e=>e.codePointAt(0)||0)),this._canSelfClose=s.canSelfClose||!1,this._allowHtmComponentClosingTags=s.allowHtmComponentClosingTags||!1;let r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new P(e,r):new S(e,r);try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return e.replace(l,"\n")}tokenize(){for(;this._cursor.peek()!==s.$EOF;){let e=this._cursor.clone();try{if(this._attemptCharCode(s.$LT))if(this._attemptCharCode(s.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(s.$SLASH))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(s.$QUESTION)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(t.EOF),this._endToken([]),new c(T(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(C(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===s.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=t,this._currentTokenType=e}_endToken(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();if(null===this._currentTokenStart)throw new o("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new o("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let s=new a(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let s=new o(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new d(s)}handleError(e){if(e instanceof k&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof d))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!w(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let s=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=s,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.clone().diff(s)<t)throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(e){if(e&&this._cursor.peek()===s.$AMPERSAND)return this._decodeEntity();{let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}}_decodeEntity(){let e=this._cursor.clone();if(this._cursor.advance(),!this._attemptCharCode(s.$HASH)){let t=this._cursor.clone();if(this._attemptCharCodeUntilFn(E),this._cursor.peek()!=s.$SEMICOLON)return this._cursor=t,"&";let r=this._cursor.getChars(t);this._cursor.advance();let n=i.NAMED_ENTITIES[r];if(!n)throw this._createError(h(r),this._cursor.getSpan(e));return n}{let t=this._attemptCharCode(s.$x)||this._attemptCharCode(s.$X),r=this._cursor.clone();if(this._attemptCharCodeUntilFn(b),this._cursor.peek()!=s.$SEMICOLON)throw this._createError(p(this._cursor.peek()),this._cursor.getSpan());let n=this._cursor.getChars(r);this._cursor.advance();try{let e=parseInt(n,t?16:10);return String.fromCharCode(e)}catch{throw this._createError(h(this._cursor.getChars(e)),this._cursor.getSpan())}}}_consumeRawText(e,s){this._beginToken(e?t.ESCAPABLE_RAW_TEXT:t.RAW_TEXT);let r=[];for(;;){let t=this._cursor.clone(),n=s();if(this._cursor=t,n)break;r.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(t.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("--\x3e"))),this._beginToken(t.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(e){this._beginToken(t.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===s.$GT)),this._beginToken(t.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(t.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(t.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(t.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===s.$GT)),this._beginToken(t.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e,t=this._cursor.clone(),r="";for(;this._cursor.peek()!==s.$COLON&&!g(this._cursor.peek());)this._cursor.advance();return this._cursor.peek()===s.$COLON?(r=this._cursor.getChars(t),this._cursor.advance(),e=this._cursor.clone()):e=t,this._requireCharCodeUntilFn(y,""===r?0:1),[r,this._cursor.getChars(e)]}_consumeTagOpen(e){let r,n,a,o=this.tokens.length,c=this._cursor.clone(),u=[];try{if(!s.isAsciiLetter(this._cursor.peek()))throw this._createError(p(this._cursor.peek()),this._cursor.getSpan(e));for(a=this._consumeTagOpenStart(e),n=a.parts[0],r=a.parts[1],this._attemptCharCodeUntilFn(m);this._cursor.peek()!==s.$SLASH&&this._cursor.peek()!==s.$GT;){let[e,t]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(m),this._attemptCharCode(s.$EQ)){this._attemptCharCodeUntilFn(m);let s=this._consumeAttributeValue();u.push({prefix:e,name:t,value:s})}else u.push({prefix:e,name:t});this._attemptCharCodeUntilFn(m)}this._consumeTagOpenEnd()}catch(s){if(s instanceof d)return this._cursor=c,a&&(this.tokens.length=o),this._beginToken(t.TEXT,e),void this._endToken(["<"]);throw s}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===t.TAG_OPEN_END_VOID)return;let l=this._getTagContentType(r,n,this._fullNameStack.length>0,u);this._handleFullNameStackForTagOpen(n,r),l===i.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):l===i.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(e,r,n){this._consumeRawText(n,(()=>!!(this._attemptCharCode(s.$LT)&&this._attemptCharCode(s.$SLASH)&&(this._attemptCharCodeUntilFn(m),this._attemptStrCaseInsensitive(e?`${e}:${r}`:r)))&&(this._attemptCharCodeUntilFn(m),this._attemptCharCode(s.$GT)))),this._beginToken(t.TAG_CLOSE),this._requireCharCodeUntilFn((e=>e===s.$GT),3),this._cursor.advance(),this._endToken([e,r]),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(t.TAG_OPEN_START,e);let s=this._consumePrefixAndName();return this._endToken(s)}_consumeAttributeName(){let e=this._cursor.peek();if(e===s.$SQ||e===s.$DQ)throw this._createError(p(e),this._cursor.getSpan());this._beginToken(t.ATTR_NAME);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===s.$SQ||this._cursor.peek()===s.$DQ){this._beginToken(t.ATTR_QUOTE);let s=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(s)]),this._beginToken(t.ATTR_VALUE);let r=[];for(;this._cursor.peek()!==s;)r.push(this._readChar(!0));e=this._processCarriageReturns(r.join("")),this._endToken([e]),this._beginToken(t.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(s)])}else{this._beginToken(t.ATTR_VALUE);let s=this._cursor.clone();this._requireCharCodeUntilFn(y,1),e=this._processCarriageReturns(this._cursor.getChars(s)),this._endToken([e])}return e}_consumeTagOpenEnd(){let e=this._attemptCharCode(s.$SLASH)?t.TAG_OPEN_END_VOID:t.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(s.$GT),this._endToken([])}_consumeTagClose(e){if(this._beginToken(t.TAG_CLOSE,e),this._attemptCharCodeUntilFn(m),this._allowHtmComponentClosingTags&&this._attemptCharCode(s.$SLASH))this._attemptCharCodeUntilFn(m),this._requireCharCode(s.$GT),this._endToken([]);else{let[e,t]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(m),this._requireCharCode(s.$GT),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(t.EXPANSION_FORM_START),this._requireCharCode(s.$LBRACE),this._endToken([]),this._expansionCaseStack.push(t.EXPANSION_FORM_START),this._beginToken(t.RAW_TEXT);let e=this._readUntil(s.$COMMA);this._endToken([e]),this._requireCharCode(s.$COMMA),this._attemptCharCodeUntilFn(m),this._beginToken(t.RAW_TEXT);let r=this._readUntil(s.$COMMA);this._endToken([r]),this._requireCharCode(s.$COMMA),this._attemptCharCodeUntilFn(m)}_consumeExpansionCaseStart(){this._beginToken(t.EXPANSION_CASE_VALUE);let e=this._readUntil(s.$LBRACE).trim();this._endToken([e]),this._attemptCharCodeUntilFn(m),this._beginToken(t.EXPANSION_CASE_EXP_START),this._requireCharCode(s.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.push(t.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(t.EXPANSION_CASE_EXP_END),this._requireCharCode(s.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(t.EXPANSION_FORM_END),this._requireCharCode(s.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}_consumeText(){let e=this._cursor.clone();this._beginToken(t.TEXT,e);let s=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(s.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(s.push(this._interpolationConfig.end),this._inInterpolation=!1):s.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(s.join(""))])}_isTextEnd(){return!!(this._cursor.peek()===s.$LT||this._cursor.peek()===s.$EOF||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===s.$RBRACE&&this._isInExpansionCase()))}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===t.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===t.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==s.$LBRACE)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}_handleFullNameStackForTagOpen(e,t){let s=i.mergeNsAndName(e,t);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===s)&&this._fullNameStack.push(s)}_handleFullNameStackForTagClose(e,t){let s=i.mergeNsAndName(e,t);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===s&&this._fullNameStack.pop()}};function m(e){return!s.isWhitespace(e)||e===s.$EOF}function y(e){return s.isWhitespace(e)||e===s.$GT||e===s.$SLASH||e===s.$SQ||e===s.$DQ||e===s.$EQ}function g(e){return(e<s.$a||s.$z<e)&&(e<s.$A||s.$Z<e)&&(e<s.$0||e>s.$9)}function b(e){return e==s.$SEMICOLON||e==s.$EOF||!s.isAsciiHexDigit(e)}function E(e){return e==s.$SEMICOLON||e==s.$EOF||!s.isAsciiLetter(e)}function C(e){return e===s.$EQ||s.isAsciiLetter(e)||s.isDigit(e)}function w(e,t){return D(e)==D(t)}function D(e){return e>=s.$a&&e<=s.$z?e-s.$a+s.$A:e}function T(e){let s,r=[];for(let n=0;n<e.length;n++){let i=e[n];s&&s.type==t.TEXT&&i.type==t.TEXT?(s.parts[0]+=i.parts[0],s.sourceSpan.end=i.sourceSpan.end):(s=i,r.push(s))}return r}var S=class{constructor(e,t){if(e instanceof S)this.file=e.file,this.input=e.input,this.end=e.end,this.state=Object.assign({},e.state);else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new S(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){if(e=e||this,t)for(e=e.clone();this.diff(e)>0&&-1!==t.indexOf(e.peek());)e.advance();return new r.ParseSourceSpan(new r.ParseLocation(e.file,e.state.offset,e.state.line,e.state.column),new r.ParseLocation(this.file,this.state.offset,this.state.line,this.state.column))}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new k('Unexpected character "EOF"',this);let t=this.charAt(e.offset);t===s.$LF?(e.line++,e.column=0):s.isNewLine(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?s.$EOF:this.charAt(e.offset)}},P=class extends S{constructor(e,t){e instanceof P?(super(e),this.internalState=Object.assign({},e.internalState)):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new P(this)}getChars(e){let t=e.clone(),s="";for(;t.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(t.peek()),t.advance();return s}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===s.$BACKSLASH)if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),e()===s.$n)this.state.peek=s.$LF;else if(e()===s.$r)this.state.peek=s.$CR;else if(e()===s.$v)this.state.peek=s.$VTAB;else if(e()===s.$t)this.state.peek=s.$TAB;else if(e()===s.$b)this.state.peek=s.$BSPACE;else if(e()===s.$f)this.state.peek=s.$FF;else if(e()===s.$u)if(this.advanceState(this.internalState),e()===s.$LBRACE){this.advanceState(this.internalState);let t=this.clone(),r=0;for(;e()!==s.$RBRACE;)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(t,r)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(e()===s.$x){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(s.isOctalDigit(e())){let t="",r=0,n=this.clone();for(;s.isOctalDigit(e())&&r<3;)n=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(t,8),this.internalState=n.internalState}else s.isNewLine(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let s=this.input.substr(e.internalState.offset,t),r=parseInt(s,16);if(isNaN(r))throw e.state=e.internalState,new k("Invalid hexadecimal escape sequence",e);return r}},k=class{constructor(e,t){this.msg=e,this.cursor=t}};e.CursorError=k}}),ke=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/parser.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=A(),s=we(),r=Pe(),n=Ee(),i=class extends t.ParseError{constructor(e,t,s){super(t,s),this.elementName=e}static create(e,t,s){return new i(e,t,s)}};e.TreeError=i;var a=class{constructor(e,t){this.rootNodes=e,this.errors=t}};e.ParseTreeResult=a;var o=class{constructor(e){this.getTagDefinition=e}parse(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0,o=e=>function(t){for(var s=arguments.length,r=new Array(s>1?s-1:0),n=1;n<s;n++)r[n-1]=arguments[n];return e(t.toLowerCase(),...r)},u=n?this.getTagDefinition:o(this.getTagDefinition),l=e=>u(e).contentType,p=n?i:o(i),h=i?(e,t,s,r)=>{let n=p(e,t,s,r);return void 0!==n?n:l(e)}:l,d=r.tokenize(e,t,h,s),f=s&&s.canSelfClose||!1,m=s&&s.allowHtmComponentClosingTags||!1,y=new c(d.tokens,u,f,m,n).build();return new a(y.rootNodes,d.errors.concat(y.errors))}};e.Parser=o;var c=class{constructor(e,t,s,r,n){this.tokens=e,this.getTagDefinition=t,this.canSelfClose=s,this.allowHtmComponentClosingTags=r,this.isTagNameCaseSensitive=n,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}build(){for(;this._peek.type!==r.TokenType.EOF;)this._peek.type===r.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===r.TokenType.TAG_CLOSE?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===r.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===r.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===r.TokenType.TEXT||this._peek.type===r.TokenType.RAW_TEXT||this._peek.type===r.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===r.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===r.TokenType.DOC_TYPE_START?this._consumeDocType(this._advance()):this._advance();return new a(this._rootNodes,this._errors)}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let n=this._advance(),i=this._getText(n),a=this._advanceIf(r.TokenType.CDATA_END);this._addToParent(new s.CDATA(i,new t.ParseSourceSpan(e.sourceSpan.start,(a||n).sourceSpan.end)))}_consumeComment(e){let n=this._advanceIf(r.TokenType.RAW_TEXT),i=this._advanceIf(r.TokenType.COMMENT_END),a=null!=n?n.parts[0].trim():null,o=new t.ParseSourceSpan(e.sourceSpan.start,(i||n||e).sourceSpan.end);this._addToParent(new s.Comment(a,o))}_consumeDocType(e){let n=this._advanceIf(r.TokenType.RAW_TEXT),i=this._advanceIf(r.TokenType.DOC_TYPE_END),a=null!=n?n.parts[0].trim():null,o=new t.ParseSourceSpan(e.sourceSpan.start,(i||n||e).sourceSpan.end);this._addToParent(new s.DocType(a,o))}_consumeExpansion(e){let n=this._advance(),a=this._advance(),o=[];for(;this._peek.type===r.TokenType.EXPANSION_CASE_VALUE;){let e=this._parseExpansionCase();if(!e)return;o.push(e)}if(this._peek.type!==r.TokenType.EXPANSION_FORM_END)return void this._errors.push(i.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));let c=new t.ParseSourceSpan(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new s.Expansion(n.parts[0],a.parts[0],o,c,n.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==r.TokenType.EXPANSION_CASE_EXP_START)return this._errors.push(i.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let n=this._advance(),a=this._collectExpansionExpTokens(n);if(!a)return null;let o=this._advance();a.push(new r.Token(r.TokenType.EOF,[],o.sourceSpan));let u=new c(a,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive).build();if(u.errors.length>0)return this._errors=this._errors.concat(u.errors),null;let l=new t.ParseSourceSpan(e.sourceSpan.start,o.sourceSpan.end),p=new t.ParseSourceSpan(n.sourceSpan.start,o.sourceSpan.end);return new s.ExpansionCase(e.parts[0],u.rootNodes,l,e.sourceSpan,p)}_collectExpansionExpTokens(e){let t=[],s=[r.TokenType.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===r.TokenType.EXPANSION_FORM_START||this._peek.type===r.TokenType.EXPANSION_CASE_EXP_START)&&s.push(this._peek.type),this._peek.type===r.TokenType.EXPANSION_CASE_EXP_END){if(!u(s,r.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(i.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(s.pop(),0==s.length)return t}if(this._peek.type===r.TokenType.EXPANSION_FORM_END){if(!u(s,r.TokenType.EXPANSION_FORM_START))return this._errors.push(i.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;s.pop()}if(this._peek.type===r.TokenType.EOF)return this._errors.push(i.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&"\n"==t[0]){let e=this._getParentElement();null!=e&&0==e.children.length&&this.getTagDefinition(e.name).ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=this._getText(e);t.length>0&&this._addToParent(new s.Text(t,e.sourceSpan))}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let a=e.parts[0],o=e.parts[1],c=[];for(;this._peek.type===r.TokenType.ATTR_NAME;)c.push(this._consumeAttr(this._advance()));let u=this._getElementFullName(a,o,this._getParentElement()),l=!1;if(this._peek.type===r.TokenType.TAG_OPEN_END_VOID){this._advance(),l=!0;let t=this.getTagDefinition(u);this.canSelfClose||t.canSelfClose||null!==n.getNsPrefix(u)||t.isVoid||this._errors.push(i.create(u,e.sourceSpan,`Only void and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===r.TokenType.TAG_OPEN_END&&(this._advance(),l=!1);let p=this._peek.sourceSpan.start,h=new t.ParseSourceSpan(e.sourceSpan.start,p),d=new t.ParseSourceSpan(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new s.Element(u,c,[],h,h,void 0,d);this._pushElement(f),l&&(this._popElement(u),f.endSourceSpan=h)}_pushElement(e){let t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let t=this.allowHtmComponentClosingTags&&0===e.parts.length?null:this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),t&&this.getTagDefinition(t).isVoid)this._errors.push(i.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(t)){let s=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this._errors.push(i.create(t,e.sourceSpan,s))}}_popElement(e){for(let t=this._elementStack.length-1;t>=0;t--){let s=this._elementStack[t];if(!e||(n.getNsPrefix(s.name)?s.name==e:s.name.toLowerCase()==e.toLowerCase()))return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(s.name).closedByParent)return!1}return!1}_consumeAttr(e){let i,a,o=n.mergeNsAndName(e.parts[0],e.parts[1]),c=e.sourceSpan.end,u="";if(this._peek.type===r.TokenType.ATTR_QUOTE&&(a=this._advance().sourceSpan.start),this._peek.type===r.TokenType.ATTR_VALUE){let e=this._advance();u=e.parts[0],c=e.sourceSpan.end,i=e.sourceSpan}return this._peek.type===r.TokenType.ATTR_QUOTE&&(c=this._advance().sourceSpan.end,i=new t.ParseSourceSpan(a,c)),new s.Attribute(o,u,new t.ParseSourceSpan(e.sourceSpan.start,c),i,e.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let e=null;for(let t=this._elementStack.length-1;t>=0;t--){if(!n.isNgContainer(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}}_addToParent(e){let t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)}_insertBeforeContainer(e,t,s){if(t){if(e){let r=e.children.indexOf(t);e.children[r]=s}else this._rootNodes.push(s);s.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,s)}else this._addToParent(s),this._elementStack.push(s)}_getElementFullName(e,t,s){return""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=s&&(e=n.getNsPrefix(s.name)),n.mergeNsAndName(e,t)}};function u(e,t){return e.length>0&&e[e.length-1]===t}}}),_e=d({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=Ce(),s=ke(),r=ke();e.ParseTreeResult=r.ParseTreeResult,e.TreeError=r.TreeError;var n=class extends s.Parser{constructor(){super(t.getHtmlTagDefinition)}parse(e,t,s){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4?arguments[4]:void 0;return super.parse(e,t,s,r,n)}};e.HtmlParser=n}}),Ne=d({"node_modules/angular-html-parser/lib/angular-html-parser/src/index.js"(e){x(),Object.defineProperty(e,"__esModule",{value:!0});var t=_e(),s=Ee();e.TagContentType=s.TagContentType;var r=null,n=()=>(r||(r=new t.HtmlParser),r);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{canSelfClose:s=!1,allowHtmComponentClosingTags:r=!1,isTagNameCaseSensitive:i=!1,getTagContentType:a}=t;return n().parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:s,allowHtmComponentClosingTags:r},i,a)}e.parse=i}});x();var{ParseSourceSpan:Ie,ParseLocation:Fe,ParseSourceFile:Le}=A(),Be=w(),je=D(),Me=T(),{inferParserByLanguage:Re}=ce(),Ue=pe(),qe=fe(),$e=ye(),{hasPragma:ze}=ge(),{Node:He}=xe(),{parseIeConditionalComment:Ve}=ve(),{locStart:Ge,locEnd:We}=be();function Je(e,t,s){let{canSelfClose:r,normalizeTagName:n,normalizeAttributeName:i,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o,getTagContentType:c}=t,u=Ne(),{RecursiveVisitor:l,visitAll:p}=we(),{ParseSourceSpan:h}=A(),{getHtmlTagDefinition:d}=Ce(),{rootNodes:f,errors:m}=u.parse(e,{canSelfClose:r,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o,getTagContentType:c});if("vue"===s.parser)if(f.some((e=>"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase()))){r=!0,n=!0,i=!0,a=!0,o=!1;let t=u.parse(e,{canSelfClose:r,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o});f=t.rootNodes,m=t.errors}else{let t=e=>{if(!e||"element"!==e.type||"template"!==e.name)return!1;let t=e.attrs.find((e=>"lang"===e.name)),r=t&&t.value;return!r||"html"===Re(r,s)};if(f.some(t)){let s,n=()=>u.parse(e,{canSelfClose:r,allowHtmComponentClosingTags:a,isTagNameCaseSensitive:o}),i=()=>s||(s=n()),c=e=>i().rootNodes.find((t=>{let{startSourceSpan:s}=t;return s&&s.start.offset===e.startSourceSpan.start.offset}));for(let e=0;e<f.length;e++){let s=f[e],{endSourceSpan:r,startSourceSpan:n}=s;if(null===r)m=i().errors,f[e]=c(s)||s;else if(t(s)){let t=i(),a=n.end.offset,o=r.start.offset;for(let e of t.errors){let{offset:t}=e.span.start;if(a<t&&t<o){m=[e];break}}f[e]=c(s)||s}}}}if(m.length>0){let{msg:e,span:{start:t,end:s}}=m[0];throw Me(e,{start:{line:t.line+1,column:t.col+1},end:{line:s.line+1,column:s.col+1}})}let y=e=>{let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,s=e.nameSpan.toString(),r=null!==t&&s.startsWith(`${t}:`),n=r?s.slice(t.length+1):s;e.name=n,e.namespace=t,e.hasExplicitNamespace=r},g=e=>{switch(e.type){case"element":y(e);for(let t of e.attrs)y(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString()}},x=(e,t)=>{let s=e.toLowerCase();return t(s)?s:e},v=e=>{if("element"===e.type&&(n&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||$e(e))&&(e.name=x(e.name,(e=>e in Ue))),i)){let t=qe[e.name]||Object.create(null);for(let s of e.attrs)s.namespace||(s.name=x(s.name,(s=>e.name in qe&&(s in qe["*"]||s in t))))}},b=e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new h(e.sourceSpan.start,e.endSourceSpan.end))},E=e=>{if("element"===e.type){let t=d(o?e.name:e.name.toLowerCase());!e.namespace||e.namespace===t.implicitNamespacePrefix||$e(e)?e.tagDefinition=t:e.tagDefinition=d("")}};return p(new class extends l{visit(e){g(e),E(e),v(e),b(e)}},f),f}function Xe(e,t,s){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{frontMatter:n,content:i}=r?Be(e):{frontMatter:null,content:e},a=new Le(e,t.filepath),o=new Fe(a,0,0,0),c=o.moveBy(e.length),u={type:"root",sourceSpan:new Ie(o,c),children:Je(i,s,t)};if(n){let e=new Fe(a,0,0,0),t=e.moveBy(n.raw.length);n.sourceSpan=new Ie(e,t),u.children.unshift(n)}let l=new He(u),p=(r,n)=>{let{offset:i}=n,a=Xe(e.slice(0,i).replace(/[^\n\r]/g," ")+r,t,s,!1);a.sourceSpan=new Ie(n,je(a.children).sourceSpan.end);let o=a.children[0];return o.length===i?a.children.shift():(o.sourceSpan=new Ie(o.sourceSpan.start.moveBy(i),o.sourceSpan.end),o.value=o.value.slice(i)),a};return l.walk((e=>{if("comment"===e.type){let t=Ve(e,p);t&&e.parent.replaceChild(e,t)}})),l}function Ke(){let{name:e,canSelfClose:t=!1,normalizeTagName:s=!1,normalizeAttributeName:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{parse:(o,c,u)=>Xe(o,Object.assign({parser:e},u),{canSelfClose:t,normalizeTagName:s,normalizeAttributeName:r,allowHtmComponentClosingTags:n,isTagNameCaseSensitive:i,getTagContentType:a}),hasPragma:ze,astFormat:"html",locStart:Ge,locEnd:We}}t.exports={parsers:{html:Ke({name:"html",canSelfClose:!0,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0}),angular:Ke({name:"angular",canSelfClose:!0}),vue:Ke({name:"vue",canSelfClose:!0,isTagNameCaseSensitive:!0,getTagContentType:(e,t,s,r)=>{if("html"!==e.toLowerCase()&&!s&&("template"!==e||r.some((e=>{let{name:t,value:s}=e;return"lang"===t&&"html"!==s&&""!==s&&void 0!==s}))))return Ne().TagContentType.RAW_TEXT}}),lwc:Ke({name:"lwc"})}}}));return Le()}()})),Sd=ue(Td),Pd=["css","scss","less","json","html","vue"],kd=function(e){var t=re({customFileTypeParser:{}},e);return function(e,s){var r;if("js"===s||"jsx"===s)r="babel";else if(Pd.indexOf(s)>=0)r=s;else{if(!t.customFileTypeParser[s])return e;r=t.customFileTypeParser[s]}return X.default.format(e,{parser:r,plugins:oe([Ad,Dd,Sd],ae(t.plugins||[]),!1),singleQuote:!0,jsxSingleQuote:!0})}},_d=function(e){return function(t){return ne(void 0,void 0,void 0,(function(){var s,r,n;return ie(this,(function(i){return s=e||"react",r=re({},t),n=r.ir,r.chunks.push({type:Ga.STRING,fileType:Va.JS,name:Hp,content:"\n import { createRef } from '".concat(s,"';\n "),linkAfter:[]}),n.utils&&n.utils.forEach((function(e){"function"===e.type&&r.chunks.push({type:Ga.STRING,fileType:Va.JS,name:Wp,content:"\n export const ".concat(e.name," = ").concat(e.content.value,";\n "),linkAfter:[Hp,Vp,Gp]})})),[2,r]}))}))}};var Nd=function(e){var t,s=e.schema.router;if(s&&0!==(null===(t=s.routes)||void 0===t?void 0:t.length)){var r=[],n=function(e){e.forEach((function(e){e.page&&-1===r.indexOf(e.page)&&r.push(e.page),e.children&&e.children.length>0&&n(e.children)}))};n(s.routes);var i=s.routes.map((function(e){return Fd(e)})),a=r.map((function(e){return function(e,t){var s=e.slice(0,1).toUpperCase()+e.slice(1);return B.variableDeclaration("const",[B.variableDeclarator(B.identifier(s),B.callExpression(B.identifier("lazy"),[B.arrowFunctionExpression([],B.callExpression(B.identifier("import"),[B.stringLiteral(t)]))]))])}(e,"./pages/".concat(e))}));return{fileLazyImports:a,routeElements:i}}};function Id(e){var t;try{var s=pt(e,{sourceType:"module",plugins:["jsx"]});return null===(t=null==s?void 0:s.program)||void 0===t?void 0:t.body[0]}catch(e){return console.error("解析错误:",e),null}}function Fd(e){var t=[];return e.children&&(t=e.children.map((function(e){return Fd(e)}))),e.redirect?Id('<Route path="'.concat(e.path,'" element={<Navigate to="').concat(e.redirect,'"/>}></Route>')):function(e,t,s,r){void 0===s&&(s=!1),void 0===r&&(r=null);var n=[B.jsxAttribute(B.jsxIdentifier("path"),B.stringLiteral(e))];s&&n.push(B.jsxAttribute(B.jsxIdentifier("exact")));var i=B.jsxOpeningElement(B.jsxIdentifier("Route"),n,!r);return t||r?(t&&n.push(B.jsxAttribute(B.jsxIdentifier("element"),B.jsxExpressionContainer(B.jsxElement(B.jsxOpeningElement(B.jsxIdentifier(t.slice(0,1).toUpperCase()+t.slice(1)),[],!0),null,[],!1)))),B.jsxElement(i,B.jsxClosingElement(B.jsxIdentifier("Route")),r||[],!1)):B.jsxElement(i,B.jsxClosingElement(B.jsxIdentifier("Route")),[],!1)}(e.path,e.page,e.exact,t)}var Od=function(e,t,s){var r,n,i,a,o=F.readFileSync("./src/App.jsx","utf8"),c=pt("".concat(o),{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]});c.program.body=c.program.body.filter((function(e){var t,s,r,n;return!("VariableDeclaration"===e.type&&"lazy"===(null===(n=null===(r=null===(s=null===(t=e.declarations)||void 0===t?void 0:t[0])||void 0===s?void 0:s.init)||void 0===r?void 0:r.callee)||void 0===n?void 0:n.name))}));var u=Nd(e);if(u){var l=u.fileLazyImports,p=u.routeElements;j.default(c,{Program:function(e){var t=e.node.body,s=t.findIndex((function(e){return"ExportDefaultDeclaration"===e.type}));t.splice.apply(t,oe([s,0],ae(l),!1))},JSXElement:function(e){var t,s,r=e.node;"Routes"===(null===(s=null===(t=r.openingElement)||void 0===t?void 0:t.name)||void 0===s?void 0:s.name)&&(r.children=p)}})}var h=e.schema.config;if(null===(r=null==h?void 0:h.layout)||void 0===r?void 0:r.componentName){var d,f=h.layout,m=f.componentName,y=f.props,g=Id("\n <".concat(m,"\n ").concat(Object.keys(y||{}).map((function(e){var t="";return"string"==typeof y[e]?t="'".concat(y[e],"'"):"number"==typeof y[e]?t="".concat(y[e]):"object"==typeof y[e]&&(t="{".concat(JSON.stringify(y[e]),"}")),"".concat(e,"=").concat(t)})).join("\n"),"\n ><AntdApp></AntdApp></").concat(m,">\n ")).expression;j.default(c,{JSXElement:function(e){var t,s;"HashRouter"===(null===(s=null===(t=e.node.openingElement)||void 0===t?void 0:t.name)||void 0===s?void 0:s.name)&&(d=e)}});var x=!1;j.default(c,{JSXElement:function(e){var t,s,r,n,i=e.node;"ConfigProvider"!==(null===(s=null===(t=i.openingElement)||void 0===t?void 0:t.name)||void 0===s?void 0:s.name)||x||(o.includes("<AntdApp>")&&d?g.children[0].children=d.parent.children:g.children[0].children=i.children,e.replaceWith(g),x=!0),"HashRouter"!==(null===(n=null===(r=i.openingElement)||void 0===r?void 0:r.name)||void 0===n?void 0:n.name)||x||(g.children[0].children=[i],e.replaceWith(g),x=!0)}})}var v=yr(c).code;!(null===(a=null===(i=null===(n=e.schema)||void 0===n?void 0:n.config)||void 0===i?void 0:i.layout)||void 0===a?void 0:a.componentName)||v.includes("from 'antd'")||v.includes('from "antd"')||(v="import { ConfigProvider, App as AntdApp } from 'antd';\n".concat(v)),F.writeFileSync("./src/App.jsx",v,"utf8")},Ld=function(e){var t=F.readFileSync("./package.json","utf8"),s=JSON.parse(t),r=!1;return e.dependencies&&(Object.keys(e.dependencies).forEach((function(t){s.dependencies[t]!==e.dependencies[t]&&(r=!0)})),Object.keys(s.dependencies).forEach((function(t){s.dependencies[t]!==e.dependencies[t]&&(r=!0)}))),s.dependencies=e.dependencies,F.writeFileSync("./package.json",JSON.stringify(s),"utf8"),r},Bd=require("fs-extra"),jd="$__cacheTime";function Md(e,t){var s,n,i;return ne(this,void 0,void 0,(function(){var e,a,o,c,u,l,p,h,d,f,m,y,g,x,v,b,E,C,A,w,D,T,P,_,N,F,O,L,B,j,M,R,U,q,$;return ie(this,(function(z){switch(z.label){case 0:e=k.default.join(S.default.homedir(),".cache","mengti_temp"),a=k.default.join(S.default.homedir(),".cache","mengti_translate"),t.clear&&ut(a),o=k.default.join(process.cwd()+"/"+(t.output||""))+jd,z.label=1;case 1:return z.trys.push([1,11,,12]),c=Ua.getKey(o),console.log("[最后同步时间] ",c?new Date(Number(c)).toLocaleString():"无"),u=c&&!t.clear?Number(c):0,Ba(t.auth),[4,Rd({projectId:t.id,auth:t.auth,filter:t.filter,folder:t.folder,frame:t.frame,afterTime:u})];case 2:return l=z.sent(),p=l.schema,h=l.project,d=l.documents,f=l.componentDocs,m=l.packageJSON,y=h.documents||[],g=y.map((function(e){return e.fileName})),h&&0!==d.length?(x=t.frame||h.type,b=(v="web"===x)?"vite":"taro",E=t.output,C=function(e){return I.default.createProjectBuilder({template:qh.template,plugins:{components:[Zh(),od({fileType:"jsx"}),ed(e),td(e),Kh(),I.default.plugins.react.containerInitState(),I.default.plugins.react.containerLifeCycle(),sd(),$h(),Ed({nodeTypeMapping:{Div:"View",Component:"React.Fragment",Page:"View",Block:"React.Fragment"}}),I.default.plugins.style.css()],pages:[Zh(),od({fileType:"jsx"}),ed(e),td(e),Kh(),I.default.plugins.react.containerInitState(),I.default.plugins.react.containerLifeCycle(),sd(),$h(),Ed({nodeTypeMapping:{Div:"div",Component:"React.Fragment",Page:"Page",Block:"React.Fragment"}}),I.default.plugins.style.css()],router:[I.default.plugins.common.esmodule(),qh.plugins.router()],entry:[qh.plugins.entry()],constants:[I.default.plugins.project.constants()],utils:[I.default.plugins.common.esmodule(),_d("react")],i18n:[I.default.plugins.project.i18n()],globalStyle:[qh.plugins.globalStyle()],htmlEntry:[qh.plugins.entryHtml()],packageJSON:[qh.plugins.packageJSON()]},postProcessors:[kd()]})}({type:x,solution:b}),t.env&&(A=null===(n=null===(s=h.envInfo)||void 0===s?void 0:s.list)||void 0===n?void 0:n.find((function(e){return e.alias===t.env})),A&&(p.constants=re(re({},p.constants),Ud(A.data)))),[4,C.generateProject(p)]):(console.log(it.yellow("提示:无文件更新,请确认是否保存!如需更新全部,请勾选清除缓存")),[2,0]);case 3:return(w=z.sent()).files=w.files.filter((function(e){return"css"===e.ext||"jsx"===e.ext})),D=I.default.publishers.disk(),ut(e),[4,D.publish({project:w,outputPath:e,projectSlug:"example",createProjectFolder:!1})];case 4:return z.sent(),Bd.existsSync("./".concat(E,"/"))||Bd.mkdirSync("./".concat(E,"/"),{recursive:!0}),T=function(e){return e.path==="./".concat(E,"/")?"".concat(null==E?void 0:E.replace("src/",""),"/").concat(e.fileName.split(".")[0]):"".concat(null==E?void 0:E.replace("src/",""),"/").concat(e.name,"/index")},[4,ct("./".concat(E,"/"))];case 5:return P=z.sent(),[4,ct(e+"/")];case 6:_=z.sent(),N={components:P.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return g.includes(e)})),pages:P.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("pages")&&!e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return g.includes(e)})),pageUrls:P.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("pages")&&!e.path.includes("components")})).filter((function(e){return g.includes(e.name)})).map((function(e){return T(e)}))},F=function(t){var s,r,n,i,a,o,c,u,l,m,y,g,x,C,A,w,D,S;return ie(this,(function(P){switch(P.label){case 0:return(s=_[t]).path.includes("/BasicLayout/")?[3,10]:(r=s.name,"js"!==(n=s.ext)||"utils.js"!==s.fileName?[3,2]:[4,Ao(s,p,h,b)]);case 1:P.sent(),P.label=2;case 2:return"css"!==n&&"scss"!==n||(i=s.path+"/"+s.fileName,"taro"===b?(Bd.renameSync(s.path+"/"+s.fileName,s.path+"/"+s.fileName.replace("css","scss")),i=s.path+"/"+s.fileName.replace("css","scss")):"scss"===n&&(Bd.renameSync(s.path+"/"+s.fileName,s.path+"/"+s.fileName.replace("scss","css")),i=s.path+"/"+s.fileName.replace("scss","css")),(a=Bd.readFileSync(i,"utf8"))&&a.includes("calc")&&Bd.writeFileSync(i,a.replace(/ /g," "),"utf8")),"jsx"!==n&&"tsx"!==n?[3,10]:(o=d.concat(f).find((function(e){return e.fileName.toLowerCase()===r.toLowerCase()})),"Page"===(null==o?void 0:o.type)&&(N.pages.includes(r)||(N.pages.push(r),N.pageUrls.push(T(s)))),"Component"===(null==o?void 0:o.type)&&(N.components.includes(r)||N.components.push(r)),console.log("[BUILD FILE]",s.name),[4,Er(s,b,E)]);case 3:for(c=P.sent(),u=c.code,l=c.images,m=c.svgs,Bd.writeFileSync(s.path+"/"+s.fileName,u),Bd.renameSync(s.path+"/"+s.fileName,s.path+"/"+(v?s.fileName:s.fileName.replace("jsx","tsx"))),v||"Page"!==(null==o?void 0:o.type)||((y=["export default definePageConfig({"]).push(" navigationBarTitleText: '".concat(o.title,"',")),y.push(" navigationStyle: '".concat("custom","',")),y.push(" disableScroll: true,"),y.push("})"),Bd.writeFileSync(s.path+"/index.config.ts",y.join("\n"))),g=[],x=[],A=0;A<m.length;A++)if((C=m[A]).svgStr&&C.fileName)try{Bd.existsSync(s.path+"/icons")||Bd.mkdirSync(s.path+"/icons"),Bd.writeFileSync(s.path+"/icons/"+C.fileName+".svg",C.svgStr),g.push("import ".concat(C.fileName," from './").concat(C.fileName,".svg").concat("vite"===b?"?raw":"","';")),x.push(" ".concat(C.fileName,","))}catch(e){console.log("[saveSvg Error] ",e)}g.length>0&&Bd.writeFileSync(s.path+"/icons/index.ts",g.concat(["const ICONS = {"]).concat(x).concat(["}"]).concat("export default ICONS;").join("\n")),A=0,P.label=4;case 4:if(!(A<l.length))return[3,9];if(!(w=l[A]).url||!w.fileName)return[3,8];P.label=5;case 5:return P.trys.push([5,7,,8]),Bd.existsSync(s.path+"/images")||Bd.mkdirSync(s.path+"/images"),[4,Zi(w.url,s.path+"/images/"+w.fileName)];case 6:return P.sent(),[3,8];case 7:return D=P.sent(),console.log("[downloadFile Error] ",D),[3,8];case 8:return A++,[3,4];case 9:S="./".concat(E,"/").concat(s.name),"Component"===(null==o?void 0:o.type)&&(S="./".concat(E,"/components/").concat(s.name)),Bd.existsSync(S)&&ut(S),"Page"===(null==o?void 0:o.type)&&Bd.copySync("".concat(e,"/src/pages/").concat(s.name),S),"Component"===(null==o?void 0:o.type)&&Bd.copySync("".concat(e,"/src/components/").concat(s.name),S),P.label=10;case 10:return[2]}}))},O=0,z.label=7;case 7:return O<_.length?[5,F(O)]:[3,10];case 8:z.sent(),z.label=9;case 9:return O++,[3,7];case 10:return Ua.setKey(o,String(Date.now())),(L=null===(i=h.appConfig)||void 0===i?void 0:i.indexPage)&&(N.pages=N.pages.sort((function(e,t){return e===L?-1:t===L?1:0})),B=N.pageUrls.find((function(e){return e.includes("/".concat(L,"/"))})),N.pageUrls=N.pageUrls.sort((function(e,t){return e===B?-1:t===B?1:0}))),Bd.writeFileSync("./".concat(E,"/map.json"),JSON.stringify(N)),"vite"===b?(j=Bd.readFileSync("".concat(e,"/src/global.css"),"utf-8"),M=j.split("\n").slice(6).join("\n"),Bd.writeFileSync("./src/App.css",M)):(j=Bd.readFileSync("".concat(e,"/src/global.sscss"),"utf-8"),M=j.split("\n").slice(6).join("\n"),Bd.writeFileSync("./src/global.scss",M),(R=Bd.readFileSync("./src/app.tsx","utf-8")).includes("import './global.scss'")||(U=R.replace("import './app.scss'","import './app.scss'\nimport './global.scss'"),Bd.writeFileSync("./src/app.tsx",U))),Bd.copyFileSync("".concat(e,"/src/utils.js"),"./src/utils/utils.js"),Bd.copyFileSync("".concat(e,"/src/constants.js"),"./src/utils/constants.js"),q=To(h,E,b),Bd.writeFileSync("./src/utils/portal.js",q),v?Od(h):Do(t.frame||h.type,h,N),Ld(m)&&(console.log("[INFO] package.json 文件已更新,将重新安装依赖"),"pnpm",r.execSync("".concat("pnpm"," install --registry=https://registry.npmmirror.com"),{stdio:"inherit"}),console.log("[INFO] 本地依赖已更新,请重新启动本地项目")),Ua.save(),console.log("[INFO ".concat((new Date).toLocaleString(),"] 代码增量同步完成")),[2,0];case 11:return $=z.sent(),console.log(it.red(at($)||"Unexpected error: ".concat($))),Ua.removeKey(o),Ua.save(),"object"==typeof $&&(null==$?void 0:$.stack)&&t.verbose&&console.log(it.gray($.stack)),[2,1];case 12:return[2]}}))}))}function Rd(e){var t,s;return ne(this,void 0,void 0,(function(){var r,n;return ie(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,ja("/editor/getExportDetail",{_id:e.projectId,auth:e.auth,count:!1,folders:null===(t=null==e?void 0:e.folder)||void 0===t?void 0:t.split(","),fileNames:null===(s=e.filter)||void 0===s?void 0:s.split(","),frame:e.frame,afterTime:e.afterTime})];case 1:return"string"==typeof(r=i.sent()).data.schema&&(r.data.schema=JSON.parse(r.data.schema)),[2,r.data];case 2:throw n=i.sent(),console.log("[ERROR] ",n),n;case 3:return[2]}}))}))}var Ud=function(e){var t=e,s=null==e?void 0:e.__enable;return s&&(Object.keys(e).forEach((function(e){s.includes(e)||delete t[e]})),null==t||delete t.__enable),e},qd=function(e,t){return ne(void 0,void 0,void 0,(function(){var e;return ie(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,ja("/file/getUploadToken",re({},t))];case 1:return[2,s.sent().data];case 2:return e=s.sent(),console.log("getUpToken error: ",e),[3,3];case 3:return[2]}}))}))},$d=function(e,t){return ne(void 0,void 0,void 0,(function(){var s,r,n,i,a,o,c;return ie(this,(function(u){switch(u.label){case 0:return[4,qd(0,t)];case 1:s=u.sent(),r=s.token,n=s.key,(i=new wi).append("file",F.createReadStream(e.path+"/"+e.fileName)),i.append("key",n),i.append("token",r),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,Xi.post("https://up-z0.qiniup.com/",i,{headers:i.getHeaders()})];case 3:if(a=u.sent(),null===(c=a.data)||void 0===c?void 0:c.hash)return[2,a.data];throw console.log("File upload failed.",a.data),new Error("File upload failed.");case 4:throw o=u.sent(),console.error("Error uploading file:",o),new Error("Error uploading file");case 5:return[2]}}))}))},zd=function(e){var t=/exports\.(\w+)/.exec(e);return t?t[1]:""};function Hd(e){return ne(this,void 0,void 0,(function(){var t;return ie(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,K.mkdir(e,{recursive:!0})];case 1:return s.sent(),[3,3];case 2:if("EEXIST"===(t=s.sent()).code)return[2];throw t;case 3:return[2]}}))}))}var Vd=pe(T({__proto__:null,default:O.default},[F])),Gd=function(){if("object"==typeof process&&process.versions&&process.versions.electron)try{const e=Vd;if(Object.keys(e).length>0)return e}catch(e){}return O.default},Wd={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24},Jd={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};Jd.INVALID_LOC,Jd.INVALID_CEN,Jd.INVALID_END,Jd.NO_DATA,Jd.BAD_CRC,Jd.FILE_IN_THE_WAY,Jd.UNKNOWN_METHOD,Jd.AVAIL_DATA,Jd.INVALID_DISTANCE,Jd.TO_MANY_CODES,Jd.INVALID_REPEAT_LEN,Jd.INVALID_REPEAT_FIRST,Jd.INCOMPLETE_CODES,Jd.INVALID_DYN_DISTANCE,Jd.INVALID_CODES_LEN,Jd.INVALID_STORE_BLOCK,Jd.INVALID_BLOCK_TYPE,Jd.CANT_EXTRACT_FILE,Jd.CANT_OVERRIDE,Jd.NO_ZIP,Jd.NO_ENTRY,Jd.DIRECTORY_CONTENT_ERROR,Jd.FILE_NOT_FOUND,Jd.NOT_IMPLEMENTED,Jd.INVALID_FILENAME,Jd.INVALID_FORMAT;const Xd=Gd(),Kd="object"==typeof process&&"win32"===process.platform,Yd=e=>e&&"object"==typeof e,Zd=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++)1&t?t=3988292384^t>>>1:t>>>=1;return t>>>0}));function Qd(e){this.sep=k.default.sep,this.fs=Xd,Yd(e)&&Yd(e.fs)&&"function"==typeof e.fs.statSync&&(this.fs=e.fs)}var ef=Qd;Qd.prototype.makeDir=function(e){const t=this;!function(e){let s=e.split(t.sep)[0];e.split(t.sep).forEach((function(e){if(e&&":"!==e.substr(-1,1)){var r;s+=t.sep+e;try{r=t.fs.statSync(s)}catch(e){t.fs.mkdirSync(s)}if(r&&r.isFile())throw Jd.FILE_IN_THE_WAY.replace("%s",s)}}))}(e)},Qd.prototype.writeFileTo=function(e,t,s,r){const n=this;if(n.fs.existsSync(e)){if(!s)return!1;if(n.fs.statSync(e).isDirectory())return!1}var i,a=k.default.dirname(e);n.fs.existsSync(a)||n.makeDir(a);try{i=n.fs.openSync(e,"w",438)}catch(t){n.fs.chmodSync(e,438),i=n.fs.openSync(e,"w",438)}if(i)try{n.fs.writeSync(i,t,0,t.length,0)}finally{n.fs.closeSync(i)}return n.fs.chmodSync(e,r||438),!0},Qd.prototype.writeFileToAsync=function(e,t,s,r,n){"function"==typeof r&&(n=r,r=void 0);const i=this;i.fs.exists(e,(function(a){if(a&&!s)return n(!1);i.fs.stat(e,(function(s,o){if(a&&o.isDirectory())return n(!1);var c=k.default.dirname(e);i.fs.exists(c,(function(s){s||i.makeDir(c),i.fs.open(e,"w",438,(function(s,a){s?i.fs.chmod(e,438,(function(){i.fs.open(e,"w",438,(function(s,a){i.fs.write(a,t,0,t.length,0,(function(){i.fs.close(a,(function(){i.fs.chmod(e,r||438,(function(){n(!0)}))}))}))}))})):a?i.fs.write(a,t,0,t.length,0,(function(){i.fs.close(a,(function(){i.fs.chmod(e,r||438,(function(){n(!0)}))}))})):i.fs.chmod(e,r||438,(function(){n(!0)}))}))}))}))}))},Qd.prototype.findFiles=function(e){const t=this;return function e(s,r,n){"boolean"==typeof r&&(n=r,r=void 0);let i=[];return t.fs.readdirSync(s).forEach((function(a){var o=k.default.join(s,a);t.fs.statSync(o).isDirectory()&&n&&(i=i.concat(e(o,r,n))),r&&!r.test(o)||i.push(k.default.normalize(o)+(t.fs.statSync(o).isDirectory()?t.sep:""))})),i}(e,void 0,!0)},Qd.prototype.getAttributes=function(){},Qd.prototype.setAttributes=function(){},Qd.crc32update=function(e,t){return Zd[255&(e^t)]^e>>>8},Qd.crc32=function(e){"string"==typeof e&&(e=Buffer.from(e,"utf8")),Zd.length||genCRCTable();let t=e.length,s=-1;for(let r=0;r<t;)s=Qd.crc32update(s,e[r++]);return~s>>>0},Qd.methodToString=function(e){switch(e){case Wd.STORED:return"STORED ("+e+")";case Wd.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}},Qd.canonical=function(e){if(!e)return"";var t=k.default.posix.normalize("/"+e.split("\\").join("/"));return k.default.join(".",t)},Qd.sanitize=function(e,t){e=k.default.resolve(k.default.normalize(e));for(var s=t.split("/"),r=0,n=s.length;r<n;r++){var i=k.default.normalize(k.default.join(e,s.slice(r,n).join(k.default.sep)));if(0===i.indexOf(e))return i}return k.default.normalize(k.default.join(e,k.default.basename(t)))},Qd.toBuffer=function(e){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):"string"==typeof e?Buffer.from(e,"utf8"):Buffer.alloc(0)},Qd.readBigUInt64LE=function(e,t){var s=Buffer.from(e.slice(t,t+8));return s.swap64(),parseInt(`0x${s.toString("hex")}`)},Qd.isWin=Kd,Qd.crcTable=Zd;const tf=Gd();tf.existsSync=tf.existsSync||k.default.existsSync;var sf=ef,rf=Wd,nf=Jd,af=function(e){var t=e||"",s={directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0},r=null;return t&&tf.existsSync(t)?(r=tf.statSync(t),s.directory=r.isDirectory(),s.mtime=r.mtime,s.atime=r.atime,s.executable=!!(73&r.mode),s.readonly=!(128&r.mode),s.hidden="."===k.default.basename(t)[0]):console.warn("Invalid path: "+t),{get directory(){return s.directory},get readOnly(){return s.readonly},get hidden(){return s.hidden},get mtime(){return s.mtime},get atime(){return s.atime},get executable(){return s.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:s.directory,isReadOnly:s.readonly,isHidden:s.hidden,isExecutable:s.executable,mTime:s.mtime,aTime:s.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}};sf.Constants=rf,sf.Errors=nf,sf.FileAttr=af;var of=sf.Constants,cf=sf.Constants,uf=function(){var e=20,t=10,s=0,r=0,n=0,i=0,a=0,o=0,c=0,u=0,l=0,p=0,h=0,d=0,f=0;e|=sf.isWin?2560:768,s|=of.FLG_EFS;var m={};function y(e){e=new Date(e),n=(e.getFullYear()-1980&127)<<25|e.getMonth()+1<<21|e.getDate()<<16|e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1}return y(+new Date),{get made(){return e},set made(t){e=t},get version(){return t},set version(e){t=e},get flags(){return s},set flags(e){s=e},get method(){return r},set method(e){switch(e){case of.STORED:this.version=10;case of.DEFLATED:default:this.version=20}r=e},get time(){return new Date(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1)},set time(e){y(e)},get timeHighByte(){return n>>>8&255},get crc(){return i},set crc(e){i=Math.max(0,e)>>>0},get compressedSize(){return a},set compressedSize(e){a=Math.max(0,e)>>>0},get size(){return o},set size(e){o=Math.max(0,e)>>>0},get fileNameLength(){return c},set fileNameLength(e){c=e},get extraLength(){return u},set extraLength(e){u=e},get commentLength(){return l},set commentLength(e){l=e},get diskNumStart(){return p},set diskNumStart(e){p=Math.max(0,e)>>>0},get inAttr(){return h},set inAttr(e){h=Math.max(0,e)>>>0},get attr(){return d},set attr(e){d=Math.max(0,e)>>>0},get fileAttr(){return d?d>>>0>>16&4095:0},get offset(){return f},set offset(e){f=Math.max(0,e)>>>0},get encripted(){return!(1&~s)},get entryHeaderSize(){return of.CENHDR+c+u+l},get realDataOffset(){return f+of.LOCHDR+m.fnameLen+m.extraLen},get dataHeader(){return m},loadDataHeaderFromBinary:function(e){var t=e.slice(f,f+of.LOCHDR);if(t.readUInt32LE(0)!==of.LOCSIG)throw new Error(sf.Errors.INVALID_LOC);m={version:t.readUInt16LE(of.LOCVER),flags:t.readUInt16LE(of.LOCFLG),method:t.readUInt16LE(of.LOCHOW),time:t.readUInt32LE(of.LOCTIM),crc:t.readUInt32LE(of.LOCCRC),compressedSize:t.readUInt32LE(of.LOCSIZ),size:t.readUInt32LE(of.LOCLEN),fnameLen:t.readUInt16LE(of.LOCNAM),extraLen:t.readUInt16LE(of.LOCEXT)}},loadFromBinary:function(m){if(m.length!==of.CENHDR||m.readUInt32LE(0)!==of.CENSIG)throw new Error(sf.Errors.INVALID_CEN);e=m.readUInt16LE(of.CENVEM),t=m.readUInt16LE(of.CENVER),s=m.readUInt16LE(of.CENFLG),r=m.readUInt16LE(of.CENHOW),n=m.readUInt32LE(of.CENTIM),i=m.readUInt32LE(of.CENCRC),a=m.readUInt32LE(of.CENSIZ),o=m.readUInt32LE(of.CENLEN),c=m.readUInt16LE(of.CENNAM),u=m.readUInt16LE(of.CENEXT),l=m.readUInt16LE(of.CENCOM),p=m.readUInt16LE(of.CENDSK),h=m.readUInt16LE(of.CENATT),d=m.readUInt32LE(of.CENATX),f=m.readUInt32LE(of.CENOFF)},dataHeaderToBinary:function(){var e=Buffer.alloc(of.LOCHDR);return e.writeUInt32LE(of.LOCSIG,0),e.writeUInt16LE(t,of.LOCVER),e.writeUInt16LE(s,of.LOCFLG),e.writeUInt16LE(r,of.LOCHOW),e.writeUInt32LE(n,of.LOCTIM),e.writeUInt32LE(i,of.LOCCRC),e.writeUInt32LE(a,of.LOCSIZ),e.writeUInt32LE(o,of.LOCLEN),e.writeUInt16LE(c,of.LOCNAM),e.writeUInt16LE(u,of.LOCEXT),e},entryHeaderToBinary:function(){var m=Buffer.alloc(of.CENHDR+c+u+l);return m.writeUInt32LE(of.CENSIG,0),m.writeUInt16LE(e,of.CENVEM),m.writeUInt16LE(t,of.CENVER),m.writeUInt16LE(s,of.CENFLG),m.writeUInt16LE(r,of.CENHOW),m.writeUInt32LE(n,of.CENTIM),m.writeUInt32LE(i,of.CENCRC),m.writeUInt32LE(a,of.CENSIZ),m.writeUInt32LE(o,of.CENLEN),m.writeUInt16LE(c,of.CENNAM),m.writeUInt16LE(u,of.CENEXT),m.writeUInt16LE(l,of.CENCOM),m.writeUInt16LE(p,of.CENDSK),m.writeUInt16LE(h,of.CENATT),m.writeUInt32LE(d,of.CENATX),m.writeUInt32LE(f,of.CENOFF),m.fill(0,of.CENHDR),m},toJSON:function(){const n=function(e){return e+" bytes"};return{made:e,version:t,flags:s,method:sf.methodToString(r),time:this.time,crc:"0x"+i.toString(16).toUpperCase(),compressedSize:n(a),size:n(o),fileNameLength:n(c),extraLength:n(u),commentLength:n(l),diskNumStart:p,inAttr:h,attr:d,offset:f,entryHeaderSize:n(of.CENHDR+c+u+l)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},lf=function(){var e=0,t=0,s=0,r=0,n=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return s},set size(e){s=e},get offset(){return r},set offset(e){r=e},get commentLength(){return n},set commentLength(e){n=e},get mainHeaderSize(){return cf.ENDHDR+n},loadFromBinary:function(i){if((i.length!==cf.ENDHDR||i.readUInt32LE(0)!==cf.ENDSIG)&&(i.length<cf.ZIP64HDR||i.readUInt32LE(0)!==cf.ZIP64SIG))throw new Error(sf.Errors.INVALID_END);i.readUInt32LE(0)===cf.ENDSIG?(e=i.readUInt16LE(cf.ENDSUB),t=i.readUInt16LE(cf.ENDTOT),s=i.readUInt32LE(cf.ENDSIZ),r=i.readUInt32LE(cf.ENDOFF),n=i.readUInt16LE(cf.ENDCOM)):(e=sf.readBigUInt64LE(i,cf.ZIP64SUB),t=sf.readBigUInt64LE(i,cf.ZIP64TOT),s=sf.readBigUInt64LE(i,cf.ZIP64SIZE),r=sf.readBigUInt64LE(i,cf.ZIP64OFF),n=0)},toBinary:function(){var i=Buffer.alloc(cf.ENDHDR+n);return i.writeUInt32LE(cf.ENDSIG,0),i.writeUInt32LE(0,4),i.writeUInt16LE(e,cf.ENDSUB),i.writeUInt16LE(t,cf.ENDTOT),i.writeUInt32LE(s,cf.ENDSIZ),i.writeUInt32LE(r,cf.ENDOFF),i.writeUInt16LE(n,cf.ENDCOM),i.fill(" ",cf.ENDHDR),i},toJSON:function(){return{diskEntries:e,totalEntries:t,size:s+" bytes",offset:function(e,t){let s=e.toString(16).toUpperCase();for(;s.length<t;)s="0"+s;return"0x"+s}(r,4),commentLength:n}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},pf={EntryHeader:uf,MainHeader:lf};const{randomFillSync:hf}=M.default,df=new Uint32Array(256).map(((e,t)=>{for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;return t>>>0})),ff=(e,t)=>Math.imul(e,t)>>>0,mf=(e,t)=>df[255&(e^t)]^e>>>8,yf=()=>"function"==typeof hf?hf(Buffer.alloc(12)):yf.node();yf.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let s=0;s<t;s++)e[s]=256*Math.random()&255;return e};const gf={genSalt:yf};function xf(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let e=0;e<t.length;e++)this.updateKeys(t[e])}xf.prototype.updateKeys=function(e){const t=this.keys;return t[0]=mf(t[0],e),t[1]+=255&t[0],t[1]=ff(t[1],134775813)+1,t[2]=mf(t[2],t[1]>>>24),e},xf.prototype.next=function(){const e=(2|this.keys[2])>>>0;return ff(e,1^e)>>8&255};var vf={decrypt:function(e,t,s){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const r=function(e){const t=new xf(e);return function(e){const s=Buffer.alloc(e.length);let r=0;for(let n of e)s[r++]=t.updateKeys(n^t.next());return s}}(s),n=r(e.slice(0,12)),i=8&~t.flags?t.crc>>>24:t.timeHighByte;if(n[11]!==i)throw"ADM-ZIP: Wrong Password";return r(e.slice(12))},encrypt:function(e,t,s,r=!1){null==e&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const n=function(e){const t=new xf(e);return function(e,s,r=0){s||(s=Buffer.alloc(e.length));for(let n of e){const e=t.next();s[r++]=n^e,t.updateKeys(n)}return s}}(s),i=gf.genSalt();i[11]=t.crc>>>24&255,r&&(i[10]=t.crc>>>16&255);const a=Buffer.alloc(e.length+12);return n(i,a),n(e,a,12)},_salter:function(e){Buffer.isBuffer(e)&&e.length>=12?gf.genSalt=function(){return e.slice(0,12)}:gf.genSalt="node"===e?yf.node:yf}},bf=function(e){var t=V.default,s={chunkSize:1024*(parseInt(e.length/1024)+1)};return{deflate:function(){return t.deflateRawSync(e,s)},deflateAsync:function(r){var n=t.createDeflateRaw(s),i=[],a=0;n.on("data",(function(e){i.push(e),a+=e.length})),n.on("end",(function(){var e=Buffer.alloc(a),t=0;e.fill(0);for(var s=0;s<i.length;s++){var n=i[s];n.copy(e,t),t+=n.length}r&&r(e)})),n.end(e)}}},Ef=function(e){var t=V.default;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(s){var r=t.createInflateRaw(),n=[],i=0;r.on("data",(function(e){n.push(e),i+=e.length})),r.on("end",(function(){var e=Buffer.alloc(i),t=0;e.fill(0);for(var r=0;r<n.length;r++){var a=n[r];a.copy(e,t),t+=a.length}s&&s(e)})),r.end(e)}}},Cf={Deflater:bf,Inflater:Ef,ZipCrypto:vf},Af=sf.Constants,wf=function(e){var t=new pf.EntryHeader,s=Buffer.alloc(0),r=Buffer.alloc(0),n=!1,i=null,a=Buffer.alloc(0);function o(){return e&&Buffer.isBuffer(e)?(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize)):Buffer.alloc(0)}function c(e){return!(8&~t.flags&&sf.crc32(e)!==t.dataHeader.crc)}function u(e,r,i){if(void 0===r&&"string"==typeof e&&(i=e,e=void 0),n)return e&&r&&r(Buffer.alloc(0),sf.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var a=o();if(0===a.length)return e&&r&&r(a),a;if(t.encripted){if("string"!=typeof i&&!Buffer.isBuffer(i))throw new Error("ADM-ZIP: Incompatible password parameter");a=Cf.ZipCrypto.decrypt(a,t,i)}var u=Buffer.alloc(t.size);switch(t.method){case sf.Constants.STORED:if(a.copy(u),c(u))return e&&r&&r(u),u;throw e&&r&&r(u,sf.Errors.BAD_CRC),new Error(sf.Errors.BAD_CRC);case sf.Constants.DEFLATED:var l=new Cf.Inflater(a);if(!e){if(l.inflate(u).copy(u,0),!c(u))throw new Error(sf.Errors.BAD_CRC+" "+s.toString());return u}l.inflateAsync((function(e){e.copy(e,0),r&&(c(e)?r(e):r(e,sf.Errors.BAD_CRC))}));break;default:throw e&&r&&r(Buffer.alloc(0),sf.Errors.UNKNOWN_METHOD),new Error(sf.Errors.UNKNOWN_METHOD)}}function l(s,r){if((!i||!i.length)&&Buffer.isBuffer(e))return s&&r&&r(o()),o();if(i.length&&!n){var a;switch(t.method){case sf.Constants.STORED:return t.compressedSize=t.size,a=Buffer.alloc(i.length),i.copy(a),s&&r&&r(a),a;default:case sf.Constants.DEFLATED:var c=new Cf.Deflater(i);if(!s){var u=c.deflate();return t.compressedSize=u.length,u}c.deflateAsync((function(e){a=Buffer.alloc(e.length),t.compressedSize=e.length,e.copy(a),r&&r(a)})),c=null}}else{if(!s||!r)return Buffer.alloc(0);r(Buffer.alloc(0))}}function p(e,t){return(e.readUInt32LE(t+4)<<4)+e.readUInt32LE(t)}function h(e){var s,r,n,i;e.length>=Af.EF_ZIP64_SCOMP&&(s=p(e,Af.EF_ZIP64_SUNCOMP),t.size===Af.EF_ZIP64_OR_32&&(t.size=s)),e.length>=Af.EF_ZIP64_RHO&&(r=p(e,Af.EF_ZIP64_SCOMP),t.compressedSize===Af.EF_ZIP64_OR_32&&(t.compressedSize=r)),e.length>=Af.EF_ZIP64_DSN&&(n=p(e,Af.EF_ZIP64_RHO),t.offset===Af.EF_ZIP64_OR_32&&(t.offset=n)),e.length>=Af.EF_ZIP64_DSN+4&&(i=e.readUInt32LE(Af.EF_ZIP64_DSN),t.diskNumStart===Af.EF_ZIP64_OR_16&&(t.diskNumStart=i))}return{get entryName(){return s.toString()},get rawEntryName(){return s},set entryName(e){var r=(s=sf.toBuffer(e))[s.length-1];n=47===r||92===r,t.fileNameLength=s.length},get extra(){return a},set extra(e){a=e,t.extraLength=e.length,function(e){for(var t,s,r,n=0;n<e.length;)t=e.readUInt16LE(n),n+=2,s=e.readUInt16LE(n),n+=2,r=e.slice(n,n+s),n+=s,Af.ID_ZIP64===t&&h(r)}(e)},get comment(){return r.toString()},set comment(e){r=sf.toBuffer(e),t.commentLength=r.length},get name(){var e=s.toString();return n?e.substr(e.length-1).split("/").pop():e.split("/").pop()},get isDirectory(){return n},getCompressedData:function(){return l(!1,null)},getCompressedDataAsync:function(e){l(!0,e)},setData:function(e){i=sf.toBuffer(e),!n&&i.length?(t.size=i.length,t.method=sf.Constants.DEFLATED,t.crc=sf.crc32(e),t.changed=!0):t.method=sf.Constants.STORED},getData:function(e){return t.changed?i:u(!1,null,e)},getDataAsync:function(e,s){t.changed?e(i):u(!0,e,s)},set attr(e){t.attr=e},get attr(){return t.attr},set header(e){t.loadFromBinary(e)},get header(){return t},packHeader:function(){var e=t.entryHeaderToBinary(),n=sf.Constants.CENHDR;return s.copy(e,n),n+=s.length,t.extraLength&&(a.copy(e,n),n+=t.extraLength),t.commentLength&&r.copy(e,n),e},toJSON:function(){const s=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:s(e),data:s(i)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},Df=function(e,t){var s=[],r={},n=Buffer.alloc(0),i=new pf.MainHeader,a=!1;const o=Object.assign(Object.create(null),t),{noSort:c}=o;function u(){a=!0,r={},s=new Array(i.diskEntries);for(var t=i.offset,n=0;n<s.length;n++){var o=t,c=new wf(e);c.header=e.slice(o,o+=sf.Constants.CENHDR),c.entryName=e.slice(o,o+=c.header.fileNameLength),c.header.extraLength&&(c.extra=e.slice(o,o+=c.header.extraLength)),c.header.commentLength&&(c.comment=e.slice(o,o+c.header.commentLength)),t+=c.header.entryHeaderSize,s[n]=c,r[c.entryName]=c}}function l(){s.length>1&&!c&&s.sort(((e,t)=>e.entryName.toLowerCase().localeCompare(t.entryName.toLowerCase())))}return e?function(t){var s=e.length-sf.Constants.ENDHDR,r=Math.max(0,s-65535),a=r,o=e.length,c=-1,l=0;for(;s>=a;s--)if(80===e[s])if(e.readUInt32LE(s)!==sf.Constants.ENDSIG)if(e.readUInt32LE(s)!==sf.Constants.END64SIG){if(e.readUInt32LE(s)===sf.Constants.ZIP64SIG){c=s,o=s+sf.readBigUInt64LE(e,s+sf.Constants.ZIP64SIZE)+sf.Constants.ZIP64LEAD;break}}else a=r;else c=s,l=s,o=s+sf.Constants.ENDHDR,a=s-sf.Constants.END64HDR;if(!~c)throw new Error(sf.Errors.INVALID_FORMAT);i.loadFromBinary(e.slice(c,o)),i.commentLength&&(n=e.slice(l+sf.Constants.ENDHDR));t&&u()}(o.readEntries):a=!0,{get entries(){return a||u(),s},get comment(){return n.toString()},set comment(e){n=sf.toBuffer(e),i.commentLength=n.length},getEntryCount:function(){return a?s.length:i.diskEntries},forEach:function(t){a?s.forEach(t):function(t){const s=i.diskEntries;let r=i.offset;for(let n=0;n<s;n++){let s=r;const n=new wf(e);n.header=e.slice(s,s+=sf.Constants.CENHDR),n.entryName=e.slice(s,s+=n.header.fileNameLength),r+=n.header.entryHeaderSize,t(n)}}(t)},getEntry:function(e){return a||u(),r[e]||null},setEntry:function(e){a||u(),s.push(e),r[e.entryName]=e,i.totalEntries=s.length},deleteEntry:function(e){a||u();var t=r[e];if(t&&t.isDirectory){var n=this;this.getEntryChildren(t).forEach((function(t){t.entryName!==e&&n.deleteEntry(t.entryName)}))}s.splice(s.indexOf(t),1),delete r[e],i.totalEntries=s.length},getEntryChildren:function(e){if(a||u(),e&&e.isDirectory){const t=[],r=e.entryName,n=r.length;return s.forEach((function(e){e.entryName.substr(0,n)===r&&t.push(e)})),t}return[]},compressToBuffer:function(){a||u(),l();const e=[],t=[];let r=0,o=0;i.size=0,i.offset=0;for(const n of s){const s=n.getCompressedData();n.header.offset=o;const a=n.header.dataHeaderToBinary(),c=n.rawEntryName.length,u=Buffer.alloc(c+n.extra.length);n.rawEntryName.copy(u,0),n.extra.copy(u,c);const l=a.length+u.length+s.length;o+=l,e.push(a),e.push(u),e.push(s);const p=n.packHeader();t.push(p),i.size+=p.length,r+=l+p.length}r+=i.mainHeaderSize,i.offset=o,o=0;const c=Buffer.alloc(r);for(const t of e)t.copy(c,o),o+=t.length;for(const e of t)e.copy(c,o),o+=e.length;const p=i.toBinary();return n&&n.copy(p,sf.Constants.ENDHDR),p.copy(c,o),c},toAsyncBuffer:function(e,t,r,o){try{a||u(),l();const t=[],c=[];let p=0,h=0;i.size=0,i.offset=0;const d=function(s){if(s.length){const e=s.pop(),n=e.entryName+e.extra.toString();r&&r(n),e.getCompressedDataAsync((function(r){o&&o(n),e.header.offset=h;const a=e.header.dataHeaderToBinary(),u=Buffer.alloc(n.length,n),l=a.length+u.length+r.length;h+=l,t.push(a),t.push(u),t.push(r);const f=e.packHeader();c.push(f),i.size+=f.length,p+=l+f.length,d(s)}))}else{p+=i.mainHeaderSize,i.offset=h,h=0;const s=Buffer.alloc(p);t.forEach((function(e){e.copy(s,h),h+=e.length})),c.forEach((function(e){e.copy(s,h),h+=e.length}));const r=i.toBinary();n&&n.copy(r,sf.Constants.ENDHDR),r.copy(s,h),e(s)}};d(s)}catch(e){t(e)}}}};const Tf=(e,t)=>"boolean"==typeof e?e:t,Sf=(e,t)=>"string"==typeof e?e:t,Pf={noSort:!1,readEntries:!1,method:sf.Constants.NONE,fs:null};var kf=function(e,t){let s=null;const r=Object.assign(Object.create(null),Pf);e&&"object"==typeof e&&(e instanceof Uint8Array||(Object.assign(r,e),e=r.input?r.input:void 0,r.input&&delete r.input),Buffer.isBuffer(e)&&(s=e,r.method=sf.Constants.BUFFER,e=void 0)),Object.assign(r,t);const n=new sf(r);if(e&&"string"==typeof e){if(!n.fs.existsSync(e))throw new Error(sf.Errors.INVALID_FILENAME);r.method=sf.Constants.FILE,r.filename=e,s=n.fs.readFileSync(e)}const i=new Df(s,r),{canonical:a,sanitize:o}=sf;function c(e){var t;if(e&&i&&("string"==typeof e&&(t=i.getEntry(e)),"object"==typeof e&&void 0!==e.entryName&&void 0!==e.header&&(t=i.getEntry(e.entryName)),t))return t;return null}function u(e){const{join:t,normalize:s,sep:r}=k.default.posix;return t(".",s(r+e.split("\\").join(r)+r))}return{readFile:function(e,t){var s=c(e);return s&&s.getData(t)||null},readFileAsync:function(e,t){var s=c(e);s?s.getDataAsync(t):t(null,"getEntry failed for:"+e)},readAsText:function(e,t){var s=c(e);if(s){var r=s.getData();if(r&&r.length)return r.toString(t||"utf8")}return""},readAsTextAsync:function(e,t,s){var r=c(e);r?r.getDataAsync((function(e,r){r?t(e,r):e&&e.length?t(e.toString(s||"utf8")):t("")})):t("")},deleteFile:function(e){var t=c(e);t&&i.deleteEntry(t.entryName)},addZipComment:function(e){i.comment=e},getZipComment:function(){return i.comment||""},addZipEntryComment:function(e,t){var s=c(e);s&&(s.comment=t)},getZipEntryComment:function(e){var t=c(e);return t&&t.comment||""},updateFile:function(e,t){var s=c(e);s&&s.setData(t)},addLocalFile:function(e,t,s,r){if(!n.fs.existsSync(e))throw new Error(sf.Errors.FILE_NOT_FOUND.replace("%s",e));{t=t?u(t):"";var i=e.split("\\").join("/").split("/").pop();t+=s||i;const a=n.fs.statSync(e);this.addFile(t,n.fs.readFileSync(e),r,a)}},addLocalFolder:function(e,t,s,r){var i;if(s instanceof RegExp?(i=s,s=function(e){return i.test(e)}):"function"!=typeof s&&(s=function(){return!0}),t=t?u(t):"",e=k.default.normalize(e),!n.fs.existsSync(e))throw new Error(sf.Errors.FILE_NOT_FOUND.replace("%s",e));{const i=n.findFiles(e),a=this;i.length&&i.forEach((function(i){var o=k.default.relative(e,i).split("\\").join("/");if(s(o)){var c=n.fs.statSync(i);c.isFile()?a.addFile(t+o,n.fs.readFileSync(i),"",r||c):a.addFile(t+o+"/",Buffer.alloc(0),"",r||c)}}))}},addLocalFolderAsync:function(e,t,s,r){var i;r instanceof RegExp?(i=r,r=function(e){return i.test(e)}):"function"!=typeof r&&(r=function(){return!0}),s=s?u(s):"",e=k.default.normalize(e);var a=this;n.fs.open(e,"r",(function(i){if(i&&"ENOENT"===i.code)t(void 0,sf.Errors.FILE_NOT_FOUND.replace("%s",e));else if(i)t(void 0,i);else{var o=n.findFiles(e),c=-1,u=function(){if((c+=1)<o.length){var i=o[c],l=k.default.relative(e,i).split("\\").join("/");l=l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),r(l)?n.fs.stat(i,(function(e,r){e&&t(void 0,e),r.isFile()?n.fs.readFile(i,(function(e,n){e?t(void 0,e):(a.addFile(s+l,n,"",r),u())})):(a.addFile(s+l+"/",Buffer.alloc(0),"",r),u())})):process.nextTick((()=>{u()}))}else t(!0,void 0)};u()}}))},addLocalFolderPromise:function(e,t){return new Promise(((s,r)=>{const{filter:n,zipPath:i}=Object.assign({},t);this.addLocalFolderAsync(e,((e,t)=>{t&&r(t),e&&s(this)}),i,n)}))},addFile:function(e,t,s,r){let a=c(e);const o=null!=a;o||(a=new wf,a.entryName=e),a.comment=s||"";const u="object"==typeof r&&r instanceof n.fs.Stats;u&&(a.header.time=r.mtime);var l=a.isDirectory?16:0;let p=a.isDirectory?16384:32768;p|=u?4095&r.mode:"number"==typeof r?4095&r:a.isDirectory?493:420,l=(l|p<<16)>>>0,a.attr=l,a.setData(t),o||i.setEntry(a)},getEntries:function(e){return i.password=e,i?i.entries:[]},getEntry:function(e){return c(e)},getEntryCount:function(){return i.getEntryCount()},forEach:function(e){return i.forEach(e)},extractEntryTo:function(e,t,s,r,u,l){r=Tf(r,!1),u=Tf(u,!1),s=Tf(s,!0),l=Sf(l,Sf(u,void 0));var p=c(e);if(!p)throw new Error(sf.Errors.NO_ENTRY);var h=a(p.entryName),d=o(t,l&&!p.isDirectory?l:s?h:k.default.basename(h));if(p.isDirectory)return i.getEntryChildren(p).forEach((function(e){if(e.isDirectory)return;var i=e.getData();if(!i)throw new Error(sf.Errors.CANT_EXTRACT_FILE);var c=a(e.entryName),l=o(t,s?c:k.default.basename(c));const p=u?e.header.fileAttr:void 0;n.writeFileTo(l,i,r,p)})),!0;var f=p.getData(i.password);if(!f)throw new Error(sf.Errors.CANT_EXTRACT_FILE);if(n.fs.existsSync(d)&&!r)throw new Error(sf.Errors.CANT_OVERRIDE);const m=u?e.header.fileAttr:void 0;return n.writeFileTo(d,f,r,m),!0},test:function(e){if(!i)return!1;for(var t in i.entries)try{if(t.isDirectory)continue;if(!i.entries[t].getData(e))return!1}catch(e){return!1}return!0},extractAllTo:function(e,t,s,r){if(t=Tf(t,!1),r=Sf(s,r),s=Tf(s,!1),!i)throw new Error(sf.Errors.NO_ZIP);i.entries.forEach((function(i){var c=o(e,a(i.entryName.toString()));if(i.isDirectory)return void n.makeDir(c);var u=i.getData(r);if(!u)throw new Error(sf.Errors.CANT_EXTRACT_FILE);const l=s?i.header.fileAttr:void 0;n.writeFileTo(c,u,t,l);try{n.fs.utimesSync(c,i.header.time,i.header.time)}catch(e){throw new Error(sf.Errors.CANT_EXTRACT_FILE)}}))},extractAllToAsync:function(e,t,s,r){if(t=Tf(t,!1),"function"!=typeof s||r||(r=s),s=Tf(s,!1),r||(r=function(e){throw new Error(e)}),!i)return void r(new Error(sf.Errors.NO_ZIP));e=k.default.resolve(e);const c=t=>o(e,k.default.normalize(a(t.entryName.toString()))),u=(e,t)=>new Error(e+': "'+t+'"'),l=[],p=new Set;i.entries.forEach((e=>{e.isDirectory?l.push(e):p.add(e)}));for(const e of l){const t=c(e),i=s?e.header.fileAttr:void 0;try{n.makeDir(t),i&&n.fs.chmodSync(t,i),n.fs.utimesSync(t,e.header.time,e.header.time)}catch(e){r(u("Unable to create folder",t))}}const h=()=>{0===p.size&&r()};for(const i of p.values()){const c=k.default.normalize(a(i.entryName.toString())),l=o(e,c);i.getDataAsync((function(e,a){if(a)r(new Error(a));else if(e){const a=s?i.header.fileAttr:void 0;n.writeFileToAsync(l,e,t,a,(function(e){e?n.fs.utimes(l,i.header.time,i.header.time,(function(e){e?r(u("Unable to set times",l)):(h(),p.delete(i))})):r(u("Unable to write file",l))}))}else r(new Error(sf.Errors.CANT_EXTRACT_FILE))}))}h()},writeZip:function(e,t){if(1===arguments.length&&"function"==typeof e&&(t=e,e=""),!e&&r.filename&&(e=r.filename),e){var s=i.compressToBuffer();if(s){var a=n.writeFileTo(e,s,!0);"function"==typeof t&&t(a?null:new Error("failed"),"")}}},writeZipPromise:function(e,t){const{overwrite:s,perm:i}=Object.assign({overwrite:!0},t);return new Promise(((t,a)=>{!e&&r.filename&&(e=r.filename),e||a("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then((r=>{n.writeFileToAsync(e,r,s,i,(e=>e?t(e):a("ADM-ZIP: Wasn't able to write zip file")))}),a)}))},toBufferPromise:function(){return new Promise(((e,t)=>{i.toAsyncBuffer(e,t)}))},toBuffer:function(e,t,s,r){return this.valueOf=2,"function"==typeof e?(i.toAsyncBuffer(e,t,s,r),null):i.compressToBuffer()}}};function _f(e,t){return ne(this,void 0,void 0,(function(){return ie(this,(function(s){try{new kf(e).extractAllTo(t,!0),O.default.unlinkSync(e)}catch(e){throw console.error("Error extracting template:",e),e}return[2]}))}))}function Nf(e,t){return ne(this,void 0,void 0,(function(){var s,r;return ie(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),console.log("Downloading template from ".concat(e,"...")),[4,Y.default.ensureDir(t)];case 1:return n.sent(),s="".concat(t,"/template").concat(Date.now(),".zip"),[4,Zi(e,s)];case 2:return n.sent(),console.log("Template downloaded."),[4,_f(s,t)];case 3:return n.sent(),[3,5];case 4:throw r=n.sent(),console.error("Error downloading or extracting template:"),r;case 5:return[2]}}))}))}function If(e,t,s){return ne(this,void 0,void 0,(function(){var r,n,i,a,o,c;return ie(this,(function(u){switch(u.label){case 0:return r=process.cwd(),n="".concat(r,"/").concat(s),[4,Nf(t,r)];case 1:return u.sent(),[4,Y.default.readdir(r,{withFileTypes:!0})];case 2:if(i=u.sent(),!(a=i.find((function(t){return t.isDirectory()&&t.name.startsWith(e.zipName||"---")}))))throw new Error("Failed to find the extracted template directory.");return o="".concat(r,"/").concat(a.name),console.log("oldPath",o),[4,Y.default.pathExists(o)];case 3:return c=u.sent(),console.log("isExist: ",c),[4,Y.default.rename("".concat(r,"/").concat(a.name),n)];case 4:return u.sent(),console.log('Project "'.concat(s,'" created successfully from template.')),[2]}}))}))}const Ff=Object.create(null);Ff.open="0",Ff.close="1",Ff.ping="2",Ff.pong="3",Ff.message="4",Ff.upgrade="5",Ff.noop="6";const Of=Object.create(null);Object.keys(Ff).forEach((e=>{Of[Ff[e]]=e}));const Lf={type:"error",data:"parser error"},Bf=({type:e,data:t},s,r)=>t instanceof ArrayBuffer||ArrayBuffer.isView(t)?r(s?t:"b"+jf(t,!0).toString("base64")):r(Ff[e]+(t||"")),jf=(e,t)=>Buffer.isBuffer(e)||e instanceof Uint8Array&&!t?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength);let Mf;const Rf=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Uf(e,t)};const s=e.charAt(0);if("b"===s){const s=Buffer.from(e.substring(1),"base64");return{type:"message",data:Uf(s,t)}}return Of[s]?e.length>1?{type:Of[s],data:e.substring(1)}:{type:Of[s]}:Lf},Uf=(e,t)=>"arraybuffer"===t?e instanceof ArrayBuffer?e:Buffer.isBuffer(e)?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e.buffer:Buffer.isBuffer(e)?e:Buffer.from(e),qf=String.fromCharCode(30);function $f(){return new TransformStream({transform(e,t){!function(e,t){if(e.data instanceof ArrayBuffer||ArrayBuffer.isView(e.data))return t(jf(e.data,!1));Bf(e,!0,(e=>{Mf||(Mf=new TextEncoder),t(Mf.encode(e))}))}(e,(s=>{const r=s.length;let n;if(r<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,r);else if(r<65536){n=new Uint8Array(3);const e=new DataView(n.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{n=new Uint8Array(9);const e=new DataView(n.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(s)}))}})}let zf;function Hf(e){return e.reduce(((e,t)=>e+t.length),0)}function Vf(e,t){if(e[0].length===t)return e.shift();const s=new Uint8Array(t);let r=0;for(let n=0;n<t;n++)s[n]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),s}function Gf(e){if(e)return function(e){for(var t in Gf.prototype)e[t]=Gf.prototype[t];return e}(e)}Gf.prototype.on=Gf.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Gf.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},Gf.prototype.off=Gf.prototype.removeListener=Gf.prototype.removeAllListeners=Gf.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var n=0;n<r.length;n++)if((s=r[n])===t||s.fn===t){r.splice(n,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},Gf.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),s=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(s){r=0;for(var n=(s=s.slice(0)).length;r<n;++r)s[r].apply(this,t)}return this},Gf.prototype.emitReserved=Gf.prototype.emit,Gf.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Gf.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Wf=global;function Jf(e,...t){return t.reduce(((t,s)=>(e.hasOwnProperty(s)&&(t[s]=e[s]),t)),{})}const Xf=Wf.setTimeout,Kf=Wf.clearTimeout;function Yf(e,t){t.useNativeTimers?(e.setTimeoutFn=Xf.bind(Wf),e.clearTimeoutFn=Kf.bind(Wf)):(e.setTimeoutFn=Wf.setTimeout.bind(Wf),e.clearTimeoutFn=Wf.clearTimeout.bind(Wf))}class Zf extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class Qf extends Gf{constructor(e){super(),this.writable=!1,Yf(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new Zf(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Rf(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let s in e)e.hasOwnProperty(s)&&(t.length&&(t+="&"),t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t}(e);return t.length?"?"+t:""}}const em="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),tm=64,sm={};let rm,nm=0,im=0;function am(e){let t="";do{t=em[e%tm]+t,e=Math.floor(e/tm)}while(e>0);return t}function om(){const e=am(+new Date);return e!==rm?(nm=0,rm=e):e+"."+am(nm++)}for(;im<tm;im++)sm[em[im]]=im;
|
|
76
76
|
/**
|
|
77
77
|
* Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
|
|
78
78
|
*
|
|
@@ -84,4 +84,4 @@ var pp=function(e){for(var t=arguments.length,s=0;++s<t;)e=hp(e,arguments[s]);re
|
|
|
84
84
|
* @author Dan DeFelippi <dan@driverdan.com>
|
|
85
85
|
* @contributor David Ellis <d.f.ellis@ieee.org>
|
|
86
86
|
* @license MIT
|
|
87
|
-
*/var cm=N.default.spawn,um=lm;function lm(e){e=e||{};var t,s,r=this,n=R.default,i=U.default,a={},o=!1,c={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},u=Object.assign({},c),l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],p=["TRACE","TRACK","CONNECT"],h=!1,d=!1,f=!1,m={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null;this.open=function(e,t,s,r,n){if(this.abort(),d=!1,f=!1,!function(e){return e&&-1===p.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");a={method:e,url:t.toString(),async:"boolean"!=typeof s||s,user:r||null,password:n||null},y(this.OPENED)},this.setDisableHeaderCheck=function(e){o=e},this.setRequestHeader=function(e,t){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(!function(e){return o||e&&-1===l.indexOf(e.toLowerCase())}(e))return console.warn('Refused to set unsafe header "'+e+'"'),!1;if(h)throw new Error("INVALID_STATE_ERR: send flag is true");return u[e]=t,!0},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&s.headers[e.toLowerCase()]&&!d?s.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||d)return"";var e="";for(var t in s.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+s.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&u[e]?u[e]:""},this.send=function(o){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(h)throw new Error("INVALID_STATE_ERR: send has already been called");var c,l=!1,p=!1,f=q.default.parse(a.url);switch(f.protocol){case"https:":l=!0;case"http:":c=f.hostname;break;case"file:":p=!0;break;case void 0:case"":c="localhost";break;default:throw new Error("Protocol not supported.")}if(p){if("GET"!==a.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(a.async)O.default.readFile(unescape(f.pathname),"utf8",(function(e,t){e?r.handleError(e,e.errno||-1):(r.status=200,r.responseText=t,y(r.DONE))}));else try{this.responseText=O.default.readFileSync(unescape(f.pathname),"utf8"),this.status=200,y(r.DONE)}catch(e){this.handleError(e,e.errno||-1)}}else{var m=f.port||(l?443:80),g=f.pathname+(f.search?f.search:"");if(u.Host=c,l&&443===m||80===m||(u.Host+=":"+f.port),a.user){void 0===a.password&&(a.password="");var x=new Buffer(a.user+":"+a.password);u.Authorization="Basic "+x.toString("base64")}"GET"===a.method||"HEAD"===a.method?o=null:o?(u["Content-Length"]=Buffer.isBuffer(o)?o.length:Buffer.byteLength(o),u["Content-Type"]||(u["Content-Type"]="text/plain;charset=UTF-8")):"POST"===a.method&&(u["Content-Length"]=0);var v=e.agent||!1,b={host:c,port:m,path:g,method:a.method,headers:u,agent:v};if(l&&(b.pfx=e.pfx,b.key=e.key,b.passphrase=e.passphrase,b.cert=e.cert,b.ca=e.ca,b.ciphers=e.ciphers,b.rejectUnauthorized=!1!==e.rejectUnauthorized),d=!1,a.async){var E=l?i.request:n.request;h=!0,r.dispatchEvent("readystatechange");var C=function(n){if(302===(s=n).statusCode||303===s.statusCode||307===s.statusCode){a.url=s.headers.location;var i=q.default.parse(a.url);c=i.hostname;var o={hostname:i.hostname,port:i.port,path:i.path,method:303===s.statusCode?"GET":a.method,headers:u};return l&&(o.pfx=e.pfx,o.key=e.key,o.passphrase=e.passphrase,o.cert=e.cert,o.ca=e.ca,o.ciphers=e.ciphers,o.rejectUnauthorized=!1!==e.rejectUnauthorized),void(t=E(o,C).on("error",A)).end()}s&&s.setEncoding&&s.setEncoding("utf8"),y(r.HEADERS_RECEIVED),r.status=s.statusCode,s.on("data",(function(e){e&&(r.responseText+=e),h&&y(r.LOADING)})),s.on("end",(function(){h&&(h=!1,y(r.DONE))})),s.on("error",(function(e){r.handleError(e)}))},A=function(e){r.handleError(e)};t=E(b,C).on("error",A),e.autoUnref&&t.on("socket",(e=>{e.unref()})),o&&t.write(o),t.end(),r.dispatchEvent("loadstart")}else{var w=".node-xmlhttprequest-content-"+process.pid,D=".node-xmlhttprequest-sync-"+process.pid;O.default.writeFileSync(D,"","utf8");for(var T="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(l?"s":"")+".request;var options = "+JSON.stringify(b)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+w+"', 'NODE-XMLHTTPREQUEST-STATUS:' + response.statusCode + ',' + responseText, 'utf8');fs.unlinkSync('"+D+"');});response.on('error', function(error) {fs.writeFileSync('"+w+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+D+"');});}).on('error', function(error) {fs.writeFileSync('"+w+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+D+"');});"+(o?"req.write('"+JSON.stringify(o).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",S=cm(process.argv[0],["-e",T]);O.default.existsSync(D););if(r.responseText=O.default.readFileSync(w,"utf8"),S.stdin.end(),O.default.unlinkSync(w),r.responseText.match(/^NODE-XMLHTTPREQUEST-ERROR:/)){var P=r.responseText.replace(/^NODE-XMLHTTPREQUEST-ERROR:/,"");r.handleError(P,503)}else r.status=r.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:([0-9]*),.*/,"$1"),r.responseText=r.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:[0-9]*,(.*)/,"$1"),y(r.DONE)}}},this.handleError=function(e,t){this.status=t||0,this.statusText=e,this.responseText=e.stack,d=!0,y(this.DONE)},this.abort=function(){t&&(t.abort(),t=null),u=Object.assign({},c),this.responseText="",this.responseXML="",d=f=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!h||this.readyState===this.DONE||(h=!1,y(this.DONE)),this.readyState=this.UNSENT},this.addEventListener=function(e,t){e in m||(m[e]=[]),m[e].push(t)},this.removeEventListener=function(e,t){e in m&&(m[e]=m[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof r["on"+e]&&(this.readyState===this.DONE?setImmediate((function(){r["on"+e]()})):r["on"+e]()),e in m)for(let t=0,s=m[e].length;t<s;t++)this.readyState===this.DONE?setImmediate((function(){m[e][t].call(r)})):m[e][t].call(r)};var y=function(e){if(!(r.readyState===e||r.readyState===r.UNSENT&&f)&&(r.readyState=e,(a.async||r.readyState<r.OPENED||r.readyState===r.DONE)&&r.dispatchEvent("readystatechange"),r.readyState===r.DONE)){let e;e=f?"abort":d?"error":"load",r.dispatchEvent(e),r.dispatchEvent("loadend")}}}lm.XMLHttpRequest=lm;const pm=um||Object.freeze({__proto__:null,default:um,__moduleExports:um});class hm{constructor(){this.cookies=new Map}parseCookies(e){const t=e.getResponseHeader("set-cookie");t&&t.forEach((e=>{const t=function(e){const t=e.split("; "),s=t[0].indexOf("=");if(-1===s)return;const r=t[0].substring(0,s).trim();if(!r.length)return;let n=t[0].substring(s+1).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));const i={name:r,value:n};for(let e=1;e<t.length;e++){const s=t[e].split("=");if(2!==s.length)continue;const r=s[0].trim(),n=s[1].trim();switch(r){case"Expires":i.expires=new Date(n);break;case"Max-Age":const e=new Date;e.setUTCSeconds(e.getUTCSeconds()+parseInt(n,10)),i.expires=e}}return i}(e);t&&this.cookies.set(t.name,t)}))}addCookies(e){const t=[];this.cookies.forEach(((e,s)=>{var r;(null===(r=e.expires)||void 0===r?void 0:r.getTime())<Date.now()?this.cookies.delete(s):t.push(`${s}=${e.value}`)})),t.length&&(e.setDisableHeaderCheck(!0),e.setRequestHeader("cookie",t.join("; ")))}}function dm(){}const fm=null!=new pm({xdomain:!1}).responseType;class mm extends Gf{constructor(e,t){super(),Yf(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=Jf(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new pm(t);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&s.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{s.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var e;3===s.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=mm.requestsCount++,mm.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=dm,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete mm.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(mm.requestsCount=0,mm.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",ym);else if("function"==typeof addEventListener){addEventListener("onpagehide"in Wf?"pagehide":"unload",ym,!1)}function ym(){for(let e in mm.requests)mm.requests.hasOwnProperty(e)&&mm.requests[e].abort()}var gm={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}},xm="function"==typeof __webpack_require__?__non_webpack_require__:he,vm=process.config&&process.config.variables||{},bm=!!process.env.PREBUILDS_ONLY,Em=process.versions.modules,Cm=!(!process.versions||!process.versions.electron)||!!process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",Am=process.env.npm_config_arch||S.default.arch(),wm=process.env.npm_config_platform||S.default.platform(),Dm=process.env.LIBC||(function(e){return"linux"===e&&O.default.existsSync("/etc/alpine-release")}(wm)?"musl":"glibc"),Tm=process.env.ARM_VERSION||("arm64"===Am?"8":vm.arm_version)||"",Sm=(process.versions.uv||"").split(".")[0],Pm=km;function km(e){return xm(km.resolve(e))}function _m(e){try{return O.default.readdirSync(e)}catch(e){return[]}}function Nm(e,t){var s=_m(e).filter(t);return s[0]&&k.default.join(e,s[0])}function Im(e){return/\.node$/.test(e)}function Fm(e){var t=e.split("-");if(2===t.length){var s=t[0],r=t[1].split("+");if(s&&r.length&&r.every(Boolean))return{name:e,platform:s,architectures:r}}}function Om(e,t){return function(s){return null!=s&&(s.platform===e&&s.architectures.includes(t))}}function Lm(e,t){return e.architectures.length-t.architectures.length}function Bm(e){var t=e.split("."),s={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var n=t[r];if("node"===n||"electron"===n||"node-webkit"===n)s.runtime=n;else if("napi"===n)s.napi=!0;else if("abi"===n.slice(0,3))s.abi=n.slice(3);else if("uv"===n.slice(0,2))s.uv=n.slice(2);else if("armv"===n.slice(0,4))s.armv=n.slice(4);else{if("glibc"!==n&&"musl"!==n)continue;s.libc=n}s.specificity++}return s}}function jm(e,t){return function(s){return null!=s&&(!(s.runtime&&s.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(s))&&(!(s.abi&&s.abi!==t&&!s.napi)&&((!s.uv||s.uv===Sm)&&((!s.armv||s.armv===Tm)&&(!s.libc||s.libc===Dm)))))}}function Mm(e){return function(t,s){return t.runtime!==s.runtime?t.runtime===e?-1:1:t.abi!==s.abi?t.abi?-1:1:t.specificity!==s.specificity?t.specificity>s.specificity?-1:1:0}}km.resolve=km.path=function(e){e=k.default.resolve(e||".");try{var t=xm(k.default.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch(e){}if(!bm){var s=Nm(k.default.join(e,"build/Release"),Im);if(s)return s;var r=Nm(k.default.join(e,"build/Debug"),Im);if(r)return r}var n=o(e);if(n)return n;var i=o(k.default.dirname(process.execPath));if(i)return i;var a=["platform="+wm,"arch="+Am,"runtime="+Cm,"abi="+Em,"uv="+Sm,Tm?"armv="+Tm:"","libc="+Dm,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+a+"\n loaded from: "+e+"\n");function o(e){var t=_m(k.default.join(e,"prebuilds")).map(Fm).filter(Om(wm,Am)).sort(Lm)[0];if(t){var s=k.default.join(e,"prebuilds",t.name),r=_m(s).map(Bm).filter(jm(Cm,Em)).sort(Mm(Cm))[0];return r?k.default.join(s,r.file):void 0}}},km.parseTags=Bm,km.matchTags=jm,km.compareTags=Mm,km.parseTuple=Fm,km.matchTuple=Om,km.compareTuples=Lm;var Rm=le((function(e){const t="function"==typeof __webpack_require__?__non_webpack_require__:he;"function"==typeof t.addon?e.exports=t.addon.bind(t):e.exports=Pm}));var Um={mask:(e,t,s,r,n)=>{for(var i=0;i<n;i++)s[r+i]=e[i]^t[3&i]},unmask:(e,t)=>{const s=e.length;for(var r=0;r<s;r++)e[r]^=t[3&r]}},qm=le((function(e){try{e.exports=Rm(__dirname)}catch(t){e.exports=Um}})),$m=le((function(e){const{EMPTY_BUFFER:t}=gm,s=Buffer[Symbol.species];function r(e,t,s,r,n){for(let i=0;i<n;i++)s[r+i]=e[i]^t[3&i]}function n(e,t){for(let s=0;s<e.length;s++)e[s]^=t[3&s]}if(e.exports={concat:function(e,r){if(0===e.length)return t;if(1===e.length)return e[0];const n=Buffer.allocUnsafe(r);let i=0;for(let t=0;t<e.length;t++){const s=e[t];n.set(s,i),i+=s.length}return i<r?new s(n.buffer,n.byteOffset,i):n},mask:r,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(t){if(e.readOnly=!0,Buffer.isBuffer(t))return t;let r;return t instanceof ArrayBuffer?r=new s(t):ArrayBuffer.isView(t)?r=new s(t.buffer,t.byteOffset,t.byteLength):(r=Buffer.from(t),e.readOnly=!1),r},unmask:n},!process.env.WS_NO_BUFFER_UTIL)try{const t=qm;e.exports.mask=function(e,s,n,i,a){a<48?r(e,s,n,i,a):t.mask(e,s,n,i,a)},e.exports.unmask=function(e,s){e.length<32?n(e,s):t.unmask(e,s)}}catch(e){}}));$m.concat,$m.mask,$m.toArrayBuffer,$m.toBuffer,$m.unmask;const zm=Symbol("kDone"),Hm=Symbol("kRun");var Vm=class{constructor(e){this[zm]=()=>{this.pending--,this[Hm]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Hm]()}[Hm](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[zm])}}};const{kStatusCode:Gm}=gm,Wm=Buffer[Symbol.species],Jm=Buffer.from([0,0,255,255]),Xm=Symbol("permessage-deflate"),Km=Symbol("total-length"),Ym=Symbol("callback"),Zm=Symbol("buffers"),Qm=Symbol("error");let ey;var ty=class{constructor(e,t,s){if(this._maxPayload=0|s,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!ey){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;ey=new Vm(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[Ym];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,s=e.find((e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits)));if(!s)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(s.server_no_context_takeover=!0),t.clientNoContextTakeover&&(s.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(s.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?s.client_max_window_bits=t.clientMaxWindowBits:!0!==s.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete s.client_max_window_bits,s}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach((e=>{Object.keys(e).forEach((t=>{let s=e[t];if(s.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(s=s[0],"client_max_window_bits"===t){if(!0!==s){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}else if("server_max_window_bits"===t){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==s)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}e[t]=s}))})),e}decompress(e,t,s){ey.add((r=>{this._decompress(e,t,((e,t)=>{r(),s(e,t)}))}))}compress(e,t,s){ey.add((r=>{this._compress(e,t,((e,t)=>{r(),s(e,t)}))}))}_decompress(e,t,s){const r=this._isServer?"client":"server";if(!this._inflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?V.default.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=V.default.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[Xm]=this,this._inflate[Km]=0,this._inflate[Zm]=[],this._inflate.on("error",ny),this._inflate.on("data",ry)}this._inflate[Ym]=s,this._inflate.write(e),t&&this._inflate.write(Jm),this._inflate.flush((()=>{const e=this._inflate[Qm];if(e)return this._inflate.close(),this._inflate=null,void s(e);const n=$m.concat(this._inflate[Zm],this._inflate[Km]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Km]=0,this._inflate[Zm]=[],t&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),s(null,n)}))}_compress(e,t,s){const r=this._isServer?"server":"client";if(!this._deflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?V.default.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=V.default.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[Km]=0,this._deflate[Zm]=[],this._deflate.on("data",sy)}this._deflate[Ym]=s,this._deflate.write(e),this._deflate.flush(V.default.Z_SYNC_FLUSH,(()=>{if(!this._deflate)return;let e=$m.concat(this._deflate[Zm],this._deflate[Km]);t&&(e=new Wm(e.buffer,e.byteOffset,e.length-4)),this._deflate[Ym]=null,this._deflate[Km]=0,this._deflate[Zm]=[],t&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),s(null,e)}))}};function sy(e){this[Zm].push(e),this[Km]+=e.length}function ry(e){this[Km]+=e.length,this[Xm]._maxPayload<1||this[Km]<=this[Xm]._maxPayload?this[Zm].push(e):(this[Qm]=new RangeError("Max payload size exceeded"),this[Qm].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Qm][Gm]=1009,this.removeListener("data",ry),this.reset())}function ny(e){this[Xm]._inflate=null,e[Gm]=1007,this[Ym](e)}var iy=function(e){const t=e.length;let s=0;for(;s<t;)if(128&e[s])if(192==(224&e[s])){if(s+1===t||128!=(192&e[s+1])||192==(254&e[s]))return!1;s+=2}else if(224==(240&e[s])){if(s+2>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||224===e[s]&&128==(224&e[s+1])||237===e[s]&&160==(224&e[s+1]))return!1;s+=3}else{if(240!=(248&e[s]))return!1;if(s+3>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||128!=(192&e[s+3])||240===e[s]&&128==(240&e[s+1])||244===e[s]&&e[s+1]>143||e[s]>244)return!1;s+=4}else s++;return!0},ay=le((function(e){try{e.exports=Rm(__dirname)}catch(t){e.exports=iy}})),oy=le((function(e){const{isUtf8:t}=ee.default;function s(e){const t=e.length;let s=0;for(;s<t;)if(128&e[s])if(192==(224&e[s])){if(s+1===t||128!=(192&e[s+1])||192==(254&e[s]))return!1;s+=2}else if(224==(240&e[s])){if(s+2>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||224===e[s]&&128==(224&e[s+1])||237===e[s]&&160==(224&e[s+1]))return!1;s+=3}else{if(240!=(248&e[s]))return!1;if(s+3>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||128!=(192&e[s+3])||240===e[s]&&128==(240&e[s+1])||244===e[s]&&e[s+1]>143||e[s]>244)return!1;s+=4}else s++;return!0}if(e.exports={isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:s,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},t)e.exports.isValidUTF8=function(e){return e.length<24?s(e):t(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const t=ay;e.exports.isValidUTF8=function(e){return e.length<32?s(e):t(e)}}catch(e){}}));oy.isValidStatusCode,oy.isValidUTF8,oy.tokenChars;const{Writable:cy}=$.default,{BINARY_TYPES:uy,EMPTY_BUFFER:ly,kStatusCode:py,kWebSocket:hy}=gm,{concat:dy,toArrayBuffer:fy,unmask:my}=$m,{isValidStatusCode:yy,isValidUTF8:gy}=oy,xy=Buffer[Symbol.species];var vy=class extends cy{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||uy[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[hy]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,s){if(8===this._opcode&&0==this._state)return s();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(s)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new xy(t.buffer,t.byteOffset+e,t.length-e),new xy(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const s=this._buffers[0],r=t.length-e;e>=s.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(s.buffer,s.byteOffset,e),r),this._buffers[0]=new xy(s.buffer,s.byteOffset+e,s.length-e)),e-=s.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const t=this.consume(2);if(48&t[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const s=!(64&~t[0]);if(!s||this._extensions[ty.extensionName]){if(this._fin=!(128&~t[0]),this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=s}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~t[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}else{e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),s=t.readUInt32BE(0);if(s>Math.pow(2,21)-1){e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}else this._payloadLength=s*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}else this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=ly;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&my(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,t){this._extensions[ty.extensionName].decompress(e,this._fin,((e,s)=>{if(e)return t(e);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void t(e)}this._fragments.push(s)}this.dataMessage(t),0===this._state&&this.startLoop(t)}))}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,s=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?dy(s,t):"arraybuffer"===this._binaryType?fy(dy(s,t)):s,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)})))}else{const r=dy(s,t);if(!this._skipUTF8Validation&&!gy(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)})))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate((()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)})));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,ly),this.end();else{const s=e.readUInt16BE(0);if(!yy(s)){const e=this.createError(RangeError,`invalid status code ${s}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new xy(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!gy(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",s,r),this.end()}this._state=0}}createError(e,t,s,r,n){this._loop=!1,this._errored=!0;const i=new e(s?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=n,i[py]=r,i}};const{randomFillSync:by}=M.default,{EMPTY_BUFFER:Ey}=gm,{isValidStatusCode:Cy}=oy,{mask:Ay,toBuffer:wy}=$m,Dy=Symbol("kByteLength"),Ty=Buffer.alloc(4),Sy=8192;let Py,ky=Sy;class _y{constructor(e,t,s){this._extensions=t||{},s&&(this._generateMask=s,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let s,r,n=!1,i=2,a=!1;t.mask&&(s=t.maskBuffer||Ty,t.generateMask?t.generateMask(s):(ky===Sy&&(void 0===Py&&(Py=Buffer.alloc(Sy)),by(Py,0,Sy),ky=0),s[0]=Py[ky++],s[1]=Py[ky++],s[2]=Py[ky++],s[3]=Py[ky++]),a=!(s[0]|s[1]|s[2]|s[3]),i=6),"string"==typeof e?r=t.mask&&!a||void 0===t[Dy]?(e=Buffer.from(e)).length:t[Dy]:(r=e.length,n=t.mask&&t.readOnly&&!a);let o=r;r>=65536?(i+=8,o=127):r>125&&(i+=2,o=126);const c=Buffer.allocUnsafe(n?r+i:i);return c[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(c[0]|=64),c[1]=o,126===o?c.writeUInt16BE(r,2):127===o&&(c[2]=c[3]=0,c.writeUIntBE(r,4,6)),t.mask?(c[1]|=128,c[i-4]=s[0],c[i-3]=s[1],c[i-2]=s[2],c[i-1]=s[3],a?[c,e]:n?(Ay(e,s,c,i,r),[c]):(Ay(e,s,e,0,r),[c,e])):[c,e]}close(e,t,s,r){let n;if(void 0===e)n=Ey;else{if("number"!=typeof e||!Cy(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const s=Buffer.byteLength(t);if(s>123)throw new RangeError("The message must not be greater than 123 bytes");n=Buffer.allocUnsafe(2+s),n.writeUInt16BE(e,0),"string"==typeof t?n.write(t,2):n.set(t,2)}else n=Buffer.allocUnsafe(2),n.writeUInt16BE(e,0)}const i={[Dy]:n.length,fin:!0,generateMask:this._generateMask,mask:s,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,n,!1,i,r]):this.sendFrame(_y.frame(n,i),r)}ping(e,t,s){let r,n;if("string"==typeof e?(r=Buffer.byteLength(e),n=!1):(r=(e=wy(e)).length,n=wy.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const i={[Dy]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,i,s]):this.sendFrame(_y.frame(e,i),s)}pong(e,t,s){let r,n;if("string"==typeof e?(r=Buffer.byteLength(e),n=!1):(r=(e=wy(e)).length,n=wy.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const i={[Dy]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,i,s]):this.sendFrame(_y.frame(e,i),s)}send(e,t,s){const r=this._extensions[ty.extensionName];let n,i,a=t.binary?2:1,o=t.compress;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=wy(e)).length,i=wy.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(o=n>=r._threshold),this._compress=o):(o=!1,a=0),t.fin&&(this._firstFragment=!0),r){const r={[Dy]:n,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:i,rsv1:o};this._deflating?this.enqueue([this.dispatch,e,this._compress,r,s]):this.dispatch(e,this._compress,r,s)}else this.sendFrame(_y.frame(e,{[Dy]:n,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:i,rsv1:!1}),s)}dispatch(e,t,s,r){if(!t)return void this.sendFrame(_y.frame(e,s),r);const n=this._extensions[ty.extensionName];this._bufferedBytes+=s[Dy],this._deflating=!0,n.compress(e,s.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");"function"==typeof r&&r(e);for(let t=0;t<this._queue.length;t++){const s=this._queue[t],r=s[s.length-1];"function"==typeof r&&r(e)}}else this._bufferedBytes-=s[Dy],this._deflating=!1,s.readOnly=!1,this.sendFrame(_y.frame(t,s),r),this.dequeue()}))}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][Dy],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][Dy],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}var Ny=_y;const{kForOnEventAttribute:Iy,kListener:Fy}=gm,Oy=Symbol("kCode"),Ly=Symbol("kData"),By=Symbol("kError"),jy=Symbol("kMessage"),My=Symbol("kReason"),Ry=Symbol("kTarget"),Uy=Symbol("kType"),qy=Symbol("kWasClean");class $y{constructor(e){this[Ry]=null,this[Uy]=e}get target(){return this[Ry]}get type(){return this[Uy]}}Object.defineProperty($y.prototype,"target",{enumerable:!0}),Object.defineProperty($y.prototype,"type",{enumerable:!0});class zy extends $y{constructor(e,t={}){super(e),this[Oy]=void 0===t.code?0:t.code,this[My]=void 0===t.reason?"":t.reason,this[qy]=void 0!==t.wasClean&&t.wasClean}get code(){return this[Oy]}get reason(){return this[My]}get wasClean(){return this[qy]}}Object.defineProperty(zy.prototype,"code",{enumerable:!0}),Object.defineProperty(zy.prototype,"reason",{enumerable:!0}),Object.defineProperty(zy.prototype,"wasClean",{enumerable:!0});class Hy extends $y{constructor(e,t={}){super(e),this[By]=void 0===t.error?null:t.error,this[jy]=void 0===t.message?"":t.message}get error(){return this[By]}get message(){return this[jy]}}Object.defineProperty(Hy.prototype,"error",{enumerable:!0}),Object.defineProperty(Hy.prototype,"message",{enumerable:!0});class Vy extends $y{constructor(e,t={}){super(e),this[Ly]=void 0===t.data?null:t.data}get data(){return this[Ly]}}Object.defineProperty(Vy.prototype,"data",{enumerable:!0});const Gy={addEventListener(e,t,s={}){for(const r of this.listeners(e))if(!s[Iy]&&r[Fy]===t&&!r[Iy])return;let r;if("message"===e)r=function(e,s){const r=new Vy("message",{data:s?e:e.toString()});r[Ry]=this,Jy(t,this,r)};else if("close"===e)r=function(e,s){const r=new zy("close",{code:e,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[Ry]=this,Jy(t,this,r)};else if("error"===e)r=function(e){const s=new Hy("error",{error:e,message:e.message});s[Ry]=this,Jy(t,this,s)};else{if("open"!==e)return;r=function(){const e=new $y("open");e[Ry]=this,Jy(t,this,e)}}r[Iy]=!!s[Iy],r[Fy]=t,s.once?this.once(e,r):this.on(e,r)},removeEventListener(e,t){for(const s of this.listeners(e))if(s[Fy]===t&&!s[Iy]){this.removeListener(e,s);break}}};var Wy={CloseEvent:zy,ErrorEvent:Hy,Event:$y,EventTarget:Gy,MessageEvent:Vy};function Jy(e,t,s){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,s):e.call(t,s)}const{tokenChars:Xy}=oy;function Ky(e,t,s){void 0===e[t]?e[t]=[s]:e[t].push(s)}var Yy={format:function(e){return Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>[t].concat(Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>!0===e?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")},parse:function(e){const t=Object.create(null);let s,r,n=Object.create(null),i=!1,a=!1,o=!1,c=-1,u=-1,l=-1,p=0;for(;p<e.length;p++)if(u=e.charCodeAt(p),void 0===s)if(-1===l&&1===Xy[u])-1===c&&(c=p);else if(0===p||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===l&&(l=p);const r=e.slice(c,l);44===u?(Ky(t,r,n),n=Object.create(null)):s=r,c=l=-1}}else-1===l&&-1!==c&&(l=p);else if(void 0===r)if(-1===l&&1===Xy[u])-1===c&&(c=p);else if(32===u||9===u)-1===l&&-1!==c&&(l=p);else if(59===u||44===u){if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===l&&(l=p),Ky(n,e.slice(c,l),!0),44===u&&(Ky(t,s,n),n=Object.create(null),s=void 0),c=l=-1}else{if(61!==u||-1===c||-1!==l)throw new SyntaxError(`Unexpected character at index ${p}`);r=e.slice(c,p),c=l=-1}else if(a){if(1!==Xy[u])throw new SyntaxError(`Unexpected character at index ${p}`);-1===c?c=p:i||(i=!0),a=!1}else if(o)if(1===Xy[u])-1===c&&(c=p);else if(34===u&&-1!==c)o=!1,l=p;else{if(92!==u)throw new SyntaxError(`Unexpected character at index ${p}`);a=!0}else if(34===u&&61===e.charCodeAt(p-1))o=!0;else if(-1===l&&1===Xy[u])-1===c&&(c=p);else if(-1===c||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===l&&(l=p);let a=e.slice(c,l);i&&(a=a.replace(/\\/g,""),i=!1),Ky(n,r,a),44===u&&(Ky(t,s,n),n=Object.create(null),s=void 0),r=void 0,c=l=-1}}else-1===l&&(l=p);if(-1===c||o||32===u||9===u)throw new SyntaxError("Unexpected end of input");-1===l&&(l=p);const h=e.slice(c,l);return void 0===s?Ky(t,h,n):(void 0===r?Ky(n,h,!0):Ky(n,r,i?h.replace(/\\/g,""):h),Ky(t,s,n)),t}};const{randomBytes:Zy,createHash:Qy}=M.default,{URL:eg}=q.default,{BINARY_TYPES:tg,EMPTY_BUFFER:sg,GUID:rg,kForOnEventAttribute:ng,kListener:ig,kStatusCode:ag,kWebSocket:og,NOOP:cg}=gm,{EventTarget:{addEventListener:ug,removeEventListener:lg}}=Wy,{format:pg,parse:hg}=Yy,{toBuffer:dg}=$m,fg=Symbol("kAborted"),mg=[8,13],yg=["CONNECTING","OPEN","CLOSING","CLOSED"],gg=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class xg extends Z.default{constructor(e,t,s){super(),this._binaryType=tg[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=sg,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=xg.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(s=t,t=[]):t=[t]),bg(this,e,t,s)):(this._autoPong=s.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){tg.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,s){const r=new vy({allowSynchronousEvents:s.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation});this._sender=new Ny(e,this._extensions,s.generateMask),this._receiver=r,this._socket=e,r[og]=this,e[og]=this,r.on("conclude",Tg),r.on("drain",Sg),r.on("error",Pg),r.on("message",_g),r.on("ping",Ng),r.on("pong",Ig),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Og),e.on("data",Lg),e.on("end",Bg),e.on("error",jg),this._readyState=xg.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=xg.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[ty.extensionName]&&this._extensions[ty.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=xg.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==xg.CLOSED)if(this.readyState!==xg.CONNECTING)this.readyState!==xg.CLOSING?(this._readyState=xg.CLOSING,this._sender.close(e,t,!this._isServer,(e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())})),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();else{const e="WebSocket was closed before the connection was established";wg(this,this._req,e)}}pause(){this.readyState!==xg.CONNECTING&&this.readyState!==xg.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,s){if(this.readyState===xg.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===xg.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||sg,t,s)):Dg(this,e,s)}pong(e,t,s){if(this.readyState===xg.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===xg.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||sg,t,s)):Dg(this,e,s)}resume(){this.readyState!==xg.CONNECTING&&this.readyState!==xg.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,s){if(this.readyState===xg.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(s=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==xg.OPEN)return void Dg(this,e,s);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[ty.extensionName]||(r.compress=!1),this._sender.send(e||sg,r,s)}terminate(){if(this.readyState!==xg.CLOSED)if(this.readyState!==xg.CONNECTING)this._socket&&(this._readyState=xg.CLOSING,this._socket.destroy());else{const e="WebSocket was closed before the connection was established";wg(this,this._req,e)}}}Object.defineProperty(xg,"CONNECTING",{enumerable:!0,value:yg.indexOf("CONNECTING")}),Object.defineProperty(xg.prototype,"CONNECTING",{enumerable:!0,value:yg.indexOf("CONNECTING")}),Object.defineProperty(xg,"OPEN",{enumerable:!0,value:yg.indexOf("OPEN")}),Object.defineProperty(xg.prototype,"OPEN",{enumerable:!0,value:yg.indexOf("OPEN")}),Object.defineProperty(xg,"CLOSING",{enumerable:!0,value:yg.indexOf("CLOSING")}),Object.defineProperty(xg.prototype,"CLOSING",{enumerable:!0,value:yg.indexOf("CLOSING")}),Object.defineProperty(xg,"CLOSED",{enumerable:!0,value:yg.indexOf("CLOSED")}),Object.defineProperty(xg.prototype,"CLOSED",{enumerable:!0,value:yg.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(xg.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(xg.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[ng])return t[ig];return null},set(t){for(const t of this.listeners(e))if(t[ng]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[ng]:!0})}})})),xg.prototype.addEventListener=ug,xg.prototype.removeEventListener=lg;var vg=xg;function bg(e,t,s,r){const n={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:mg[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=n.autoPong,!mg.includes(n.protocolVersion))throw new RangeError(`Unsupported protocol version: ${n.protocolVersion} (supported versions: ${mg.join(", ")})`);let i;if(t instanceof eg)i=t;else try{i=new eg(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===i.protocol?i.protocol="ws:":"https:"===i.protocol&&(i.protocol="wss:"),e._url=i.href;const a="wss:"===i.protocol,o="ws+unix:"===i.protocol;let c;if("ws:"===i.protocol||a||o?o&&!i.pathname?c="The URL's pathname is empty":i.hash&&(c="The URL contains a fragment identifier"):c='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"',c){const t=new SyntaxError(c);if(0===e._redirects)throw t;return void Eg(e,t)}const u=a?443:80,l=Zy(16).toString("base64"),p=a?U.default.request:R.default.request,h=new Set;let d,f;if(n.createConnection=n.createConnection||(a?Ag:Cg),n.defaultPort=n.defaultPort||u,n.port=i.port||u,n.host=i.hostname.startsWith("[")?i.hostname.slice(1,-1):i.hostname,n.headers={...n.headers,"Sec-WebSocket-Version":n.protocolVersion,"Sec-WebSocket-Key":l,Connection:"Upgrade",Upgrade:"websocket"},n.path=i.pathname+i.search,n.timeout=n.handshakeTimeout,n.perMessageDeflate&&(d=new ty(!0!==n.perMessageDeflate?n.perMessageDeflate:{},!1,n.maxPayload),n.headers["Sec-WebSocket-Extensions"]=pg({[ty.extensionName]:d.offer()})),s.length){for(const e of s){if("string"!=typeof e||!gg.test(e)||h.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");h.add(e)}n.headers["Sec-WebSocket-Protocol"]=s.join(",")}if(n.origin&&(n.protocolVersion<13?n.headers["Sec-WebSocket-Origin"]=n.origin:n.headers.Origin=n.origin),(i.username||i.password)&&(n.auth=`${i.username}:${i.password}`),o){const e=n.path.split(":");n.socketPath=e[0],n.path=e[1]}if(n.followRedirects){if(0===e._redirects){e._originalIpc=o,e._originalSecure=a,e._originalHostOrSocketPath=o?n.socketPath:i.host;const t=r&&r.headers;if(r={...r,headers:{}},t)for(const[e,s]of Object.entries(t))r.headers[e.toLowerCase()]=s}else if(0===e.listenerCount("redirect")){const t=o?!!e._originalIpc&&n.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&i.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!a)&&(delete n.headers.authorization,delete n.headers.cookie,t||delete n.headers.host,n.auth=void 0)}n.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(n.auth).toString("base64")),f=e._req=p(n),e._redirects&&e.emit("redirect",e.url,f)}else f=e._req=p(n);n.timeout&&f.on("timeout",(()=>{wg(e,f,"Opening handshake has timed out")})),f.on("error",(t=>{null===f||f[fg]||(f=e._req=null,Eg(e,t))})),f.on("response",(i=>{const a=i.headers.location,o=i.statusCode;if(a&&n.followRedirects&&o>=300&&o<400){if(++e._redirects>n.maxRedirects)return void wg(e,f,"Maximum redirects exceeded");let i;f.abort();try{i=new eg(a,t)}catch(t){const s=new SyntaxError(`Invalid URL: ${a}`);return void Eg(e,s)}bg(e,i,s,r)}else e.emit("unexpected-response",f,i)||wg(e,f,`Unexpected server response: ${i.statusCode}`)})),f.on("upgrade",((t,s,r)=>{if(e.emit("upgrade",t),e.readyState!==xg.CONNECTING)return;f=e._req=null;const i=t.headers.upgrade;if(void 0===i||"websocket"!==i.toLowerCase())return void wg(e,s,"Invalid Upgrade header");const a=Qy("sha1").update(l+rg).digest("base64");if(t.headers["sec-websocket-accept"]!==a)return void wg(e,s,"Invalid Sec-WebSocket-Accept header");const o=t.headers["sec-websocket-protocol"];let c;if(void 0!==o?h.size?h.has(o)||(c="Server sent an invalid subprotocol"):c="Server sent a subprotocol but none was requested":h.size&&(c="Server sent no subprotocol"),c)return void wg(e,s,c);o&&(e._protocol=o);const u=t.headers["sec-websocket-extensions"];if(void 0!==u){if(!d){return void wg(e,s,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=hg(u)}catch(t){return void wg(e,s,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t);if(1!==r.length||r[0]!==ty.extensionName){return void wg(e,s,"Server indicated an extension that was not requested")}try{d.accept(t[ty.extensionName])}catch(t){return void wg(e,s,"Invalid Sec-WebSocket-Extensions header")}e._extensions[ty.extensionName]=d}e.setSocket(s,r,{allowSynchronousEvents:n.allowSynchronousEvents,generateMask:n.generateMask,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation})})),n.finishRequest?n.finishRequest(f,e):f.end()}function Eg(e,t){e._readyState=xg.CLOSING,e.emit("error",t),e.emitClose()}function Cg(e){return e.path=e.socketPath,J.default.connect(e)}function Ag(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=J.default.isIP(e.host)?"":e.host),Q.default.connect(e)}function wg(e,t,s){e._readyState=xg.CLOSING;const r=new Error(s);Error.captureStackTrace(r,wg),t.setHeader?(t[fg]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(Eg,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function Dg(e,t,s){if(t){const s=dg(t).length;e._socket?e._sender._bufferedBytes+=s:e._bufferedAmount+=s}if(s){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${yg[e.readyState]})`);process.nextTick(s,t)}}function Tg(e,t){const s=this[og];s._closeFrameReceived=!0,s._closeMessage=t,s._closeCode=e,void 0!==s._socket[og]&&(s._socket.removeListener("data",Lg),process.nextTick(Fg,s._socket),1005===e?s.close():s.close(e,t))}function Sg(){const e=this[og];e.isPaused||e._socket.resume()}function Pg(e){const t=this[og];void 0!==t._socket[og]&&(t._socket.removeListener("data",Lg),process.nextTick(Fg,t._socket),t.close(e[ag])),t.emit("error",e)}function kg(){this[og].emitClose()}function _g(e,t){this[og].emit("message",e,t)}function Ng(e){const t=this[og];t._autoPong&&t.pong(e,!this._isServer,cg),t.emit("ping",e)}function Ig(e){this[og].emit("pong",e)}function Fg(e){e.resume()}function Og(){const e=this[og];let t;this.removeListener("close",Og),this.removeListener("data",Lg),this.removeListener("end",Bg),e._readyState=xg.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[og]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",kg),e._receiver.on("finish",kg))}function Lg(e){this[og]._receiver.write(e)||this.pause()}function Bg(){const e=this[og];e._readyState=xg.CLOSING,e._receiver.end(),this.end()}function jg(){const e=this[og];this.removeListener("error",jg),this.on("error",cg),e&&(e._readyState=xg.CLOSING,this.destroy())}const{Duplex:Mg}=$.default;function Rg(e){e.emit("close")}function Ug(){!this.destroyed&&this._writableState.finished&&this.destroy()}function qg(e){this.removeListener("error",qg),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}var $g=function(e,t){let s=!0;const r=new Mg({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",(function(t,s){const n=!s&&r._readableState.objectMode?t.toString():t;r.push(n)||e.pause()})),e.once("error",(function(e){r.destroyed||(s=!1,r.destroy(e))})),e.once("close",(function(){r.destroyed||r.push(null)})),r._destroy=function(t,n){if(e.readyState===e.CLOSED)return n(t),void process.nextTick(Rg,r);let i=!1;e.once("error",(function(e){i=!0,n(e)})),e.once("close",(function(){i||n(t),process.nextTick(Rg,r)})),s&&e.terminate()},r._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),r._readableState.endEmitted&&r.destroy()):(e._socket.once("finish",(function(){t()})),e.close())):e.once("open",(function(){r._final(t)}))},r._read=function(){e.isPaused&&e.resume()},r._write=function(t,s,n){e.readyState!==e.CONNECTING?e.send(t,n):e.once("open",(function(){r._write(t,s,n)}))},r.on("end",Ug),r.on("error",qg),r};const{tokenChars:zg}=oy;var Hg={parse:function(e){const t=new Set;let s=-1,r=-1,n=0;for(;n<e.length;n++){const i=e.charCodeAt(n);if(-1===r&&1===zg[i])-1===s&&(s=n);else if(0===n||32!==i&&9!==i){if(44!==i)throw new SyntaxError(`Unexpected character at index ${n}`);{if(-1===s)throw new SyntaxError(`Unexpected character at index ${n}`);-1===r&&(r=n);const i=e.slice(s,r);if(t.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);t.add(i),s=r=-1}}else-1===r&&-1!==s&&(r=n)}if(-1===s||-1!==r)throw new SyntaxError("Unexpected end of input");const i=e.slice(s,n);if(t.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return t.add(i),t}};const{createHash:Vg}=M.default,{GUID:Gg,kWebSocket:Wg}=gm,Jg=/^[+/0-9A-Za-z]{22}==$/;class Xg extends Z.default{constructor(e,t){if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:vg,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=R.default.createServer(((e,t)=>{const s=R.default.STATUS_CODES[426];t.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),t.end(s)})),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const s of Object.keys(t))e.on(s,t[s]);return function(){for(const s of Object.keys(t))e.removeListener(s,t[s])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,s,r)=>{this.handleUpgrade(t,s,r,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",(()=>{e(new Error("The server is not running"))})),void process.nextTick(Yg,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(Yg,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close((()=>{Yg(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,s,r){t.on("error",Zg);const n=e.headers["sec-websocket-key"],i=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void ex(this,e,t,405,"Invalid HTTP method")}if(void 0===i||"websocket"!==i.toLowerCase()){return void ex(this,e,t,400,"Invalid Upgrade header")}if(void 0===n||!Jg.test(n)){return void ex(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(8!==a&&13!==a){return void ex(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header")}if(!this.shouldHandle(e))return void Qg(t,400);const o=e.headers["sec-websocket-protocol"];let c=new Set;if(void 0!==o)try{c=Hg.parse(o)}catch(s){return void ex(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const u=e.headers["sec-websocket-extensions"],l={};if(this.options.perMessageDeflate&&void 0!==u){const s=new ty(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const e=Yy.parse(u);e[ty.extensionName]&&(s.accept(e[ty.extensionName]),l[ty.extensionName]=s)}catch(s){return void ex(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const i={origin:e.headers[""+(8===a?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(i,((i,a,o,u)=>{if(!i)return Qg(t,a||401,o,u);this.completeUpgrade(l,n,c,e,t,s,r)}));if(!this.options.verifyClient(i))return Qg(t,401)}this.completeUpgrade(l,n,c,e,t,s,r)}completeUpgrade(e,t,s,r,n,i,a){if(!n.readable||!n.writable)return n.destroy();if(n[Wg])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return Qg(n,503);const o=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Vg("sha1").update(t+Gg).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(s.size){const e=this.options.handleProtocols?this.options.handleProtocols(s,r):s.values().next().value;e&&(o.push(`Sec-WebSocket-Protocol: ${e}`),c._protocol=e)}if(e[ty.extensionName]){const t=e[ty.extensionName].params,s=Yy.format({[ty.extensionName]:[t]});o.push(`Sec-WebSocket-Extensions: ${s}`),c._extensions=e}this.emit("headers",o,r),n.write(o.concat("\r\n").join("\r\n")),n.removeListener("error",Zg),c.setSocket(n,i,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",(()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Yg,this)}))),a(c,r)}}var Kg=Xg;function Yg(e){e._state=2,e.emit("close")}function Zg(){this.destroy()}function Qg(e,t,s,r){s=s||R.default.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(s),...r},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${R.default.STATUS_CODES[t]}\r\n`+Object.keys(r).map((e=>`${e}: ${r[e]}`)).join("\r\n")+"\r\n\r\n"+s)}function ex(e,t,s,r,n){if(e.listenerCount("wsClientError")){const r=new Error(n);Error.captureStackTrace(r,ex),e.emit("wsClientError",r,s,t)}else Qg(s,r,n)}vg.createWebSocketStream=$g,vg.Server=Kg,vg.Receiver=vy,vg.Sender=Ny,vg.WebSocket=vg,vg.WebSocketServer=vg.Server;const tx=vg,sx=process.nextTick,rx="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const nx={websocket:class extends Qf{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=rx?{}:Jf(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=new tx(e,t,s)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;Bf(s,this.supportsBinary,(e=>{const t={};if(s.options&&(t.compress=s.options.compress),this.opts.perMessageDeflate){("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{this.ws.send(e,t)}catch(e){}r&&sx((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=om()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!tx}},webtransport:class extends Qf{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){zf||(zf=new TextDecoder);const s=[];let r=0,n=-1,i=!1;return new TransformStream({transform(a,o){for(s.push(a);;){if(0===r){if(Hf(s)<1)break;const e=Vf(s,1);i=!(128&~e[0]),n=127&e[0],r=n<126?3:126===n?1:2}else if(1===r){if(Hf(s)<2)break;const e=Vf(s,2);n=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(Hf(s)<8)break;const e=Vf(s,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){o.enqueue(Lf);break}n=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(Hf(s)<n)break;const e=Vf(s,n);o.enqueue(Rf(i?e:zf.decode(e),t)),r=0}if(0===n||n>e){o.enqueue(Lf);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=$f();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const n=()=>{s.read().then((({done:e,value:t})=>{e||(this.onPacket(t),n())})).catch((e=>{}))};n();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;this.writer.write(s).then((()=>{r&&sx((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends Qf{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let s=location.port;s||(s=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||s!==e.port}const t=e&&e.forceBase64;this.supportsBinary=fm&&!t,this.opts.withCredentials&&(this.cookieJar=new hm)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const s=e.split(qf),r=[];for(let e=0;e<s.length;e++){const n=Rf(s[e],t);if(r.push(n),"error"===n.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const s=e.length,r=new Array(s);let n=0;e.forEach(((e,i)=>{Bf(e,!1,(e=>{r[i]=e,++n===s&&t(r.join(qf))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=om()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new mm(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},ix=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ax=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ox(e){if(e.length>2e3)throw"URI too long";const t=e,s=e.indexOf("["),r=e.indexOf("]");-1!=s&&-1!=r&&(e=e.substring(0,s)+e.substring(s,r).replace(/:/g,";")+e.substring(r,e.length));let n=ix.exec(e||""),i={},a=14;for(;a--;)i[ax[a]]=n[a]||"";return-1!=s&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const s=/\/{2,9}/g,r=t.replace(s,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const s={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(s[t]=r)})),s}(0,i.query),i}class cx extends Gf{constructor(e,t={}){super(),this.binaryType="nodebuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=ox(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=ox(t.host).host),Yf(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},s=e.split("&");for(let e=0,r=s.length;e<r;e++){let r=s[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new nx[e](s)}open(){let e;if(this.opts.rememberUpgrade&&cx.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),s=!1;cx.priorWebsocketSuccess=!1;const r=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!s)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;cx.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{s||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function n(){s||(s=!0,u(),t.close(),t=null)}const i=e=>{const s=new Error("probe error: "+e);s.transport=t.name,n(),this.emitReserved("upgradeError",s)};function a(){i("transport closed")}function o(){i("socket closed")}function c(e){t&&e.name!==t.name&&n()}const u=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",o),this.off("upgrading",c)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",o),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{s||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",cx.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,s=0;for(let r=0,n=e.length;r<n;r++)t=e.charCodeAt(r),t<128?s+=1:t<2048?s+=2:t<55296||t>=57344?s+=3:(r++,s+=4);return s}(t):Math.ceil(1.33*(t.byteLength||t.size))),s>0&&e>this.maxPayload)return this.writeBuffer.slice(0,s);e+=2}var t;return this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof s&&(r=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;const n={type:e,data:t,options:s};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():e()})):this.upgrading?s():e()),this}onError(e){cx.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const r=e.length;for(;s<r;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}cx.protocol=4;const ux="function"==typeof ArrayBuffer,lx=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,px=Object.prototype.toString,hx="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===px.call(Blob),dx="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===px.call(File);function fx(e){return ux&&(e instanceof ArrayBuffer||lx(e))||hx&&e instanceof Blob||dx&&e instanceof File}function mx(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,s=e.length;t<s;t++)if(mx(e[t]))return!0;return!1}if(fx(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return mx(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&mx(e[t]))return!0;return!1}function yx(e){const t=[],s=e.data,r=e;return r.data=gx(s,t),r.attachments=t.length,{packet:r,buffers:t}}function gx(e,t){if(!e)return e;if(fx(e)){const s={_placeholder:!0,num:t.length};return t.push(e),s}if(Array.isArray(e)){const s=new Array(e.length);for(let r=0;r<e.length;r++)s[r]=gx(e[r],t);return s}if("object"==typeof e&&!(e instanceof Date)){const s={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(s[r]=gx(e[r],t));return s}return e}function xx(e,t){return e.data=vx(e.data,t),delete e.attachments,e}function vx(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let s=0;s<e.length;s++)e[s]=vx(e[s],t);else if("object"==typeof e)for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=vx(e[s],t));return e}const bx=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ex;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(Ex||(Ex={}));function Cx(e){return"[object Object]"===Object.prototype.toString.call(e)}class Ax extends Gf{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===Ex.BINARY_EVENT;s||t.type===Ex.BINARY_ACK?(t.type=s?Ex.EVENT:Ex.ACK,this.reconstructor=new wx(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!fx(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(void 0===Ex[s.type])throw new Error("unknown packet type "+s.type);if(s.type===Ex.BINARY_EVENT||s.type===Ex.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const n=e.substring(r,t);if(n!=Number(n)||"-"!==e.charAt(t))throw new Error("Illegal attachments");s.attachments=Number(n)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}s.nsp=e.substring(r,t)}else s.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const s=e.charAt(t);if(null==s||Number(s)!=s){--t;break}if(t===e.length)break}s.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!Ax.isPayloadValid(s.type,r))throw new Error("invalid payload");s.data=r}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case Ex.CONNECT:return Cx(t);case Ex.DISCONNECT:return void 0===t;case Ex.CONNECT_ERROR:return"string"==typeof t||Cx(t);case Ex.EVENT:case Ex.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===bx.indexOf(t[0]));case Ex.ACK:case Ex.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class wx{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=xx(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var Dx=Object.freeze({__proto__:null,protocol:5,get PacketType(){return Ex},Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==Ex.EVENT&&e.type!==Ex.ACK||!mx(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Ex.EVENT?Ex.BINARY_EVENT:Ex.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Ex.BINARY_EVENT&&e.type!==Ex.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=yx(e),s=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(s),r}},Decoder:Ax});function Tx(e,t,s){return e.on(t,s),function(){e.off(t,s)}}const Sx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Px extends Gf{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Tx(e,"open",this.onopen.bind(this)),Tx(e,"packet",this.onpacket.bind(this)),Tx(e,"error",this.onerror.bind(this)),Tx(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(Sx.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const s={type:Ex.EVENT,data:t,options:{}};if(s.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),s.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var s;const r=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r),i=(...e)=>{this.io.clearTimeoutFn(n),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((s,r)=>{const n=(e,t)=>e?r(e):s(t);n.withError=!0,t.push(n),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(s!==this._queue[0])return;return null!==e?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ex.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ex.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ex.EVENT:case Ex.BINARY_EVENT:this.onevent(e);break;case Ex.ACK:case Ex.BINARY_ACK:this.onack(e);break;case Ex.DISCONNECT:this.ondisconnect();break;case Ex.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:Ex.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ex.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function kx(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}kx.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),s=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+s:e-s}return 0|Math.min(e,this.max)},kx.prototype.reset=function(){this.attempts=0},kx.prototype.setMin=function(e){this.ms=e},kx.prototype.setMax=function(e){this.max=e},kx.prototype.setJitter=function(e){this.jitter=e};class _x extends Gf{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,Yf(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=t.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new kx({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||Dx;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new cx(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=Tx(t,"open",(function(){s.onopen(),e&&e()})),n=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=Tx(t,"error",n);if(!1!==this._timeout){const e=this._timeout,s=this.setTimeoutFn((()=>{r(),n(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Tx(e,"ping",this.onping.bind(this)),Tx(e,"data",this.ondata.bind(this)),Tx(e,"error",this.onerror.bind(this)),Tx(e,"close",this.onclose.bind(this)),Tx(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){sx((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Px(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Nx={};function Ix(e,t){"object"==typeof e&&(t=e,e=void 0);const s=function(e,t="",s){let r=e;s=s||"undefined"!=typeof location&&location,null==e&&(e=s.protocol+"//"+s.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?s.protocol+e:s.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==s?s.protocol+"//"+e:"https://"+e),r=ox(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+t,r.href=r.protocol+"://"+n+(s&&s.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=s.source,n=s.id,i=s.path,a=Nx[n]&&i in Nx[n].nsps;let o;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?o=new _x(r,t):(Nx[n]||(Nx[n]=new _x(r,t)),o=Nx[n]),s.query&&!t.query&&(t.query=s.queryKey),o.socket(s.path,t)}Object.assign(Ix,{Manager:_x,Socket:Px,io:Ix,connect:Ix});var Fx="wss://editor.appthen.com",Ox=process.env.IsDev,Lx=function(){function e(e){this.connectState="connecting",this.connectStateText="连接中...",this.roomId="",this.account="",this.config=e}return e.prototype.joinRoom=function(e){var t,s=e.roomId,r=e.account;this.roomId=s,this.account=r,null===(t=this.socket)||void 0===t||t.emit("join",{room:s,account:r})},e.prototype.leaveRoom=function(){var e;null===(e=this.socket)||void 0===e||e.emit("leave",{room:this.roomId,account:this.account})},e.prototype.sendMessage=function(e){var t;null===(t=this.socket)||void 0===t||t.emit("message",{room:this.roomId,message:e})},e.prototype.connect=function(){var e=this,t=this.config,s=t.onconnect,r=t.onreconnect,n=t.onmsg;console.log("connect socket.io",Fx);var i=Ix(Fx,{transports:["websocket"]});this.onConnectChange("connecting"),i.on("opend",(function(t){e.onConnectChange("connect")})),i.on("message",(function(e){Ox&&console.log("socket.io message event",e),null==n||n(e)})),i.on("connect",(function(){Ox&&console.log("socket.io connect event"),s()})),i.on("disconnect",(function(){Ox&&console.log("socket.io disconnect event"),e.onConnectChange("disconnect")})),i.on("connect_error",(function(t){Ox&&console.log("socket.io connect_error event",t),e.onConnectChange("connect_error")})),i.on("connect_timeout",(function(){Ox&&console.log("socket.io connect_timeout event"),e.onConnectChange("connect_timeout")})),i.on("reconnect",(function(){Ox&&console.log("socket.io reconnect event"),null==r||r(),e.onConnectChange("reconnect")})),i.on("reconnect_attempt",(function(){Ox&&console.log("socket.io reconnect_attempt event"),e.onConnectChange("reconnect_attempt")})),i.on("reconnecting",(function(){Ox&&console.log("socket.io reconnecting event"),e.onConnectChange("reconnecting")})),i.on("reconnect_error",(function(){Ox&&console.log("socket.io reconnect_error event"),e.onConnectChange("reconnect_error")})),i.on("reconnect_failed",(function(){Ox&&console.log("socket.io reconnect_failed event"),e.onConnectChange("reconnect_failed")})),this.socket=i},e.prototype.onConnectChange=function(e){var t=this;switch(this.connectState=e,e){case"connecting":case"reconnecting":this.connectStateText="连接中...";break;case"connect":case"reconnect":this.connectStateText="连接成功",setTimeout((function(){t.connectStateText=""}),1500);break;case"disconnect":this.connectStateText="未连接";break;case"connect_error":case"reconnect_error":case"reconnect_failed":this.connectStateText="请检查网络";break;case"connect_timeout":this.connectStateText="连接超时"}},e}();exports.create=function(e){return ne(this,void 0,void 0,(function(){var t,s,r,n,i,a,o,c,u;return ie(this,(function(l){switch(l.label){case 0:s=(t=e||{}).template,r=void 0===s?"vite":s,n=t.folder,i=void 0===n?"appthen-assets-starter":n,console.log("template: ",r),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,ja("/material/templates",{},{method:"GET"})];case 2:return a=l.sent(),o=a.data,c=o.find((function(e){return e.name===r})),c?[4,If(c,c.url,i)]:[3,4];case 3:return l.sent(),[3,5];case 4:console.log("[ERROR] ","template not found"),l.label=5;case 5:return[3,7];case 6:throw u=l.sent(),console.log("[e] ",u),u;case 7:return[2,1]}}))}))},exports.fuck=function(){},exports.getPureValue=Ud,exports.initSolution=function(e,t){return ne(this,void 0,void 0,(function(){var s,r,n,i,a,o,c,u,l,p,h,d,f;return ie(this,(function(m){switch(m.label){case 0:return m.trys.push([0,11,,12]),s=process.cwd(),r=e[0]||"hello",n=_.resolve(s,r),"."===r&&(r=_.basename(s),n=s),i=function(e){return e.replace(/hello-world/g,Mh(r)).replace(/HelloWorld/g,Rh(r)).replace(/Hello World/g,jh(r))},[4,Hd(n)];case 1:m.sent(),a=[{file:".editorconfig",content:"root = true\n\n[*]\nindent_style = space\nindent_size = 2\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\nquote_type = single\n\n[*.md]\ntrim_trailing_whitespace = false\n"},{file:".eslintignore",content:"# 忽略目录\nnode_modules/\nbuild/\ndist/\ntest-cases/\ntest/\ntests/\noutput/\nes/\nlib/\ncoverage/\n\n# 忽略文件\n**/*.min.js\n**/*-min.js\n**/*.bundle.js\n"},{file:".eslintrc.js",content:"module.exports = {\n extends: 'eslint-config-ali/typescript/react',\n rules: {\n 'max-len': ['error', { code: 200 }],\n 'comma-dangle': 0,\n },\n};\n"},{file:".gitignore",content:"# project custom\nbuild\nes\nlib\ndist\noutput\npackage-lock.json\ndeploy-space/packages\ndeploy-space/.env\ngenerated\n\n# IDE\n.vscode\n.idea\n\n# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (https://nodejs.org/api/addons.html)\nbuild/Release\nlib\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# TypeScript v1 declaration files\ntypings/\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variables file\n.env\n.env.test\n\n# parcel-bundler cache (https://parceljs.org/)\n.cache\n\n# next.js build output\n.next\n\n# nuxt.js build output\n.nuxt\n\n# vuepress build output\n.vuepress/dist\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/\n\n# DynamoDB Local files\n.dynamodb/\n\n# mac config files\n.DS_Store\n\n# codealike\ncodealike.json\n.node\n"},{file:".prettierignore",content:"/test-cases/"},{file:".prettierrc",content:'{\n "tabWidth": 2,\n "singleQuote": true,\n "trailingComma": "es5"\n}\n'},{file:"CHANGELOG.md",content:""},{file:"CONTRIBUTING.md",content:"# 欢迎共建\n\n# 注意\n\n- 注意解决 eslint 问题\n- 注意代码格式化 -- 建议安装 prettier 插件\n- 发布前注意要跑通 demo 和所有的单测\n\n## 本地调试运行 Demo\n\n```sh\n> npm run demo\n```\n\n## 本地跑单测\n\n```sh\n> npm test\n```\n"},{file:"README.md",content:"# 低代码出码自定义方案之 Hello World\n\n## 直接执行\n\n```sh\n> npx ali-lowcode-solution-hello-world demo-schema.json\n```\n\n## 本地调试运行 Demo\n\n```sh\n> npm run demo\n```\n"},{file:"demo-schema.json",content:'{\n "version": "1.0.0",\n "componentsMap": [\n {\n "componentName": "Button",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Button"\n },\n {\n "componentName": "Button.Group",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Button",\n "subName": "Group"\n },\n {\n "componentName": "Input",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Input"\n },\n {\n "componentName": "Form",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Form"\n },\n {\n "componentName": "Form.Item",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Form",\n "subName": "Item"\n },\n {\n "componentName": "NumberPicker",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "NumberPicker"\n },\n {\n "componentName": "Select",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Select"\n }\n ],\n "componentsTree": [\n {\n "componentName": "Page",\n "id": "node$1",\n "meta": {\n "title": "测试",\n "router": "/"\n },\n "props": {\n "ref": "outterView",\n "autoLoading": true\n },\n "fileName": "test",\n "state": {\n "text": "outter"\n },\n "lifeCycles": {\n "componentDidMount": {\n "type": "IPublicTypeJSExpression",\n "value": "function() { console.log(\'componentDidMount\'); }"\n }\n },\n "methodsModule": {\n "type": "JSModule",\n "source": "export function helloWorld() {\\n console.log(\'Hello world!\');\\n}\\n"\n },\n "dataSource": {\n "list": [\n {\n "id": "urlParams",\n "type": "urlParams"\n },\n\n {\n "id": "user",\n "type": "fetch",\n "options": {\n "method": "GET",\n "uri": "https://shs.xxx.com/mock/1458/demo/user",\n "isSync": true\n },\n "dataHandler": {\n "type": "IPublicTypeJSExpression",\n "value": "function (response) {\\nif (!response.data.success){\\n throw new Error(response.data.message);\\n }\\n return response.data.data;\\n}"\n }\n },\n\n {\n "id": "orders",\n "type": "fetch",\n "options": {\n "method": "GET",\n "uri": "https://shs.xxx.com/mock/1458/demo/orders",\n "isSync": true\n },\n "dataHandler": {\n "type": "IPublicTypeJSExpression",\n "value": "function (response) {\\nif (!response.data.success){\\n throw new Error(response.data.message);\\n }\\n return response.data.data.result;\\n}"\n }\n }\n ],\n "dataHandler": {\n "type": "IPublicTypeJSExpression",\n "value": "function (dataMap) {\\n console.info(\\"All datasources loaded:\\", dataMap);\\n}"\n }\n },\n "children": [\n {\n "componentName": "Form",\n "id": "node$2",\n "props": {\n "labelCol": {\n "type": "IPublicTypeJSExpression",\n "value": "this.state.colNum"\n },\n "style": {},\n "ref": "testForm"\n },\n "children": [\n {\n "componentName": "Form.Item",\n "id": "node$3",\n "props": {\n "label": "姓名:",\n "name": "name",\n "initValue": "李雷"\n },\n "children": [\n {\n "componentName": "Input",\n "id": "node$4",\n "props": {\n "placeholder": "请输入",\n "size": "medium",\n "style": {\n "width": 320\n }\n }\n }\n ]\n },\n {\n "componentName": "Form.Item",\n "id": "node$5",\n "props": {\n "label": "年龄:",\n "name": "age",\n "initValue": "22"\n },\n "children": [\n {\n "componentName": "NumberPicker",\n "id": "node$6",\n "props": {\n "size": "medium",\n "type": "normal"\n }\n }\n ]\n },\n {\n "componentName": "Form.Item",\n "id": "node$7",\n "props": {\n "label": "职业:",\n "name": "profession"\n },\n "children": [\n {\n "componentName": "Select",\n "id": "node$8",\n "props": {\n "dataSource": [\n {\n "label": "教师",\n "value": "t"\n },\n {\n "label": "医生",\n "value": "d"\n },\n {\n "label": "歌手",\n "value": "s"\n }\n ]\n }\n }\n ]\n },\n {\n "componentName": "Div",\n "id": "node$9",\n "props": {\n "style": {\n "textAlign": "center"\n }\n },\n "children": [\n {\n "componentName": "Button.Group",\n "id": "node$a",\n "props": {},\n "children": [\n {\n "componentName": "Button",\n "id": "node$b",\n "condition": {\n "type": "IPublicTypeJSExpression",\n "value": "this.index >= 1"\n },\n "loop": ["a", "b", "c"],\n "props": {\n "type": "primary",\n "style": {\n "margin": "0 5px 0 5px"\n }\n },\n "children": [\n {\n "type": "IPublicTypeJSExpression",\n "value": "this.item"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ],\n "constants": {\n "ENV": "prod",\n "DOMAIN": "xxx.xxx.com"\n },\n "css": "body {font-size: 12px;} .table { width: 100px;}",\n "config": {\n "sdkVersion": "1.0.3",\n "historyMode": "hash",\n "targetRootID": "J_Container",\n "layout": {\n "componentName": "BasicLayout",\n "props": {\n "logo": "...",\n "name": "测试网站"\n }\n },\n "theme": {\n "package": "@alife/theme-fusion",\n "version": "^0.1.0",\n "primary": "#ff9966"\n }\n },\n "meta": {\n "name": "demo应用",\n "git_group": "appGroup",\n "project_name": "app_demo",\n "description": "这是一个测试应用",\n "spma": "spa23d",\n "creator": "月飞"\n }\n}\n'},{file:"jest.config.js",content:"module.exports = {\n preset: 'ts-jest',\n testEnvironment: 'node',\n testPathIgnorePatterns: ['/node_modules/', '/test-cases/', '/static-files/', '/lib/'],\n};\n"},{file:"package.json",content:'{\n "name": "ali-lowcode-solution-hello-world",\n "version": "1.0.0",\n "description": "AlLowCode Code Generate Solution - Hello World",\n "files": [\n "src",\n "lib",\n "tests",\n "jest.config.js",\n ".editorconfig",\n ".eslintignore",\n ".eslintrc.js",\n ".gitignore",\n ".prettierignore",\n ".prettierrc",\n "CHANGELOG.md",\n "CONTRIBUTING.md",\n "demo-schema.json",\n "package.json",\n "README.md",\n "tsconfig.json"\n ],\n "main": "lib/index.js",\n "scripts": {\n "start": "jest --watch",\n "build": "npm run clean && concurrently \'npm run build:ts\' \'npm run lint\'",\n "build:ts": "tsc",\n "check:type": "tsc -p . --noEmit",\n "clean": "rm -rf build dist lib generated",\n "dev": "build-scripts start",\n "lint": "eslint --ext .tsx,.ts,.js,.jsx src",\n "lintfix": "eslint --fix --color --ext .tsx,.ts,.js,.jsx src",\n "lint-staged": "lint-staged",\n "prepublishOnly": "npm run build",\n "postpublish": "git push origin master --tags",\n "test": "jest",\n "test:watch": "jest --watch",\n "test:update-snapshots": "cross-env UPDATE_EXPECTED=true npx jest",\n "demo": "npm run build && npx @alilc/lowcode-code-generator --solution . --output generated demo-schema.json"\n },\n "repository": {\n "type": "git",\n "url": "git@github.com:your-name/ali-lowcode-solution-hello-world.git"\n },\n "author": "",\n "license": "ISC",\n "publishConfig": {\n "registry": "https://registry.npm.xxx.com"\n },\n "dependencies": {\n "@alilc/lowcode-code-generator": "^1.0.0-beta.16",\n "@alilc/lowcode-types": "^1.0.0-beta.21",\n "tslib": "^2.3.0"\n },\n "devDependencies": {\n "@types/async": "^3.2.3",\n "@types/jest": "^26.0.17",\n "@typescript-eslint/eslint-plugin": "^4.28.4",\n "@typescript-eslint/parser": "^4.28.4",\n "async": "^3.2.0",\n "babel-runtime": "^6.26.0",\n "concurrently": "^5.2.0",\n "cross-env": "^7.0.0",\n "debug": "^4.1.1",\n "eslint": "^7.31.0",\n "eslint-config-ali": "^12.1.0",\n "eslint-plugin-import": "^2.23.4",\n "eslint-plugin-react": "^7.24.0",\n "eslint-plugin-react-hooks": "^4.2.0",\n "glob": "^7.2.0",\n "husky": "4.2.5",\n "jest": "^26.6.3",\n "json5": "^2.2.0",\n "lint-staged": "10.1.x",\n "lodash": "^4.17.21",\n "md5": "^2.2.1",\n "prettier": "^2.3.2",\n "ts-jest": "^26.4.4",\n "ts-node": "^9.0.0",\n "typescript": "4.x"\n }\n}\n'},{file:"tsconfig.json",content:'{\n "compilerOptions": {\n "esModuleInterop": true,\n "declaration": true,\n "experimentalDecorators": true,\n "forceConsistentCasingInFileNames": true,\n "importHelpers": true,\n "incremental": false,\n "jsx": "react",\n "moduleResolution": "node",\n "resolveJsonModule": true,\n "skipLibCheck": true,\n "sourceMap": true,\n "strict": true,\n "stripInternal": true,\n "outDir": "./lib",\n "declarationDir": "./lib",\n "rootDirs": ["./src"],\n "target": "es6",\n "module": "commonjs",\n "lib": ["esnext"],\n "types": ["jest", "node"],\n "noUnusedLocals": false,\n "noUnusedParameters": false\n },\n "include": ["src/**/*", "typings/**/*"]\n}\n'},{file:"src/index.ts",content:"import CodeGen from '@alilc/lowcode-code-generator';\n\nimport examplePlugin from './plugins/example';\n\nexport default function createHelloWorldProjectBuilder() {\n return CodeGen.createProjectBuilder({\n template: CodeGen.solutionParts.icejs.template,\n plugins: {\n components: [\n CodeGen.plugins.react.reactCommonDeps(),\n CodeGen.plugins.common.esmodule({ fileType: 'jsx' }),\n CodeGen.plugins.react.containerClass(),\n CodeGen.plugins.react.containerInjectContext(),\n CodeGen.plugins.react.containerInjectUtils(),\n CodeGen.plugins.react.containerInjectDataSourceEngine(),\n CodeGen.plugins.react.containerInjectI18n(),\n CodeGen.plugins.react.containerInitState(),\n CodeGen.plugins.react.containerLifeCycle(),\n CodeGen.plugins.react.containerMethod(),\n examplePlugin(),\n CodeGen.plugins.react.jsx({\n nodeTypeMapping: {\n Div: 'div',\n Component: 'div',\n Page: 'div',\n Block: 'div',\n },\n }),\n CodeGen.plugins.style.css(),\n ],\n pages: [\n CodeGen.plugins.react.reactCommonDeps(),\n CodeGen.plugins.common.esmodule({ fileType: 'jsx' }),\n CodeGen.plugins.react.containerClass(),\n CodeGen.plugins.react.containerInjectContext(),\n CodeGen.plugins.react.containerInjectUtils(),\n CodeGen.plugins.react.containerInjectDataSourceEngine(),\n CodeGen.plugins.react.containerInjectI18n(),\n CodeGen.plugins.react.containerInitState(),\n CodeGen.plugins.react.containerLifeCycle(),\n CodeGen.plugins.react.containerMethod(),\n examplePlugin(),\n CodeGen.plugins.react.jsx({\n nodeTypeMapping: {\n Div: 'div',\n Component: 'div',\n Page: 'div',\n Block: 'div',\n },\n }),\n CodeGen.plugins.style.css(),\n ],\n router: [\n CodeGen.plugins.common.esmodule(),\n CodeGen.solutionParts.icejs.plugins.router(),\n ],\n entry: [CodeGen.solutionParts.icejs.plugins.entry()],\n constants: [CodeGen.plugins.project.constants()],\n utils: [\n CodeGen.plugins.common.esmodule(),\n CodeGen.plugins.project.utils('react'),\n ],\n i18n: [CodeGen.plugins.project.i18n()],\n globalStyle: [CodeGen.solutionParts.icejs.plugins.globalStyle()],\n htmlEntry: [CodeGen.solutionParts.icejs.plugins.entryHtml()],\n packageJSON: [CodeGen.solutionParts.icejs.plugins.packageJSON()],\n },\n postProcessors: [CodeGen.postprocessor.prettier()],\n });\n}\n"},{file:"src/plugins/example.ts",content:"import {\n ICodeStruct,\n BuilderComponentPlugin,\n BuilderComponentPluginFactory,\n FileType,\n ChunkType,\n IContainerInfo,\n COMMON_CHUNK_NAME,\n CLASS_DEFINE_CHUNK_NAME,\n DEFAULT_LINK_AFTER,\n} from '@alilc/lowcode-code-generator';\n\nexport interface PluginConfig {\n fileType: string;\n}\n\nconst pluginFactory: BuilderComponentPluginFactory<PluginConfig> = (\n config?\n) => {\n const cfg: PluginConfig = {\n fileType: FileType.JSX,\n ...config,\n };\n\n const plugin: BuilderComponentPlugin = async (pre: ICodeStruct) => {\n const next: ICodeStruct = {\n ...pre,\n };\n\n const ir = next.ir as IContainerInfo & {\n methodsModule?: {\n type?: 'JSModule';\n source?: string;\n };\n };\n\n if (ir.methodsModule?.type !== 'JSModule' || !ir.methodsModule?.source) {\n return next;\n }\n\n // 创建 methods.jsx\n next.chunks.push({\n type: ChunkType.STRING,\n subModule: 'methods',\n fileType: cfg.fileType,\n name: COMMON_CHUNK_NAME.CustomContent,\n content: ir.methodsModule.source,\n linkAfter: [],\n });\n\n // 引入对应的模块\n next.chunks.push({\n type: ChunkType.STRING,\n fileType: cfg.fileType,\n name: COMMON_CHUNK_NAME.InternalDepsImport,\n content: \"import __$$methodsModule from './methods';\",\n linkAfter: [...DEFAULT_LINK_AFTER[COMMON_CHUNK_NAME.InternalDepsImport]],\n });\n\n // 将导出的东东都放到 class 上实例方法部分\n next.chunks.push({\n type: ChunkType.STRING,\n fileType: cfg.fileType,\n name: CLASS_DEFINE_CHUNK_NAME.ConstructorContent,\n content: 'Object.assign(this, __$$methodsModule);',\n linkAfter: [\n ...DEFAULT_LINK_AFTER[CLASS_DEFINE_CHUNK_NAME.ConstructorContent],\n ],\n });\n\n return next;\n };\n\n return plugin;\n};\n\nexport default pluginFactory;\n"},{file:"tests/basic.test.ts",content:"test('basic functions should be ok', () => {\n // 这里放一些单元测试\n expect(0).toBe(0);\n});\n"}],m.label=2;case 2:m.trys.push([2,8,9,10]),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,s=t&&e[t],r=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),c=o.next(),m.label=3;case 3:return c.done?[3,7]:(u=c.value,t.verbose&&console.log("%s",it.gray("creating file ".concat(u.file))),l=_.join(n,u.file),[4,Hd(_.dirname(l))]);case 4:return m.sent(),[4,K.writeFile(l,i(u.content),{encoding:"utf-8"})];case 5:m.sent(),m.label=6;case 6:return c=o.next(),[3,3];case 7:return[3,10];case 8:return p=m.sent(),d={error:p},[3,10];case 9:try{c&&!c.done&&(f=o.return)&&f.call(o)}finally{if(d)throw d.error}return[7];case 10:return t.quiet||console.log("%s",it.green("solution ".concat(r," created successfully"))),[2,0];case 11:return h=m.sent(),console.log(it.red(at(h)||"Unexpected error: ".concat(h))),"object"==typeof h&&(null==h?void 0:h.stack)&&t.verbose&&console.log(it.gray(h.stack)),[2,1];case 12:return[2]}}))}))},exports.releaseMaterial=function(e){return ne(this,void 0,void 0,(function(){var t,s,r,n,i,a,o,c,u,l,p,h,d,f,m,y,g,x,v,b,E,C;return ie(this,(function(A){switch(A.label){case 0:return(t=e.auth)&&Ba(t),s=process.cwd(),r="build/lowcode",n=k.default.resolve(process.cwd(),r),(i=F.existsSync(n))||(n=k.default.resolve(process.cwd(),"dist")),[4,function(e){return Promise.resolve().then((function(){return D(require(e))}))}(k.default.resolve(process.cwd(),"package.json"))];case 1:return a=A.sent(),o=a.name,c=a.version,i&&(console.log("lceViewJS: ",k.default.resolve(process.cwd(),r,"view.js")),p=F.readFileSync(k.default.resolve(process.cwd(),r,"view.js"),"utf-8"),u=zd(p),h=F.readFileSync(k.default.resolve(process.cwd(),r,"meta.js"),"utf-8"),l=zd(h)),console.log("Uploading material..."),[4,ct(n+"/")];case 2:d=A.sent(),f=[],m=0,A.label=3;case 3:return m<d.length?(y=d[m],(g=F.readFileSync(y.path+"/"+y.fileName,"utf-8"))&&0!==g.trim().length?[3,4]:(console.log("File is empty Do not Upload: ",y.path+"/"+y.fileName),[3,6])):[3,7];case 4:return x="".concat(o,"/").concat(c,"/")+(y.path.split("".concat(s,"/").concat(r,"/"))[1]||"")+y.fileName,[4,$d(y,{t:1,route:"material",path:x})];case 5:v=A.sent(),f.push(v),A.label=6;case 6:return m++,[3,3];case 7:return console.log("Npm Name: ",o),console.log("Npm Version: ",c),i?(b=f.find((function(e){return e.key.includes("".concat(c,"/view.js"))})),E=f.find((function(e){return e.key.includes("".concat(c,"/view.css"))})),C=f.find((function(e){return e.key.includes("".concat(c,"/meta.js"))})),console.log("Npm Export Name: ",u),console.log("Npm Js Url: ",null==b?void 0:b.url),console.log("Npm Css Url: ",null==E?void 0:E.url),console.log("Meta Export Name: ",l),console.log("Meta Url: ",null==C?void 0:C.url)):f.length>0&&f.forEach((function(e){console.log("File Name: ",e.key),console.log("File Url: ",e.url)})),[2,1]}}))}))},exports.run=Md,exports.startWatching=function(e){return ne(this,void 0,void 0,(function(){var t,s,r,n,i,a,o,c;return ie(this,(function(u){return t=e.id,s=e.auth,r=e.account,s&&Ba(e.auth),n="PROJECT_ROOM_"+t,i=ae((La||"").split("##"),2),a=i[0],o=i[1],c=new Lx({token:a,client:o,onconnect:function(){console.log("[Service] Editor connected!"),c.joinRoom({roomId:n,account:r})},onmsg:function(t){var s=t||{};s.action;var n=s.message;if(n){n.updatedFileState;var i=n.userId,a=n.current;String(i)===r&&a&&Md(0,re(re({},e),{clear:!!a.clear}))}}}),c.connect(),[2,1]}))}))};
|
|
87
|
+
*/var cm=N.default.spawn,um=lm;function lm(e){e=e||{};var t,s,r=this,n=R.default,i=U.default,a={},o=!1,c={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},u=Object.assign({},c),l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],p=["TRACE","TRACK","CONNECT"],h=!1,d=!1,f=!1,m={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null;this.open=function(e,t,s,r,n){if(this.abort(),d=!1,f=!1,!function(e){return e&&-1===p.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");a={method:e,url:t.toString(),async:"boolean"!=typeof s||s,user:r||null,password:n||null},y(this.OPENED)},this.setDisableHeaderCheck=function(e){o=e},this.setRequestHeader=function(e,t){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(!function(e){return o||e&&-1===l.indexOf(e.toLowerCase())}(e))return console.warn('Refused to set unsafe header "'+e+'"'),!1;if(h)throw new Error("INVALID_STATE_ERR: send flag is true");return u[e]=t,!0},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&s.headers[e.toLowerCase()]&&!d?s.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||d)return"";var e="";for(var t in s.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+s.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&u[e]?u[e]:""},this.send=function(o){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(h)throw new Error("INVALID_STATE_ERR: send has already been called");var c,l=!1,p=!1,f=q.default.parse(a.url);switch(f.protocol){case"https:":l=!0;case"http:":c=f.hostname;break;case"file:":p=!0;break;case void 0:case"":c="localhost";break;default:throw new Error("Protocol not supported.")}if(p){if("GET"!==a.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(a.async)O.default.readFile(unescape(f.pathname),"utf8",(function(e,t){e?r.handleError(e,e.errno||-1):(r.status=200,r.responseText=t,y(r.DONE))}));else try{this.responseText=O.default.readFileSync(unescape(f.pathname),"utf8"),this.status=200,y(r.DONE)}catch(e){this.handleError(e,e.errno||-1)}}else{var m=f.port||(l?443:80),g=f.pathname+(f.search?f.search:"");if(u.Host=c,l&&443===m||80===m||(u.Host+=":"+f.port),a.user){void 0===a.password&&(a.password="");var x=new Buffer(a.user+":"+a.password);u.Authorization="Basic "+x.toString("base64")}"GET"===a.method||"HEAD"===a.method?o=null:o?(u["Content-Length"]=Buffer.isBuffer(o)?o.length:Buffer.byteLength(o),u["Content-Type"]||(u["Content-Type"]="text/plain;charset=UTF-8")):"POST"===a.method&&(u["Content-Length"]=0);var v=e.agent||!1,b={host:c,port:m,path:g,method:a.method,headers:u,agent:v};if(l&&(b.pfx=e.pfx,b.key=e.key,b.passphrase=e.passphrase,b.cert=e.cert,b.ca=e.ca,b.ciphers=e.ciphers,b.rejectUnauthorized=!1!==e.rejectUnauthorized),d=!1,a.async){var E=l?i.request:n.request;h=!0,r.dispatchEvent("readystatechange");var C=function(n){if(302===(s=n).statusCode||303===s.statusCode||307===s.statusCode){a.url=s.headers.location;var i=q.default.parse(a.url);c=i.hostname;var o={hostname:i.hostname,port:i.port,path:i.path,method:303===s.statusCode?"GET":a.method,headers:u};return l&&(o.pfx=e.pfx,o.key=e.key,o.passphrase=e.passphrase,o.cert=e.cert,o.ca=e.ca,o.ciphers=e.ciphers,o.rejectUnauthorized=!1!==e.rejectUnauthorized),void(t=E(o,C).on("error",A)).end()}s&&s.setEncoding&&s.setEncoding("utf8"),y(r.HEADERS_RECEIVED),r.status=s.statusCode,s.on("data",(function(e){e&&(r.responseText+=e),h&&y(r.LOADING)})),s.on("end",(function(){h&&(h=!1,y(r.DONE))})),s.on("error",(function(e){r.handleError(e)}))},A=function(e){r.handleError(e)};t=E(b,C).on("error",A),e.autoUnref&&t.on("socket",(e=>{e.unref()})),o&&t.write(o),t.end(),r.dispatchEvent("loadstart")}else{var w=".node-xmlhttprequest-content-"+process.pid,D=".node-xmlhttprequest-sync-"+process.pid;O.default.writeFileSync(D,"","utf8");for(var T="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(l?"s":"")+".request;var options = "+JSON.stringify(b)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+w+"', 'NODE-XMLHTTPREQUEST-STATUS:' + response.statusCode + ',' + responseText, 'utf8');fs.unlinkSync('"+D+"');});response.on('error', function(error) {fs.writeFileSync('"+w+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+D+"');});}).on('error', function(error) {fs.writeFileSync('"+w+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+D+"');});"+(o?"req.write('"+JSON.stringify(o).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",S=cm(process.argv[0],["-e",T]);O.default.existsSync(D););if(r.responseText=O.default.readFileSync(w,"utf8"),S.stdin.end(),O.default.unlinkSync(w),r.responseText.match(/^NODE-XMLHTTPREQUEST-ERROR:/)){var P=r.responseText.replace(/^NODE-XMLHTTPREQUEST-ERROR:/,"");r.handleError(P,503)}else r.status=r.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:([0-9]*),.*/,"$1"),r.responseText=r.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:[0-9]*,(.*)/,"$1"),y(r.DONE)}}},this.handleError=function(e,t){this.status=t||0,this.statusText=e,this.responseText=e.stack,d=!0,y(this.DONE)},this.abort=function(){t&&(t.abort(),t=null),u=Object.assign({},c),this.responseText="",this.responseXML="",d=f=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!h||this.readyState===this.DONE||(h=!1,y(this.DONE)),this.readyState=this.UNSENT},this.addEventListener=function(e,t){e in m||(m[e]=[]),m[e].push(t)},this.removeEventListener=function(e,t){e in m&&(m[e]=m[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof r["on"+e]&&(this.readyState===this.DONE?setImmediate((function(){r["on"+e]()})):r["on"+e]()),e in m)for(let t=0,s=m[e].length;t<s;t++)this.readyState===this.DONE?setImmediate((function(){m[e][t].call(r)})):m[e][t].call(r)};var y=function(e){if(!(r.readyState===e||r.readyState===r.UNSENT&&f)&&(r.readyState=e,(a.async||r.readyState<r.OPENED||r.readyState===r.DONE)&&r.dispatchEvent("readystatechange"),r.readyState===r.DONE)){let e;e=f?"abort":d?"error":"load",r.dispatchEvent(e),r.dispatchEvent("loadend")}}}lm.XMLHttpRequest=lm;const pm=um||Object.freeze({__proto__:null,default:um,__moduleExports:um});class hm{constructor(){this.cookies=new Map}parseCookies(e){const t=e.getResponseHeader("set-cookie");t&&t.forEach((e=>{const t=function(e){const t=e.split("; "),s=t[0].indexOf("=");if(-1===s)return;const r=t[0].substring(0,s).trim();if(!r.length)return;let n=t[0].substring(s+1).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));const i={name:r,value:n};for(let e=1;e<t.length;e++){const s=t[e].split("=");if(2!==s.length)continue;const r=s[0].trim(),n=s[1].trim();switch(r){case"Expires":i.expires=new Date(n);break;case"Max-Age":const e=new Date;e.setUTCSeconds(e.getUTCSeconds()+parseInt(n,10)),i.expires=e}}return i}(e);t&&this.cookies.set(t.name,t)}))}addCookies(e){const t=[];this.cookies.forEach(((e,s)=>{var r;(null===(r=e.expires)||void 0===r?void 0:r.getTime())<Date.now()?this.cookies.delete(s):t.push(`${s}=${e.value}`)})),t.length&&(e.setDisableHeaderCheck(!0),e.setRequestHeader("cookie",t.join("; ")))}}function dm(){}const fm=null!=new pm({xdomain:!1}).responseType;class mm extends Gf{constructor(e,t){super(),Yf(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=Jf(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new pm(t);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&s.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{s.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var e;3===s.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=mm.requestsCount++,mm.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=dm,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete mm.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(mm.requestsCount=0,mm.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",ym);else if("function"==typeof addEventListener){addEventListener("onpagehide"in Wf?"pagehide":"unload",ym,!1)}function ym(){for(let e in mm.requests)mm.requests.hasOwnProperty(e)&&mm.requests[e].abort()}var gm={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}},xm="function"==typeof __webpack_require__?__non_webpack_require__:he,vm=process.config&&process.config.variables||{},bm=!!process.env.PREBUILDS_ONLY,Em=process.versions.modules,Cm=!(!process.versions||!process.versions.electron)||!!process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",Am=process.env.npm_config_arch||S.default.arch(),wm=process.env.npm_config_platform||S.default.platform(),Dm=process.env.LIBC||(function(e){return"linux"===e&&O.default.existsSync("/etc/alpine-release")}(wm)?"musl":"glibc"),Tm=process.env.ARM_VERSION||("arm64"===Am?"8":vm.arm_version)||"",Sm=(process.versions.uv||"").split(".")[0],Pm=km;function km(e){return xm(km.resolve(e))}function _m(e){try{return O.default.readdirSync(e)}catch(e){return[]}}function Nm(e,t){var s=_m(e).filter(t);return s[0]&&k.default.join(e,s[0])}function Im(e){return/\.node$/.test(e)}function Fm(e){var t=e.split("-");if(2===t.length){var s=t[0],r=t[1].split("+");if(s&&r.length&&r.every(Boolean))return{name:e,platform:s,architectures:r}}}function Om(e,t){return function(s){return null!=s&&(s.platform===e&&s.architectures.includes(t))}}function Lm(e,t){return e.architectures.length-t.architectures.length}function Bm(e){var t=e.split("."),s={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var n=t[r];if("node"===n||"electron"===n||"node-webkit"===n)s.runtime=n;else if("napi"===n)s.napi=!0;else if("abi"===n.slice(0,3))s.abi=n.slice(3);else if("uv"===n.slice(0,2))s.uv=n.slice(2);else if("armv"===n.slice(0,4))s.armv=n.slice(4);else{if("glibc"!==n&&"musl"!==n)continue;s.libc=n}s.specificity++}return s}}function jm(e,t){return function(s){return null!=s&&(!(s.runtime&&s.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(s))&&(!(s.abi&&s.abi!==t&&!s.napi)&&((!s.uv||s.uv===Sm)&&((!s.armv||s.armv===Tm)&&(!s.libc||s.libc===Dm)))))}}function Mm(e){return function(t,s){return t.runtime!==s.runtime?t.runtime===e?-1:1:t.abi!==s.abi?t.abi?-1:1:t.specificity!==s.specificity?t.specificity>s.specificity?-1:1:0}}km.resolve=km.path=function(e){e=k.default.resolve(e||".");try{var t=xm(k.default.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch(e){}if(!bm){var s=Nm(k.default.join(e,"build/Release"),Im);if(s)return s;var r=Nm(k.default.join(e,"build/Debug"),Im);if(r)return r}var n=o(e);if(n)return n;var i=o(k.default.dirname(process.execPath));if(i)return i;var a=["platform="+wm,"arch="+Am,"runtime="+Cm,"abi="+Em,"uv="+Sm,Tm?"armv="+Tm:"","libc="+Dm,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","function"==typeof __webpack_require__?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+a+"\n loaded from: "+e+"\n");function o(e){var t=_m(k.default.join(e,"prebuilds")).map(Fm).filter(Om(wm,Am)).sort(Lm)[0];if(t){var s=k.default.join(e,"prebuilds",t.name),r=_m(s).map(Bm).filter(jm(Cm,Em)).sort(Mm(Cm))[0];return r?k.default.join(s,r.file):void 0}}},km.parseTags=Bm,km.matchTags=jm,km.compareTags=Mm,km.parseTuple=Fm,km.matchTuple=Om,km.compareTuples=Lm;var Rm=le((function(e){const t="function"==typeof __webpack_require__?__non_webpack_require__:he;"function"==typeof t.addon?e.exports=t.addon.bind(t):e.exports=Pm}));var Um={mask:(e,t,s,r,n)=>{for(var i=0;i<n;i++)s[r+i]=e[i]^t[3&i]},unmask:(e,t)=>{const s=e.length;for(var r=0;r<s;r++)e[r]^=t[3&r]}},qm=le((function(e){try{e.exports=Rm(__dirname)}catch(t){e.exports=Um}})),$m=le((function(e){const{EMPTY_BUFFER:t}=gm,s=Buffer[Symbol.species];function r(e,t,s,r,n){for(let i=0;i<n;i++)s[r+i]=e[i]^t[3&i]}function n(e,t){for(let s=0;s<e.length;s++)e[s]^=t[3&s]}if(e.exports={concat:function(e,r){if(0===e.length)return t;if(1===e.length)return e[0];const n=Buffer.allocUnsafe(r);let i=0;for(let t=0;t<e.length;t++){const s=e[t];n.set(s,i),i+=s.length}return i<r?new s(n.buffer,n.byteOffset,i):n},mask:r,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(t){if(e.readOnly=!0,Buffer.isBuffer(t))return t;let r;return t instanceof ArrayBuffer?r=new s(t):ArrayBuffer.isView(t)?r=new s(t.buffer,t.byteOffset,t.byteLength):(r=Buffer.from(t),e.readOnly=!1),r},unmask:n},!process.env.WS_NO_BUFFER_UTIL)try{const t=qm;e.exports.mask=function(e,s,n,i,a){a<48?r(e,s,n,i,a):t.mask(e,s,n,i,a)},e.exports.unmask=function(e,s){e.length<32?n(e,s):t.unmask(e,s)}}catch(e){}}));$m.concat,$m.mask,$m.toArrayBuffer,$m.toBuffer,$m.unmask;const zm=Symbol("kDone"),Hm=Symbol("kRun");var Vm=class{constructor(e){this[zm]=()=>{this.pending--,this[Hm]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[Hm]()}[Hm](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[zm])}}};const{kStatusCode:Gm}=gm,Wm=Buffer[Symbol.species],Jm=Buffer.from([0,0,255,255]),Xm=Symbol("permessage-deflate"),Km=Symbol("total-length"),Ym=Symbol("callback"),Zm=Symbol("buffers"),Qm=Symbol("error");let ey;var ty=class{constructor(e,t,s){if(this._maxPayload=0|s,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!ey){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;ey=new Vm(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[Ym];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,s=e.find((e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits)));if(!s)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(s.server_no_context_takeover=!0),t.clientNoContextTakeover&&(s.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(s.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?s.client_max_window_bits=t.clientMaxWindowBits:!0!==s.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete s.client_max_window_bits,s}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach((e=>{Object.keys(e).forEach((t=>{let s=e[t];if(s.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(s=s[0],"client_max_window_bits"===t){if(!0!==s){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}else if("server_max_window_bits"===t){const e=+s;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${s}`);s=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==s)throw new TypeError(`Invalid value for parameter "${t}": ${s}`)}e[t]=s}))})),e}decompress(e,t,s){ey.add((r=>{this._decompress(e,t,((e,t)=>{r(),s(e,t)}))}))}compress(e,t,s){ey.add((r=>{this._compress(e,t,((e,t)=>{r(),s(e,t)}))}))}_decompress(e,t,s){const r=this._isServer?"client":"server";if(!this._inflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?V.default.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=V.default.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[Xm]=this,this._inflate[Km]=0,this._inflate[Zm]=[],this._inflate.on("error",ny),this._inflate.on("data",ry)}this._inflate[Ym]=s,this._inflate.write(e),t&&this._inflate.write(Jm),this._inflate.flush((()=>{const e=this._inflate[Qm];if(e)return this._inflate.close(),this._inflate=null,void s(e);const n=$m.concat(this._inflate[Zm],this._inflate[Km]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Km]=0,this._inflate[Zm]=[],t&&this.params[`${r}_no_context_takeover`]&&this._inflate.reset()),s(null,n)}))}_compress(e,t,s){const r=this._isServer?"server":"client";if(!this._deflate){const e=`${r}_max_window_bits`,t="number"!=typeof this.params[e]?V.default.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=V.default.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[Km]=0,this._deflate[Zm]=[],this._deflate.on("data",sy)}this._deflate[Ym]=s,this._deflate.write(e),this._deflate.flush(V.default.Z_SYNC_FLUSH,(()=>{if(!this._deflate)return;let e=$m.concat(this._deflate[Zm],this._deflate[Km]);t&&(e=new Wm(e.buffer,e.byteOffset,e.length-4)),this._deflate[Ym]=null,this._deflate[Km]=0,this._deflate[Zm]=[],t&&this.params[`${r}_no_context_takeover`]&&this._deflate.reset(),s(null,e)}))}};function sy(e){this[Zm].push(e),this[Km]+=e.length}function ry(e){this[Km]+=e.length,this[Xm]._maxPayload<1||this[Km]<=this[Xm]._maxPayload?this[Zm].push(e):(this[Qm]=new RangeError("Max payload size exceeded"),this[Qm].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Qm][Gm]=1009,this.removeListener("data",ry),this.reset())}function ny(e){this[Xm]._inflate=null,e[Gm]=1007,this[Ym](e)}var iy=function(e){const t=e.length;let s=0;for(;s<t;)if(128&e[s])if(192==(224&e[s])){if(s+1===t||128!=(192&e[s+1])||192==(254&e[s]))return!1;s+=2}else if(224==(240&e[s])){if(s+2>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||224===e[s]&&128==(224&e[s+1])||237===e[s]&&160==(224&e[s+1]))return!1;s+=3}else{if(240!=(248&e[s]))return!1;if(s+3>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||128!=(192&e[s+3])||240===e[s]&&128==(240&e[s+1])||244===e[s]&&e[s+1]>143||e[s]>244)return!1;s+=4}else s++;return!0},ay=le((function(e){try{e.exports=Rm(__dirname)}catch(t){e.exports=iy}})),oy=le((function(e){const{isUtf8:t}=ee.default;function s(e){const t=e.length;let s=0;for(;s<t;)if(128&e[s])if(192==(224&e[s])){if(s+1===t||128!=(192&e[s+1])||192==(254&e[s]))return!1;s+=2}else if(224==(240&e[s])){if(s+2>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||224===e[s]&&128==(224&e[s+1])||237===e[s]&&160==(224&e[s+1]))return!1;s+=3}else{if(240!=(248&e[s]))return!1;if(s+3>=t||128!=(192&e[s+1])||128!=(192&e[s+2])||128!=(192&e[s+3])||240===e[s]&&128==(240&e[s+1])||244===e[s]&&e[s+1]>143||e[s]>244)return!1;s+=4}else s++;return!0}if(e.exports={isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:s,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},t)e.exports.isValidUTF8=function(e){return e.length<24?s(e):t(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const t=ay;e.exports.isValidUTF8=function(e){return e.length<32?s(e):t(e)}}catch(e){}}));oy.isValidStatusCode,oy.isValidUTF8,oy.tokenChars;const{Writable:cy}=$.default,{BINARY_TYPES:uy,EMPTY_BUFFER:ly,kStatusCode:py,kWebSocket:hy}=gm,{concat:dy,toArrayBuffer:fy,unmask:my}=$m,{isValidStatusCode:yy,isValidUTF8:gy}=oy,xy=Buffer[Symbol.species];var vy=class extends cy{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||uy[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[hy]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,s){if(8===this._opcode&&0==this._state)return s();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(s)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new xy(t.buffer,t.byteOffset+e,t.length-e),new xy(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const s=this._buffers[0],r=t.length-e;e>=s.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(s.buffer,s.byteOffset,e),r),this._buffers[0]=new xy(s.buffer,s.byteOffset+e,s.length-e)),e-=s.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const t=this.consume(2);if(48&t[0]){return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"))}const s=!(64&~t[0]);if(!s||this._extensions[ty.extensionName]){if(this._fin=!(128&~t[0]),this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(!this._fragmented){return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"))}this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}this._compressed=s}else{if(!(this._opcode>7&&this._opcode<11)){return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"))}if(!this._fin){return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"))}if(s){return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength){return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~t[1]),this._isServer){if(!this._masked){return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}}else if(this._masked){return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"))}126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}else{e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),s=t.readUInt32BE(0);if(s>Math.pow(2,21)-1){e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"))}else this._payloadLength=s*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}else this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=ly;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&my(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,t){this._extensions[ty.extensionName].decompress(e,this._fin,((e,s)=>{if(e)return t(e);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void t(e)}this._fragments.push(s)}this.dataMessage(t),0===this._state&&this.startLoop(t)}))}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,s=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?dy(s,t):"arraybuffer"===this._binaryType?fy(dy(s,t)):s,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)})))}else{const r=dy(s,t);if(!this._skipUTF8Validation&&!gy(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate((()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)})))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate((()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)})));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,ly),this.end();else{const s=e.readUInt16BE(0);if(!yy(s)){const e=this.createError(RangeError,`invalid status code ${s}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new xy(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!gy(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",s,r),this.end()}this._state=0}}createError(e,t,s,r,n){this._loop=!1,this._errored=!0;const i=new e(s?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(i,this.createError),i.code=n,i[py]=r,i}};const{randomFillSync:by}=M.default,{EMPTY_BUFFER:Ey}=gm,{isValidStatusCode:Cy}=oy,{mask:Ay,toBuffer:wy}=$m,Dy=Symbol("kByteLength"),Ty=Buffer.alloc(4),Sy=8192;let Py,ky=Sy;class _y{constructor(e,t,s){this._extensions=t||{},s&&(this._generateMask=s,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){let s,r,n=!1,i=2,a=!1;t.mask&&(s=t.maskBuffer||Ty,t.generateMask?t.generateMask(s):(ky===Sy&&(void 0===Py&&(Py=Buffer.alloc(Sy)),by(Py,0,Sy),ky=0),s[0]=Py[ky++],s[1]=Py[ky++],s[2]=Py[ky++],s[3]=Py[ky++]),a=!(s[0]|s[1]|s[2]|s[3]),i=6),"string"==typeof e?r=t.mask&&!a||void 0===t[Dy]?(e=Buffer.from(e)).length:t[Dy]:(r=e.length,n=t.mask&&t.readOnly&&!a);let o=r;r>=65536?(i+=8,o=127):r>125&&(i+=2,o=126);const c=Buffer.allocUnsafe(n?r+i:i);return c[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(c[0]|=64),c[1]=o,126===o?c.writeUInt16BE(r,2):127===o&&(c[2]=c[3]=0,c.writeUIntBE(r,4,6)),t.mask?(c[1]|=128,c[i-4]=s[0],c[i-3]=s[1],c[i-2]=s[2],c[i-1]=s[3],a?[c,e]:n?(Ay(e,s,c,i,r),[c]):(Ay(e,s,e,0,r),[c,e])):[c,e]}close(e,t,s,r){let n;if(void 0===e)n=Ey;else{if("number"!=typeof e||!Cy(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const s=Buffer.byteLength(t);if(s>123)throw new RangeError("The message must not be greater than 123 bytes");n=Buffer.allocUnsafe(2+s),n.writeUInt16BE(e,0),"string"==typeof t?n.write(t,2):n.set(t,2)}else n=Buffer.allocUnsafe(2),n.writeUInt16BE(e,0)}const i={[Dy]:n.length,fin:!0,generateMask:this._generateMask,mask:s,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,n,!1,i,r]):this.sendFrame(_y.frame(n,i),r)}ping(e,t,s){let r,n;if("string"==typeof e?(r=Buffer.byteLength(e),n=!1):(r=(e=wy(e)).length,n=wy.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const i={[Dy]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,i,s]):this.sendFrame(_y.frame(e,i),s)}pong(e,t,s){let r,n;if("string"==typeof e?(r=Buffer.byteLength(e),n=!1):(r=(e=wy(e)).length,n=wy.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const i={[Dy]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,i,s]):this.sendFrame(_y.frame(e,i),s)}send(e,t,s){const r=this._extensions[ty.extensionName];let n,i,a=t.binary?2:1,o=t.compress;if("string"==typeof e?(n=Buffer.byteLength(e),i=!1):(n=(e=wy(e)).length,i=wy.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(o=n>=r._threshold),this._compress=o):(o=!1,a=0),t.fin&&(this._firstFragment=!0),r){const r={[Dy]:n,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:i,rsv1:o};this._deflating?this.enqueue([this.dispatch,e,this._compress,r,s]):this.dispatch(e,this._compress,r,s)}else this.sendFrame(_y.frame(e,{[Dy]:n,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:i,rsv1:!1}),s)}dispatch(e,t,s,r){if(!t)return void this.sendFrame(_y.frame(e,s),r);const n=this._extensions[ty.extensionName];this._bufferedBytes+=s[Dy],this._deflating=!0,n.compress(e,s.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");"function"==typeof r&&r(e);for(let t=0;t<this._queue.length;t++){const s=this._queue[t],r=s[s.length-1];"function"==typeof r&&r(e)}}else this._bufferedBytes-=s[Dy],this._deflating=!1,s.readOnly=!1,this.sendFrame(_y.frame(t,s),r),this.dequeue()}))}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][Dy],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][Dy],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}var Ny=_y;const{kForOnEventAttribute:Iy,kListener:Fy}=gm,Oy=Symbol("kCode"),Ly=Symbol("kData"),By=Symbol("kError"),jy=Symbol("kMessage"),My=Symbol("kReason"),Ry=Symbol("kTarget"),Uy=Symbol("kType"),qy=Symbol("kWasClean");class $y{constructor(e){this[Ry]=null,this[Uy]=e}get target(){return this[Ry]}get type(){return this[Uy]}}Object.defineProperty($y.prototype,"target",{enumerable:!0}),Object.defineProperty($y.prototype,"type",{enumerable:!0});class zy extends $y{constructor(e,t={}){super(e),this[Oy]=void 0===t.code?0:t.code,this[My]=void 0===t.reason?"":t.reason,this[qy]=void 0!==t.wasClean&&t.wasClean}get code(){return this[Oy]}get reason(){return this[My]}get wasClean(){return this[qy]}}Object.defineProperty(zy.prototype,"code",{enumerable:!0}),Object.defineProperty(zy.prototype,"reason",{enumerable:!0}),Object.defineProperty(zy.prototype,"wasClean",{enumerable:!0});class Hy extends $y{constructor(e,t={}){super(e),this[By]=void 0===t.error?null:t.error,this[jy]=void 0===t.message?"":t.message}get error(){return this[By]}get message(){return this[jy]}}Object.defineProperty(Hy.prototype,"error",{enumerable:!0}),Object.defineProperty(Hy.prototype,"message",{enumerable:!0});class Vy extends $y{constructor(e,t={}){super(e),this[Ly]=void 0===t.data?null:t.data}get data(){return this[Ly]}}Object.defineProperty(Vy.prototype,"data",{enumerable:!0});const Gy={addEventListener(e,t,s={}){for(const r of this.listeners(e))if(!s[Iy]&&r[Fy]===t&&!r[Iy])return;let r;if("message"===e)r=function(e,s){const r=new Vy("message",{data:s?e:e.toString()});r[Ry]=this,Jy(t,this,r)};else if("close"===e)r=function(e,s){const r=new zy("close",{code:e,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[Ry]=this,Jy(t,this,r)};else if("error"===e)r=function(e){const s=new Hy("error",{error:e,message:e.message});s[Ry]=this,Jy(t,this,s)};else{if("open"!==e)return;r=function(){const e=new $y("open");e[Ry]=this,Jy(t,this,e)}}r[Iy]=!!s[Iy],r[Fy]=t,s.once?this.once(e,r):this.on(e,r)},removeEventListener(e,t){for(const s of this.listeners(e))if(s[Fy]===t&&!s[Iy]){this.removeListener(e,s);break}}};var Wy={CloseEvent:zy,ErrorEvent:Hy,Event:$y,EventTarget:Gy,MessageEvent:Vy};function Jy(e,t,s){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,s):e.call(t,s)}const{tokenChars:Xy}=oy;function Ky(e,t,s){void 0===e[t]?e[t]=[s]:e[t].push(s)}var Yy={format:function(e){return Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>[t].concat(Object.keys(e).map((t=>{let s=e[t];return Array.isArray(s)||(s=[s]),s.map((e=>!0===e?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")},parse:function(e){const t=Object.create(null);let s,r,n=Object.create(null),i=!1,a=!1,o=!1,c=-1,u=-1,l=-1,p=0;for(;p<e.length;p++)if(u=e.charCodeAt(p),void 0===s)if(-1===l&&1===Xy[u])-1===c&&(c=p);else if(0===p||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===l&&(l=p);const r=e.slice(c,l);44===u?(Ky(t,r,n),n=Object.create(null)):s=r,c=l=-1}}else-1===l&&-1!==c&&(l=p);else if(void 0===r)if(-1===l&&1===Xy[u])-1===c&&(c=p);else if(32===u||9===u)-1===l&&-1!==c&&(l=p);else if(59===u||44===u){if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===l&&(l=p),Ky(n,e.slice(c,l),!0),44===u&&(Ky(t,s,n),n=Object.create(null),s=void 0),c=l=-1}else{if(61!==u||-1===c||-1!==l)throw new SyntaxError(`Unexpected character at index ${p}`);r=e.slice(c,p),c=l=-1}else if(a){if(1!==Xy[u])throw new SyntaxError(`Unexpected character at index ${p}`);-1===c?c=p:i||(i=!0),a=!1}else if(o)if(1===Xy[u])-1===c&&(c=p);else if(34===u&&-1!==c)o=!1,l=p;else{if(92!==u)throw new SyntaxError(`Unexpected character at index ${p}`);a=!0}else if(34===u&&61===e.charCodeAt(p-1))o=!0;else if(-1===l&&1===Xy[u])-1===c&&(c=p);else if(-1===c||32!==u&&9!==u){if(59!==u&&44!==u)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===c)throw new SyntaxError(`Unexpected character at index ${p}`);-1===l&&(l=p);let a=e.slice(c,l);i&&(a=a.replace(/\\/g,""),i=!1),Ky(n,r,a),44===u&&(Ky(t,s,n),n=Object.create(null),s=void 0),r=void 0,c=l=-1}}else-1===l&&(l=p);if(-1===c||o||32===u||9===u)throw new SyntaxError("Unexpected end of input");-1===l&&(l=p);const h=e.slice(c,l);return void 0===s?Ky(t,h,n):(void 0===r?Ky(n,h,!0):Ky(n,r,i?h.replace(/\\/g,""):h),Ky(t,s,n)),t}};const{randomBytes:Zy,createHash:Qy}=M.default,{URL:eg}=q.default,{BINARY_TYPES:tg,EMPTY_BUFFER:sg,GUID:rg,kForOnEventAttribute:ng,kListener:ig,kStatusCode:ag,kWebSocket:og,NOOP:cg}=gm,{EventTarget:{addEventListener:ug,removeEventListener:lg}}=Wy,{format:pg,parse:hg}=Yy,{toBuffer:dg}=$m,fg=Symbol("kAborted"),mg=[8,13],yg=["CONNECTING","OPEN","CLOSING","CLOSED"],gg=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class xg extends Z.default{constructor(e,t,s){super(),this._binaryType=tg[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=sg,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=xg.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(s=t,t=[]):t=[t]),bg(this,e,t,s)):(this._autoPong=s.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){tg.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,s){const r=new vy({allowSynchronousEvents:s.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation});this._sender=new Ny(e,this._extensions,s.generateMask),this._receiver=r,this._socket=e,r[og]=this,e[og]=this,r.on("conclude",Tg),r.on("drain",Sg),r.on("error",Pg),r.on("message",_g),r.on("ping",Ng),r.on("pong",Ig),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Og),e.on("data",Lg),e.on("end",Bg),e.on("error",jg),this._readyState=xg.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=xg.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[ty.extensionName]&&this._extensions[ty.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=xg.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==xg.CLOSED)if(this.readyState!==xg.CONNECTING)this.readyState!==xg.CLOSING?(this._readyState=xg.CLOSING,this._sender.close(e,t,!this._isServer,(e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())})),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();else{const e="WebSocket was closed before the connection was established";wg(this,this._req,e)}}pause(){this.readyState!==xg.CONNECTING&&this.readyState!==xg.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,s){if(this.readyState===xg.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===xg.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||sg,t,s)):Dg(this,e,s)}pong(e,t,s){if(this.readyState===xg.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(s=e,e=t=void 0):"function"==typeof t&&(s=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===xg.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||sg,t,s)):Dg(this,e,s)}resume(){this.readyState!==xg.CONNECTING&&this.readyState!==xg.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,s){if(this.readyState===xg.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(s=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==xg.OPEN)return void Dg(this,e,s);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[ty.extensionName]||(r.compress=!1),this._sender.send(e||sg,r,s)}terminate(){if(this.readyState!==xg.CLOSED)if(this.readyState!==xg.CONNECTING)this._socket&&(this._readyState=xg.CLOSING,this._socket.destroy());else{const e="WebSocket was closed before the connection was established";wg(this,this._req,e)}}}Object.defineProperty(xg,"CONNECTING",{enumerable:!0,value:yg.indexOf("CONNECTING")}),Object.defineProperty(xg.prototype,"CONNECTING",{enumerable:!0,value:yg.indexOf("CONNECTING")}),Object.defineProperty(xg,"OPEN",{enumerable:!0,value:yg.indexOf("OPEN")}),Object.defineProperty(xg.prototype,"OPEN",{enumerable:!0,value:yg.indexOf("OPEN")}),Object.defineProperty(xg,"CLOSING",{enumerable:!0,value:yg.indexOf("CLOSING")}),Object.defineProperty(xg.prototype,"CLOSING",{enumerable:!0,value:yg.indexOf("CLOSING")}),Object.defineProperty(xg,"CLOSED",{enumerable:!0,value:yg.indexOf("CLOSED")}),Object.defineProperty(xg.prototype,"CLOSED",{enumerable:!0,value:yg.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(xg.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(xg.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[ng])return t[ig];return null},set(t){for(const t of this.listeners(e))if(t[ng]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[ng]:!0})}})})),xg.prototype.addEventListener=ug,xg.prototype.removeEventListener=lg;var vg=xg;function bg(e,t,s,r){const n={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:mg[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=n.autoPong,!mg.includes(n.protocolVersion))throw new RangeError(`Unsupported protocol version: ${n.protocolVersion} (supported versions: ${mg.join(", ")})`);let i;if(t instanceof eg)i=t;else try{i=new eg(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===i.protocol?i.protocol="ws:":"https:"===i.protocol&&(i.protocol="wss:"),e._url=i.href;const a="wss:"===i.protocol,o="ws+unix:"===i.protocol;let c;if("ws:"===i.protocol||a||o?o&&!i.pathname?c="The URL's pathname is empty":i.hash&&(c="The URL contains a fragment identifier"):c='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"',c){const t=new SyntaxError(c);if(0===e._redirects)throw t;return void Eg(e,t)}const u=a?443:80,l=Zy(16).toString("base64"),p=a?U.default.request:R.default.request,h=new Set;let d,f;if(n.createConnection=n.createConnection||(a?Ag:Cg),n.defaultPort=n.defaultPort||u,n.port=i.port||u,n.host=i.hostname.startsWith("[")?i.hostname.slice(1,-1):i.hostname,n.headers={...n.headers,"Sec-WebSocket-Version":n.protocolVersion,"Sec-WebSocket-Key":l,Connection:"Upgrade",Upgrade:"websocket"},n.path=i.pathname+i.search,n.timeout=n.handshakeTimeout,n.perMessageDeflate&&(d=new ty(!0!==n.perMessageDeflate?n.perMessageDeflate:{},!1,n.maxPayload),n.headers["Sec-WebSocket-Extensions"]=pg({[ty.extensionName]:d.offer()})),s.length){for(const e of s){if("string"!=typeof e||!gg.test(e)||h.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");h.add(e)}n.headers["Sec-WebSocket-Protocol"]=s.join(",")}if(n.origin&&(n.protocolVersion<13?n.headers["Sec-WebSocket-Origin"]=n.origin:n.headers.Origin=n.origin),(i.username||i.password)&&(n.auth=`${i.username}:${i.password}`),o){const e=n.path.split(":");n.socketPath=e[0],n.path=e[1]}if(n.followRedirects){if(0===e._redirects){e._originalIpc=o,e._originalSecure=a,e._originalHostOrSocketPath=o?n.socketPath:i.host;const t=r&&r.headers;if(r={...r,headers:{}},t)for(const[e,s]of Object.entries(t))r.headers[e.toLowerCase()]=s}else if(0===e.listenerCount("redirect")){const t=o?!!e._originalIpc&&n.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&i.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!a)&&(delete n.headers.authorization,delete n.headers.cookie,t||delete n.headers.host,n.auth=void 0)}n.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(n.auth).toString("base64")),f=e._req=p(n),e._redirects&&e.emit("redirect",e.url,f)}else f=e._req=p(n);n.timeout&&f.on("timeout",(()=>{wg(e,f,"Opening handshake has timed out")})),f.on("error",(t=>{null===f||f[fg]||(f=e._req=null,Eg(e,t))})),f.on("response",(i=>{const a=i.headers.location,o=i.statusCode;if(a&&n.followRedirects&&o>=300&&o<400){if(++e._redirects>n.maxRedirects)return void wg(e,f,"Maximum redirects exceeded");let i;f.abort();try{i=new eg(a,t)}catch(t){const s=new SyntaxError(`Invalid URL: ${a}`);return void Eg(e,s)}bg(e,i,s,r)}else e.emit("unexpected-response",f,i)||wg(e,f,`Unexpected server response: ${i.statusCode}`)})),f.on("upgrade",((t,s,r)=>{if(e.emit("upgrade",t),e.readyState!==xg.CONNECTING)return;f=e._req=null;const i=t.headers.upgrade;if(void 0===i||"websocket"!==i.toLowerCase())return void wg(e,s,"Invalid Upgrade header");const a=Qy("sha1").update(l+rg).digest("base64");if(t.headers["sec-websocket-accept"]!==a)return void wg(e,s,"Invalid Sec-WebSocket-Accept header");const o=t.headers["sec-websocket-protocol"];let c;if(void 0!==o?h.size?h.has(o)||(c="Server sent an invalid subprotocol"):c="Server sent a subprotocol but none was requested":h.size&&(c="Server sent no subprotocol"),c)return void wg(e,s,c);o&&(e._protocol=o);const u=t.headers["sec-websocket-extensions"];if(void 0!==u){if(!d){return void wg(e,s,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=hg(u)}catch(t){return void wg(e,s,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t);if(1!==r.length||r[0]!==ty.extensionName){return void wg(e,s,"Server indicated an extension that was not requested")}try{d.accept(t[ty.extensionName])}catch(t){return void wg(e,s,"Invalid Sec-WebSocket-Extensions header")}e._extensions[ty.extensionName]=d}e.setSocket(s,r,{allowSynchronousEvents:n.allowSynchronousEvents,generateMask:n.generateMask,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation})})),n.finishRequest?n.finishRequest(f,e):f.end()}function Eg(e,t){e._readyState=xg.CLOSING,e.emit("error",t),e.emitClose()}function Cg(e){return e.path=e.socketPath,J.default.connect(e)}function Ag(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=J.default.isIP(e.host)?"":e.host),Q.default.connect(e)}function wg(e,t,s){e._readyState=xg.CLOSING;const r=new Error(s);Error.captureStackTrace(r,wg),t.setHeader?(t[fg]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(Eg,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function Dg(e,t,s){if(t){const s=dg(t).length;e._socket?e._sender._bufferedBytes+=s:e._bufferedAmount+=s}if(s){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${yg[e.readyState]})`);process.nextTick(s,t)}}function Tg(e,t){const s=this[og];s._closeFrameReceived=!0,s._closeMessage=t,s._closeCode=e,void 0!==s._socket[og]&&(s._socket.removeListener("data",Lg),process.nextTick(Fg,s._socket),1005===e?s.close():s.close(e,t))}function Sg(){const e=this[og];e.isPaused||e._socket.resume()}function Pg(e){const t=this[og];void 0!==t._socket[og]&&(t._socket.removeListener("data",Lg),process.nextTick(Fg,t._socket),t.close(e[ag])),t.emit("error",e)}function kg(){this[og].emitClose()}function _g(e,t){this[og].emit("message",e,t)}function Ng(e){const t=this[og];t._autoPong&&t.pong(e,!this._isServer,cg),t.emit("ping",e)}function Ig(e){this[og].emit("pong",e)}function Fg(e){e.resume()}function Og(){const e=this[og];let t;this.removeListener("close",Og),this.removeListener("data",Lg),this.removeListener("end",Bg),e._readyState=xg.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[og]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",kg),e._receiver.on("finish",kg))}function Lg(e){this[og]._receiver.write(e)||this.pause()}function Bg(){const e=this[og];e._readyState=xg.CLOSING,e._receiver.end(),this.end()}function jg(){const e=this[og];this.removeListener("error",jg),this.on("error",cg),e&&(e._readyState=xg.CLOSING,this.destroy())}const{Duplex:Mg}=$.default;function Rg(e){e.emit("close")}function Ug(){!this.destroyed&&this._writableState.finished&&this.destroy()}function qg(e){this.removeListener("error",qg),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}var $g=function(e,t){let s=!0;const r=new Mg({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",(function(t,s){const n=!s&&r._readableState.objectMode?t.toString():t;r.push(n)||e.pause()})),e.once("error",(function(e){r.destroyed||(s=!1,r.destroy(e))})),e.once("close",(function(){r.destroyed||r.push(null)})),r._destroy=function(t,n){if(e.readyState===e.CLOSED)return n(t),void process.nextTick(Rg,r);let i=!1;e.once("error",(function(e){i=!0,n(e)})),e.once("close",(function(){i||n(t),process.nextTick(Rg,r)})),s&&e.terminate()},r._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),r._readableState.endEmitted&&r.destroy()):(e._socket.once("finish",(function(){t()})),e.close())):e.once("open",(function(){r._final(t)}))},r._read=function(){e.isPaused&&e.resume()},r._write=function(t,s,n){e.readyState!==e.CONNECTING?e.send(t,n):e.once("open",(function(){r._write(t,s,n)}))},r.on("end",Ug),r.on("error",qg),r};const{tokenChars:zg}=oy;var Hg={parse:function(e){const t=new Set;let s=-1,r=-1,n=0;for(;n<e.length;n++){const i=e.charCodeAt(n);if(-1===r&&1===zg[i])-1===s&&(s=n);else if(0===n||32!==i&&9!==i){if(44!==i)throw new SyntaxError(`Unexpected character at index ${n}`);{if(-1===s)throw new SyntaxError(`Unexpected character at index ${n}`);-1===r&&(r=n);const i=e.slice(s,r);if(t.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);t.add(i),s=r=-1}}else-1===r&&-1!==s&&(r=n)}if(-1===s||-1!==r)throw new SyntaxError("Unexpected end of input");const i=e.slice(s,n);if(t.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return t.add(i),t}};const{createHash:Vg}=M.default,{GUID:Gg,kWebSocket:Wg}=gm,Jg=/^[+/0-9A-Za-z]{22}==$/;class Xg extends Z.default{constructor(e,t){if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:vg,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=R.default.createServer(((e,t)=>{const s=R.default.STATUS_CODES[426];t.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),t.end(s)})),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const s of Object.keys(t))e.on(s,t[s]);return function(){for(const s of Object.keys(t))e.removeListener(s,t[s])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,s,r)=>{this.handleUpgrade(t,s,r,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",(()=>{e(new Error("The server is not running"))})),void process.nextTick(Yg,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(Yg,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close((()=>{Yg(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,s,r){t.on("error",Zg);const n=e.headers["sec-websocket-key"],i=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if("GET"!==e.method){return void ex(this,e,t,405,"Invalid HTTP method")}if(void 0===i||"websocket"!==i.toLowerCase()){return void ex(this,e,t,400,"Invalid Upgrade header")}if(void 0===n||!Jg.test(n)){return void ex(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header")}if(8!==a&&13!==a){return void ex(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header")}if(!this.shouldHandle(e))return void Qg(t,400);const o=e.headers["sec-websocket-protocol"];let c=new Set;if(void 0!==o)try{c=Hg.parse(o)}catch(s){return void ex(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const u=e.headers["sec-websocket-extensions"],l={};if(this.options.perMessageDeflate&&void 0!==u){const s=new ty(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const e=Yy.parse(u);e[ty.extensionName]&&(s.accept(e[ty.extensionName]),l[ty.extensionName]=s)}catch(s){return void ex(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const i={origin:e.headers[""+(8===a?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(i,((i,a,o,u)=>{if(!i)return Qg(t,a||401,o,u);this.completeUpgrade(l,n,c,e,t,s,r)}));if(!this.options.verifyClient(i))return Qg(t,401)}this.completeUpgrade(l,n,c,e,t,s,r)}completeUpgrade(e,t,s,r,n,i,a){if(!n.readable||!n.writable)return n.destroy();if(n[Wg])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return Qg(n,503);const o=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Vg("sha1").update(t+Gg).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(s.size){const e=this.options.handleProtocols?this.options.handleProtocols(s,r):s.values().next().value;e&&(o.push(`Sec-WebSocket-Protocol: ${e}`),c._protocol=e)}if(e[ty.extensionName]){const t=e[ty.extensionName].params,s=Yy.format({[ty.extensionName]:[t]});o.push(`Sec-WebSocket-Extensions: ${s}`),c._extensions=e}this.emit("headers",o,r),n.write(o.concat("\r\n").join("\r\n")),n.removeListener("error",Zg),c.setSocket(n,i,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",(()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Yg,this)}))),a(c,r)}}var Kg=Xg;function Yg(e){e._state=2,e.emit("close")}function Zg(){this.destroy()}function Qg(e,t,s,r){s=s||R.default.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(s),...r},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${R.default.STATUS_CODES[t]}\r\n`+Object.keys(r).map((e=>`${e}: ${r[e]}`)).join("\r\n")+"\r\n\r\n"+s)}function ex(e,t,s,r,n){if(e.listenerCount("wsClientError")){const r=new Error(n);Error.captureStackTrace(r,ex),e.emit("wsClientError",r,s,t)}else Qg(s,r,n)}vg.createWebSocketStream=$g,vg.Server=Kg,vg.Receiver=vy,vg.Sender=Ny,vg.WebSocket=vg,vg.WebSocketServer=vg.Server;const tx=vg,sx=process.nextTick,rx="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const nx={websocket:class extends Qf{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=rx?{}:Jf(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=new tx(e,t,s)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;Bf(s,this.supportsBinary,(e=>{const t={};if(s.options&&(t.compress=s.options.compress),this.opts.perMessageDeflate){("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{this.ws.send(e,t)}catch(e){}r&&sx((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=om()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!tx}},webtransport:class extends Qf{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){zf||(zf=new TextDecoder);const s=[];let r=0,n=-1,i=!1;return new TransformStream({transform(a,o){for(s.push(a);;){if(0===r){if(Hf(s)<1)break;const e=Vf(s,1);i=!(128&~e[0]),n=127&e[0],r=n<126?3:126===n?1:2}else if(1===r){if(Hf(s)<2)break;const e=Vf(s,2);n=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(Hf(s)<8)break;const e=Vf(s,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){o.enqueue(Lf);break}n=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(Hf(s)<n)break;const e=Vf(s,n);o.enqueue(Rf(i?e:zf.decode(e),t)),r=0}if(0===n||n>e){o.enqueue(Lf);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=$f();r.readable.pipeTo(e.writable),this.writer=r.writable.getWriter();const n=()=>{s.read().then((({done:e,value:t})=>{e||(this.onPacket(t),n())})).catch((e=>{}))};n();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;this.writer.write(s).then((()=>{r&&sx((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends Qf{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let s=location.port;s||(s=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||s!==e.port}const t=e&&e.forceBase64;this.supportsBinary=fm&&!t,this.opts.withCredentials&&(this.cookieJar=new hm)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const s=e.split(qf),r=[];for(let e=0;e<s.length;e++){const n=Rf(s[e],t);if(r.push(n),"error"===n.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const s=e.length,r=new Array(s);let n=0;e.forEach(((e,i)=>{Bf(e,!1,(e=>{r[i]=e,++n===s&&t(r.join(qf))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=om()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new mm(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},ix=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ax=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ox(e){if(e.length>2e3)throw"URI too long";const t=e,s=e.indexOf("["),r=e.indexOf("]");-1!=s&&-1!=r&&(e=e.substring(0,s)+e.substring(s,r).replace(/:/g,";")+e.substring(r,e.length));let n=ix.exec(e||""),i={},a=14;for(;a--;)i[ax[a]]=n[a]||"";return-1!=s&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const s=/\/{2,9}/g,r=t.replace(s,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const s={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(s[t]=r)})),s}(0,i.query),i}class cx extends Gf{constructor(e,t={}){super(),this.binaryType="nodebuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=ox(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=ox(t.host).host),Yf(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},s=e.split("&");for(let e=0,r=s.length;e<r;e++){let r=s[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new nx[e](s)}open(){let e;if(this.opts.rememberUpgrade&&cx.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),s=!1;cx.priorWebsocketSuccess=!1;const r=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!s)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;cx.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{s||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function n(){s||(s=!0,u(),t.close(),t=null)}const i=e=>{const s=new Error("probe error: "+e);s.transport=t.name,n(),this.emitReserved("upgradeError",s)};function a(){i("transport closed")}function o(){i("socket closed")}function c(e){t&&e.name!==t.name&&n()}const u=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",o),this.off("upgrading",c)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",o),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{s||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",cx.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,s=0;for(let r=0,n=e.length;r<n;r++)t=e.charCodeAt(r),t<128?s+=1:t<2048?s+=2:t<55296||t>=57344?s+=3:(r++,s+=4);return s}(t):Math.ceil(1.33*(t.byteLength||t.size))),s>0&&e>this.maxPayload)return this.writeBuffer.slice(0,s);e+=2}var t;return this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof s&&(r=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;const n={type:e,data:t,options:s};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():e()})):this.upgrading?s():e()),this}onError(e){cx.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const r=e.length;for(;s<r;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}cx.protocol=4;const ux="function"==typeof ArrayBuffer,lx=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,px=Object.prototype.toString,hx="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===px.call(Blob),dx="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===px.call(File);function fx(e){return ux&&(e instanceof ArrayBuffer||lx(e))||hx&&e instanceof Blob||dx&&e instanceof File}function mx(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,s=e.length;t<s;t++)if(mx(e[t]))return!0;return!1}if(fx(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return mx(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&mx(e[t]))return!0;return!1}function yx(e){const t=[],s=e.data,r=e;return r.data=gx(s,t),r.attachments=t.length,{packet:r,buffers:t}}function gx(e,t){if(!e)return e;if(fx(e)){const s={_placeholder:!0,num:t.length};return t.push(e),s}if(Array.isArray(e)){const s=new Array(e.length);for(let r=0;r<e.length;r++)s[r]=gx(e[r],t);return s}if("object"==typeof e&&!(e instanceof Date)){const s={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(s[r]=gx(e[r],t));return s}return e}function xx(e,t){return e.data=vx(e.data,t),delete e.attachments,e}function vx(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let s=0;s<e.length;s++)e[s]=vx(e[s],t);else if("object"==typeof e)for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=vx(e[s],t));return e}const bx=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ex;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(Ex||(Ex={}));function Cx(e){return"[object Object]"===Object.prototype.toString.call(e)}class Ax extends Gf{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===Ex.BINARY_EVENT;s||t.type===Ex.BINARY_ACK?(t.type=s?Ex.EVENT:Ex.ACK,this.reconstructor=new wx(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!fx(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(void 0===Ex[s.type])throw new Error("unknown packet type "+s.type);if(s.type===Ex.BINARY_EVENT||s.type===Ex.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const n=e.substring(r,t);if(n!=Number(n)||"-"!==e.charAt(t))throw new Error("Illegal attachments");s.attachments=Number(n)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}s.nsp=e.substring(r,t)}else s.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const s=e.charAt(t);if(null==s||Number(s)!=s){--t;break}if(t===e.length)break}s.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!Ax.isPayloadValid(s.type,r))throw new Error("invalid payload");s.data=r}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case Ex.CONNECT:return Cx(t);case Ex.DISCONNECT:return void 0===t;case Ex.CONNECT_ERROR:return"string"==typeof t||Cx(t);case Ex.EVENT:case Ex.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===bx.indexOf(t[0]));case Ex.ACK:case Ex.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class wx{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=xx(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var Dx=Object.freeze({__proto__:null,protocol:5,get PacketType(){return Ex},Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==Ex.EVENT&&e.type!==Ex.ACK||!mx(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Ex.EVENT?Ex.BINARY_EVENT:Ex.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Ex.BINARY_EVENT&&e.type!==Ex.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=yx(e),s=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(s),r}},Decoder:Ax});function Tx(e,t,s){return e.on(t,s),function(){e.off(t,s)}}const Sx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Px extends Gf{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Tx(e,"open",this.onopen.bind(this)),Tx(e,"packet",this.onpacket.bind(this)),Tx(e,"error",this.onerror.bind(this)),Tx(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(Sx.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const s={type:Ex.EVENT,data:t,options:{}};if(s.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,r=t.pop();this._registerAckCallback(e,r),s.id=e}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var s;const r=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r),i=(...e)=>{this.io.clearTimeoutFn(n),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((s,r)=>{const n=(e,t)=>e?r(e):s(t);n.withError=!0,t.push(n),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(s!==this._queue[0])return;return null!==e?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ex.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ex.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ex.EVENT:case Ex.BINARY_EVENT:this.onevent(e);break;case Ex.ACK:case Ex.BINARY_ACK:this.onack(e);break;case Ex.DISCONNECT:this.ondisconnect();break;case Ex.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:Ex.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ex.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function kx(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}kx.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),s=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+s:e-s}return 0|Math.min(e,this.max)},kx.prototype.reset=function(){this.attempts=0},kx.prototype.setMin=function(e){this.ms=e},kx.prototype.setMax=function(e){this.max=e},kx.prototype.setJitter=function(e){this.jitter=e};class _x extends Gf{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,Yf(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=t.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new kx({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||Dx;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new cx(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=Tx(t,"open",(function(){s.onopen(),e&&e()})),n=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=Tx(t,"error",n);if(!1!==this._timeout){const e=this._timeout,s=this.setTimeoutFn((()=>{r(),n(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Tx(e,"ping",this.onping.bind(this)),Tx(e,"data",this.ondata.bind(this)),Tx(e,"error",this.onerror.bind(this)),Tx(e,"close",this.onclose.bind(this)),Tx(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){sx((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Px(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Nx={};function Ix(e,t){"object"==typeof e&&(t=e,e=void 0);const s=function(e,t="",s){let r=e;s=s||"undefined"!=typeof location&&location,null==e&&(e=s.protocol+"//"+s.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?s.protocol+e:s.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==s?s.protocol+"//"+e:"https://"+e),r=ox(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+t,r.href=r.protocol+"://"+n+(s&&s.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=s.source,n=s.id,i=s.path,a=Nx[n]&&i in Nx[n].nsps;let o;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?o=new _x(r,t):(Nx[n]||(Nx[n]=new _x(r,t)),o=Nx[n]),s.query&&!t.query&&(t.query=s.queryKey),o.socket(s.path,t)}Object.assign(Ix,{Manager:_x,Socket:Px,io:Ix,connect:Ix});var Fx="wss://editor.appthen.com",Ox=process.env.IsDev,Lx=function(){function e(e){this.connectState="connecting",this.connectStateText="连接中...",this.roomId="",this.account="",this.config=e}return e.prototype.joinRoom=function(e){var t,s=e.roomId,r=e.account;this.roomId=s,this.account=r,null===(t=this.socket)||void 0===t||t.emit("join",{room:s,account:r})},e.prototype.leaveRoom=function(){var e;null===(e=this.socket)||void 0===e||e.emit("leave",{room:this.roomId,account:this.account})},e.prototype.sendMessage=function(e){var t;null===(t=this.socket)||void 0===t||t.emit("message",{room:this.roomId,message:e})},e.prototype.connect=function(){var e=this,t=this.config,s=t.onconnect,r=t.onreconnect,n=t.onmsg;console.log("connect socket.io",Fx);var i=Ix(Fx,{transports:["websocket"]});this.onConnectChange("connecting"),i.on("opend",(function(t){e.onConnectChange("connect")})),i.on("message",(function(e){Ox&&console.log("socket.io message event",e),null==n||n(e)})),i.on("connect",(function(){Ox&&console.log("socket.io connect event"),s()})),i.on("disconnect",(function(){Ox&&console.log("socket.io disconnect event"),e.onConnectChange("disconnect")})),i.on("connect_error",(function(t){Ox&&console.log("socket.io connect_error event",t),e.onConnectChange("connect_error")})),i.on("connect_timeout",(function(){Ox&&console.log("socket.io connect_timeout event"),e.onConnectChange("connect_timeout")})),i.on("reconnect",(function(){Ox&&console.log("socket.io reconnect event"),null==r||r(),e.onConnectChange("reconnect")})),i.on("reconnect_attempt",(function(){Ox&&console.log("socket.io reconnect_attempt event"),e.onConnectChange("reconnect_attempt")})),i.on("reconnecting",(function(){Ox&&console.log("socket.io reconnecting event"),e.onConnectChange("reconnecting")})),i.on("reconnect_error",(function(){Ox&&console.log("socket.io reconnect_error event"),e.onConnectChange("reconnect_error")})),i.on("reconnect_failed",(function(){Ox&&console.log("socket.io reconnect_failed event"),e.onConnectChange("reconnect_failed")})),this.socket=i},e.prototype.onConnectChange=function(e){var t=this;switch(this.connectState=e,e){case"connecting":case"reconnecting":this.connectStateText="连接中...";break;case"connect":case"reconnect":this.connectStateText="连接成功",setTimeout((function(){t.connectStateText=""}),1500);break;case"disconnect":this.connectStateText="未连接";break;case"connect_error":case"reconnect_error":case"reconnect_failed":this.connectStateText="请检查网络";break;case"connect_timeout":this.connectStateText="连接超时"}},e}(),Bx=require("child_process").exec;exports.create=function(e){return ne(this,void 0,void 0,(function(){var t,s,r,n,i,a,o,c,u;return ie(this,(function(l){switch(l.label){case 0:s=(t=e||{}).template,r=void 0===s?"vite":s,n=t.folder,i=void 0===n?"appthen-assets-starter":n,console.log("template: ",r),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,ja("/material/templates",{},{method:"GET"})];case 2:return a=l.sent(),o=a.data,c=o.find((function(e){return e.name===r})),c?[4,If(c,c.url,i)]:[3,4];case 3:return l.sent(),[3,5];case 4:console.log("[ERROR] ","template not found"),l.label=5;case 5:return[3,7];case 6:throw u=l.sent(),console.log("[e] ",u),u;case 7:return[2,1]}}))}))},exports.fuck=function(){},exports.getPureValue=Ud,exports.initSolution=function(e,t){return ne(this,void 0,void 0,(function(){var s,r,n,i,a,o,c,u,l,p,h,d,f;return ie(this,(function(m){switch(m.label){case 0:return m.trys.push([0,11,,12]),s=process.cwd(),r=e[0]||"hello",n=_.resolve(s,r),"."===r&&(r=_.basename(s),n=s),i=function(e){return e.replace(/hello-world/g,Mh(r)).replace(/HelloWorld/g,Rh(r)).replace(/Hello World/g,jh(r))},[4,Hd(n)];case 1:m.sent(),a=[{file:".editorconfig",content:"root = true\n\n[*]\nindent_style = space\nindent_size = 2\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\nquote_type = single\n\n[*.md]\ntrim_trailing_whitespace = false\n"},{file:".eslintignore",content:"# 忽略目录\nnode_modules/\nbuild/\ndist/\ntest-cases/\ntest/\ntests/\noutput/\nes/\nlib/\ncoverage/\n\n# 忽略文件\n**/*.min.js\n**/*-min.js\n**/*.bundle.js\n"},{file:".eslintrc.js",content:"module.exports = {\n extends: 'eslint-config-ali/typescript/react',\n rules: {\n 'max-len': ['error', { code: 200 }],\n 'comma-dangle': 0,\n },\n};\n"},{file:".gitignore",content:"# project custom\nbuild\nes\nlib\ndist\noutput\npackage-lock.json\ndeploy-space/packages\ndeploy-space/.env\ngenerated\n\n# IDE\n.vscode\n.idea\n\n# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (https://nodejs.org/api/addons.html)\nbuild/Release\nlib\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# TypeScript v1 declaration files\ntypings/\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variables file\n.env\n.env.test\n\n# parcel-bundler cache (https://parceljs.org/)\n.cache\n\n# next.js build output\n.next\n\n# nuxt.js build output\n.nuxt\n\n# vuepress build output\n.vuepress/dist\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/\n\n# DynamoDB Local files\n.dynamodb/\n\n# mac config files\n.DS_Store\n\n# codealike\ncodealike.json\n.node\n"},{file:".prettierignore",content:"/test-cases/"},{file:".prettierrc",content:'{\n "tabWidth": 2,\n "singleQuote": true,\n "trailingComma": "es5"\n}\n'},{file:"CHANGELOG.md",content:""},{file:"CONTRIBUTING.md",content:"# 欢迎共建\n\n# 注意\n\n- 注意解决 eslint 问题\n- 注意代码格式化 -- 建议安装 prettier 插件\n- 发布前注意要跑通 demo 和所有的单测\n\n## 本地调试运行 Demo\n\n```sh\n> npm run demo\n```\n\n## 本地跑单测\n\n```sh\n> npm test\n```\n"},{file:"README.md",content:"# 低代码出码自定义方案之 Hello World\n\n## 直接执行\n\n```sh\n> npx ali-lowcode-solution-hello-world demo-schema.json\n```\n\n## 本地调试运行 Demo\n\n```sh\n> npm run demo\n```\n"},{file:"demo-schema.json",content:'{\n "version": "1.0.0",\n "componentsMap": [\n {\n "componentName": "Button",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Button"\n },\n {\n "componentName": "Button.Group",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Button",\n "subName": "Group"\n },\n {\n "componentName": "Input",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Input"\n },\n {\n "componentName": "Form",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Form"\n },\n {\n "componentName": "Form.Item",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Form",\n "subName": "Item"\n },\n {\n "componentName": "NumberPicker",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "NumberPicker"\n },\n {\n "componentName": "Select",\n "package": "@alifd/next",\n "version": "1.19.18",\n "destructuring": true,\n "exportName": "Select"\n }\n ],\n "componentsTree": [\n {\n "componentName": "Page",\n "id": "node$1",\n "meta": {\n "title": "测试",\n "router": "/"\n },\n "props": {\n "ref": "outterView",\n "autoLoading": true\n },\n "fileName": "test",\n "state": {\n "text": "outter"\n },\n "lifeCycles": {\n "componentDidMount": {\n "type": "IPublicTypeJSExpression",\n "value": "function() { console.log(\'componentDidMount\'); }"\n }\n },\n "methodsModule": {\n "type": "JSModule",\n "source": "export function helloWorld() {\\n console.log(\'Hello world!\');\\n}\\n"\n },\n "dataSource": {\n "list": [\n {\n "id": "urlParams",\n "type": "urlParams"\n },\n\n {\n "id": "user",\n "type": "fetch",\n "options": {\n "method": "GET",\n "uri": "https://shs.xxx.com/mock/1458/demo/user",\n "isSync": true\n },\n "dataHandler": {\n "type": "IPublicTypeJSExpression",\n "value": "function (response) {\\nif (!response.data.success){\\n throw new Error(response.data.message);\\n }\\n return response.data.data;\\n}"\n }\n },\n\n {\n "id": "orders",\n "type": "fetch",\n "options": {\n "method": "GET",\n "uri": "https://shs.xxx.com/mock/1458/demo/orders",\n "isSync": true\n },\n "dataHandler": {\n "type": "IPublicTypeJSExpression",\n "value": "function (response) {\\nif (!response.data.success){\\n throw new Error(response.data.message);\\n }\\n return response.data.data.result;\\n}"\n }\n }\n ],\n "dataHandler": {\n "type": "IPublicTypeJSExpression",\n "value": "function (dataMap) {\\n console.info(\\"All datasources loaded:\\", dataMap);\\n}"\n }\n },\n "children": [\n {\n "componentName": "Form",\n "id": "node$2",\n "props": {\n "labelCol": {\n "type": "IPublicTypeJSExpression",\n "value": "this.state.colNum"\n },\n "style": {},\n "ref": "testForm"\n },\n "children": [\n {\n "componentName": "Form.Item",\n "id": "node$3",\n "props": {\n "label": "姓名:",\n "name": "name",\n "initValue": "李雷"\n },\n "children": [\n {\n "componentName": "Input",\n "id": "node$4",\n "props": {\n "placeholder": "请输入",\n "size": "medium",\n "style": {\n "width": 320\n }\n }\n }\n ]\n },\n {\n "componentName": "Form.Item",\n "id": "node$5",\n "props": {\n "label": "年龄:",\n "name": "age",\n "initValue": "22"\n },\n "children": [\n {\n "componentName": "NumberPicker",\n "id": "node$6",\n "props": {\n "size": "medium",\n "type": "normal"\n }\n }\n ]\n },\n {\n "componentName": "Form.Item",\n "id": "node$7",\n "props": {\n "label": "职业:",\n "name": "profession"\n },\n "children": [\n {\n "componentName": "Select",\n "id": "node$8",\n "props": {\n "dataSource": [\n {\n "label": "教师",\n "value": "t"\n },\n {\n "label": "医生",\n "value": "d"\n },\n {\n "label": "歌手",\n "value": "s"\n }\n ]\n }\n }\n ]\n },\n {\n "componentName": "Div",\n "id": "node$9",\n "props": {\n "style": {\n "textAlign": "center"\n }\n },\n "children": [\n {\n "componentName": "Button.Group",\n "id": "node$a",\n "props": {},\n "children": [\n {\n "componentName": "Button",\n "id": "node$b",\n "condition": {\n "type": "IPublicTypeJSExpression",\n "value": "this.index >= 1"\n },\n "loop": ["a", "b", "c"],\n "props": {\n "type": "primary",\n "style": {\n "margin": "0 5px 0 5px"\n }\n },\n "children": [\n {\n "type": "IPublicTypeJSExpression",\n "value": "this.item"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ],\n "constants": {\n "ENV": "prod",\n "DOMAIN": "xxx.xxx.com"\n },\n "css": "body {font-size: 12px;} .table { width: 100px;}",\n "config": {\n "sdkVersion": "1.0.3",\n "historyMode": "hash",\n "targetRootID": "J_Container",\n "layout": {\n "componentName": "BasicLayout",\n "props": {\n "logo": "...",\n "name": "测试网站"\n }\n },\n "theme": {\n "package": "@alife/theme-fusion",\n "version": "^0.1.0",\n "primary": "#ff9966"\n }\n },\n "meta": {\n "name": "demo应用",\n "git_group": "appGroup",\n "project_name": "app_demo",\n "description": "这是一个测试应用",\n "spma": "spa23d",\n "creator": "月飞"\n }\n}\n'},{file:"jest.config.js",content:"module.exports = {\n preset: 'ts-jest',\n testEnvironment: 'node',\n testPathIgnorePatterns: ['/node_modules/', '/test-cases/', '/static-files/', '/lib/'],\n};\n"},{file:"package.json",content:'{\n "name": "ali-lowcode-solution-hello-world",\n "version": "1.0.0",\n "description": "AlLowCode Code Generate Solution - Hello World",\n "files": [\n "src",\n "lib",\n "tests",\n "jest.config.js",\n ".editorconfig",\n ".eslintignore",\n ".eslintrc.js",\n ".gitignore",\n ".prettierignore",\n ".prettierrc",\n "CHANGELOG.md",\n "CONTRIBUTING.md",\n "demo-schema.json",\n "package.json",\n "README.md",\n "tsconfig.json"\n ],\n "main": "lib/index.js",\n "scripts": {\n "start": "jest --watch",\n "build": "npm run clean && concurrently \'npm run build:ts\' \'npm run lint\'",\n "build:ts": "tsc",\n "check:type": "tsc -p . --noEmit",\n "clean": "rm -rf build dist lib generated",\n "dev": "build-scripts start",\n "lint": "eslint --ext .tsx,.ts,.js,.jsx src",\n "lintfix": "eslint --fix --color --ext .tsx,.ts,.js,.jsx src",\n "lint-staged": "lint-staged",\n "prepublishOnly": "npm run build",\n "postpublish": "git push origin master --tags",\n "test": "jest",\n "test:watch": "jest --watch",\n "test:update-snapshots": "cross-env UPDATE_EXPECTED=true npx jest",\n "demo": "npm run build && npx @alilc/lowcode-code-generator --solution . --output generated demo-schema.json"\n },\n "repository": {\n "type": "git",\n "url": "git@github.com:your-name/ali-lowcode-solution-hello-world.git"\n },\n "author": "",\n "license": "ISC",\n "publishConfig": {\n "registry": "https://registry.npm.xxx.com"\n },\n "dependencies": {\n "@alilc/lowcode-code-generator": "^1.0.0-beta.16",\n "@alilc/lowcode-types": "^1.0.0-beta.21",\n "tslib": "^2.3.0"\n },\n "devDependencies": {\n "@types/async": "^3.2.3",\n "@types/jest": "^26.0.17",\n "@typescript-eslint/eslint-plugin": "^4.28.4",\n "@typescript-eslint/parser": "^4.28.4",\n "async": "^3.2.0",\n "babel-runtime": "^6.26.0",\n "concurrently": "^5.2.0",\n "cross-env": "^7.0.0",\n "debug": "^4.1.1",\n "eslint": "^7.31.0",\n "eslint-config-ali": "^12.1.0",\n "eslint-plugin-import": "^2.23.4",\n "eslint-plugin-react": "^7.24.0",\n "eslint-plugin-react-hooks": "^4.2.0",\n "glob": "^7.2.0",\n "husky": "4.2.5",\n "jest": "^26.6.3",\n "json5": "^2.2.0",\n "lint-staged": "10.1.x",\n "lodash": "^4.17.21",\n "md5": "^2.2.1",\n "prettier": "^2.3.2",\n "ts-jest": "^26.4.4",\n "ts-node": "^9.0.0",\n "typescript": "4.x"\n }\n}\n'},{file:"tsconfig.json",content:'{\n "compilerOptions": {\n "esModuleInterop": true,\n "declaration": true,\n "experimentalDecorators": true,\n "forceConsistentCasingInFileNames": true,\n "importHelpers": true,\n "incremental": false,\n "jsx": "react",\n "moduleResolution": "node",\n "resolveJsonModule": true,\n "skipLibCheck": true,\n "sourceMap": true,\n "strict": true,\n "stripInternal": true,\n "outDir": "./lib",\n "declarationDir": "./lib",\n "rootDirs": ["./src"],\n "target": "es6",\n "module": "commonjs",\n "lib": ["esnext"],\n "types": ["jest", "node"],\n "noUnusedLocals": false,\n "noUnusedParameters": false\n },\n "include": ["src/**/*", "typings/**/*"]\n}\n'},{file:"src/index.ts",content:"import CodeGen from '@alilc/lowcode-code-generator';\n\nimport examplePlugin from './plugins/example';\n\nexport default function createHelloWorldProjectBuilder() {\n return CodeGen.createProjectBuilder({\n template: CodeGen.solutionParts.icejs.template,\n plugins: {\n components: [\n CodeGen.plugins.react.reactCommonDeps(),\n CodeGen.plugins.common.esmodule({ fileType: 'jsx' }),\n CodeGen.plugins.react.containerClass(),\n CodeGen.plugins.react.containerInjectContext(),\n CodeGen.plugins.react.containerInjectUtils(),\n CodeGen.plugins.react.containerInjectDataSourceEngine(),\n CodeGen.plugins.react.containerInjectI18n(),\n CodeGen.plugins.react.containerInitState(),\n CodeGen.plugins.react.containerLifeCycle(),\n CodeGen.plugins.react.containerMethod(),\n examplePlugin(),\n CodeGen.plugins.react.jsx({\n nodeTypeMapping: {\n Div: 'div',\n Component: 'div',\n Page: 'div',\n Block: 'div',\n },\n }),\n CodeGen.plugins.style.css(),\n ],\n pages: [\n CodeGen.plugins.react.reactCommonDeps(),\n CodeGen.plugins.common.esmodule({ fileType: 'jsx' }),\n CodeGen.plugins.react.containerClass(),\n CodeGen.plugins.react.containerInjectContext(),\n CodeGen.plugins.react.containerInjectUtils(),\n CodeGen.plugins.react.containerInjectDataSourceEngine(),\n CodeGen.plugins.react.containerInjectI18n(),\n CodeGen.plugins.react.containerInitState(),\n CodeGen.plugins.react.containerLifeCycle(),\n CodeGen.plugins.react.containerMethod(),\n examplePlugin(),\n CodeGen.plugins.react.jsx({\n nodeTypeMapping: {\n Div: 'div',\n Component: 'div',\n Page: 'div',\n Block: 'div',\n },\n }),\n CodeGen.plugins.style.css(),\n ],\n router: [\n CodeGen.plugins.common.esmodule(),\n CodeGen.solutionParts.icejs.plugins.router(),\n ],\n entry: [CodeGen.solutionParts.icejs.plugins.entry()],\n constants: [CodeGen.plugins.project.constants()],\n utils: [\n CodeGen.plugins.common.esmodule(),\n CodeGen.plugins.project.utils('react'),\n ],\n i18n: [CodeGen.plugins.project.i18n()],\n globalStyle: [CodeGen.solutionParts.icejs.plugins.globalStyle()],\n htmlEntry: [CodeGen.solutionParts.icejs.plugins.entryHtml()],\n packageJSON: [CodeGen.solutionParts.icejs.plugins.packageJSON()],\n },\n postProcessors: [CodeGen.postprocessor.prettier()],\n });\n}\n"},{file:"src/plugins/example.ts",content:"import {\n ICodeStruct,\n BuilderComponentPlugin,\n BuilderComponentPluginFactory,\n FileType,\n ChunkType,\n IContainerInfo,\n COMMON_CHUNK_NAME,\n CLASS_DEFINE_CHUNK_NAME,\n DEFAULT_LINK_AFTER,\n} from '@alilc/lowcode-code-generator';\n\nexport interface PluginConfig {\n fileType: string;\n}\n\nconst pluginFactory: BuilderComponentPluginFactory<PluginConfig> = (\n config?\n) => {\n const cfg: PluginConfig = {\n fileType: FileType.JSX,\n ...config,\n };\n\n const plugin: BuilderComponentPlugin = async (pre: ICodeStruct) => {\n const next: ICodeStruct = {\n ...pre,\n };\n\n const ir = next.ir as IContainerInfo & {\n methodsModule?: {\n type?: 'JSModule';\n source?: string;\n };\n };\n\n if (ir.methodsModule?.type !== 'JSModule' || !ir.methodsModule?.source) {\n return next;\n }\n\n // 创建 methods.jsx\n next.chunks.push({\n type: ChunkType.STRING,\n subModule: 'methods',\n fileType: cfg.fileType,\n name: COMMON_CHUNK_NAME.CustomContent,\n content: ir.methodsModule.source,\n linkAfter: [],\n });\n\n // 引入对应的模块\n next.chunks.push({\n type: ChunkType.STRING,\n fileType: cfg.fileType,\n name: COMMON_CHUNK_NAME.InternalDepsImport,\n content: \"import __$$methodsModule from './methods';\",\n linkAfter: [...DEFAULT_LINK_AFTER[COMMON_CHUNK_NAME.InternalDepsImport]],\n });\n\n // 将导出的东东都放到 class 上实例方法部分\n next.chunks.push({\n type: ChunkType.STRING,\n fileType: cfg.fileType,\n name: CLASS_DEFINE_CHUNK_NAME.ConstructorContent,\n content: 'Object.assign(this, __$$methodsModule);',\n linkAfter: [\n ...DEFAULT_LINK_AFTER[CLASS_DEFINE_CHUNK_NAME.ConstructorContent],\n ],\n });\n\n return next;\n };\n\n return plugin;\n};\n\nexport default pluginFactory;\n"},{file:"tests/basic.test.ts",content:"test('basic functions should be ok', () => {\n // 这里放一些单元测试\n expect(0).toBe(0);\n});\n"}],m.label=2;case 2:m.trys.push([2,8,9,10]),o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,s=t&&e[t],r=0;if(s)return s.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),c=o.next(),m.label=3;case 3:return c.done?[3,7]:(u=c.value,t.verbose&&console.log("%s",it.gray("creating file ".concat(u.file))),l=_.join(n,u.file),[4,Hd(_.dirname(l))]);case 4:return m.sent(),[4,K.writeFile(l,i(u.content),{encoding:"utf-8"})];case 5:m.sent(),m.label=6;case 6:return c=o.next(),[3,3];case 7:return[3,10];case 8:return p=m.sent(),d={error:p},[3,10];case 9:try{c&&!c.done&&(f=o.return)&&f.call(o)}finally{if(d)throw d.error}return[7];case 10:return t.quiet||console.log("%s",it.green("solution ".concat(r," created successfully"))),[2,0];case 11:return h=m.sent(),console.log(it.red(at(h)||"Unexpected error: ".concat(h))),"object"==typeof h&&(null==h?void 0:h.stack)&&t.verbose&&console.log(it.gray(h.stack)),[2,1];case 12:return[2]}}))}))},exports.releaseMaterial=function(e){return ne(this,void 0,void 0,(function(){var t,s,r,n,i,a,o,c,u,l,p,h,d,f,m,y,g,x,v,b,E,C;return ie(this,(function(A){switch(A.label){case 0:return(t=e.auth)&&Ba(t),s=process.cwd(),r="build/lowcode",n=k.default.resolve(process.cwd(),r),(i=F.existsSync(n))||(n=k.default.resolve(process.cwd(),"dist")),[4,function(e){return Promise.resolve().then((function(){return D(require(e))}))}(k.default.resolve(process.cwd(),"package.json"))];case 1:return a=A.sent(),o=a.name,c=a.version,i&&(console.log("lceViewJS: ",k.default.resolve(process.cwd(),r,"view.js")),p=F.readFileSync(k.default.resolve(process.cwd(),r,"view.js"),"utf-8"),u=zd(p),h=F.readFileSync(k.default.resolve(process.cwd(),r,"meta.js"),"utf-8"),l=zd(h)),console.log("Uploading material..."),[4,ct(n+"/")];case 2:d=A.sent(),f=[],m=0,A.label=3;case 3:return m<d.length?(y=d[m],(g=F.readFileSync(y.path+"/"+y.fileName,"utf-8"))&&0!==g.trim().length?[3,4]:(console.log("File is empty Do not Upload: ",y.path+"/"+y.fileName),[3,6])):[3,7];case 4:return x="".concat(o,"/").concat(c,"/")+(y.path.split("".concat(s,"/").concat(r,"/"))[1]||"")+y.fileName,[4,$d(y,{t:1,route:"material",path:x})];case 5:v=A.sent(),f.push(v),A.label=6;case 6:return m++,[3,3];case 7:return console.log("Npm Name: ",o),console.log("Npm Version: ",c),i?(b=f.find((function(e){return e.key.includes("".concat(c,"/view.js"))})),E=f.find((function(e){return e.key.includes("".concat(c,"/view.css"))})),C=f.find((function(e){return e.key.includes("".concat(c,"/meta.js"))})),console.log("Npm Export Name: ",u),console.log("Npm Js Url: ",null==b?void 0:b.url),console.log("Npm Css Url: ",null==E?void 0:E.url),console.log("Meta Export Name: ",l),console.log("Meta Url: ",null==C?void 0:C.url)):f.length>0&&f.forEach((function(e){console.log("File Name: ",e.key),console.log("File Url: ",e.url)})),[2,1]}}))}))},exports.run=Md,exports.startWatching=function(e){return ne(this,void 0,void 0,(function(){var t,s,r,n,i,a,o,c;return ie(this,(function(u){return t=e.id,s=e.auth,r=e.account,s&&Ba(e.auth),n="PROJECT_ROOM_"+t,i=ae((La||"").split("##"),2),a=i[0],o=i[1],c=new Lx({token:a,client:o,onconnect:function(){console.log("[Service] Editor connected!"),c.joinRoom({roomId:n,account:r})},onmsg:function(t){var s=t||{};s.action;var n=s.message;if(n){n.updatedFileState;var i=n.userId,a=n.current,o=n.cwd;String(i)===r&&(a&&Md(0,re(re({},e),{clear:!!a.clear})),o&&Bx(o,{shell:"/bin/bash"},(function(e,t,s){e&&console.error("执行出错: ".concat(e)),console.log("exec: ",e,t,s),c.sendMessage({action:"cwd",message:{stdout:t,stderr:s,error:e}})})))}}}),c.connect(),[2,1]}))}))};
|