@appthen/cli 1.1.22 → 1.1.23
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71,4 +71,4 @@ var Lu=function diff(e){for(var Z=arguments.length,ie=0;++ie<Z;)e=diffArray(e,ar
|
|
|
71
71
|
`,cliCategory:de},requirePragma:{since:"1.7.0",category:Ie,type:"boolean",default:!1,description:ie`
|
|
72
72
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
73
73
|
in order for it to be formatted.
|
|
74
|
-
`,cliCategory:be},tabWidth:{type:"int",category:ke,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:ke,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:ke,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."}]}};Z.exports={CATEGORY_CONFIG:ae,CATEGORY_EDITOR:de,CATEGORY_FORMAT:ve,CATEGORY_OTHER:be,CATEGORY_OUTPUT:Ce,CATEGORY_GLOBAL:ke,CATEGORY_SPECIAL:Ie,options:Fe}}}),It=I({"src/main/support.js"(e,Z){_e();var ae={compare:gt(),lt:vt(),gte:bt()},de=Et(),ve=Dt().version,be=kt().options;function i(){let{plugins:e=[],showUnreleased:Z=!1,showDeprecated:Ce=!1,showInternal:ke=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ie=ve.split("-",1)[0],_e=e.flatMap((e=>e.languages||[])).filter(m),Fe=de(Object.assign({},...e.map((e=>{let{options:Z}=e;return Z})),be),"name").filter((e=>m(e)&&T(e))).sort(((e,Z)=>e.name===Z.name?0:e.name<Z.name?-1:1)).map(w).map((Z=>{Z=Object.assign({},Z),Array.isArray(Z.default)&&(Z.default=1===Z.default.length?Z.default[0].value:Z.default.filter(m).sort(((e,Z)=>ae.compare(Z.since,e.since)))[0].value),Array.isArray(Z.choices)&&(Z.choices=Z.choices.filter((e=>m(e)&&T(e))),"parser"===Z.name&&f(Z,_e,e));let ie=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[Z.name])).map((e=>[e.name,e.defaultOptions[Z.name]])));return Object.assign(Object.assign({},Z),{},{pluginDefaults:ie})}));return{languages:_e,options:Fe};function m(e){return Z||!("since"in e)||e.since&&ae.gte(Ie,e.since)}function T(e){return Ce||!("deprecated"in e)||e.deprecated&&ae.lt(Ie,e.deprecated)}function w(e){return ke?e:JD(e,ie)}}function f(e,Z,ie){let ae=new Set(e.choices.map((e=>e.value)));for(let de of Z)if(de.parsers)for(let Z of de.parsers)if(!ae.has(Z)){ae.add(Z);let ve=ie.find((e=>e.parsers&&e.parsers[Z])),be=de.name;ve&&ve.name&&(be+=` (plugin: ${ve.name})`),e.choices.push({value:Z,description:be})}}Z.exports={getSupportInfo:i}}}),_t=I({"src/utils/is-non-empty-array.js"(e,Z){function u(e){return Array.isArray(e)&&e.length>0}_e(),Z.exports=u}});function Sl(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=["[\\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(Z,e?void 0:"g")}var Ft=Ee({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){_e()}});function Tl(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Sl(),"")}var Ut=Ee({"node_modules/strip-ansi/index.js"(){_e(),Ft()}});function bl(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 qt=Ee({"node_modules/is-fullwidth-code-point/index.js"(){_e()}}),Ht=I({"node_modules/emoji-regex/index.js"(e,Z){_e(),Z.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}}}),Vt={};function Ol(e){if("string"!=typeof e||0===e.length||0===(e=Tl(e)).length)return 0;e=e.replace((0,Gt.default)()," ");let Z=0;for(let ie=0;ie<e.length;ie++){let ae=e.codePointAt(ie);ae<=31||ae>=127&&ae<=159||ae>=768&&ae<=879||(ae>65535&&ie++,Z+=bl(ae)?2:1)}return Z}ps(Vt,{default:()=>Ol});var Gt,Jt=Ee({"node_modules/string-width/index.js"(){_e(),Ut(),qt(),Gt=nl(Ht())}}),Wt=I({"src/utils/get-string-width.js"(e,Z){_e();var ie=(Jt(),ds(Vt)).default,ae=/[^\x20-\x7F]/;function D(e){return e?ae.test(e)?ie(e):e.length:0}Z.exports=D}}),Xt=I({"src/utils/text/skip.js"(e,Z){function u(e){return(Z,ie,ae)=>{let de=ae&&ae.backwards;if(!1===ie)return!1;let{length:ve}=Z,be=ie;for(;be>=0&&be<ve;){let ie=Z.charAt(be);if(e instanceof RegExp){if(!e.test(ie))return be}else if(!e.includes(ie))return be;de?be--:be++}return(-1===be||be===ve)&&be}}_e();var ie=u(/\s/),ae=u(" \t"),de=u(",; \t"),ve=u(/[^\n\r]/);Z.exports={skipWhitespace:ie,skipSpaces:ae,skipToLineEnd:de,skipEverythingButNewLine:ve}}}),Yt=I({"src/utils/text/skip-inline-comment.js"(e,Z){function u(e,Z){if(!1===Z)return!1;if("/"===e.charAt(Z)&&"*"===e.charAt(Z+1))for(let ie=Z+2;ie<e.length;++ie)if("*"===e.charAt(ie)&&"/"===e.charAt(ie+1))return ie+2;return Z}_e(),Z.exports=u}}),Zt=I({"src/utils/text/skip-trailing-comment.js"(e,Z){_e();var{skipEverythingButNewLine:ie}=Xt();function n(e,Z){return!1!==Z&&("/"===e.charAt(Z)&&"/"===e.charAt(Z+1)?ie(e,Z):Z)}Z.exports=n}}),tr=I({"src/utils/text/skip-newline.js"(e,Z){function u(e,Z,ie){let ae=ie&&ie.backwards;if(!1===Z)return!1;let de=e.charAt(Z);if(ae){if("\r"===e.charAt(Z-1)&&"\n"===de)return Z-2;if("\n"===de||"\r"===de||"\u2028"===de||"\u2029"===de)return Z-1}else{if("\r"===de&&"\n"===e.charAt(Z+1))return Z+2;if("\n"===de||"\r"===de||"\u2028"===de||"\u2029"===de)return Z+1}return Z}_e(),Z.exports=u}}),sr=I({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,Z){_e();var ie=Yt(),ae=tr(),de=Zt(),{skipSpaces:ve}=Xt();function i(e,Z){let be=null,Ce=Z;for(;Ce!==be;)be=Ce,Ce=ve(e,Ce),Ce=ie(e,Ce),Ce=de(e,Ce),Ce=ae(e,Ce);return Ce}Z.exports=i}}),nr=I({"src/common/util.js"(e,Z){_e();var{default:ie}=(ct(),ds(tt)),ae=Ze(),{getSupportInfo:de}=It(),ve=_t(),be=Wt(),{skipWhitespace:Ce,skipSpaces:ke,skipToLineEnd:Ie,skipEverythingButNewLine:Fe}=Xt(),Oe=Yt(),Be=Zt(),Me=tr(),qe=sr(),m=e=>e[e.length-2];function T(e){return(Z,ie,ae)=>{let de=ae&&ae.backwards;if(!1===ie)return!1;let{length:ve}=Z,be=ie;for(;be>=0&&be<ve;){let ie=Z.charAt(be);if(e instanceof RegExp){if(!e.test(ie))return be}else if(!e.includes(ie))return be;de?be--:be++}return(-1===be||be===ve)&&be}}function w(e,Z){let ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ae=ke(e,ie.backwards?Z-1:Z,ie);return ae!==Me(e,ae,ie)}function g(e,Z,ie){for(let ae=Z;ae<ie;++ae)if("\n"===e.charAt(ae))return!0;return!1}function N(e,Z,ie){let ae=ie(Z)-1;return ae=ke(e,ae,{backwards:!0}),ae=Me(e,ae,{backwards:!0}),ae=ke(e,ae,{backwards:!0}),ae!==Me(e,ae,{backwards:!0})}function R(e,Z){let ie=null,ae=Z;for(;ae!==ie;)ie=ae,ae=Ie(e,ae),ae=Oe(e,ae),ae=ke(e,ae);return ae=Be(e,ae),ae=Me(e,ae),!1!==ae&&w(e,ae)}function j(e,Z,ie){return R(e,ie(Z))}function _(e,Z,ie){return qe(e,ie(Z))}function O(e,Z,ie){return e.charAt(_(e,Z,ie))}function x(e,Z){let ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ke(e,ie.backwards?Z-1:Z,ie)!==Z}function k(e,Z){let ie=0;for(let ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;ae<e.length;++ae)"\t"===e[ae]?ie=ie+Z-ie%Z:ie++;return ie}function $(e,Z){let ie=e.lastIndexOf("\n");return-1===ie?0:k(e.slice(ie+1).match(/^[\t ]*/)[0],Z)}function t(e,Z){let ie={quote:'"',regex:/"/g,escaped:"""},ae={quote:"'",regex:/'/g,escaped:"'"},de="'"===Z?ae:ie,ve=de===ae?ie:ae,be=de;return(e.includes(de.quote)||e.includes(ve.quote))&&(be=(e.match(de.regex)||[]).length>(e.match(ve.regex)||[]).length?ve:de),be}function o(e,Z){let ie=e.slice(1,-1);return E(ie,"json"===Z.parser||"json5"===Z.parser&&"preserve"===Z.quoteProps&&!Z.singleQuote?'"':Z.__isInHtmlAttribute?"'":t(ie,Z.singleQuote?"'":'"').quote,!("css"===Z.parser||"less"===Z.parser||"scss"===Z.parser||Z.__embeddedInHtml))}function E(e,Z,ie){let ae='"'===Z?"'":'"',de=/\\(.)|(["'])/gs,ve=e.replace(de,((e,de,ve)=>de===ae?de:ve===Z?"\\"+ve:ve||(ie&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(de)?de:"\\"+de)));return Z+ve+Z}function p(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 A(e,Z){let ae=e.match(new RegExp(`(${ie(Z)})+`,"g"));return null===ae?0:ae.reduce(((e,ie)=>Math.max(e,ie.length/Z.length)),0)}function P(e,Z){let ae=e.match(new RegExp(`(${ie(Z)})+`,"g"));if(null===ae)return 0;let de=new Map,ve=0;for(let e of ae){let ie=e.length/Z.length;de.set(ie,!0),ie>ve&&(ve=ie)}for(let e=1;e<ve;e++)if(!de.get(e))return e;return ve+1}function M(e,Z){(e.comments||(e.comments=[])).push(Z),Z.printed=!1,Z.nodeDescription=J(e)}function z(e,Z){Z.leading=!0,Z.trailing=!1,M(e,Z)}function V(e,Z,ie){Z.leading=!1,Z.trailing=!1,ie&&(Z.marker=ie),M(e,Z)}function X(e,Z){Z.leading=!1,Z.trailing=!0,M(e,Z)}function H(e,Z){let{languages:ie}=de({plugins:Z.plugins}),ae=ie.find((Z=>{let{name:ie}=Z;return ie.toLowerCase()===e}))||ie.find((Z=>{let{aliases:ie}=Z;return Array.isArray(ie)&&ie.includes(e)}))||ie.find((Z=>{let{extensions:ie}=Z;return Array.isArray(ie)&&ie.includes(`.${e}`)}));return ae&&ae.parsers[0]}function Q(e){return e&&"front-matter"===e.type}function K(e){let Z=new WeakMap;return function(ie){return Z.has(ie)||Z.set(ie,Symbol(e)),Z.get(ie)}}function J(e){let Z=e.type||e.kind||"(unknown type)",ie=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 ie.length>20&&(ie=ie.slice(0,19)+"…"),Z+(ie?" "+ie:"")}Z.exports={inferParserByLanguage:H,getStringWidth:be,getMaxContinuousCount:A,getMinNotPresentContinuousCount:P,getPenultimate:m,getLast:ae,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:qe,getNextNonSpaceNonCommentCharacterIndex:_,getNextNonSpaceNonCommentCharacter:O,skip:T,skipWhitespace:Ce,skipSpaces:ke,skipToLineEnd:Ie,skipEverythingButNewLine:Fe,skipInlineComment:Oe,skipTrailingComment:Be,skipNewline:Me,isNextLineEmptyAfterIndex:R,isNextLineEmpty:j,isPreviousLineEmpty:N,hasNewline:w,hasNewlineInRange:g,hasSpaces:x,getAlignmentSize:k,getIndentSize:$,getPreferredQuote:t,printString:o,printNumber:p,makeString:E,addLeadingComment:z,addDanglingComment:V,addTrailingComment:X,isFrontMatterNode:Q,isNonEmptyArray:ve,createGroupIdMapper:K}}}),ir=I({"vendors/html-tag-names.json"(e,Z){Z.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"]}}}),ar=I({"src/language-html/utils/array-to-map.js"(e,Z){function u(e){let Z=Object.create(null);for(let ie of e)Z[ie]=!0;return Z}_e(),Z.exports=u}}),or=I({"src/language-html/utils/html-tag-names.js"(e,Z){_e();var{htmlTagNames:ie}=ir(),ae=ar()(ie);Z.exports=ae}}),ur=I({"vendors/html-element-attributes.json"(e,Z){Z.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"]}}}}),lr=I({"src/language-html/utils/map-object.js"(e,Z){function u(e,Z){let ie=Object.create(null);for(let[ae,de]of Object.entries(e))ie[ae]=Z(de,ae);return ie}_e(),Z.exports=u}}),pr=I({"src/language-html/utils/html-elements-attributes.js"(e,Z){_e();var{htmlElementAttributes:ie}=ur(),ae=lr()(ie,ar());Z.exports=ae}}),fr=I({"src/language-html/utils/is-unknown-namespace.js"(e,Z){function u(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}_e(),Z.exports=u}}),br=I({"src/language-html/pragma.js"(e,Z){function u(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function n(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}_e(),Z.exports={hasPragma:u,insertPragma:n}}}),Er=I({"src/language-html/ast.js"(e,Z){_e();var ie={attrs:!0,children:!0},ae=new Set(["parent"]),de=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let Z of new Set([...ae,...Object.keys(e)]))this.setProperty(Z,e[Z])}setProperty(e,Z){if(this[e]!==Z){if(e in ie&&(Z=Z.map((e=>this.createChild(e)))),!ae.has(e))return void(this[e]=Z);Object.defineProperty(this,e,{value:Z,enumerable:!1,configurable:!0})}}map(e){let Z;for(let ae in ie){let ie=this[ae];if(ie){let ve=s(ie,(Z=>Z.map(e)));Z!==ie&&(Z||(Z=new de({parent:this.parent})),Z.setProperty(ae,ve))}}if(Z)for(let e in this)e in ie||(Z[e]=this[e]);return e(Z||this)}walk(e){for(let Z in ie){let ie=this[Z];if(ie)for(let Z=0;Z<ie.length;Z++)ie[Z].walk(e)}e(this)}createChild(e){let Z=e instanceof de?e.clone():new de(e);return Z.setProperty("parent",this),Z}insertChildBefore(e,Z){this.children.splice(this.children.indexOf(e),0,this.createChild(Z))}removeChild(e){this.children.splice(this.children.indexOf(e),1)}replaceChild(e,Z){this.children[this.children.indexOf(e)]=this.createChild(Z)}clone(){return new de(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 s(e,Z){let ie=e.map(Z);return ie.some(((Z,ie)=>Z!==e[ie]))?ie:e}Z.exports={Node:de}}}),Cr=I({"src/language-html/conditional-comment.js"(e,Z){_e();var{ParseSourceSpan:ie}=qe(),ae=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:s},{regex:/^\[if([^\]]*)]><!$/,parse:i},{regex:/^<!\s*\[endif]$/,parse:f}];function D(e,Z){if(e.value)for(let{regex:ie,parse:de}of ae){let ae=e.value.match(ie);if(ae)return de(e,Z,ae)}return null}function s(e,Z,ae){let[,de,ve,be]=ae,Ce=4+de.length,ke=e.sourceSpan.start.moveBy(Ce),Ie=ke.moveBy(be.length),[_e,Fe]=(()=>{try{return[!0,Z(be,ke).children]}catch{return[!1,[{type:"text",value:be,sourceSpan:new ie(ke,Ie)}]]}})();return{type:"ieConditionalComment",complete:_e,children:Fe,condition:ve.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new ie(e.sourceSpan.start,ke),endSourceSpan:new ie(Ie,e.sourceSpan.end)}}function i(e,Z,ie){let[,ae]=ie;return{type:"ieConditionalStartComment",condition:ae.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan}}function f(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}Z.exports={parseIeConditionalComment:D}}}),Ar=I({"src/language-html/loc.js"(e,Z){function u(e){return e.sourceSpan.start.offset}function n(e){return e.sourceSpan.end.offset}_e(),Z.exports={locStart:u,locEnd:n}}}),Tr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){var Z;function u(e){if(":"!=e[0])return[null,e];let Z=e.indexOf(":",1);if(-1==Z)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,Z),e.slice(Z+1)]}function n(e){return"ng-container"===u(e)[1]}function D(e){return"ng-content"===u(e)[1]}function s(e){return"ng-template"===u(e)[1]}function i(e){return null===e?null:u(e)[0]}function f(e,Z){return e?`:${e}:${Z}`:Z}_e(),Object.defineProperty(e,"__esModule",{value:!0}),(Z=e.TagContentType||(e.TagContentType={}))[Z.RAW_TEXT=0]="RAW_TEXT",Z[Z.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",Z[Z.PARSABLE_DATA=2]="PARSABLE_DATA",e.splitNsName=u,e.isNgContainer=n,e.isNgContent=D,e.isNgTemplate=s,e.getNsPrefix=i,e.mergeNsAndName=f,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}}),Sr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_tags.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z,ie,ae=Tr(),de=class{constructor(){let{closedByChildren:e,implicitNamespacePrefix:Z,contentType:ie=ae.TagContentType.PARSABLE_DATA,closedByParent:de=!1,isVoid:ve=!1,ignoreFirstLf:be=!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=ve,this.closedByParent=de||ve,this.implicitNamespacePrefix=Z||null,this.contentType=ie,this.ignoreFirstLf=be}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}};function s(e){return ie||(Z=new de,ie={base:new de({isVoid:!0}),meta:new de({isVoid:!0}),area:new de({isVoid:!0}),embed:new de({isVoid:!0}),link:new de({isVoid:!0}),img:new de({isVoid:!0}),input:new de({isVoid:!0}),param:new de({isVoid:!0}),hr:new de({isVoid:!0}),br:new de({isVoid:!0}),source:new de({isVoid:!0}),track:new de({isVoid:!0}),wbr:new de({isVoid:!0}),p:new de({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 de({closedByChildren:["tbody","tfoot"]}),tbody:new de({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new de({closedByChildren:["tbody"],closedByParent:!0}),tr:new de({closedByChildren:["tr"],closedByParent:!0}),td:new de({closedByChildren:["td","th"],closedByParent:!0}),th:new de({closedByChildren:["td","th"],closedByParent:!0}),col:new de({isVoid:!0}),svg:new de({implicitNamespacePrefix:"svg"}),math:new de({implicitNamespacePrefix:"math"}),li:new de({closedByChildren:["li"],closedByParent:!0}),dt:new de({closedByChildren:["dt","dd"]}),dd:new de({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new de({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new de({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new de({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new de({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new de({closedByChildren:["optgroup"],closedByParent:!0}),option:new de({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new de({ignoreFirstLf:!0}),listing:new de({ignoreFirstLf:!0}),style:new de({contentType:ae.TagContentType.RAW_TEXT}),script:new de({contentType:ae.TagContentType.RAW_TEXT}),title:new de({contentType:ae.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new de({contentType:ae.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),ie[e]||Z}e.HtmlTagDefinition=de,e.getHtmlTagDefinition=s}}),Pr=I({"node_modules/angular-html-parser/lib/compiler/src/ast_path.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=class{constructor(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.path=e,this.position=Z}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 Z=this.path.length-1;Z>=0;Z--){let ie=this.path[Z];if(ie instanceof e)return ie}}push(e){this.path.push(e)}pop(){return this.path.pop()}};e.AstPath=Z}}),kr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/ast.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=Pr(),ie=class{constructor(e,Z,ie){this.value=e,this.sourceSpan=Z,this.i18n=ie,this.type="text"}visit(e,Z){return e.visitText(this,Z)}};e.Text=ie;var ae=class{constructor(e,Z){this.value=e,this.sourceSpan=Z,this.type="cdata"}visit(e,Z){return e.visitCdata(this,Z)}};e.CDATA=ae;var de=class{constructor(e,Z,ie,ae,de,ve){this.switchValue=e,this.type=Z,this.cases=ie,this.sourceSpan=ae,this.switchValueSourceSpan=de,this.i18n=ve}visit(e,Z){return e.visitExpansion(this,Z)}};e.Expansion=de;var ve=class{constructor(e,Z,ie,ae,de){this.value=e,this.expression=Z,this.sourceSpan=ie,this.valueSourceSpan=ae,this.expSourceSpan=de}visit(e,Z){return e.visitExpansionCase(this,Z)}};e.ExpansionCase=ve;var be=class{constructor(e,Z,ie){let ae=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,de=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;this.name=e,this.value=Z,this.sourceSpan=ie,this.valueSpan=ae,this.nameSpan=de,this.i18n=ve,this.type="attribute"}visit(e,Z){return e.visitAttribute(this,Z)}};e.Attribute=be;var Ce=class{constructor(e,Z,ie,ae){let de=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,be=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,Ce=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.name=e,this.attrs=Z,this.children=ie,this.sourceSpan=ae,this.startSourceSpan=de,this.endSourceSpan=ve,this.nameSpan=be,this.i18n=Ce,this.type="element"}visit(e,Z){return e.visitElement(this,Z)}};e.Element=Ce;var ke=class{constructor(e,Z){this.value=e,this.sourceSpan=Z,this.type="comment"}visit(e,Z){return e.visitComment(this,Z)}};e.Comment=ke;var Ie=class{constructor(e,Z){this.value=e,this.sourceSpan=Z,this.type="docType"}visit(e,Z){return e.visitDocType(this,Z)}};function a(e,Z){let ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,ae=[],de=e.visit?Z=>e.visit(Z,ie)||Z.visit(e,ie):Z=>Z.visit(e,ie);return Z.forEach((e=>{let Z=de(e);Z&&ae.push(Z)})),ae}e.DocType=Ie,e.visitAll=a;var Fe=class{constructor(){}visitElement(e,Z){this.visitChildren(Z,(Z=>{Z(e.attrs),Z(e.children)}))}visitAttribute(e,Z){}visitText(e,Z){}visitCdata(e,Z){}visitComment(e,Z){}visitDocType(e,Z){}visitExpansion(e,Z){return this.visitChildren(Z,(Z=>{Z(e.cases)}))}visitExpansionCase(e,Z){}visitChildren(e,Z){let ie=[],ae=this;function g(Z){Z&&ie.push(a(ae,Z,e))}return Z(g),Array.prototype.concat.apply([],ie)}};function h(e){let Z=e.sourceSpan.start.offset,ie=e.sourceSpan.end.offset;return e instanceof Ce&&(e.endSourceSpan?ie=e.endSourceSpan.end.offset:e.children&&e.children.length&&(ie=h(e.children[e.children.length-1]).end)),{start:Z,end:ie}}function C(e,ie){let ae=[];return a(new class extends Fe{visit(e,Z){let de=h(e);if(!(de.start<=ie&&ie<de.end))return!0;ae.push(e)}},e),new Z.AstPath(ae,ie)}e.RecursiveVisitor=Fe,e.findNode=C}}),Nr=I({"node_modules/angular-html-parser/lib/compiler/src/assertions.js"(e){function r(e,Z){if(null!=Z){if(!Array.isArray(Z))throw new Error(`Expected '${e}' to be an array of strings.`);for(let ie=0;ie<Z.length;ie+=1)if("string"!=typeof Z[ie])throw new Error(`Expected '${e}' to be an array of strings.`)}}_e(),Object.defineProperty(e,"__esModule",{value:!0}),e.assertArrayOfStrings=r;var Z=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function n(e,ie){if(null!=ie&&(!Array.isArray(ie)||2!=ie.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=ie){let e=ie[0],ae=ie[1];Z.forEach((Z=>{if(Z.test(e)||Z.test(ae))throw new Error(`['${e}', '${ae}'] contains unusable interpolation symbol.`)}))}}e.assertInterpolationSymbols=n}}),Ir=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/interpolation_config.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=Nr(),ie=class{constructor(e,Z){this.start=e,this.end=Z}static fromArray(ae){return ae?(Z.assertInterpolationSymbols("interpolation",ae),new ie(ae[0],ae[1])):e.DEFAULT_INTERPOLATION_CONFIG}};e.InterpolationConfig=ie,e.DEFAULT_INTERPOLATION_CONFIG=new ie("{{","}}")}}),Or=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/lexer.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z,ie=Fe(),ae=qe(),de=Ir(),ve=Tr();!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"}(Z=e.TokenType||(e.TokenType={}));var be=class{constructor(e,Z,ie){this.type=e,this.parts=Z,this.sourceSpan=ie}};e.Token=be;var Ce=class extends ae.ParseError{constructor(e,Z,ie){super(ie,e),this.tokenType=Z}};e.TokenError=Ce;var ke=class{constructor(e,Z){this.tokens=e,this.errors=Z}};function F(e,Z,ie){let de=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Be(new ae.ParseSourceFile(e,Z),ie,de).tokenize()}e.TokenizeResult=ke,e.tokenize=F;var Ie=/\r\n?/g;function l(e){return`Unexpected character "${e===ie.$EOF?"EOF":String.fromCharCode(e)}"`}function h(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}var Oe=class{constructor(e){this.error=e}},Be=class{constructor(e,Z,ie){this._getTagContentType=Z,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=ie.tokenizeExpansionForms||!1,this._interpolationConfig=ie.interpolationConfig||de.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=ie.leadingTriviaChars&&ie.leadingTriviaChars.map((e=>e.codePointAt(0)||0)),this._canSelfClose=ie.canSelfClose||!1,this._allowHtmComponentClosingTags=ie.allowHtmComponentClosingTags||!1;let ae=ie.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=ie.escapedString?new Ve(e,ae):new Me(e,ae);try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return e.replace(Ie,"\n")}tokenize(){for(;this._cursor.peek()!==ie.$EOF;){let e=this._cursor.clone();try{if(this._attemptCharCode(ie.$LT))if(this._attemptCharCode(ie.$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(ie.$SLASH))this._consumeTagClose(e);else{let Z=this._cursor.clone();this._attemptCharCode(ie.$QUESTION)?(this._cursor=Z,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(Z.EOF),this._endToken([]),new ke(O(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(R(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===ie.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=Z,this._currentTokenType=e}_endToken(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();if(null===this._currentTokenStart)throw new Ce("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(Z));if(null===this._currentTokenType)throw new Ce("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let ie=new be(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(ie),this._currentTokenStart=null,this._currentTokenType=null,ie}_createError(e,Z){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let ie=new Ce(e,this._currentTokenType,Z);return this._currentTokenStart=null,this._currentTokenType=null,new Oe(ie)}handleError(e){if(e instanceof Ze&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Oe))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!j(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){let Z=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(Z))}_attemptStr(e){let Z=e.length;if(this._cursor.charsLeft()<Z)return!1;let ie=this._cursor.clone();for(let ae=0;ae<Z;ae++)if(!this._attemptCharCode(e.charCodeAt(ae)))return this._cursor=ie,!1;return!0}_attemptStrCaseInsensitive(e){for(let Z=0;Z<e.length;Z++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(Z)))return!1;return!0}_requireStr(e){let Z=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(Z))}_requireStrCaseInsensitive(e){let Z=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(Z))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,Z){let ie=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.clone().diff(ie)<Z)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(ie))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(e){if(e&&this._cursor.peek()===ie.$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(ie.$HASH)){let Z=this._cursor.clone();if(this._attemptCharCodeUntilFn(N),this._cursor.peek()!=ie.$SEMICOLON)return this._cursor=Z,"&";let ae=this._cursor.getChars(Z);this._cursor.advance();let de=ve.NAMED_ENTITIES[ae];if(!de)throw this._createError(h(ae),this._cursor.getSpan(e));return de}{let Z=this._attemptCharCode(ie.$x)||this._attemptCharCode(ie.$X),ae=this._cursor.clone();if(this._attemptCharCodeUntilFn(g),this._cursor.peek()!=ie.$SEMICOLON)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan());let de=this._cursor.getChars(ae);this._cursor.advance();try{let e=parseInt(de,Z?16:10);return String.fromCharCode(e)}catch{throw this._createError(h(this._cursor.getChars(e)),this._cursor.getSpan())}}}_consumeRawText(e,ie){this._beginToken(e?Z.ESCAPABLE_RAW_TEXT:Z.RAW_TEXT);let ae=[];for(;;){let Z=this._cursor.clone(),de=ie();if(this._cursor=Z,de)break;ae.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(ae.join(""))])}_consumeComment(e){this._beginToken(Z.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("--\x3e"))),this._beginToken(Z.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(e){this._beginToken(Z.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===ie.$GT)),this._beginToken(Z.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(Z.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(Z.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(Z.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===ie.$GT)),this._beginToken(Z.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e,Z=this._cursor.clone(),ae="";for(;this._cursor.peek()!==ie.$COLON&&!w(this._cursor.peek());)this._cursor.advance();return this._cursor.peek()===ie.$COLON?(ae=this._cursor.getChars(Z),this._cursor.advance(),e=this._cursor.clone()):e=Z,this._requireCharCodeUntilFn(T,""===ae?0:1),[ae,this._cursor.getChars(e)]}_consumeTagOpen(e){let ae,de,be,Ce=this.tokens.length,ke=this._cursor.clone(),Ie=[];try{if(!ie.isAsciiLetter(this._cursor.peek()))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(e));for(be=this._consumeTagOpenStart(e),de=be.parts[0],ae=be.parts[1],this._attemptCharCodeUntilFn(m);this._cursor.peek()!==ie.$SLASH&&this._cursor.peek()!==ie.$GT;){let[e,Z]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(m),this._attemptCharCode(ie.$EQ)){this._attemptCharCodeUntilFn(m);let ie=this._consumeAttributeValue();Ie.push({prefix:e,name:Z,value:ie})}else Ie.push({prefix:e,name:Z});this._attemptCharCodeUntilFn(m)}this._consumeTagOpenEnd()}catch(ie){if(ie instanceof Oe)return this._cursor=ke,be&&(this.tokens.length=Ce),this._beginToken(Z.TEXT,e),void this._endToken(["<"]);throw ie}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===Z.TAG_OPEN_END_VOID)return;let _e=this._getTagContentType(ae,de,this._fullNameStack.length>0,Ie);this._handleFullNameStackForTagOpen(de,ae),_e===ve.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(de,ae,!1):_e===ve.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(de,ae,!0)}_consumeRawTextWithTagClose(e,ae,de){this._consumeRawText(de,(()=>!!(this._attemptCharCode(ie.$LT)&&this._attemptCharCode(ie.$SLASH)&&(this._attemptCharCodeUntilFn(m),this._attemptStrCaseInsensitive(e?`${e}:${ae}`:ae)))&&(this._attemptCharCodeUntilFn(m),this._attemptCharCode(ie.$GT)))),this._beginToken(Z.TAG_CLOSE),this._requireCharCodeUntilFn((e=>e===ie.$GT),3),this._cursor.advance(),this._endToken([e,ae]),this._handleFullNameStackForTagClose(e,ae)}_consumeTagOpenStart(e){this._beginToken(Z.TAG_OPEN_START,e);let ie=this._consumePrefixAndName();return this._endToken(ie)}_consumeAttributeName(){let e=this._cursor.peek();if(e===ie.$SQ||e===ie.$DQ)throw this._createError(l(e),this._cursor.getSpan());this._beginToken(Z.ATTR_NAME);let ae=this._consumePrefixAndName();return this._endToken(ae),ae}_consumeAttributeValue(){let e;if(this._cursor.peek()===ie.$SQ||this._cursor.peek()===ie.$DQ){this._beginToken(Z.ATTR_QUOTE);let ie=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(ie)]),this._beginToken(Z.ATTR_VALUE);let ae=[];for(;this._cursor.peek()!==ie;)ae.push(this._readChar(!0));e=this._processCarriageReturns(ae.join("")),this._endToken([e]),this._beginToken(Z.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(ie)])}else{this._beginToken(Z.ATTR_VALUE);let ie=this._cursor.clone();this._requireCharCodeUntilFn(T,1),e=this._processCarriageReturns(this._cursor.getChars(ie)),this._endToken([e])}return e}_consumeTagOpenEnd(){let e=this._attemptCharCode(ie.$SLASH)?Z.TAG_OPEN_END_VOID:Z.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(ie.$GT),this._endToken([])}_consumeTagClose(e){if(this._beginToken(Z.TAG_CLOSE,e),this._attemptCharCodeUntilFn(m),this._allowHtmComponentClosingTags&&this._attemptCharCode(ie.$SLASH))this._attemptCharCodeUntilFn(m),this._requireCharCode(ie.$GT),this._endToken([]);else{let[e,Z]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(m),this._requireCharCode(ie.$GT),this._endToken([e,Z]),this._handleFullNameStackForTagClose(e,Z)}}_consumeExpansionFormStart(){this._beginToken(Z.EXPANSION_FORM_START),this._requireCharCode(ie.$LBRACE),this._endToken([]),this._expansionCaseStack.push(Z.EXPANSION_FORM_START),this._beginToken(Z.RAW_TEXT);let e=this._readUntil(ie.$COMMA);this._endToken([e]),this._requireCharCode(ie.$COMMA),this._attemptCharCodeUntilFn(m),this._beginToken(Z.RAW_TEXT);let ae=this._readUntil(ie.$COMMA);this._endToken([ae]),this._requireCharCode(ie.$COMMA),this._attemptCharCodeUntilFn(m)}_consumeExpansionCaseStart(){this._beginToken(Z.EXPANSION_CASE_VALUE);let e=this._readUntil(ie.$LBRACE).trim();this._endToken([e]),this._attemptCharCodeUntilFn(m),this._beginToken(Z.EXPANSION_CASE_EXP_START),this._requireCharCode(ie.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.push(Z.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(Z.EXPANSION_CASE_EXP_END),this._requireCharCode(ie.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(Z.EXPANSION_FORM_END),this._requireCharCode(ie.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}_consumeText(){let e=this._cursor.clone();this._beginToken(Z.TEXT,e);let ie=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(ie.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(ie.push(this._interpolationConfig.end),this._inInterpolation=!1):ie.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(ie.join(""))])}_isTextEnd(){return!!(this._cursor.peek()===ie.$LT||this._cursor.peek()===ie.$EOF||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===ie.$RBRACE&&this._isInExpansionCase()))}_readUntil(e){let Z=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(Z)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Z.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Z.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==ie.$LBRACE)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),Z=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!Z}return!0}_handleFullNameStackForTagOpen(e,Z){let ie=ve.mergeNsAndName(e,Z);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===ie)&&this._fullNameStack.push(ie)}_handleFullNameStackForTagClose(e,Z){let ie=ve.mergeNsAndName(e,Z);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===ie&&this._fullNameStack.pop()}};function m(e){return!ie.isWhitespace(e)||e===ie.$EOF}function T(e){return ie.isWhitespace(e)||e===ie.$GT||e===ie.$SLASH||e===ie.$SQ||e===ie.$DQ||e===ie.$EQ}function w(e){return(e<ie.$a||ie.$z<e)&&(e<ie.$A||ie.$Z<e)&&(e<ie.$0||e>ie.$9)}function g(e){return e==ie.$SEMICOLON||e==ie.$EOF||!ie.isAsciiHexDigit(e)}function N(e){return e==ie.$SEMICOLON||e==ie.$EOF||!ie.isAsciiLetter(e)}function R(e){return e===ie.$EQ||ie.isAsciiLetter(e)||ie.isDigit(e)}function j(e,Z){return _(e)==_(Z)}function _(e){return e>=ie.$a&&e<=ie.$z?e-ie.$a+ie.$A:e}function O(e){let ie,ae=[];for(let de=0;de<e.length;de++){let ve=e[de];ie&&ie.type==Z.TEXT&&ve.type==Z.TEXT?(ie.parts[0]+=ve.parts[0],ie.sourceSpan.end=ve.sourceSpan.end):(ie=ve,ae.push(ie))}return ae}var Me=class{constructor(e,Z){if(e instanceof Me)this.file=e.file,this.input=e.input,this.end=e.end,this.state=Object.assign({},e.state);else{if(!Z)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=Z.endPos,this.state={peek:-1,offset:Z.startPos,line:Z.startLine,column:Z.startCol}}}clone(){return new Me(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,Z){if(e=e||this,Z)for(e=e.clone();this.diff(e)>0&&-1!==Z.indexOf(e.peek());)e.advance();return new ae.ParseSourceSpan(new ae.ParseLocation(e.file,e.state.offset,e.state.line,e.state.column),new ae.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 Ze('Unexpected character "EOF"',this);let Z=this.charAt(e.offset);Z===ie.$LF?(e.line++,e.column=0):ie.isNewLine(Z)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?ie.$EOF:this.charAt(e.offset)}},Ve=class extends Me{constructor(e,Z){e instanceof Ve?(super(e),this.internalState=Object.assign({},e.internalState)):(super(e,Z),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Ve(this)}getChars(e){let Z=e.clone(),ie="";for(;Z.internalState.offset<this.internalState.offset;)ie+=String.fromCodePoint(Z.peek()),Z.advance();return ie}processEscapeSequence(){let t=()=>this.internalState.peek;if(t()===ie.$BACKSLASH)if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),t()===ie.$n)this.state.peek=ie.$LF;else if(t()===ie.$r)this.state.peek=ie.$CR;else if(t()===ie.$v)this.state.peek=ie.$VTAB;else if(t()===ie.$t)this.state.peek=ie.$TAB;else if(t()===ie.$b)this.state.peek=ie.$BSPACE;else if(t()===ie.$f)this.state.peek=ie.$FF;else if(t()===ie.$u)if(this.advanceState(this.internalState),t()===ie.$LBRACE){this.advanceState(this.internalState);let e=this.clone(),Z=0;for(;t()!==ie.$RBRACE;)this.advanceState(this.internalState),Z++;this.state.peek=this.decodeHexDigits(e,Z)}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(t()===ie.$x){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(ie.isOctalDigit(t())){let e="",Z=0,ae=this.clone();for(;ie.isOctalDigit(t())&&Z<3;)ae=this.clone(),e+=String.fromCodePoint(t()),this.advanceState(this.internalState),Z++;this.state.peek=parseInt(e,8),this.internalState=ae.internalState}else ie.isNewLine(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,Z){let ie=this.input.substr(e.internalState.offset,Z),ae=parseInt(ie,16);if(isNaN(ae))throw e.state=e.internalState,new Ze("Invalid hexadecimal escape sequence",e);return ae}},Ze=class{constructor(e,Z){this.msg=e,this.cursor=Z}};e.CursorError=Ze}}),Mr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/parser.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=qe(),ie=kr(),ae=Or(),de=Tr(),ve=class extends Z.ParseError{constructor(e,Z,ie){super(Z,ie),this.elementName=e}static create(e,Z,ie){return new ve(e,Z,ie)}};e.TreeError=ve;var be=class{constructor(e,Z){this.rootNodes=e,this.errors=Z}};e.ParseTreeResult=be;var Ce=class{constructor(e){this.getTagDefinition=e}parse(e,Z,ie){let de=arguments.length>3&&void 0!==arguments[3]&&arguments[3],ve=arguments.length>4?arguments[4]:void 0,m=e=>function(Z){for(var ie=arguments.length,ae=new Array(ie>1?ie-1:0),de=1;de<ie;de++)ae[de-1]=arguments[de];return e(Z.toLowerCase(),...ae)},Ce=de?this.getTagDefinition:m(this.getTagDefinition),w=e=>Ce(e).contentType,Ie=de?ve:m(ve),_e=ve?(e,Z,ie,ae)=>{let de=Ie(e,Z,ie,ae);return void 0!==de?de:w(e)}:w,Fe=ae.tokenize(e,Z,_e,ie),Oe=ie&&ie.canSelfClose||!1,Be=ie&&ie.allowHtmComponentClosingTags||!1,Me=new ke(Fe.tokens,Ce,Oe,Be,de).build();return new be(Me.rootNodes,Fe.errors.concat(Me.errors))}};e.Parser=Ce;var ke=class{constructor(e,Z,ie,ae,de){this.tokens=e,this.getTagDefinition=Z,this.canSelfClose=ie,this.allowHtmComponentClosingTags=ae,this.isTagNameCaseSensitive=de,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}build(){for(;this._peek.type!==ae.TokenType.EOF;)this._peek.type===ae.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ae.TokenType.TAG_CLOSE?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===ae.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ae.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ae.TokenType.TEXT||this._peek.type===ae.TokenType.RAW_TEXT||this._peek.type===ae.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ae.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===ae.TokenType.DOC_TYPE_START?this._consumeDocType(this._advance()):this._advance();return new be(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 de=this._advance(),ve=this._getText(de),be=this._advanceIf(ae.TokenType.CDATA_END);this._addToParent(new ie.CDATA(ve,new Z.ParseSourceSpan(e.sourceSpan.start,(be||de).sourceSpan.end)))}_consumeComment(e){let de=this._advanceIf(ae.TokenType.RAW_TEXT),ve=this._advanceIf(ae.TokenType.COMMENT_END),be=null!=de?de.parts[0].trim():null,Ce=new Z.ParseSourceSpan(e.sourceSpan.start,(ve||de||e).sourceSpan.end);this._addToParent(new ie.Comment(be,Ce))}_consumeDocType(e){let de=this._advanceIf(ae.TokenType.RAW_TEXT),ve=this._advanceIf(ae.TokenType.DOC_TYPE_END),be=null!=de?de.parts[0].trim():null,Ce=new Z.ParseSourceSpan(e.sourceSpan.start,(ve||de||e).sourceSpan.end);this._addToParent(new ie.DocType(be,Ce))}_consumeExpansion(e){let de=this._advance(),be=this._advance(),Ce=[];for(;this._peek.type===ae.TokenType.EXPANSION_CASE_VALUE;){let e=this._parseExpansionCase();if(!e)return;Ce.push(e)}if(this._peek.type!==ae.TokenType.EXPANSION_FORM_END)return void this._errors.push(ve.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));let ke=new Z.ParseSourceSpan(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ie.Expansion(de.parts[0],be.parts[0],Ce,ke,de.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==ae.TokenType.EXPANSION_CASE_EXP_START)return this._errors.push(ve.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let de=this._advance(),be=this._collectExpansionExpTokens(de);if(!be)return null;let Ce=this._advance();be.push(new ae.Token(ae.TokenType.EOF,[],Ce.sourceSpan));let Ie=new ke(be,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive).build();if(Ie.errors.length>0)return this._errors=this._errors.concat(Ie.errors),null;let _e=new Z.ParseSourceSpan(e.sourceSpan.start,Ce.sourceSpan.end),Fe=new Z.ParseSourceSpan(de.sourceSpan.start,Ce.sourceSpan.end);return new ie.ExpansionCase(e.parts[0],Ie.rootNodes,_e,e.sourceSpan,Fe)}_collectExpansionExpTokens(e){let Z=[],ie=[ae.TokenType.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===ae.TokenType.EXPANSION_FORM_START||this._peek.type===ae.TokenType.EXPANSION_CASE_EXP_START)&&ie.push(this._peek.type),this._peek.type===ae.TokenType.EXPANSION_CASE_EXP_END){if(!F(ie,ae.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(ie.pop(),0==ie.length)return Z}if(this._peek.type===ae.TokenType.EXPANSION_FORM_END){if(!F(ie,ae.TokenType.EXPANSION_FORM_START))return this._errors.push(ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;ie.pop()}if(this._peek.type===ae.TokenType.EOF)return this._errors.push(ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;Z.push(this._advance())}}_getText(e){let Z=e.parts[0];if(Z.length>0&&"\n"==Z[0]){let e=this._getParentElement();null!=e&&0==e.children.length&&this.getTagDefinition(e.name).ignoreFirstLf&&(Z=Z.substring(1))}return Z}_consumeText(e){let Z=this._getText(e);Z.length>0&&this._addToParent(new ie.Text(Z,e.sourceSpan))}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let be=e.parts[0],Ce=e.parts[1],ke=[];for(;this._peek.type===ae.TokenType.ATTR_NAME;)ke.push(this._consumeAttr(this._advance()));let Ie=this._getElementFullName(be,Ce,this._getParentElement()),_e=!1;if(this._peek.type===ae.TokenType.TAG_OPEN_END_VOID){this._advance(),_e=!0;let Z=this.getTagDefinition(Ie);this.canSelfClose||Z.canSelfClose||null!==de.getNsPrefix(Ie)||Z.isVoid||this._errors.push(ve.create(Ie,e.sourceSpan,`Only void and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===ae.TokenType.TAG_OPEN_END&&(this._advance(),_e=!1);let Fe=this._peek.sourceSpan.start,Oe=new Z.ParseSourceSpan(e.sourceSpan.start,Fe),Be=new Z.ParseSourceSpan(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),Me=new ie.Element(Ie,ke,[],Oe,Oe,void 0,Be);this._pushElement(Me),_e&&(this._popElement(Ie),Me.endSourceSpan=Oe)}_pushElement(e){let Z=this._getParentElement();Z&&this.getTagDefinition(Z.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let Z=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),Z&&this.getTagDefinition(Z).isVoid)this._errors.push(ve.create(Z,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(Z)){let ie=`Unexpected closing tag "${Z}". 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(ve.create(Z,e.sourceSpan,ie))}}_popElement(e){for(let Z=this._elementStack.length-1;Z>=0;Z--){let ie=this._elementStack[Z];if(!e||(de.getNsPrefix(ie.name)?ie.name==e:ie.name.toLowerCase()==e.toLowerCase()))return this._elementStack.splice(Z,this._elementStack.length-Z),!0;if(!this.getTagDefinition(ie.name).closedByParent)return!1}return!1}_consumeAttr(e){let ve,be,Ce=de.mergeNsAndName(e.parts[0],e.parts[1]),ke=e.sourceSpan.end,Ie="";if(this._peek.type===ae.TokenType.ATTR_QUOTE&&(be=this._advance().sourceSpan.start),this._peek.type===ae.TokenType.ATTR_VALUE){let e=this._advance();Ie=e.parts[0],ke=e.sourceSpan.end,ve=e.sourceSpan}return this._peek.type===ae.TokenType.ATTR_QUOTE&&(ke=this._advance().sourceSpan.end,ve=new Z.ParseSourceSpan(be,ke)),new ie.Attribute(Ce,Ie,new Z.ParseSourceSpan(e.sourceSpan.start,ke),ve,e.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let e=null;for(let Z=this._elementStack.length-1;Z>=0;Z--){if(!de.isNgContainer(this._elementStack[Z].name))return{parent:this._elementStack[Z],container:e};e=this._elementStack[Z]}return{parent:null,container:e}}_addToParent(e){let Z=this._getParentElement();null!=Z?Z.children.push(e):this._rootNodes.push(e)}_insertBeforeContainer(e,Z,ie){if(Z){if(e){let ae=e.children.indexOf(Z);e.children[ae]=ie}else this._rootNodes.push(ie);ie.children.push(Z),this._elementStack.splice(this._elementStack.indexOf(Z),0,ie)}else this._addToParent(ie),this._elementStack.push(ie)}_getElementFullName(e,Z,ie){return""===e&&""===(e=this.getTagDefinition(Z).implicitNamespacePrefix||"")&&null!=ie&&(e=de.getNsPrefix(ie.name)),de.mergeNsAndName(e,Z)}};function F(e,Z){return e.length>0&&e[e.length-1]===Z}}}),jr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=Sr(),ie=Mr(),ae=Mr();e.ParseTreeResult=ae.ParseTreeResult,e.TreeError=ae.TreeError;var de=class extends ie.Parser{constructor(){super(Z.getHtmlTagDefinition)}parse(e,Z,ie){let ae=arguments.length>3&&void 0!==arguments[3]&&arguments[3],de=arguments.length>4?arguments[4]:void 0;return super.parse(e,Z,ie,ae,de)}};e.HtmlParser=de}}),Rr=I({"node_modules/angular-html-parser/lib/angular-html-parser/src/index.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=jr(),ie=Tr();e.TagContentType=ie.TagContentType;var ae=null,D=()=>(ae||(ae=new Z.HtmlParser),ae);function s(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{canSelfClose:ie=!1,allowHtmComponentClosingTags:ae=!1,isTagNameCaseSensitive:de=!1,getTagContentType:ve}=Z;return D().parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:ie,allowHtmComponentClosingTags:ae},de,ve)}e.parse=s}});_e();var{ParseSourceSpan:Gr,ParseLocation:Jr,ParseSourceFile:Wr}=qe(),Kr=Ve(),Xr=Ze(),Yr=et(),{inferParserByLanguage:Zr}=nr(),es=or(),ts=pr(),ss=fr(),{hasPragma:ns}=br(),{Node:is}=Er(),{parseIeConditionalComment:as}=Cr(),{locStart:cs,locEnd:hs}=Ar();function oc(e,Z,ie){let{canSelfClose:ae,normalizeTagName:de,normalizeAttributeName:ve,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce,getTagContentType:ke}=Z,Ie=Rr(),{RecursiveVisitor:_e,visitAll:Fe}=kr(),{ParseSourceSpan:Oe}=qe(),{getHtmlTagDefinition:Be}=Sr(),{rootNodes:Me,errors:Ve}=Ie.parse(e,{canSelfClose:ae,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce,getTagContentType:ke});if("vue"===ie.parser)if(Me.some((e=>"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase()))){ae=!0,de=!0,ve=!0,be=!0,Ce=!1;let Z=Ie.parse(e,{canSelfClose:ae,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce});Me=Z.rootNodes,Ve=Z.errors}else{let O=e=>{if(!e||"element"!==e.type||"template"!==e.name)return!1;let Z=e.attrs.find((e=>"lang"===e.name)),ae=Z&&Z.value;return!ae||"html"===Zr(ae,ie)};if(Me.some(O)){let Z,k=()=>Ie.parse(e,{canSelfClose:ae,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce}),$=()=>Z||(Z=k()),t=e=>$().rootNodes.find((Z=>{let{startSourceSpan:ie}=Z;return ie&&ie.start.offset===e.startSourceSpan.start.offset}));for(let e=0;e<Me.length;e++){let Z=Me[e],{endSourceSpan:ie,startSourceSpan:ae}=Z;if(null===ie)Ve=$().errors,Me[e]=t(Z)||Z;else if(O(Z)){let de=$(),ve=ae.end.offset,be=ie.start.offset;for(let e of de.errors){let{offset:Z}=e.span.start;if(ve<Z&&Z<be){Ve=[e];break}}Me[e]=t(Z)||Z}}}}if(Ve.length>0){let{msg:e,span:{start:Z,end:ie}}=Ve[0];throw Yr(e,{start:{line:Z.line+1,column:Z.col+1},end:{line:ie.line+1,column:ie.col+1}})}let T=e=>{let Z=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,ie=e.nameSpan.toString(),ae=null!==Z&&ie.startsWith(`${Z}:`),de=ae?ie.slice(Z.length+1):ie;e.name=de,e.namespace=Z,e.hasExplicitNamespace=ae},w=e=>{switch(e.type){case"element":T(e);for(let Z of e.attrs)T(Z),Z.valueSpan?(Z.value=Z.valueSpan.toString(),/["']/.test(Z.value[0])&&(Z.value=Z.value.slice(1,-1))):Z.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString()}},g=(e,Z)=>{let ie=e.toLowerCase();return Z(ie)?ie:e},N=e=>{if("element"===e.type&&(de&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||ss(e))&&(e.name=g(e.name,(e=>e in es))),ve)){let Z=ts[e.name]||Object.create(null);for(let ie of e.attrs)ie.namespace||(ie.name=g(ie.name,(ie=>e.name in ts&&(ie in ts["*"]||ie in Z))))}},R=e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new Oe(e.sourceSpan.start,e.endSourceSpan.end))},j=e=>{if("element"===e.type){let Z=Be(Ce?e.name:e.name.toLowerCase());!e.namespace||e.namespace===Z.implicitNamespacePrefix||ss(e)?e.tagDefinition=Z:e.tagDefinition=Be("")}};return Fe(new class extends _e{visit(e){w(e),j(e),N(e),R(e)}},Me),Me}function Ns(e,Z,ie){let ae=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{frontMatter:de,content:ve}=ae?Kr(e):{frontMatter:null,content:e},be=new Wr(e,Z.filepath),Ce=new Jr(be,0,0,0),ke=Ce.moveBy(e.length),Ie={type:"root",sourceSpan:new Gr(Ce,ke),children:oc(ve,ie,Z)};if(de){let e=new Jr(be,0,0,0),Z=e.moveBy(de.raw.length);de.sourceSpan=new Gr(e,Z),Ie.children.unshift(de)}let _e=new is(Ie),l=(ae,de)=>{let{offset:ve}=de,be=Ns(e.slice(0,ve).replace(/[^\n\r]/g," ")+ae,Z,ie,!1);be.sourceSpan=new Gr(de,Xr(be.children).sourceSpan.end);let Ce=be.children[0];return Ce.length===ve?be.children.shift():(Ce.sourceSpan=new Gr(Ce.sourceSpan.start.moveBy(ve),Ce.sourceSpan.end),Ce.value=Ce.value.slice(ve)),be};return _e.walk((e=>{if("comment"===e.type){let Z=as(e,l);Z&&e.parent.replaceChild(e,Z)}})),_e}function Ke(){let{name:e,canSelfClose:Z=!1,normalizeTagName:ie=!1,normalizeAttributeName:ae=!1,allowHtmComponentClosingTags:de=!1,isTagNameCaseSensitive:ve=!1,getTagContentType:be}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{parse:(Ce,ke,Ie)=>Ns(Ce,Object.assign({parser:e},Ie),{canSelfClose:Z,normalizeTagName:ie,normalizeAttributeName:ae,allowHtmComponentClosingTags:de,isTagNameCaseSensitive:ve,getTagContentType:be}),hasPragma:ns,astFormat:"html",locStart:cs,locEnd:hs}}Z.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,Z,ie,ae)=>{if("html"!==e.toLowerCase()&&!ie&&("template"!==e||ae.some((e=>{let{name:Z,value:ie}=e;return"lang"===Z&&"html"!==ie&&""!==ie&&void 0!==ie}))))return Rr().TagContentType.RAW_TEXT}}),lwc:Ke({name:"lwc"})}}}));return hs()}()})),up=unwrapExports(cp),lp=["css","scss","less","json","html","vue"],factory=function(e){var Z=__assign({customFileTypeParser:{}},e);return function(e,ie){var ae;if("js"===ie||"jsx"===ie)ae="babel";else if(lp.indexOf(ie)>=0)ae=ie;else{if(!Z.customFileTypeParser[ie])return e;ae=Z.customFileTypeParser[ie]}return tr.default.format(e,{parser:ae,plugins:__spreadArray([ip,op,up],__read(Z.plugins||[]),!1),singleQuote:!0,jsxSingleQuote:!0})}},pluginFactory=function(e){return function(Z){return __awaiter(void 0,void 0,void 0,(function(){var ie,ae,de;return __generator(this,(function(ve){return ie=e||"react",ae=__assign({},Z),de=ae.ir,ae.chunks.push({type:Ra.STRING,fileType:ja.JS,name:qu,content:"\n import { createRef } from '".concat(ie,"';\n "),linkAfter:[]}),de.utils&&de.utils.forEach((function(e){"function"===e.type&&ae.chunks.push({type:Ra.STRING,fileType:ja.JS,name:Vu,content:"\n export const ".concat(e.name," = ").concat(e.content.value,";\n "),linkAfter:[qu,zu,Hu]})})),[2,ae]}))}))}};var createRouter=function(e){var Z,ie=e.schema.router;if(ie&&0!==(null===(Z=ie.routes)||void 0===Z?void 0:Z.length)){var ae=[],checkRoutes=function(e){e.forEach((function(e){e.page&&-1===ae.indexOf(e.page)&&ae.push(e.page),e.children&&e.children.length>0&&checkRoutes(e.children)}))};checkRoutes(ie.routes);var de=ie.routes.map((function(e){return createNestedRoutes(e)})),ve=ae.map((function(e){return function createLazyImport(e,Z){var ie=e.slice(0,1).toUpperCase()+e.slice(1);return kt.variableDeclaration("const",[kt.variableDeclarator(kt.identifier(ie),kt.callExpression(kt.identifier("lazy"),[kt.arrowFunctionExpression([],kt.callExpression(kt.identifier("import"),[kt.stringLiteral(Z)]))]))])}(e,"./pages/".concat(e))}));return{fileLazyImports:ve,routeElements:de}}};function codeToAST(e){var Z;try{var ie=lr(e,{sourceType:"module",plugins:["jsx"]});return null===(Z=null==ie?void 0:ie.program)||void 0===Z?void 0:Z.body[0]}catch(e){return console.error("解析错误:",e),null}}function createNestedRoutes(e){var Z=[];return e.children&&(Z=e.children.map((function(e){return createNestedRoutes(e)}))),e.redirect?codeToAST('<Route path="'.concat(e.path,'" element={<Navigate to="').concat(e.redirect,'"/>}></Route>')):function createRoute(e,Z,ie,ae){void 0===ie&&(ie=!1),void 0===ae&&(ae=null);var de=[kt.jsxAttribute(kt.jsxIdentifier("path"),kt.stringLiteral(e))];ie&&de.push(kt.jsxAttribute(kt.jsxIdentifier("exact")));var ve=kt.jsxOpeningElement(kt.jsxIdentifier("Route"),de,!ae);return Z||ae?(Z&&de.push(kt.jsxAttribute(kt.jsxIdentifier("element"),kt.jsxExpressionContainer(kt.jsxElement(kt.jsxOpeningElement(kt.jsxIdentifier(Z.slice(0,1).toUpperCase()+Z.slice(1)),[],!0),null,[],!1)))),kt.jsxElement(ve,kt.jsxClosingElement(kt.jsxIdentifier("Route")),ae||[],!1)):kt.jsxElement(ve,kt.jsxClosingElement(kt.jsxIdentifier("Route")),[],!1)}(e.path,e.page,e.exact,Z)}var createAppFile=function(e,Z,ie){var ae,de,ve,be,Ce=Et.readFileSync("./src/App.jsx","utf8"),ke=lr("".concat(Ce),{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]});ke.program.body=ke.program.body.filter((function(e){var Z,ie,ae,de;return!("VariableDeclaration"===e.type&&"lazy"===(null===(de=null===(ae=null===(ie=null===(Z=e.declarations)||void 0===Z?void 0:Z[0])||void 0===ie?void 0:ie.init)||void 0===ae?void 0:ae.callee)||void 0===de?void 0:de.name))}));var Ie=createRouter(e);if(Ie){var _e=Ie.fileLazyImports,Fe=Ie.routeElements;It.default(ke,{Program:function(e){var Z=e.node.body,ie=Z.findIndex((function(e){return"ExportDefaultDeclaration"===e.type}));Z.splice.apply(Z,__spreadArray([ie,0],__read(_e),!1))},JSXElement:function(e){var Z,ie,ae=e.node;"Routes"===(null===(ie=null===(Z=ae.openingElement)||void 0===Z?void 0:Z.name)||void 0===ie?void 0:ie.name)&&(ae.children=Fe)}})}var Oe=e.schema.config;if(null===(ae=null==Oe?void 0:Oe.layout)||void 0===ae?void 0:ae.componentName){var Be,Me=Oe.layout,qe=Me.componentName,Ve=Me.props,Ze=codeToAST("\n <".concat(qe,"\n ").concat(Object.keys(Ve||{}).map((function(e){var Z="";return"string"==typeof Ve[e]?Z="'".concat(Ve[e],"'"):"number"==typeof Ve[e]?Z="".concat(Ve[e]):"object"==typeof Ve[e]&&(Z="{".concat(JSON.stringify(Ve[e]),"}")),"".concat(e,"=").concat(Z)})).join("\n"),"\n ><AntdApp></AntdApp></").concat(qe,">\n ")).expression;It.default(ke,{JSXElement:function(e){var Z,ie;"HashRouter"===(null===(ie=null===(Z=e.node.openingElement)||void 0===Z?void 0:Z.name)||void 0===ie?void 0:ie.name)&&(Be=e)}});var et=!1;It.default(ke,{JSXElement:function(e){var Z,ie,ae,de,ve=e.node;"ConfigProvider"!==(null===(ie=null===(Z=ve.openingElement)||void 0===Z?void 0:Z.name)||void 0===ie?void 0:ie.name)||et||(Ce.includes("<AntdApp>")&&Be?Ze.children[0].children=Be.parent.children:Ze.children[0].children=ve.children,e.replaceWith(Ze),et=!0),"HashRouter"!==(null===(de=null===(ae=ve.openingElement)||void 0===ae?void 0:ae.name)||void 0===de?void 0:de.name)||et||(Ze.children[0].children=[ve],e.replaceWith(Ze),et=!0)}})}if(null===(be=null===(ve=null===(de=e.schema)||void 0===de?void 0:de.config)||void 0===ve?void 0:ve.layout)||void 0===be?void 0:be.componentName){!function manageImports(e,Z){var ie=new Map(Z.map((function(e){return[e.name,e]}))),ae=new Set(Z.map((function(e){return e.from}))),de=new Map;It.default(e,{ImportDeclaration:function(e){var Z=e.node.source.value;if(ae.has(Z)){var ve=e.node.specifiers.filter((function(e){return!kt.isImportSpecifier(e)||!kt.isIdentifier(e.imported)||!ie.has(e.imported.name)}));ve.length>0&&(de.has(Z)||de.set(Z,new Set),ve.forEach((function(e){de.get(Z).add(e)}))),e.remove()}}}),Z.forEach((function(e){de.has(e.from)||de.set(e.from,new Set),de.get(e.from).add(kt.importSpecifier(kt.identifier(e.as||e.name),kt.identifier(e.name)))})),It.default(e,{Program:function(e){__spreadArray([],__read(de.entries()),!1).forEach((function(Z){var ie=__read(Z,2),ae=ie[0],de=ie[1];if(de.size>0){var ve=e.node.body.find((function(e){return kt.isImportDeclaration(e)})),be=ve?e.node.body.indexOf(ve):0;e.node.body.splice(be,0,kt.importDeclaration(Array.from(de),kt.stringLiteral(ae)))}}))}})}(ke,[{name:"App",as:"AntdApp",from:"antd",priority:2,protected:!0},{name:"ConfigProvider",from:"@appthen/antd",priority:1}])}var tt=Ws(ke).code;Et.writeFileSync("./src/App.jsx",tt,"utf8")},writePackageJSON=function(e){var Z=Et.readFileSync("./package.json","utf8"),ie=JSON.parse(Z),ae=!1;return e.dependencies&&(Object.keys(e.dependencies).forEach((function(Z){ie.dependencies[Z]!==e.dependencies[Z]&&(ae=!0)})),Object.keys(ie.dependencies).forEach((function(Z){ie.dependencies[Z]!==e.dependencies[Z]&&(ae=!0)}))),ie.dependencies=e.dependencies,ie.resolutions&&delete ie.resolutions,Et.writeFileSync("./package.json",JSON.stringify(ie),"utf8"),ae},dp=getCjsExportFromNamespace(_mergeNamespaces({__proto__:null,default:Dt.default},[Et])),fileSystem_require=function(){if("object"==typeof process&&process.versions&&process.versions.electron)try{const e=dp;if(Object.keys(e).length>0)return e}catch(e){}return Dt.default},yp={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},gp={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"};gp.INVALID_LOC,gp.INVALID_CEN,gp.INVALID_END,gp.NO_DATA,gp.BAD_CRC,gp.FILE_IN_THE_WAY,gp.UNKNOWN_METHOD,gp.AVAIL_DATA,gp.INVALID_DISTANCE,gp.TO_MANY_CODES,gp.INVALID_REPEAT_LEN,gp.INVALID_REPEAT_FIRST,gp.INCOMPLETE_CODES,gp.INVALID_DYN_DISTANCE,gp.INVALID_CODES_LEN,gp.INVALID_STORE_BLOCK,gp.INVALID_BLOCK_TYPE,gp.CANT_EXTRACT_FILE,gp.CANT_OVERRIDE,gp.NO_ZIP,gp.NO_ENTRY,gp.DIRECTORY_CONTENT_ERROR,gp.FILE_NOT_FOUND,gp.NOT_IMPLEMENTED,gp.INVALID_FILENAME,gp.INVALID_FORMAT;const xp=fileSystem_require(),vp="object"==typeof process&&"win32"===process.platform,is_Obj=e=>e&&"object"==typeof e,bp=new Uint32Array(256).map(((e,Z)=>{for(let e=0;e<8;e++)1&Z?Z=3988292384^Z>>>1:Z>>>=1;return Z>>>0}));function Utils(e){this.sep=yt.default.sep,this.fs=xp,is_Obj(e)&&is_Obj(e.fs)&&"function"==typeof e.fs.statSync&&(this.fs=e.fs)}var Ep=Utils;Utils.prototype.makeDir=function(e){const Z=this;!function mkdirSync(e){let ie=e.split(Z.sep)[0];e.split(Z.sep).forEach((function(e){if(e&&":"!==e.substr(-1,1)){var ae;ie+=Z.sep+e;try{ae=Z.fs.statSync(ie)}catch(e){Z.fs.mkdirSync(ie)}if(ae&&ae.isFile())throw gp.FILE_IN_THE_WAY.replace("%s",ie)}}))}(e)},Utils.prototype.writeFileTo=function(e,Z,ie,ae){const de=this;if(de.fs.existsSync(e)){if(!ie)return!1;if(de.fs.statSync(e).isDirectory())return!1}var ve,be=yt.default.dirname(e);de.fs.existsSync(be)||de.makeDir(be);try{ve=de.fs.openSync(e,"w",438)}catch(Z){de.fs.chmodSync(e,438),ve=de.fs.openSync(e,"w",438)}if(ve)try{de.fs.writeSync(ve,Z,0,Z.length,0)}finally{de.fs.closeSync(ve)}return de.fs.chmodSync(e,ae||438),!0},Utils.prototype.writeFileToAsync=function(e,Z,ie,ae,de){"function"==typeof ae&&(de=ae,ae=void 0);const ve=this;ve.fs.exists(e,(function(be){if(be&&!ie)return de(!1);ve.fs.stat(e,(function(ie,Ce){if(be&&Ce.isDirectory())return de(!1);var ke=yt.default.dirname(e);ve.fs.exists(ke,(function(ie){ie||ve.makeDir(ke),ve.fs.open(e,"w",438,(function(ie,be){ie?ve.fs.chmod(e,438,(function(){ve.fs.open(e,"w",438,(function(ie,be){ve.fs.write(be,Z,0,Z.length,0,(function(){ve.fs.close(be,(function(){ve.fs.chmod(e,ae||438,(function(){de(!0)}))}))}))}))})):be?ve.fs.write(be,Z,0,Z.length,0,(function(){ve.fs.close(be,(function(){ve.fs.chmod(e,ae||438,(function(){de(!0)}))}))})):ve.fs.chmod(e,ae||438,(function(){de(!0)}))}))}))}))}))},Utils.prototype.findFiles=function(e){const Z=this;return function findSync(e,ie,ae){"boolean"==typeof ie&&(ae=ie,ie=void 0);let de=[];return Z.fs.readdirSync(e).forEach((function(ve){var be=yt.default.join(e,ve);Z.fs.statSync(be).isDirectory()&&ae&&(de=de.concat(findSync(be,ie,ae))),ie&&!ie.test(be)||de.push(yt.default.normalize(be)+(Z.fs.statSync(be).isDirectory()?Z.sep:""))})),de}(e,void 0,!0)},Utils.prototype.getAttributes=function(){},Utils.prototype.setAttributes=function(){},Utils.crc32update=function(e,Z){return bp[255&(e^Z)]^e>>>8},Utils.crc32=function(e){"string"==typeof e&&(e=Buffer.from(e,"utf8")),bp.length||genCRCTable();let Z=e.length,ie=-1;for(let ae=0;ae<Z;)ie=Utils.crc32update(ie,e[ae++]);return~ie>>>0},Utils.methodToString=function(e){switch(e){case yp.STORED:return"STORED ("+e+")";case yp.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}},Utils.canonical=function(e){if(!e)return"";var Z=yt.default.posix.normalize("/"+e.split("\\").join("/"));return yt.default.join(".",Z)},Utils.sanitize=function(e,Z){e=yt.default.resolve(yt.default.normalize(e));for(var ie=Z.split("/"),ae=0,de=ie.length;ae<de;ae++){var ve=yt.default.normalize(yt.default.join(e,ie.slice(ae,de).join(yt.default.sep)));if(0===ve.indexOf(e))return ve}return yt.default.normalize(yt.default.join(e,yt.default.basename(Z)))},Utils.toBuffer=function toBuffer(e){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):"string"==typeof e?Buffer.from(e,"utf8"):Buffer.alloc(0)},Utils.readBigUInt64LE=function(e,Z){var ie=Buffer.from(e.slice(Z,Z+8));return ie.swap64(),parseInt(`0x${ie.toString("hex")}`)},Utils.isWin=vp,Utils.crcTable=bp;const Cp=fileSystem_require();Cp.existsSync=Cp.existsSync||yt.default.existsSync;var Ap=Ep,wp=yp,Dp=gp,FileAttr=function(e){var Z=e||"",ie={directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0},ae=null;return Z&&Cp.existsSync(Z)?(ae=Cp.statSync(Z),ie.directory=ae.isDirectory(),ie.mtime=ae.mtime,ie.atime=ae.atime,ie.executable=!!(73&ae.mode),ie.readonly=!(128&ae.mode),ie.hidden="."===yt.default.basename(Z)[0]):console.warn("Invalid path: "+Z),{get directory(){return ie.directory},get readOnly(){return ie.readonly},get hidden(){return ie.hidden},get mtime(){return ie.mtime},get atime(){return ie.atime},get executable(){return ie.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:Z,isDirectory:ie.directory,isReadOnly:ie.readonly,isHidden:ie.hidden,isExecutable:ie.executable,mTime:ie.mtime,aTime:ie.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}};Ap.Constants=wp,Ap.Errors=Dp,Ap.FileAttr=FileAttr;var Tp=Ap.Constants,Sp=Ap.Constants,EntryHeader=function(){var e=20,Z=10,ie=0,ae=0,de=0,ve=0,be=0,Ce=0,ke=0,Ie=0,_e=0,Fe=0,Oe=0,Be=0,Me=0;e|=Ap.isWin?2560:768,ie|=Tp.FLG_EFS;var qe={};function setTime(e){e=new Date(e),de=(e.getFullYear()-1980&127)<<25|e.getMonth()+1<<21|e.getDate()<<16|e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1}return setTime(+new Date),{get made(){return e},set made(Z){e=Z},get version(){return Z},set version(e){Z=e},get flags(){return ie},set flags(e){ie=e},get method(){return ae},set method(e){switch(e){case Tp.STORED:this.version=10;case Tp.DEFLATED:default:this.version=20}ae=e},get time(){return new Date(1980+(de>>25&127),(de>>21&15)-1,de>>16&31,de>>11&31,de>>5&63,(31&de)<<1)},set time(e){setTime(e)},get timeHighByte(){return de>>>8&255},get crc(){return ve},set crc(e){ve=Math.max(0,e)>>>0},get compressedSize(){return be},set compressedSize(e){be=Math.max(0,e)>>>0},get size(){return Ce},set size(e){Ce=Math.max(0,e)>>>0},get fileNameLength(){return ke},set fileNameLength(e){ke=e},get extraLength(){return Ie},set extraLength(e){Ie=e},get commentLength(){return _e},set commentLength(e){_e=e},get diskNumStart(){return Fe},set diskNumStart(e){Fe=Math.max(0,e)>>>0},get inAttr(){return Oe},set inAttr(e){Oe=Math.max(0,e)>>>0},get attr(){return Be},set attr(e){Be=Math.max(0,e)>>>0},get fileAttr(){return Be?Be>>>0>>16&4095:0},get offset(){return Me},set offset(e){Me=Math.max(0,e)>>>0},get encripted(){return!(1&~ie)},get entryHeaderSize(){return Tp.CENHDR+ke+Ie+_e},get realDataOffset(){return Me+Tp.LOCHDR+qe.fnameLen+qe.extraLen},get dataHeader(){return qe},loadDataHeaderFromBinary:function(e){var Z=e.slice(Me,Me+Tp.LOCHDR);if(Z.readUInt32LE(0)!==Tp.LOCSIG)throw new Error(Ap.Errors.INVALID_LOC);qe={version:Z.readUInt16LE(Tp.LOCVER),flags:Z.readUInt16LE(Tp.LOCFLG),method:Z.readUInt16LE(Tp.LOCHOW),time:Z.readUInt32LE(Tp.LOCTIM),crc:Z.readUInt32LE(Tp.LOCCRC),compressedSize:Z.readUInt32LE(Tp.LOCSIZ),size:Z.readUInt32LE(Tp.LOCLEN),fnameLen:Z.readUInt16LE(Tp.LOCNAM),extraLen:Z.readUInt16LE(Tp.LOCEXT)}},loadFromBinary:function(qe){if(qe.length!==Tp.CENHDR||qe.readUInt32LE(0)!==Tp.CENSIG)throw new Error(Ap.Errors.INVALID_CEN);e=qe.readUInt16LE(Tp.CENVEM),Z=qe.readUInt16LE(Tp.CENVER),ie=qe.readUInt16LE(Tp.CENFLG),ae=qe.readUInt16LE(Tp.CENHOW),de=qe.readUInt32LE(Tp.CENTIM),ve=qe.readUInt32LE(Tp.CENCRC),be=qe.readUInt32LE(Tp.CENSIZ),Ce=qe.readUInt32LE(Tp.CENLEN),ke=qe.readUInt16LE(Tp.CENNAM),Ie=qe.readUInt16LE(Tp.CENEXT),_e=qe.readUInt16LE(Tp.CENCOM),Fe=qe.readUInt16LE(Tp.CENDSK),Oe=qe.readUInt16LE(Tp.CENATT),Be=qe.readUInt32LE(Tp.CENATX),Me=qe.readUInt32LE(Tp.CENOFF)},dataHeaderToBinary:function(){var e=Buffer.alloc(Tp.LOCHDR);return e.writeUInt32LE(Tp.LOCSIG,0),e.writeUInt16LE(Z,Tp.LOCVER),e.writeUInt16LE(ie,Tp.LOCFLG),e.writeUInt16LE(ae,Tp.LOCHOW),e.writeUInt32LE(de,Tp.LOCTIM),e.writeUInt32LE(ve,Tp.LOCCRC),e.writeUInt32LE(be,Tp.LOCSIZ),e.writeUInt32LE(Ce,Tp.LOCLEN),e.writeUInt16LE(ke,Tp.LOCNAM),e.writeUInt16LE(Ie,Tp.LOCEXT),e},entryHeaderToBinary:function(){var qe=Buffer.alloc(Tp.CENHDR+ke+Ie+_e);return qe.writeUInt32LE(Tp.CENSIG,0),qe.writeUInt16LE(e,Tp.CENVEM),qe.writeUInt16LE(Z,Tp.CENVER),qe.writeUInt16LE(ie,Tp.CENFLG),qe.writeUInt16LE(ae,Tp.CENHOW),qe.writeUInt32LE(de,Tp.CENTIM),qe.writeUInt32LE(ve,Tp.CENCRC),qe.writeUInt32LE(be,Tp.CENSIZ),qe.writeUInt32LE(Ce,Tp.CENLEN),qe.writeUInt16LE(ke,Tp.CENNAM),qe.writeUInt16LE(Ie,Tp.CENEXT),qe.writeUInt16LE(_e,Tp.CENCOM),qe.writeUInt16LE(Fe,Tp.CENDSK),qe.writeUInt16LE(Oe,Tp.CENATT),qe.writeUInt32LE(Be,Tp.CENATX),qe.writeUInt32LE(Me,Tp.CENOFF),qe.fill(0,Tp.CENHDR),qe},toJSON:function(){const bytes=function(e){return e+" bytes"};return{made:e,version:Z,flags:ie,method:Ap.methodToString(ae),time:this.time,crc:"0x"+ve.toString(16).toUpperCase(),compressedSize:bytes(be),size:bytes(Ce),fileNameLength:bytes(ke),extraLength:bytes(Ie),commentLength:bytes(_e),diskNumStart:Fe,inAttr:Oe,attr:Be,offset:Me,entryHeaderSize:bytes(Tp.CENHDR+ke+Ie+_e)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},MainHeader=function(){var e=0,Z=0,ie=0,ae=0,de=0;return{get diskEntries(){return e},set diskEntries(ie){e=Z=ie},get totalEntries(){return Z},set totalEntries(ie){Z=e=ie},get size(){return ie},set size(e){ie=e},get offset(){return ae},set offset(e){ae=e},get commentLength(){return de},set commentLength(e){de=e},get mainHeaderSize(){return Sp.ENDHDR+de},loadFromBinary:function(ve){if((ve.length!==Sp.ENDHDR||ve.readUInt32LE(0)!==Sp.ENDSIG)&&(ve.length<Sp.ZIP64HDR||ve.readUInt32LE(0)!==Sp.ZIP64SIG))throw new Error(Ap.Errors.INVALID_END);ve.readUInt32LE(0)===Sp.ENDSIG?(e=ve.readUInt16LE(Sp.ENDSUB),Z=ve.readUInt16LE(Sp.ENDTOT),ie=ve.readUInt32LE(Sp.ENDSIZ),ae=ve.readUInt32LE(Sp.ENDOFF),de=ve.readUInt16LE(Sp.ENDCOM)):(e=Ap.readBigUInt64LE(ve,Sp.ZIP64SUB),Z=Ap.readBigUInt64LE(ve,Sp.ZIP64TOT),ie=Ap.readBigUInt64LE(ve,Sp.ZIP64SIZE),ae=Ap.readBigUInt64LE(ve,Sp.ZIP64OFF),de=0)},toBinary:function(){var ve=Buffer.alloc(Sp.ENDHDR+de);return ve.writeUInt32LE(Sp.ENDSIG,0),ve.writeUInt32LE(0,4),ve.writeUInt16LE(e,Sp.ENDSUB),ve.writeUInt16LE(Z,Sp.ENDTOT),ve.writeUInt32LE(ie,Sp.ENDSIZ),ve.writeUInt32LE(ae,Sp.ENDOFF),ve.writeUInt16LE(de,Sp.ENDCOM),ve.fill(" ",Sp.ENDHDR),ve},toJSON:function(){return{diskEntries:e,totalEntries:Z,size:ie+" bytes",offset:function(e,Z){let ie=e.toString(16).toUpperCase();for(;ie.length<Z;)ie="0"+ie;return"0x"+ie}(ae,4),commentLength:de}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},Pp={EntryHeader:EntryHeader,MainHeader:MainHeader};const{randomFillSync:kp}=_t.default,Np=new Uint32Array(256).map(((e,Z)=>{for(let e=0;e<8;e++)1&Z?Z=Z>>>1^3988292384:Z>>>=1;return Z>>>0})),uMul=(e,Z)=>Math.imul(e,Z)>>>0,crc32update=(e,Z)=>Np[255&(e^Z)]^e>>>8,genSalt=()=>"function"==typeof kp?kp(Buffer.alloc(12)):genSalt.node();genSalt.node=()=>{const e=Buffer.alloc(12),Z=e.length;for(let ie=0;ie<Z;ie++)e[ie]=256*Math.random()&255;return e};const Ip={genSalt:genSalt};function Initkeys(e){const Z=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let e=0;e<Z.length;e++)this.updateKeys(Z[e])}Initkeys.prototype.updateKeys=function(e){const Z=this.keys;return Z[0]=crc32update(Z[0],e),Z[1]+=255&Z[0],Z[1]=uMul(Z[1],134775813)+1,Z[2]=crc32update(Z[2],Z[1]>>>24),e},Initkeys.prototype.next=function(){const e=(2|this.keys[2])>>>0;return uMul(e,1^e)>>8&255};var _p={decrypt:function decrypt(e,Z,ie){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const ae=function make_decrypter(e){const Z=new Initkeys(e);return function(e){const ie=Buffer.alloc(e.length);let ae=0;for(let de of e)ie[ae++]=Z.updateKeys(de^Z.next());return ie}}(ie),de=ae(e.slice(0,12)),ve=8&~Z.flags?Z.crc>>>24:Z.timeHighByte;if(de[11]!==ve)throw"ADM-ZIP: Wrong Password";return ae(e.slice(12))},encrypt:function encrypt(e,Z,ie,ae=!1){null==e&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const de=function make_encrypter(e){const Z=new Initkeys(e);return function(e,ie,ae=0){ie||(ie=Buffer.alloc(e.length));for(let de of e){const e=Z.next();ie[ae++]=de^e,Z.updateKeys(de)}return ie}}(ie),ve=Ip.genSalt();ve[11]=Z.crc>>>24&255,ae&&(ve[10]=Z.crc>>>16&255);const be=Buffer.alloc(e.length+12);return de(ve,be),de(e,be,12)},_salter:function _salter(e){Buffer.isBuffer(e)&&e.length>=12?Ip.genSalt=function(){return e.slice(0,12)}:Ip.genSalt="node"===e?genSalt.node:genSalt}},Deflater=function(e){var Z=Wt.default,ie={chunkSize:1024*(parseInt(e.length/1024)+1)};return{deflate:function(){return Z.deflateRawSync(e,ie)},deflateAsync:function(ae){var de=Z.createDeflateRaw(ie),ve=[],be=0;de.on("data",(function(e){ve.push(e),be+=e.length})),de.on("end",(function(){var e=Buffer.alloc(be),Z=0;e.fill(0);for(var ie=0;ie<ve.length;ie++){var de=ve[ie];de.copy(e,Z),Z+=de.length}ae&&ae(e)})),de.end(e)}}},Inflater=function(e){var Z=Wt.default;return{inflate:function(){return Z.inflateRawSync(e)},inflateAsync:function(ie){var ae=Z.createInflateRaw(),de=[],ve=0;ae.on("data",(function(e){de.push(e),ve+=e.length})),ae.on("end",(function(){var e=Buffer.alloc(ve),Z=0;e.fill(0);for(var ae=0;ae<de.length;ae++){var be=de[ae];be.copy(e,Z),Z+=be.length}ie&&ie(e)})),ae.end(e)}}},Fp={Deflater:Deflater,Inflater:Inflater,ZipCrypto:_p},Op=Ap.Constants,zipEntry=function(e){var Z=new Pp.EntryHeader,ie=Buffer.alloc(0),ae=Buffer.alloc(0),de=!1,ve=null,be=Buffer.alloc(0);function getCompressedDataFromZip(){return e&&Buffer.isBuffer(e)?(Z.loadDataHeaderFromBinary(e),e.slice(Z.realDataOffset,Z.realDataOffset+Z.compressedSize)):Buffer.alloc(0)}function crc32OK(e){return!(8&~Z.flags&&Ap.crc32(e)!==Z.dataHeader.crc)}function decompress(e,ae,ve){if(void 0===ae&&"string"==typeof e&&(ve=e,e=void 0),de)return e&&ae&&ae(Buffer.alloc(0),Ap.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var be=getCompressedDataFromZip();if(0===be.length)return e&&ae&&ae(be),be;if(Z.encripted){if("string"!=typeof ve&&!Buffer.isBuffer(ve))throw new Error("ADM-ZIP: Incompatible password parameter");be=Fp.ZipCrypto.decrypt(be,Z,ve)}var Ce=Buffer.alloc(Z.size);switch(Z.method){case Ap.Constants.STORED:if(be.copy(Ce),crc32OK(Ce))return e&&ae&&ae(Ce),Ce;throw e&&ae&&ae(Ce,Ap.Errors.BAD_CRC),new Error(Ap.Errors.BAD_CRC);case Ap.Constants.DEFLATED:var ke=new Fp.Inflater(be);if(!e){if(ke.inflate(Ce).copy(Ce,0),!crc32OK(Ce))throw new Error(Ap.Errors.BAD_CRC+" "+ie.toString());return Ce}ke.inflateAsync((function(e){e.copy(e,0),ae&&(crc32OK(e)?ae(e):ae(e,Ap.Errors.BAD_CRC))}));break;default:throw e&&ae&&ae(Buffer.alloc(0),Ap.Errors.UNKNOWN_METHOD),new Error(Ap.Errors.UNKNOWN_METHOD)}}function compress(ie,ae){if((!ve||!ve.length)&&Buffer.isBuffer(e))return ie&&ae&&ae(getCompressedDataFromZip()),getCompressedDataFromZip();if(ve.length&&!de){var be;switch(Z.method){case Ap.Constants.STORED:return Z.compressedSize=Z.size,be=Buffer.alloc(ve.length),ve.copy(be),ie&&ae&&ae(be),be;default:case Ap.Constants.DEFLATED:var Ce=new Fp.Deflater(ve);if(!ie){var ke=Ce.deflate();return Z.compressedSize=ke.length,ke}Ce.deflateAsync((function(e){be=Buffer.alloc(e.length),Z.compressedSize=e.length,e.copy(be),ae&&ae(be)})),Ce=null}}else{if(!ie||!ae)return Buffer.alloc(0);ae(Buffer.alloc(0))}}function readUInt64LE(e,Z){return(e.readUInt32LE(Z+4)<<4)+e.readUInt32LE(Z)}function parseZip64ExtendedInformation(e){var ie,ae,de,ve;e.length>=Op.EF_ZIP64_SCOMP&&(ie=readUInt64LE(e,Op.EF_ZIP64_SUNCOMP),Z.size===Op.EF_ZIP64_OR_32&&(Z.size=ie)),e.length>=Op.EF_ZIP64_RHO&&(ae=readUInt64LE(e,Op.EF_ZIP64_SCOMP),Z.compressedSize===Op.EF_ZIP64_OR_32&&(Z.compressedSize=ae)),e.length>=Op.EF_ZIP64_DSN&&(de=readUInt64LE(e,Op.EF_ZIP64_RHO),Z.offset===Op.EF_ZIP64_OR_32&&(Z.offset=de)),e.length>=Op.EF_ZIP64_DSN+4&&(ve=e.readUInt32LE(Op.EF_ZIP64_DSN),Z.diskNumStart===Op.EF_ZIP64_OR_16&&(Z.diskNumStart=ve))}return{get entryName(){return ie.toString()},get rawEntryName(){return ie},set entryName(e){var ae=(ie=Ap.toBuffer(e))[ie.length-1];de=47===ae||92===ae,Z.fileNameLength=ie.length},get extra(){return be},set extra(e){be=e,Z.extraLength=e.length,function parseExtra(e){for(var Z,ie,ae,de=0;de<e.length;)Z=e.readUInt16LE(de),de+=2,ie=e.readUInt16LE(de),de+=2,ae=e.slice(de,de+ie),de+=ie,Op.ID_ZIP64===Z&&parseZip64ExtendedInformation(ae)}(e)},get comment(){return ae.toString()},set comment(e){ae=Ap.toBuffer(e),Z.commentLength=ae.length},get name(){var e=ie.toString();return de?e.substr(e.length-1).split("/").pop():e.split("/").pop()},get isDirectory(){return de},getCompressedData:function(){return compress(!1,null)},getCompressedDataAsync:function(e){compress(!0,e)},setData:function(e){ve=Ap.toBuffer(e),!de&&ve.length?(Z.size=ve.length,Z.method=Ap.Constants.DEFLATED,Z.crc=Ap.crc32(e),Z.changed=!0):Z.method=Ap.Constants.STORED},getData:function(e){return Z.changed?ve:decompress(!1,null,e)},getDataAsync:function(e,ie){Z.changed?e(ve):decompress(!0,e,ie)},set attr(e){Z.attr=e},get attr(){return Z.attr},set header(e){Z.loadFromBinary(e)},get header(){return Z},packHeader:function(){var e=Z.entryHeaderToBinary(),de=Ap.Constants.CENHDR;return ie.copy(e,de),de+=ie.length,Z.extraLength&&(be.copy(e,de),de+=Z.extraLength),Z.commentLength&&ae.copy(e,de),e},toJSON:function(){const bytes=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:Z.toJSON(),compressedData:bytes(e),data:bytes(ve)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},zipFile=function(e,Z){var ie=[],ae={},de=Buffer.alloc(0),ve=new Pp.MainHeader,be=!1;const Ce=Object.assign(Object.create(null),Z),{noSort:ke}=Ce;function readEntries(){be=!0,ae={},ie=new Array(ve.diskEntries);for(var Z=ve.offset,de=0;de<ie.length;de++){var Ce=Z,ke=new zipEntry(e);ke.header=e.slice(Ce,Ce+=Ap.Constants.CENHDR),ke.entryName=e.slice(Ce,Ce+=ke.header.fileNameLength),ke.header.extraLength&&(ke.extra=e.slice(Ce,Ce+=ke.header.extraLength)),ke.header.commentLength&&(ke.comment=e.slice(Ce,Ce+ke.header.commentLength)),Z+=ke.header.entryHeaderSize,ie[de]=ke,ae[ke.entryName]=ke}}function sortEntries(){ie.length>1&&!ke&&ie.sort(((e,Z)=>e.entryName.toLowerCase().localeCompare(Z.entryName.toLowerCase())))}return e?function readMainHeader(Z){var ie=e.length-Ap.Constants.ENDHDR,ae=Math.max(0,ie-65535),be=ae,Ce=e.length,ke=-1,Ie=0;for(;ie>=be;ie--)if(80===e[ie])if(e.readUInt32LE(ie)!==Ap.Constants.ENDSIG)if(e.readUInt32LE(ie)!==Ap.Constants.END64SIG){if(e.readUInt32LE(ie)===Ap.Constants.ZIP64SIG){ke=ie,Ce=ie+Ap.readBigUInt64LE(e,ie+Ap.Constants.ZIP64SIZE)+Ap.Constants.ZIP64LEAD;break}}else be=ae;else ke=ie,Ie=ie,Ce=ie+Ap.Constants.ENDHDR,be=ie-Ap.Constants.END64HDR;if(!~ke)throw new Error(Ap.Errors.INVALID_FORMAT);ve.loadFromBinary(e.slice(ke,Ce)),ve.commentLength&&(de=e.slice(Ie+Ap.Constants.ENDHDR));Z&&readEntries()}(Ce.readEntries):be=!0,{get entries(){return be||readEntries(),ie},get comment(){return de.toString()},set comment(e){de=Ap.toBuffer(e),ve.commentLength=de.length},getEntryCount:function(){return be?ie.length:ve.diskEntries},forEach:function(Z){be?ie.forEach(Z):function iterateEntries(Z){const ie=ve.diskEntries;let ae=ve.offset;for(let de=0;de<ie;de++){let ie=ae;const de=new zipEntry(e);de.header=e.slice(ie,ie+=Ap.Constants.CENHDR),de.entryName=e.slice(ie,ie+=de.header.fileNameLength),ae+=de.header.entryHeaderSize,Z(de)}}(Z)},getEntry:function(e){return be||readEntries(),ae[e]||null},setEntry:function(e){be||readEntries(),ie.push(e),ae[e.entryName]=e,ve.totalEntries=ie.length},deleteEntry:function(e){be||readEntries();var Z=ae[e];if(Z&&Z.isDirectory){var de=this;this.getEntryChildren(Z).forEach((function(Z){Z.entryName!==e&&de.deleteEntry(Z.entryName)}))}ie.splice(ie.indexOf(Z),1),delete ae[e],ve.totalEntries=ie.length},getEntryChildren:function(e){if(be||readEntries(),e&&e.isDirectory){const Z=[],ae=e.entryName,de=ae.length;return ie.forEach((function(e){e.entryName.substr(0,de)===ae&&Z.push(e)})),Z}return[]},compressToBuffer:function(){be||readEntries(),sortEntries();const e=[],Z=[];let ae=0,Ce=0;ve.size=0,ve.offset=0;for(const de of ie){const ie=de.getCompressedData();de.header.offset=Ce;const be=de.header.dataHeaderToBinary(),ke=de.rawEntryName.length,Ie=Buffer.alloc(ke+de.extra.length);de.rawEntryName.copy(Ie,0),de.extra.copy(Ie,ke);const _e=be.length+Ie.length+ie.length;Ce+=_e,e.push(be),e.push(Ie),e.push(ie);const Fe=de.packHeader();Z.push(Fe),ve.size+=Fe.length,ae+=_e+Fe.length}ae+=ve.mainHeaderSize,ve.offset=Ce,Ce=0;const ke=Buffer.alloc(ae);for(const Z of e)Z.copy(ke,Ce),Ce+=Z.length;for(const e of Z)e.copy(ke,Ce),Ce+=e.length;const Ie=ve.toBinary();return de&&de.copy(Ie,Ap.Constants.ENDHDR),Ie.copy(ke,Ce),ke},toAsyncBuffer:function(e,Z,ae,Ce){try{be||readEntries(),sortEntries();const Z=[],ke=[];let Ie=0,_e=0;ve.size=0,ve.offset=0;const compress2Buffer=function(ie){if(ie.length){const e=ie.pop(),de=e.entryName+e.extra.toString();ae&&ae(de),e.getCompressedDataAsync((function(ae){Ce&&Ce(de),e.header.offset=_e;const be=e.header.dataHeaderToBinary(),Fe=Buffer.alloc(de.length,de),Oe=be.length+Fe.length+ae.length;_e+=Oe,Z.push(be),Z.push(Fe),Z.push(ae);const Be=e.packHeader();ke.push(Be),ve.size+=Be.length,Ie+=Oe+Be.length,compress2Buffer(ie)}))}else{Ie+=ve.mainHeaderSize,ve.offset=_e,_e=0;const ie=Buffer.alloc(Ie);Z.forEach((function(e){e.copy(ie,_e),_e+=e.length})),ke.forEach((function(e){e.copy(ie,_e),_e+=e.length}));const ae=ve.toBinary();de&&de.copy(ae,Ap.Constants.ENDHDR),ae.copy(ie,_e),e(ie)}};compress2Buffer(ie)}catch(e){Z(e)}}}};const get_Bool=(e,Z)=>"boolean"==typeof e?e:Z,get_Str=(e,Z)=>"string"==typeof e?e:Z,Lp={noSort:!1,readEntries:!1,method:Ap.Constants.NONE,fs:null};var admZip=function(e,Z){let ie=null;const ae=Object.assign(Object.create(null),Lp);e&&"object"==typeof e&&(e instanceof Uint8Array||(Object.assign(ae,e),e=ae.input?ae.input:void 0,ae.input&&delete ae.input),Buffer.isBuffer(e)&&(ie=e,ae.method=Ap.Constants.BUFFER,e=void 0)),Object.assign(ae,Z);const de=new Ap(ae);if(e&&"string"==typeof e){if(!de.fs.existsSync(e))throw new Error(Ap.Errors.INVALID_FILENAME);ae.method=Ap.Constants.FILE,ae.filename=e,ie=de.fs.readFileSync(e)}const ve=new zipFile(ie,ae),{canonical:be,sanitize:Ce}=Ap;function getEntry(e){var Z;if(e&&ve&&("string"==typeof e&&(Z=ve.getEntry(e)),"object"==typeof e&&void 0!==e.entryName&&void 0!==e.header&&(Z=ve.getEntry(e.entryName)),Z))return Z;return null}function fixPath(e){const{join:Z,normalize:ie,sep:ae}=yt.default.posix;return Z(".",ie(ae+e.split("\\").join(ae)+ae))}return{readFile:function(e,Z){var ie=getEntry(e);return ie&&ie.getData(Z)||null},readFileAsync:function(e,Z){var ie=getEntry(e);ie?ie.getDataAsync(Z):Z(null,"getEntry failed for:"+e)},readAsText:function(e,Z){var ie=getEntry(e);if(ie){var ae=ie.getData();if(ae&&ae.length)return ae.toString(Z||"utf8")}return""},readAsTextAsync:function(e,Z,ie){var ae=getEntry(e);ae?ae.getDataAsync((function(e,ae){ae?Z(e,ae):e&&e.length?Z(e.toString(ie||"utf8")):Z("")})):Z("")},deleteFile:function(e){var Z=getEntry(e);Z&&ve.deleteEntry(Z.entryName)},addZipComment:function(e){ve.comment=e},getZipComment:function(){return ve.comment||""},addZipEntryComment:function(e,Z){var ie=getEntry(e);ie&&(ie.comment=Z)},getZipEntryComment:function(e){var Z=getEntry(e);return Z&&Z.comment||""},updateFile:function(e,Z){var ie=getEntry(e);ie&&ie.setData(Z)},addLocalFile:function(e,Z,ie,ae){if(!de.fs.existsSync(e))throw new Error(Ap.Errors.FILE_NOT_FOUND.replace("%s",e));{Z=Z?fixPath(Z):"";var ve=e.split("\\").join("/").split("/").pop();Z+=ie||ve;const be=de.fs.statSync(e);this.addFile(Z,de.fs.readFileSync(e),ae,be)}},addLocalFolder:function(e,Z,ie,ae){var ve;if(ie instanceof RegExp?(ve=ie,ie=function(e){return ve.test(e)}):"function"!=typeof ie&&(ie=function(){return!0}),Z=Z?fixPath(Z):"",e=yt.default.normalize(e),!de.fs.existsSync(e))throw new Error(Ap.Errors.FILE_NOT_FOUND.replace("%s",e));{const ve=de.findFiles(e),be=this;ve.length&&ve.forEach((function(ve){var Ce=yt.default.relative(e,ve).split("\\").join("/");if(ie(Ce)){var ke=de.fs.statSync(ve);ke.isFile()?be.addFile(Z+Ce,de.fs.readFileSync(ve),"",ae||ke):be.addFile(Z+Ce+"/",Buffer.alloc(0),"",ae||ke)}}))}},addLocalFolderAsync:function(e,Z,ie,ae){var ve;ae instanceof RegExp?(ve=ae,ae=function(e){return ve.test(e)}):"function"!=typeof ae&&(ae=function(){return!0}),ie=ie?fixPath(ie):"",e=yt.default.normalize(e);var be=this;de.fs.open(e,"r",(function(ve){if(ve&&"ENOENT"===ve.code)Z(void 0,Ap.Errors.FILE_NOT_FOUND.replace("%s",e));else if(ve)Z(void 0,ve);else{var Ce=de.findFiles(e),ke=-1,next=function(){if((ke+=1)<Ce.length){var ve=Ce[ke],Ie=yt.default.relative(e,ve).split("\\").join("/");Ie=Ie.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),ae(Ie)?de.fs.stat(ve,(function(e,ae){e&&Z(void 0,e),ae.isFile()?de.fs.readFile(ve,(function(e,de){e?Z(void 0,e):(be.addFile(ie+Ie,de,"",ae),next())})):(be.addFile(ie+Ie+"/",Buffer.alloc(0),"",ae),next())})):process.nextTick((()=>{next()}))}else Z(!0,void 0)};next()}}))},addLocalFolderPromise:function(e,Z){return new Promise(((ie,ae)=>{const{filter:de,zipPath:ve}=Object.assign({},Z);this.addLocalFolderAsync(e,((e,Z)=>{Z&&ae(Z),e&&ie(this)}),ve,de)}))},addFile:function(e,Z,ie,ae){let be=getEntry(e);const Ce=null!=be;Ce||(be=new zipEntry,be.entryName=e),be.comment=ie||"";const ke="object"==typeof ae&&ae instanceof de.fs.Stats;ke&&(be.header.time=ae.mtime);var Ie=be.isDirectory?16:0;let _e=be.isDirectory?16384:32768;_e|=ke?4095&ae.mode:"number"==typeof ae?4095&ae:be.isDirectory?493:420,Ie=(Ie|_e<<16)>>>0,be.attr=Ie,be.setData(Z),Ce||ve.setEntry(be)},getEntries:function(e){return ve.password=e,ve?ve.entries:[]},getEntry:function(e){return getEntry(e)},getEntryCount:function(){return ve.getEntryCount()},forEach:function(e){return ve.forEach(e)},extractEntryTo:function(e,Z,ie,ae,ke,Ie){ae=get_Bool(ae,!1),ke=get_Bool(ke,!1),ie=get_Bool(ie,!0),Ie=get_Str(Ie,get_Str(ke,void 0));var _e=getEntry(e);if(!_e)throw new Error(Ap.Errors.NO_ENTRY);var Fe=be(_e.entryName),Oe=Ce(Z,Ie&&!_e.isDirectory?Ie:ie?Fe:yt.default.basename(Fe));if(_e.isDirectory)return ve.getEntryChildren(_e).forEach((function(e){if(e.isDirectory)return;var ve=e.getData();if(!ve)throw new Error(Ap.Errors.CANT_EXTRACT_FILE);var Ie=be(e.entryName),_e=Ce(Z,ie?Ie:yt.default.basename(Ie));const Fe=ke?e.header.fileAttr:void 0;de.writeFileTo(_e,ve,ae,Fe)})),!0;var Be=_e.getData(ve.password);if(!Be)throw new Error(Ap.Errors.CANT_EXTRACT_FILE);if(de.fs.existsSync(Oe)&&!ae)throw new Error(Ap.Errors.CANT_OVERRIDE);const Me=ke?e.header.fileAttr:void 0;return de.writeFileTo(Oe,Be,ae,Me),!0},test:function(e){if(!ve)return!1;for(var Z in ve.entries)try{if(Z.isDirectory)continue;if(!ve.entries[Z].getData(e))return!1}catch(e){return!1}return!0},extractAllTo:function(e,Z,ie,ae){if(Z=get_Bool(Z,!1),ae=get_Str(ie,ae),ie=get_Bool(ie,!1),!ve)throw new Error(Ap.Errors.NO_ZIP);ve.entries.forEach((function(ve){var ke=Ce(e,be(ve.entryName.toString()));if(ve.isDirectory)return void de.makeDir(ke);var Ie=ve.getData(ae);if(!Ie)throw new Error(Ap.Errors.CANT_EXTRACT_FILE);const _e=ie?ve.header.fileAttr:void 0;de.writeFileTo(ke,Ie,Z,_e);try{de.fs.utimesSync(ke,ve.header.time,ve.header.time)}catch(e){throw new Error(Ap.Errors.CANT_EXTRACT_FILE)}}))},extractAllToAsync:function(e,Z,ie,ae){if(Z=get_Bool(Z,!1),"function"!=typeof ie||ae||(ae=ie),ie=get_Bool(ie,!1),ae||(ae=function(e){throw new Error(e)}),!ve)return void ae(new Error(Ap.Errors.NO_ZIP));e=yt.default.resolve(e);const getPath=Z=>Ce(e,yt.default.normalize(be(Z.entryName.toString()))),getError=(e,Z)=>new Error(e+': "'+Z+'"'),ke=[],Ie=new Set;ve.entries.forEach((e=>{e.isDirectory?ke.push(e):Ie.add(e)}));for(const e of ke){const Z=getPath(e),ve=ie?e.header.fileAttr:void 0;try{de.makeDir(Z),ve&&de.fs.chmodSync(Z,ve),de.fs.utimesSync(Z,e.header.time,e.header.time)}catch(e){ae(getError("Unable to create folder",Z))}}const done=()=>{0===Ie.size&&ae()};for(const ve of Ie.values()){const ke=yt.default.normalize(be(ve.entryName.toString())),_e=Ce(e,ke);ve.getDataAsync((function(e,be){if(be)ae(new Error(be));else if(e){const be=ie?ve.header.fileAttr:void 0;de.writeFileToAsync(_e,e,Z,be,(function(e){e?de.fs.utimes(_e,ve.header.time,ve.header.time,(function(e){e?ae(getError("Unable to set times",_e)):(done(),Ie.delete(ve))})):ae(getError("Unable to write file",_e))}))}else ae(new Error(Ap.Errors.CANT_EXTRACT_FILE))}))}done()},writeZip:function(e,Z){if(1===arguments.length&&"function"==typeof e&&(Z=e,e=""),!e&&ae.filename&&(e=ae.filename),e){var ie=ve.compressToBuffer();if(ie){var be=de.writeFileTo(e,ie,!0);"function"==typeof Z&&Z(be?null:new Error("failed"),"")}}},writeZipPromise:function(e,Z){const{overwrite:ie,perm:ve}=Object.assign({overwrite:!0},Z);return new Promise(((Z,be)=>{!e&&ae.filename&&(e=ae.filename),e||be("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then((ae=>{de.writeFileToAsync(e,ae,ie,ve,(e=>e?Z(e):be("ADM-ZIP: Wasn't able to write zip file")))}),be)}))},toBufferPromise:function(){return new Promise(((e,Z)=>{ve.toAsyncBuffer(e,Z)}))},toBuffer:function(e,Z,ie,ae){return this.valueOf=2,"function"==typeof e?(ve.toAsyncBuffer(e,Z,ie,ae),null):ve.compressToBuffer()}}};function extractTemplate(e,Z){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(ie){try{console.log("Extracting template..."),new admZip(e).extractAllTo(Z,!0),Dt.default.unlinkSync(e)}catch(e){throw console.error("Error extracting template:",e),e}return[2]}))}))}function downloadAndExtractTemplate(e,Z,ie){return __awaiter(this,void 0,void 0,(function(){var ae,de,ve,be;return __generator(this,(function(Ce){switch(Ce.label){case 0:return Ce.trys.push([0,5,,6]),console.log("Downloading template from ".concat(e,"...")),[4,sr.default.ensureDir(Z)];case 1:return Ce.sent(),ae="".concat(Z,"/template").concat(Date.now(),".zip"),[4,downloadFile(e,ae)];case 2:return Ce.sent(),console.log("Template downloaded."),[4,extractTemplate(ae,Z)];case 3:return Ce.sent(),[4,sr.default.readdir(Z,{withFileTypes:!0})];case 4:if(de=Ce.sent(),(ve=de.find((function(e){return e.isDirectory()&&(e.name.startsWith(ie.zipName||"---")||e.name===ie.zipName)})))||(ve=de[0]),!ve)throw new Error("Failed to find the extracted template directory.");return[2,"".concat(Z,"/").concat(ve.name)];case 5:throw be=Ce.sent(),console.error("Error downloading or extracting template: ",be),be;case 6:return[2]}}))}))}function getTemplate(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae;return __generator(this,(function(de){switch(de.label){case 0:return[4,request("/material/templates",{},{method:"GET"})];case 1:return Z=de.sent(),ie=Z.data,ae=ie.find((function(Z){return Z.name===e})),[2,ae]}}))}))}function updateProjectTemplate(e){return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze;return __generator(this,(function(et){switch(et.label){case 0:return ie=Et.readFileSync("./package.json","utf8"),ae=JSON.parse(ie),de=ae.appthen,Ce=(be=de||{}).template,ke=void 0===Ce?e||"vite":Ce,Ie=be.templateVersion,_e=void 0===Ie?"taro"===e?"0.0.0":"0.0.3":Ie,"vite"===ke&&"taro"===e&&(ke="taro",_e="0.0.0"),[4,request("/material/check-template-update",{template:ke,templateVersion:_e},{method:"POST"})];case 1:return Fe=et.sent(),(Oe=Fe.data)?[4,getTemplate(ke)]:[2];case 2:return(Be=et.sent())?(Me=null==Be?void 0:Be.url,qe="./node_modules/@appthen/templates-".concat(ke),qe=gt.resolve(qe),[4,downloadAndExtractTemplate(Me,qe,Be)]):(console.error("Template not found"),[2]);case 3:return qe=et.sent(),Ve=gt.resolve("."),Oe.files_changed.forEach((function(e){var ie=gt.join(qe,e.file_path),ae=gt.join(Ve,e.file_path);switch(e.change_type){case"add":if(Et.existsSync(ie)){var de=gt.dirname(ae);Et.existsSync(de)||Et.mkdirSync(de,{recursive:!0}),Et.copyFileSync(ie,ae),console.log("Added ".concat(ie," to ").concat(ae))}else console.error("Source file not found for addition: ".concat(ie));break;case"modify":if(ve.existsSync(ie)){de=Z.dirname(ae);ve.existsSync(de)||Et.mkdirSync(de,{recursive:!0}),ve.copyFileSync(ie,ae),console.log("Copied ".concat(ie," to ").concat(ae))}else console.error("Source file not found: ".concat(ie));break;case"delete":ve.existsSync(ae)&&(Et.unlinkSync(ae),console.log("Deleted ".concat(ae)));break;default:console.warn("Unknown change type: ".concat(e.change_type))}})),Ze=Oe.version_number,ae.appthen=__assign(__assign({},ae.appthen),{template:ke,templateVersion:Ze}),Et.writeFileSync("./package.json",JSON.stringify(ae,null,2),"utf8"),console.log("Project template has been updated to version ".concat(Ze)),[2]}}))}))}var Bp=require("fs-extra"),Mp="$__cacheTime";function run(e,Z){var ie,de,ve,be;return __awaiter(this,void 0,void 0,(function(){var e,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze,et,tt,ct,ut,lt,pt,mt,gt,Et,Dt,St,kt,It,_t,Ft,Ut,qt,Ht,Vt,Gt,Jt,Wt,Xt,Yt,Zt,tr,sr,nr,ir,ar;return __generator(this,(function(or){switch(or.label){case 0:e=yt.default.join(vt.default.homedir(),".cache","mengti_temp"),Ce=yt.default.join(vt.default.homedir(),".cache","mengti_translate"),Z.clear&&removeDir(Ce),ke=yt.default.join(process.cwd()+"/"+(Z.output||""))+Mp,or.label=1;case 1:return or.trys.push([1,15,,16]),Ie=Va.getKey(ke),console.log("[最后同步时间] ",Ie?new Date(Number(Ie)).toLocaleString():"无"),_e=Ie&&!Z.clear?Number(Ie):0,updateAuthToken(Z.auth),console.log("[INFO] 开始下载项目... "),[4,loadSchema({projectId:Z.id,auth:Z.auth,filter:Z.filter,folder:Z.folder,frame:Z.frame,afterTime:_e})];case 2:return Fe=or.sent(),Oe=Fe.schema,Be=Fe.project,Me=Fe.documents,qe=Fe.componentDocs,Ve=Fe.packageJSON,Ze=Be.documents||[],et=Ze.map((function(e){return e.fileName})),tt=(null===(ie=Be.appConfig)||void 0===ie?void 0:ie.subPages)||[],ct=Z.frame||(null==Be?void 0:Be.type),[4,updateProjectTemplate(lt=(ut="web"===ct)?"vite":"taro")];case 3:return or.sent(),Be&&0!==Me.length?(pt=Z.output,mt=function createRuoqingCodeGeneratorProjectBuilder(e){return bt.default.createProjectBuilder({template:Fl.template,plugins:{components:[pluginFactory$6(),pluginFactory$2({fileType:"jsx"}),pluginFactory$5(e),pluginFactory$4(e),pluginFactory$7(),bt.default.plugins.react.containerInitState(),bt.default.plugins.react.containerLifeCycle(),pluginFactory$3(),pluginFactory$8(),pluginFactory$1({nodeTypeMapping:{Div:"View",Component:"React.Fragment",Page:"View",Block:"React.Fragment"}}),bt.default.plugins.style.css()],pages:[pluginFactory$6(),pluginFactory$2({fileType:"jsx"}),pluginFactory$5(e),pluginFactory$4(e),pluginFactory$7(),bt.default.plugins.react.containerInitState(),bt.default.plugins.react.containerLifeCycle(),pluginFactory$3(),pluginFactory$8(),pluginFactory$1({nodeTypeMapping:{Div:"div",Component:"React.Fragment",Page:"Page",Block:"React.Fragment"}}),bt.default.plugins.style.css()],router:[bt.default.plugins.common.esmodule(),Fl.plugins.router()],entry:[Fl.plugins.entry()],constants:[bt.default.plugins.project.constants()],utils:[bt.default.plugins.common.esmodule(),pluginFactory("react")],i18n:[bt.default.plugins.project.i18n()],globalStyle:[Fl.plugins.globalStyle()],htmlEntry:[Fl.plugins.entryHtml()],packageJSON:[Fl.plugins.packageJSON()]},postProcessors:[factory()]})}({type:ct,solution:lt}),Z.env&&(gt=null===(ve=null===(de=Be.envInfo)||void 0===de?void 0:de.list)||void 0===ve?void 0:ve.find((function(e){return e.alias===Z.env})),gt&&(Oe.constants=__assign(__assign({},Oe.constants),getPureValue(gt.data)))),[4,mt.generateProject(Oe)]):(console.log(ft.default.yellow("提示:无文件更新,请确认是否保存!如需更新全部,请勾选清除缓存")),[2,0]);case 4:return(Et=or.sent()).files=Et.files.filter((function(e){return"css"===e.ext||"jsx"===e.ext})),Dt=bt.default.publishers.disk(),removeDir(e),[4,Dt.publish({project:Et,outputPath:e,projectSlug:"example",createProjectFolder:!1})];case 5:return or.sent(),Bp.existsSync("./".concat(pt,"/"))||Bp.mkdirSync("./".concat(pt,"/"),{recursive:!0}),St="sub",kt="./".concat(null==pt?void 0:pt.replace("pages",St),"/"),!(It=Bp.existsSync(kt))&&tt.length>0&&Bp.mkdirSync(kt,{recursive:!0}),_t=function(e,Z){if(e.path==="./".concat(pt,"/"))return"".concat(null==pt?void 0:pt.replace("src/",""),"/").concat(e.fileName.split(".")[0]);var ie=null==pt?void 0:pt.replace("src/","");return Z&&(ie=null==ie?void 0:ie.replace("pages",Z)),"".concat(ie,"/").concat(e.name,"/index")},Ft=function(e){return St&&e.path.includes("pages")&&tt.includes(e.name)?e.path.replace("pages",St):e.path},[4,getAllFile("./".concat(pt,"/"))];case 6:return Ut=or.sent(),It?[4,getAllFile(kt)]:[3,8];case 7:return Ht=or.sent(),[3,9];case 8:Ht=[],or.label=9;case 9:return qt=Ht,[4,getAllFile(e+"/")];case 10:Vt=or.sent(),Gt={components:Ut.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return et.includes(e)})),pages:Ut.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 et.includes(e)&&!tt.includes(e)})),pageUrls:Ut.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("pages")&&!e.path.includes("components")})).filter((function(e){return et.includes(e.name)&&!tt.includes(e.name)})).map((function(e){return _t(e)})),subPages:qt.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes(St)&&!e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return et.includes(e)&&tt.includes(e)})),subPageUrls:qt.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes(St)&&!e.path.includes("components")})).filter((function(e){return et.includes(e.name)&&tt.includes(e.name)})).map((function(e){return _t(e,St)}))},Jt=function(Z){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Ve,Ze,et,ct,mt,ft,yt,gt;return __generator(this,(function(vt){switch(vt.label){case 0:return(ie=Vt[Z]).path.includes("/BasicLayout/")?[3,10]:(ae=ie.name,de=ie.ext,Ft(ie),"js"!==de||"utils.js"!==ie.fileName?[3,2]:[4,transformUtils(ie,Oe,Be,lt)]);case 1:vt.sent(),vt.label=2;case 2:return"css"!==de&&"scss"!==de||(ve=ie.path+"/"+ie.fileName,"taro"===lt?(Bp.renameSync(ie.path+"/"+ie.fileName,ie.path+"/"+ie.fileName.replace("css","scss")),ve=ie.path+"/"+ie.fileName.replace("css","scss")):"scss"===de&&(Bp.renameSync(ie.path+"/"+ie.fileName,ie.path+"/"+ie.fileName.replace("scss","css")),ve=ie.path+"/"+ie.fileName.replace("scss","css")),(be=Bp.readFileSync(ve,"utf8"))&&be.includes("calc")&&Bp.writeFileSync(ve,be.replace(/ /g," "),"utf8")),"jsx"!==de&&"tsx"!==de?[3,10]:(Ce=Me.concat(qe).find((function(e){return e.fileName.toLowerCase()===ae.toLowerCase()})),"Page"===(null==Ce?void 0:Ce.type)&&(Gt.pages.includes(ae)||tt.includes(ae)||(Gt.pages.push(ae),Gt.pageUrls.push(_t(ie))),!Gt.subPages.includes(ae)&&tt.includes(ae)&&(Gt.subPages.push(ae),Gt.subPageUrls.push(_t(ie,St)))),"Component"===(null==Ce?void 0:Ce.type)&&(Gt.components.includes(ae)||Gt.components.push(ae)),console.log("[BUILD FILE]",ie.name),[4,transformJsx(ie,lt,pt)]);case 3:for(ke=vt.sent(),Ie=ke.code,_e=ke.images,Fe=ke.svgs,Bp.writeFileSync(ie.path+"/"+ie.fileName,Ie),Bp.renameSync(ie.path+"/"+ie.fileName,ie.path+"/"+(ut?ie.fileName:ie.fileName.replace("jsx","tsx"))),ut||"Page"!==(null==Ce?void 0:Ce.type)||((Ve=["export default definePageConfig({"]).push(" navigationBarTitleText: '".concat(Ce.title,"',")),Ve.push(" navigationStyle: '".concat("custom","',")),Ve.push(" disableScroll: true,"),Ve.push("})"),Bp.writeFileSync(ie.path+"/index.config.ts",Ve.join("\n"))),Ze=[],et=[],mt=0;mt<Fe.length;mt++)if((ct=Fe[mt]).svgStr&&ct.fileName)try{Bp.existsSync(ie.path+"/icons")||Bp.mkdirSync(ie.path+"/icons"),Bp.writeFileSync(ie.path+"/icons/"+ct.fileName+".svg",ct.svgStr),Ze.push("import ".concat(ct.fileName," from './").concat(ct.fileName,".svg").concat("vite"===lt?"?raw":"","';")),et.push(" ".concat(ct.fileName,","))}catch(e){console.log("[saveSvg Error] ",e)}Ze.length>0&&Bp.writeFileSync(ie.path+"/icons/index.ts",Ze.concat(["const ICONS = {"]).concat(et).concat(["}"]).concat("export default ICONS;").join("\n")),mt=0,vt.label=4;case 4:if(!(mt<_e.length))return[3,9];if(!(ft=_e[mt]).url||!ft.fileName)return[3,8];vt.label=5;case 5:return vt.trys.push([5,7,,8]),Bp.existsSync(ie.path+"/images")||Bp.mkdirSync(ie.path+"/images"),[4,downloadFile(ft.url,ie.path+"/images/"+ft.fileName)];case 6:return vt.sent(),[3,8];case 7:return yt=vt.sent(),console.log("[downloadFile Error] ",yt),[3,8];case 8:return mt++,[3,4];case 9:gt="./".concat(tt.includes(ie.name)?null==pt?void 0:pt.replace("pages",St):pt,"/").concat(ie.name),"Component"===(null==Ce?void 0:Ce.type)&&(gt="./".concat(pt,"/components/").concat(ie.name)),Bp.existsSync(gt)&&removeDir(gt),"Page"===(null==Ce?void 0:Ce.type)&&Bp.copySync("".concat(e,"/src/pages/").concat(ie.name),gt),"Component"===(null==Ce?void 0:Ce.type)&&Bp.copySync("".concat(e,"/src/components/").concat(ie.name),gt),vt.label=10;case 10:return[2]}}))},Wt=0,or.label=11;case 11:return Wt<Vt.length?[5,Jt(Wt)]:[3,14];case 12:or.sent(),or.label=13;case 13:return Wt++,[3,11];case 14:return Va.setKey(ke,String(Date.now())),(Xt=null===(be=Be.appConfig)||void 0===be?void 0:be.indexPage)&&(Gt.pages=Gt.pages.sort((function(e,Z){return e===Xt?-1:Z===Xt?1:0})),Yt=Gt.pageUrls.find((function(e){return e.includes("/".concat(Xt,"/"))})),Gt.pageUrls=Gt.pageUrls.sort((function(e,Z){return e===Yt?-1:Z===Yt?1:0}))),Bp.writeFileSync("./".concat(pt,"/map.json"),JSON.stringify(Gt)),"vite"===lt?(Zt=Bp.readFileSync("".concat(e,"/src/global.css"),"utf-8"),tr=Zt.split("\n").slice(6).join("\n"),Bp.writeFileSync("./src/App.css",tr)):(Zt=Bp.readFileSync("".concat(e,"/src/global.sscss"),"utf-8"),tr=Zt.split("\n").slice(6).join("\n"),Bp.writeFileSync("./src/global.scss",tr),(sr=Bp.readFileSync("./src/app.tsx","utf-8")).includes("import './global.scss'")||(nr=sr.replace("import './app.scss'","import './app.scss'\nimport './global.scss'"),Bp.writeFileSync("./src/app.tsx",nr))),Bp.copyFileSync("".concat(e,"/src/utils.js"),"./src/utils/utils.js"),Bp.copyFileSync("".concat(e,"/src/constants.js"),"./src/utils/constants.js"),ir=createPartalImport(Be,pt,lt),Bp.writeFileSync("./src/utils/portal.js",ir),ut?createAppFile(Be):genAppConfig(Z.frame||Be.type,Be,Gt),writePackageJSON(Ve)&&(console.log("[INFO] package.json 文件已更新,将重新安装依赖"),"pnpm",ae.execSync("".concat("pnpm"," install --registry=https://registry.npmmirror.com"),{stdio:"inherit"}),console.log("[INFO] 本地依赖已更新,请重新启动本地项目")),Va.save(),console.log("[INFO ".concat((new Date).toLocaleString(),"] 代码增量同步完成")),[2,0];case 15:return ar=or.sent(),console.log(ft.default.red(getErrorMessage(ar)||"Unexpected error: ".concat(ar))),Va.removeKey(ke),Va.save(),"object"==typeof ar&&(null==ar?void 0:ar.stack)&&Z.verbose&&console.log(ft.default.gray(ar.stack)),[2,1];case 16:return[2]}}))}))}function loadSchema(e){var Z,ie;return __awaiter(this,void 0,void 0,(function(){var ae,de;return __generator(this,(function(ve){switch(ve.label){case 0:return ve.trys.push([0,2,,3]),[4,request("/editor/getExportDetail",{_id:e.projectId,auth:e.auth,count:!1,folders:null===(Z=null==e?void 0:e.folder)||void 0===Z?void 0:Z.split(","),fileNames:null===(ie=e.filter)||void 0===ie?void 0:ie.split(","),frame:e.frame,afterTime:e.afterTime})];case 1:return"string"==typeof(ae=ve.sent()).data.schema&&(ae.data.schema=JSON.parse(ae.data.schema)),[2,ae.data];case 2:throw de=ve.sent(),console.log("[ERROR] ",de),de;case 3:return[2]}}))}))}var getPureValue=function(e){var Z=e,ie=null==e?void 0:e.__enable;return ie&&(Object.keys(e).forEach((function(e){ie.includes(e)||delete Z[e]})),null==Z||delete Z.__enable),e},getUpToken=function(e,Z){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(ie){switch(ie.label){case 0:return ie.trys.push([0,2,,3]),[4,request("/file/getUploadToken",__assign({},Z))];case 1:return[2,ie.sent().data];case 2:return e=ie.sent(),console.log("getUpToken error: ",e),[3,3];case 3:return[2]}}))}))},uploadFile=function(e,Z){return __awaiter(void 0,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke;return __generator(this,(function(Ie){switch(Ie.label){case 0:return[4,getUpToken(0,Z)];case 1:ie=Ie.sent(),ae=ie.token,de=ie.key,(ve=new Ui).append("file",Et.createReadStream(e.path+"/"+e.fileName)),ve.append("key",de),ve.append("token",ae),Ie.label=2;case 2:return Ie.trys.push([2,4,,5]),[4,la.post("https://up-z0.qiniup.com/",ve,{headers:ve.getHeaders()})];case 3:if(be=Ie.sent(),null===(ke=be.data)||void 0===ke?void 0:ke.hash)return[2,be.data];throw console.log("File upload failed.",be.data),new Error("File upload failed.");case 4:throw Ce=Ie.sent(),console.error("Error uploading file:",Ce),new Error("Error uploading file");case 5:return[2]}}))}))},getExportName=function(e){var Z=/exports\.(\w+)/.exec(e);return Z?Z[1]:""};function ensureDirExists(e){return __awaiter(this,void 0,void 0,(function(){var Z;return __generator(this,(function(ie){switch(ie.label){case 0:return ie.trys.push([0,2,,3]),[4,nr.mkdir(e,{recursive:!0})];case 1:return ie.sent(),[3,3];case 2:if("EEXIST"===(Z=ie.sent()).code)return[2];throw Z;case 3:return[2]}}))}))}function createProjectFromTemplate(e,Z,ie){return __awaiter(this,void 0,void 0,(function(){var ae,de,ve;return __generator(this,(function(be){switch(be.label){case 0:return ae=process.cwd(),de="".concat(ae,"/").concat(ie),[4,downloadAndExtractTemplate(Z,ae,e)];case 1:return ve=be.sent(),[4,sr.default.pathExists(ve)];case 2:return be.sent(),[4,sr.default.rename(ve,de)];case 3:return be.sent(),console.log('Project "'.concat(ie,'" created successfully from template.')),[2]}}))}))}var jp=process.env.DEV,Rp=function(){function SocketStore(e){this.connectState="connecting",this.connectStateText="连接中...",this.roomId="",this.account="",this.config=e}return SocketStore.prototype.joinRoom=function(e){var Z,ie=e.roomId,ae=e.account;this.roomId=ie,this.account=ae,null===(Z=this.socket)||void 0===Z||Z.emit("join",{room:ie,account:ae})},SocketStore.prototype.leaveRoom=function(){var e;null===(e=this.socket)||void 0===e||e.emit("leave",{room:this.roomId,account:this.account})},SocketStore.prototype.sendMessage=function(e){var Z;null===(Z=this.socket)||void 0===Z||Z.emit("message",{room:this.roomId,message:e})},SocketStore.prototype.connect=function(){var e=this,Z=this.config,ie=Z.token,ae=Z.onconnect,de=Z.onlogined,ve=Z.onreconnect,be=Z.onmsg;console.log("token: ",ie);var Ce=ir.default(jp?"ws://127.0.0.1:1626":"wss://editor.appthen.com",{transports:["websocket"],query:{token:ie}});this.onConnectChange("connecting"),Ce.on("opend",(function(Z){e.onConnectChange("connect")})),Ce.on("message",(function(e){jp&&console.log("socket.io message event",e),null==be||be(e)})),Ce.on("connect",(function(){jp&&console.log("socket.io connect event"),ae()})),Ce.on("auth_success",(function(Z){var ie;jp&&console.log("socket.io auth_success event",Z),e.account=null===(ie=null==Z?void 0:Z.data)||void 0===ie?void 0:ie.id,null==de||de(e.account)})),Ce.on("disconnect",(function(){jp&&console.log("socket.io disconnect event"),e.onConnectChange("disconnect")})),Ce.on("connect_error",(function(Z){jp&&console.log("socket.io connect_error event",Z),e.onConnectChange("connect_error")})),Ce.on("connect_timeout",(function(){jp&&console.log("socket.io connect_timeout event"),e.onConnectChange("connect_timeout")})),Ce.on("reconnect",(function(){jp&&console.log("socket.io reconnect event"),null==ve||ve(),e.onConnectChange("reconnect")})),Ce.on("reconnect_attempt",(function(){jp&&console.log("socket.io reconnect_attempt event"),e.onConnectChange("reconnect_attempt")})),Ce.on("reconnecting",(function(){jp&&console.log("socket.io reconnecting event"),e.onConnectChange("reconnecting")})),Ce.on("reconnect_error",(function(){jp&&console.log("socket.io reconnect_error event"),e.onConnectChange("reconnect_error")})),Ce.on("reconnect_failed",(function(){jp&&console.log("socket.io reconnect_failed event"),e.onConnectChange("reconnect_failed")})),this.socket=Ce},SocketStore.prototype.onConnectChange=function(e){var Z=this;switch(this.connectState=e,e){case"connecting":case"reconnecting":this.connectStateText="连接中...";break;case"connect":this.connectStateText="已连接";break;case"disconnect":this.connectStateText="已断开";break;case"connect_error":this.connectStateText="连接错误";break;case"connect_timeout":this.connectStateText="连接超时";break;case"reconnect":this.connectStateText="连接成功",setTimeout((function(){Z.connectStateText=""}),1500);break;case"reconnect_error":case"reconnect_failed":this.connectStateText="请检查网络"}},SocketStore.prototype.close=function(){var e;null===(e=this.socket)||void 0===e||e.disconnect(),this.socket=void 0},SocketStore}(),Up=require("child_process").exec;var $p=["database","mongo","redis","mysql","postgresql","storage","oss","cos","s3","function","invoke","http","axios","request","cache","memory","config","env","logger","console","auth","jwt","oauth","getToken","getUser","getUserId","getUserInfo","getUserRole","getUserRoles","getUserPermissions","checkPermission","checkRole","login","logout","register","resetPassword","verifyToken","refreshToken","crypto","md5","sha256","sha512","aes","rsa","base64","hex","shared","utils","helper","date","time","uuid","validator","validator"],qp=!1,transformCloudFunctionToFastify=function(e,Z){try{console.log("开始解析代码...",Z);var ie=lr(e,{sourceType:"module",plugins:["typescript","jsx","classProperties"]});console.log("AST解析成功,开始遍历...");var ae=!1,de=!1;if(It.default(ie,{ImportDeclaration:function(e){try{"@lafjs/cloud"===e.node.source.value?(e.node.source.value="@@/utils/mongodb",e.node.specifiers&&e.node.specifiers.length>0&&e.node.specifiers.forEach((function(e){kt.isImportDefaultSpecifier(e)&&"cloud"===e.local.name&&(e.local.name="mongo")})),console.log("检测到 Laf 云开发依赖:",{source:e.node.source.value,location:e.node.loc?"第".concat(e.node.loc.start.line,"行"):"未知位置"})):"@@/types/fastify"===e.node.source.value&&e.node.specifiers.forEach((function(e){kt.isImportSpecifier(e)&&"FunctionContext"===e.local.name&&(de=!0)}))}catch(Z){console.error("处理导入声明时出错:",{error:Z.message,location:e.node.loc?"第".concat(e.node.loc.start.line,"行"):"未知位置",code:e.toString()})}},Identifier:function(e){"FunctionContext"===e.node.name&&(ae=!0)},MemberExpression:function(e){kt.isIdentifier(e.node.object,{name:"cloud"})&&kt.isIdentifier(e.node.property)&&$p.includes(e.node.property.name)&&(qp=!0)}}),ae&&!de){var ve=lr("import { FunctionContext } from '@@/types/fastify';",{sourceType:"module"});ie.program.body.unshift(ve.program.body[0])}if(qp){var be=lr("import cloud from '@@/utils/cloud';",{sourceType:"module"});ie.program.body.unshift(be.program.body[0])}console.log("AST遍历完成,开始生成代码...");var Ce=Ws(ie).code;return Ce=Ce.replaceAll("cloud.mongo.db","mongo.db").replaceAll("cloud.mongo.client","mongo.client"),console.log("代码生成完成"),Ce}catch(ie){throw console.error("AST处理过程出错:",{filePath:Z,error:ie.message,type:ie.name,position:ie.loc?"第".concat(ie.loc.line,"行第").concat(ie.loc.column,"列"):"未知位置",snippet:ie.loc?e.split("\n")[ie.loc.line-1]:"无法获取代码片段"}),ie}},zp="$__cacheTime",Hp="__all_cloud_functions";function generateRoutesFile(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve;return __generator(this,(function(be){return Z=e.outputPath,ie=e.allFilesList,ae=e.verbose,de=gt.join(process.cwd(),gt.dirname(Z),"/routes/cloud_function.ts"),ve="import { FastifyInstance, FastifyPluginAsync } from 'fastify';\nimport { FunctionContext } from '@@/types/fastify';\nimport { createContext } from '../utils/context';\n\nconst routes: FastifyPluginAsync = async (fastify: FastifyInstance) => {\n const beforeRequest = await import('../functions/__interceptor__') as any;\n // 添加全局预处理钩子\n fastify.addHook('preHandler', async (request, reply) => {\n\n // 放行 OPTIONS 请求\n if (request.method === 'OPTIONS') {\n return true;\n }\n \n // 统一处理通用参数\n const ctx: FunctionContext = await createContext(request, reply);\n // 创建一个 Promise 来处理 next 的执行\n const nextPromise = new Promise((resolve) => {\n // 创建一个 next 函数,用于继续处理请求\n const next = async (context: FunctionContext) => {\n // 将 context 存储到 request 中,这样路由处理函数可以访问到\n (request as any).functionContext = context;\n resolve(true);\n };\n\n // 调用用户定义的拦截器\n (beforeRequest.main || beforeRequest.default)(ctx, next).then((result: any) => {\n // 如果拦截器返回了结果(不是 next 的返回值),说明请求被拦截了\n if (result !== undefined) {\n resolve(result);\n }\n });\n });\n\n // 等待 Promise 完成\n const result = await nextPromise;\n\n // 如果结果是 true,表示继续处理请求\n if (result === true) {\n return;\n }\n\n // 否则发送拦截结果\n reply.send(result);\n });\n\n ".concat(ie.map((function(e){var Z=e.name.replace(/^\//,""),ie=(e.data||{}).methods;return(void 0===ie?[]:ie).map((function(ie){return"\n // ".concat(e.desc||"无描述","\n fastify.").concat(ie.toLowerCase(),"('/").concat(e.name,"', async (request, response) => {\n const handler = await import('../functions/").concat(Z,"') as any;\n try {\n const ctx = request.functionContext;\n const result = await (handler.main || handler.default)?.(ctx);\n return result;\n } catch(e) {\n console.error(e);\n return {\n code: 500,\n message: '服务器内部错误,请稍后重试'\n };\n } \n });")})).join("\n")})).join("\n"),"\n};\n\nexport default routes;"),nr.writeFileSync(de,ve,"utf-8"),ae&&console.log(ft.default.green("已生成路由文件: ".concat(de))),[2]}))}))}function sendRestartSignal(){return __awaiter(this,void 0,void 0,(function(){var e,Z,ie;return __generator(this,(function(ae){try{if(console.log(ft.default.blue("开始发送重启信号...")),e=gt.join(process.cwd(),"app.pid"),console.log(ft.default.gray("PID 文件路径: ".concat(e))),!nr.existsSync(e))throw console.error(ft.default.red("PID 文件不存在")),new Error("找不到 PID 文件,请确保服务正在运行");if(Z=nr.readFileSync(e,"utf-8").trim(),console.log(ft.default.gray("PID 文件内容: ".concat(Z))),ie=parseInt(Z,10),isNaN(ie))throw console.error(ft.default.red("无效的 PID: ".concat(Z))),new Error("PID 文件内容无效");console.log(ft.default.green("找到主进程 PID: ".concat(ie))),process.kill(ie,"SIGUSR2"),console.log(ft.default.green("已发送重启信号"))}catch(e){throw console.error(ft.default.red("发送重启信号失败:"),e),e instanceof Error&&console.error(ft.default.gray("错误堆栈:"),e.stack),e}return[2]}))}))}function buildIncremental(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Z){return[2,new Promise((function(Z,ie){console.log(ft.default.blue("开始增量构建...")),console.log(ft.default.gray("构建文件列表:"),e),process.env.INCREMENTAL_FILES=JSON.stringify(e),console.log(ft.default.gray("环境变量 INCREMENTAL_FILES:"),process.env.INCREMENTAL_FILES),console.log(ft.default.blue("执行 rollup 构建..."));var de=ae.spawn("npx",["rollup","-c"],{stdio:"inherit",env:process.env});de.on("close",(function(e){if(console.log(ft.default.gray("rollup 进程退出,退出码: ".concat(e))),0===e)console.log(ft.default.green("增量构建完成")),Z();else{var ae=new Error("构建失败,退出码: ".concat(e));console.error(ft.default.red(ae.message)),ie(ae)}})),de.on("error",(function(e){console.error(ft.default.red("构建过程出错:"),e),console.error(ft.default.gray("错误堆栈:"),e.stack),ie(e)}))}))]}))}))}function restartService(e){return __awaiter(this,void 0,void 0,(function(){var Z;return __generator(this,(function(ie){switch(ie.label){case 0:return ie.trys.push([0,3,,4]),console.log(ft.default.blue("开始重启服务流程...")),console.log(ft.default.gray("变更文件路径:"),e),console.log(ft.default.blue("开始增量构建...")),[4,buildIncremental(e)];case 1:return ie.sent(),console.log(ft.default.green("增量构建完成")),console.log(ft.default.blue("准备重启服务...")),[4,sendRestartSignal()];case 2:return ie.sent(),console.log(ft.default.green("重启信号已发送")),[3,4];case 3:throw Z=ie.sent(),console.error(ft.default.red("重启服务失败:"),Z),Z instanceof Error&&console.error(ft.default.gray("错误堆栈:"),Z.stack),Z;case 4:return[2]}}))}))}function syncBackend(e){var Z;return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze,et,tt,ct,ut,lt,pt,mt,yt,vt,bt,Et,Dt,St,kt,It,_t,Ft,Ut,qt,Ht,Vt;return __generator(this,(function(Gt){switch(Gt.label){case 0:return Gt.trys.push([0,9,,10]),console.log(ft.default.blue("开始同步后端...")),console.log(ft.default.gray("同步选项:"),__assign(__assign({},e),{auth:e.auth?"***":void 0})),ie=e.output||"src/types",ae=gt.join(process.cwd()+"/"+ie),console.log(ft.default.gray("项目路径:"),ae),de=ae+zp,ve=ae+Hp,console.log(ft.default.blue("更新认证 token...")),updateAuthToken(e.auth),be=Va.getKey(de),console.log(ft.default.gray("缓存时间:"),be),console.log("[最后同步时间] ",be?new Date(Number(be)).toLocaleString():"无"),Ce=be&&!e.clear?Number(be):0,console.log(ft.default.gray("同步时间点:"),Ce),ke=Va.getKey(ve),Ie=ke?JSON.parse(ke):[],console.log(ft.default.gray("缓存文件数量:"),Ie.length),e.change?(console.log(ft.default.blue("处理文件变更...")),console.log(ft.default.gray("变更信息:"),e.change),_e=e.change,Fe=_e.path,Oe=_e.action,_e.type,_e.content,_e.patch,Be=_e.oldPath,"delete"!==Oe?[3,3]:(console.log(ft.default.blue("处理删除操作...")),yt=Fe.replace(/^\//,""),vt=gt.join(ie,"".concat(yt,".ts")),console.log(ft.default.gray("目标文件路径:"),vt),Ie=Ie.filter((function(e){return e.name!==Fe})),console.log(ft.default.gray("更新后的缓存文件数量:"),Ie.length),nr.existsSync(vt)?(console.log(ft.default.blue("删除本地文件...")),nr.unlinkSync(vt),e.verbose&&console.log(ft.default.green("已删除文件: ".concat(vt)))):console.log(ft.default.yellow("文件不存在: ".concat(vt))),console.log(ft.default.blue("更新缓存...")),Va.setKey(ve,JSON.stringify(Ie)),Va.save(),console.log(ft.default.blue("生成路由文件...")),[4,generateRoutesFile({outputPath:ie,allFilesList:Ie,verbose:e.verbose})])):[3,4];case 1:return Gt.sent(),console.log(ft.default.blue("重启服务...")),[4,restartService([])];case 2:return Gt.sent(),[2,0];case 3:"rename"===Oe&&Be&&(console.log(ft.default.blue("处理重命名操作...")),Me=Be.replace(/^\//,""),qe=gt.join(ie,"".concat(Me,".ts")),console.log(ft.default.gray("旧文件路径:"),qe),nr.existsSync(qe)?(console.log(ft.default.blue("删除旧文件...")),nr.unlinkSync(qe),e.verbose&&console.log(ft.default.green("已删除旧文件: ".concat(qe)))):console.log(ft.default.yellow("旧文件不存在: ".concat(qe))),Ie=Ie.filter((function(e){return e.name!==Be})),console.log(ft.default.gray("更新后的缓存文件数量:"),Ie.length)),Gt.label=4;case 4:return console.log(ft.default.blue("从接口获取类型文件...")),[4,request("/type/get",{afterTime:Ce,type:"cloud_function",projectId:e.id,pageSize:500})];case 5:if(Ve=Gt.sent(),Ze=(null===(Z=Ve.data)||void 0===Z?void 0:Z.data)||[],console.log(ft.default.gray("获取到的文件数量:"),Ze.length),!Ze||0===Ze.length)return console.log(ft.default.yellow("提示:无文件更新。如需更新全部,请使用 --clear 选项")),[2,0];if(1===Ze.length?(console.log(ft.default.blue("处理单个文件更新...")),et=Ze[0],-1!==(tt=Ie.findIndex((function(e){return e.name===et.name})))?(console.log(ft.default.gray("更新现有文件...")),Ie[tt]=et):(console.log(ft.default.gray("添加新文件...")),Ie.push(et))):(console.log(ft.default.blue("处理多个文件更新...")),Ie=Ze),console.log(ft.default.blue("检查输出目录...")),nr.existsSync(ie)||(console.log(ft.default.gray("创建输出目录...")),nr.mkdirSync(ie,{recursive:!0})),ct={},e.mapping){console.log(ft.default.blue("处理路径映射..."));try{ct=JSON.parse(e.mapping),console.log(ft.default.gray("路径映射配置:"),ct)}catch(e){console.error(ft.default.red("路径映射配置解析失败:"),e)}}console.log(ft.default.blue("开始写入文件...")),ut=[];try{for(lt=__values(Ze),pt=lt.next();!pt.done;pt=lt.next()){mt=pt.value,yt=mt.name.replace(/^\//,""),vt=gt.join(ie,"".concat(yt,".ts")),console.log(ft.default.gray("处理文件:"),yt,vt);try{for(Ht=void 0,bt=__values(Object.entries(ct)),Et=bt.next();!Et.done;Et=bt.next())if(Dt=__read(Et.value,2),St=Dt[0],kt=Dt[1],yt.startsWith(St)){vt=gt.join(kt,yt.slice(St.length)),console.log(ft.default.gray("应用路径映射:"),{key:St,value:kt,targetPath:vt});break}}catch(e){Ht={error:e}}finally{try{Et&&!Et.done&&(Vt=bt.return)&&Vt.call(bt)}finally{if(Ht)throw Ht.error}}It=gt.dirname(vt),nr.existsSync(It)||(console.log(ft.default.gray("创建目标目录:"),It),nr.mkdirSync(It,{recursive:!0})),console.log(ft.default.gray("写入文件:"),vt),ut.push(vt),_t=transformCloudFunctionToFastify(mt.source,vt),nr.writeFileSync(vt,_t,"utf-8"),e.verbose&&console.log(ft.default.green("已更新文件: ".concat(vt)))}}catch(e){Ut={error:e}}finally{try{pt&&!pt.done&&(qt=lt.return)&&qt.call(lt)}finally{if(Ut)throw Ut.error}}return console.log(ft.default.blue("生成路由文件...")),[4,generateRoutesFile({outputPath:ie,allFilesList:Ie,verbose:e.verbose})];case 6:return Gt.sent(),console.log(ft.default.blue("更新缓存...")),Va.setKey(de,String(Date.now())),Va.setKey(ve,JSON.stringify(Ie)),Va.save(),e.change?(console.log(ft.default.blue("重启服务...")),[4,restartService(__spreadArray(["src/routes/cloud_function.ts"],__read(ut),!1))]):[3,8];case 7:Gt.sent(),Gt.label=8;case 8:return e.quiet||console.log(ft.default.green("成功同步 ".concat(Ze.length," 个文件"))),[2,0];case 9:return Ft=Gt.sent(),console.error(ft.default.red("同步失败:"),Ft),"object"==typeof Ft&&(null==Ft?void 0:Ft.stack)&&e.verbose&&console.log(ft.default.gray("错误堆栈:"),Ft.stack),[2,1];case 10:return[2]}}))}))}var Vp=require("child_process"),Gp=Vp.exec,Jp=Vp.spawn,Wp=!!process.env.DEV,getPidFilePath=function(){return yt.default.join(vt.default.tmpdir(),"appthen-connect.pid")},readPid=function(){try{var e=Dt.default.readFileSync(getPidFilePath(),"utf8");return parseInt(e,10)}catch(e){return null}},removePidFile=function(){try{Dt.default.unlinkSync(getPidFilePath())}catch(e){}},getLogFilePath=function(){var e=yt.default.join(vt.default.homedir(),".appthen","logs");return Dt.default.existsSync(e)||Dt.default.mkdirSync(e,{recursive:!0}),yt.default.join(e,"appthen-connect.log")},log=function(e){var Z=(new Date).toISOString(),ie="[".concat(Z,"] ").concat(e,"\n");process.env.__DAEMON_WORKER?Dt.default.appendFileSync(getLogFilePath(),ie):console.log("[".concat(Z,"] ").concat(e))};const Kp=Ht.default.Readable,Xp=Symbol("buffer"),Yp=Symbol("type");class Blob$1{constructor(){this[Yp]="";const e=arguments[0],Z=arguments[1],ie=[];let ae=0;if(e){const Z=e,de=Number(Z.length);for(let e=0;e<de;e++){const de=Z[e];let ve;ve=de instanceof Buffer?de:ArrayBuffer.isView(de)?Buffer.from(de.buffer,de.byteOffset,de.byteLength):de instanceof ArrayBuffer?Buffer.from(de):de instanceof Blob$1?de[Xp]:Buffer.from("string"==typeof de?de:String(de)),ae+=ve.length,ie.push(ve)}}this[Xp]=Buffer.concat(ie);let de=Z&&void 0!==Z.type&&String(Z.type).toLowerCase();de&&!/[^\u0020-\u007E]/.test(de)&&(this[Yp]=de)}get size(){return this[Xp].length}get type(){return this[Yp]}text(){return Promise.resolve(this[Xp].toString())}arrayBuffer(){const e=this[Xp],Z=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(Z)}stream(){const e=new Kp;return e._read=function(){},e.push(this[Xp]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,Z=arguments[0],ie=arguments[1];let ae,de;ae=void 0===Z?0:Z<0?Math.max(e+Z,0):Math.min(Z,e),de=void 0===ie?e:ie<0?Math.max(e+ie,0):Math.min(ie,e);const ve=Math.max(de-ae,0),be=this[Xp].slice(ae,ae+ve),Ce=new Blob$1([],{type:arguments[2]});return Ce[Xp]=be,Ce}}function FetchError(e,Z,ie){Error.call(this,e),this.message=e,this.type=Z,ie&&(this.code=this.errno=ie.code),Error.captureStackTrace(this,this.constructor)}let Zp;Object.defineProperties(Blob$1.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(Blob$1.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),FetchError.prototype=Object.create(Error.prototype),FetchError.prototype.constructor=FetchError,FetchError.prototype.name="FetchError";try{Zp=require("encoding").convert}catch(e){}const Qp=Symbol("Body internals"),eh=Ht.default.PassThrough;function Body(e){var Z=this,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ae=ie.size;let de=void 0===ae?0:ae;var ve=ie.timeout;let be=void 0===ve?0:ve;null==e?e=null:isURLSearchParams(e)?e=Buffer.from(e.toString()):isBlob(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Ht.default||(e=Buffer.from(String(e)))),this[Qp]={body:e,disturbed:!1,error:null},this.size=de,this.timeout=be,e instanceof Ht.default&&e.on("error",(function(e){const ie="AbortError"===e.name?e:new FetchError(`Invalid response body while trying to fetch ${Z.url}: ${e.message}`,"system",e);Z[Qp].error=ie}))}function consumeBody(){var e=this;if(this[Qp].disturbed)return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Qp].disturbed=!0,this[Qp].error)return Body.Promise.reject(this[Qp].error);let Z=this.body;if(null===Z)return Body.Promise.resolve(Buffer.alloc(0));if(isBlob(Z)&&(Z=Z.stream()),Buffer.isBuffer(Z))return Body.Promise.resolve(Z);if(!(Z instanceof Ht.default))return Body.Promise.resolve(Buffer.alloc(0));let ie=[],ae=0,de=!1;return new Body.Promise((function(ve,be){let Ce;e.timeout&&(Ce=setTimeout((function(){de=!0,be(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),Z.on("error",(function(Z){"AbortError"===Z.name?(de=!0,be(Z)):be(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${Z.message}`,"system",Z))})),Z.on("data",(function(Z){if(!de&&null!==Z){if(e.size&&ae+Z.length>e.size)return de=!0,void be(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));ae+=Z.length,ie.push(Z)}})),Z.on("end",(function(){if(!de){clearTimeout(Ce);try{ve(Buffer.concat(ie,ae))}catch(Z){be(new FetchError(`Could not create Buffer from response body for ${e.url}: ${Z.message}`,"system",Z))}}}))}))}function isURLSearchParams(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function isBlob(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function clone(e){let Z,ie,ae=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return ae instanceof Ht.default&&"function"!=typeof ae.getBoundary&&(Z=new eh,ie=new eh,ae.pipe(Z),ae.pipe(ie),e[Qp].body=Z,ae=ie),ae}function extractContentType(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":isURLSearchParams(e)?"application/x-www-form-urlencoded;charset=UTF-8":isBlob(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof Ht.default?null:"text/plain;charset=UTF-8"}function getTotalBytes(e){const Z=e.body;return null===Z?0:isBlob(Z)?Z.size:Buffer.isBuffer(Z)?Z.length:Z&&"function"==typeof Z.getLengthSync&&(Z._lengthRetrievers&&0==Z._lengthRetrievers.length||Z.hasKnownLength&&Z.hasKnownLength())?Z.getLengthSync():null}Body.prototype={get body(){return this[Qp].body},get bodyUsed(){return this[Qp].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(Z){return Object.assign(new Blob$1([],{type:e.toLowerCase()}),{[Xp]:Z})}))},json(){var e=this;return consumeBody.call(this).then((function(Z){try{return JSON.parse(Z.toString())}catch(Z){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${Z.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(Z){return function convertBody(e,Z){if("function"!=typeof Zp)throw new Error("The package `encoding` must be installed to use the textConverted() function");const ie=Z.get("content-type");let ae,de,ve="utf-8";ie&&(ae=/charset=([^;]*)/i.exec(ie));de=e.slice(0,1024).toString(),!ae&&de&&(ae=/<meta.+?charset=(['"])(.+?)\1/i.exec(de));!ae&&de&&(ae=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(de),ae||(ae=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(de),ae&&ae.pop()),ae&&(ae=/charset=(.*)/i.exec(ae.pop())));!ae&&de&&(ae=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(de));ae&&(ve=ae.pop(),"gb2312"!==ve&&"gbk"!==ve||(ve="gb18030"));return Zp(e,"UTF-8",ve).toString()}(Z,e.headers)}))}},Object.defineProperties(Body.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),Body.mixIn=function(e){for(const Z of Object.getOwnPropertyNames(Body.prototype))if(!(Z in e)){const ie=Object.getOwnPropertyDescriptor(Body.prototype,Z);Object.defineProperty(e,Z,ie)}},Body.Promise=global.Promise;const rh=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,sh=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){if(e=`${e}`,rh.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function validateValue(e){if(e=`${e}`,sh.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function find(e,Z){Z=Z.toLowerCase();for(const ie in e)if(ie.toLowerCase()===Z)return ie}const ah=Symbol("map");class Headers{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[ah]=Object.create(null),e instanceof Headers){const Z=e.raw(),ie=Object.keys(Z);for(const e of ie)for(const ie of Z[e])this.append(e,ie)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const Z=e[Symbol.iterator];if(null!=Z){if("function"!=typeof Z)throw new TypeError("Header pairs must be iterable");const ie=[];for(const Z of e){if("object"!=typeof Z||"function"!=typeof Z[Symbol.iterator])throw new TypeError("Each header pair must be iterable");ie.push(Array.from(Z))}for(const e of ie){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const Z of Object.keys(e)){const ie=e[Z];this.append(Z,ie)}}}}get(e){validateName(e=`${e}`);const Z=find(this[ah],e);return void 0===Z?null:this[ah][Z].join(", ")}forEach(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,ie=getHeaders(this),ae=0;for(;ae<ie.length;){var de=ie[ae];const ve=de[0],be=de[1];e.call(Z,be,ve,this),ie=getHeaders(this),ae++}}set(e,Z){Z=`${Z}`,validateName(e=`${e}`),validateValue(Z);const ie=find(this[ah],e);this[ah][void 0!==ie?ie:e]=[Z]}append(e,Z){Z=`${Z}`,validateName(e=`${e}`),validateValue(Z);const ie=find(this[ah],e);void 0!==ie?this[ah][ie].push(Z):this[ah][e]=[Z]}has(e){return validateName(e=`${e}`),void 0!==find(this[ah],e)}delete(e){validateName(e=`${e}`);const Z=find(this[ah],e);void 0!==Z&&delete this[ah][Z]}raw(){return this[ah]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}function getHeaders(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[ah]).sort().map("key"===Z?function(e){return e.toLowerCase()}:"value"===Z?function(Z){return e[ah][Z].join(", ")}:function(Z){return[Z.toLowerCase(),e[ah][Z].join(", ")]})}Headers.prototype.entries=Headers.prototype[Symbol.iterator],Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Headers.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const gh=Symbol("internal");function createHeadersIterator(e,Z){const ie=Object.create(xh);return ie[gh]={target:e,kind:Z,index:0},ie}const xh=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==xh)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[gh];const Z=e.target,ie=e.kind,ae=e.index,de=getHeaders(Z,ie);return ae>=de.length?{value:void 0,done:!0}:(this[gh].index=ae+1,{value:de[ae],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function exportNodeCompatibleHeaders(e){const Z=Object.assign({__proto__:null},e[ah]),ie=find(e[ah],"Host");return void 0!==ie&&(Z[ie]=Z[ie][0]),Z}Object.defineProperty(xh,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const vh=Symbol("Response internals"),Ah=Ft.default.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Body.call(this,e,Z);const ie=Z.status||200,ae=new Headers(Z.headers);if(null!=e&&!ae.has("Content-Type")){const Z=extractContentType(e);Z&&ae.append("Content-Type",Z)}this[vh]={url:Z.url,status:ie,statusText:Z.statusText||Ah[ie],headers:ae,counter:Z.counter}}get url(){return this[vh].url||""}get status(){return this[vh].status}get ok(){return this[vh].status>=200&&this[vh].status<300}get redirected(){return this[vh].counter>0}get statusText(){return this[vh].statusText}get headers(){return this[vh].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype),Object.defineProperties(Response.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const wh=Symbol("Request internals"),Dh=qt.default.URL||ar.default.URL,Ph=qt.default.parse,kh=qt.default.format;function parseURL(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Dh(e).toString()),Ph(e)}const Nh="destroy"in Ht.default.Readable.prototype;function isRequest(e){return"object"==typeof e&&"object"==typeof e[wh]}class Request{constructor(e){let Z,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};isRequest(e)?Z=parseURL(e.url):(Z=e&&e.href?parseURL(e.href):parseURL(`${e}`),e={});let ae=ie.method||e.method||"GET";if(ae=ae.toUpperCase(),(null!=ie.body||isRequest(e)&&null!==e.body)&&("GET"===ae||"HEAD"===ae))throw new TypeError("Request with GET/HEAD method cannot have body");let de=null!=ie.body?ie.body:isRequest(e)&&null!==e.body?clone(e):null;Body.call(this,de,{timeout:ie.timeout||e.timeout||0,size:ie.size||e.size||0});const ve=new Headers(ie.headers||e.headers||{});if(null!=de&&!ve.has("Content-Type")){const e=extractContentType(de);e&&ve.append("Content-Type",e)}let be=isRequest(e)?e.signal:null;if("signal"in ie&&(be=ie.signal),null!=be&&!function isAbortSignal(e){const Z=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!Z||"AbortSignal"!==Z.constructor.name)}(be))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[wh]={method:ae,redirect:ie.redirect||e.redirect||"follow",headers:ve,parsedURL:Z,signal:be},this.follow=void 0!==ie.follow?ie.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==ie.compress?ie.compress:void 0===e.compress||e.compress,this.counter=ie.counter||e.counter||0,this.agent=ie.agent||e.agent}get method(){return this[wh].method}get url(){return kh(this[wh].parsedURL)}get headers(){return this[wh].headers}get redirect(){return this[wh].redirect}get signal(){return this[wh].signal}clone(){return new Request(this)}}function AbortError(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Body.mixIn(Request.prototype),Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Request.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),AbortError.prototype=Object.create(Error.prototype),AbortError.prototype.constructor=AbortError,AbortError.prototype.name="AbortError";const _h=qt.default.URL||ar.default.URL,Fh=Ht.default.PassThrough,Oh=function isDomainOrSubdomain(e,Z){const ie=new _h(Z).hostname,ae=new _h(e).hostname;return ie===ae||"."===ie[ie.length-ae.length-1]&&ie.endsWith(ae)},Lh=function isSameProtocol(e,Z){return new _h(Z).protocol===new _h(e).protocol};function fetch(e,Z){if(!fetch.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Body.Promise=fetch.Promise,new fetch.Promise((function(ie,ae){const de=new Request(e,Z),ve=function getNodeRequestOptions(e){const Z=e[wh].parsedURL,ie=new Headers(e[wh].headers);if(ie.has("Accept")||ie.set("Accept","*/*"),!Z.protocol||!Z.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(Z.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof Ht.default.Readable&&!Nh)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let ae=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(ae="0"),null!=e.body){const Z=getTotalBytes(e);"number"==typeof Z&&(ae=String(Z))}ae&&ie.set("Content-Length",ae),ie.has("User-Agent")||ie.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!ie.has("Accept-Encoding")&&ie.set("Accept-Encoding","gzip,deflate");let de=e.agent;return"function"==typeof de&&(de=de(Z)),Object.assign({},Z,{method:e.method,headers:exportNodeCompatibleHeaders(ie),agent:de})}(de),be=("https:"===ve.protocol?Ut.default:Ft.default).request,Ce=de.signal;let ke=null;const Ie=function abort(){let e=new AbortError("The user aborted a request.");ae(e),de.body&&de.body instanceof Ht.default.Readable&&destroyStream(de.body,e),ke&&ke.body&&ke.body.emit("error",e)};if(Ce&&Ce.aborted)return void Ie();const _e=function abortAndFinalize(){Ie(),finalize()},Fe=be(ve);let Oe;function finalize(){Fe.abort(),Ce&&Ce.removeEventListener("abort",_e),clearTimeout(Oe)}Ce&&Ce.addEventListener("abort",_e),de.timeout&&Fe.once("socket",(function(e){Oe=setTimeout((function(){ae(new FetchError(`network timeout at: ${de.url}`,"request-timeout")),finalize()}),de.timeout)})),Fe.on("error",(function(e){ae(new FetchError(`request to ${de.url} failed, reason: ${e.message}`,"system",e)),ke&&ke.body&&destroyStream(ke.body,e),finalize()})),function fixResponseChunkedTransferBadEnding(e,Z){let ie;e.on("socket",(function(e){ie=e})),e.on("response",(function(e){const ae=e.headers;"chunked"!==ae["transfer-encoding"]||ae["content-length"]||e.once("close",(function(e){if(ie&&ie.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",Z(e)}}))}))}(Fe,(function(e){Ce&&Ce.aborted||ke&&ke.body&&destroyStream(ke.body,e)})),parseInt(process.version.substring(1))<14&&Fe.on("socket",(function(e){e.addListener("close",(function(Z){const ie=e.listenerCount("data")>0;if(ke&&ie&&!Z&&(!Ce||!Ce.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",ke.body.emit("error",e)}}))})),Fe.on("response",(function(e){clearTimeout(Oe);const Z=function createHeadersLenient(e){const Z=new Headers;for(const ie of Object.keys(e))if(!rh.test(ie))if(Array.isArray(e[ie]))for(const ae of e[ie])sh.test(ae)||(void 0===Z[ah][ie]?Z[ah][ie]=[ae]:Z[ah][ie].push(ae));else sh.test(e[ie])||(Z[ah][ie]=[e[ie]]);return Z}(e.headers);if(fetch.isRedirect(e.statusCode)){const ve=Z.get("Location");let be=null;try{be=null===ve?null:new _h(ve,de.url).toString()}catch(e){if("manual"!==de.redirect)return ae(new FetchError(`uri requested responds with an invalid redirect URL: ${ve}`,"invalid-redirect")),void finalize()}switch(de.redirect){case"error":return ae(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${de.url}`,"no-redirect")),void finalize();case"manual":if(null!==be)try{Z.set("Location",be)}catch(e){ae(e)}break;case"follow":if(null===be)break;if(de.counter>=de.follow)return ae(new FetchError(`maximum redirect reached at: ${de.url}`,"max-redirect")),void finalize();const ve={headers:new Headers(de.headers),follow:de.follow,counter:de.counter+1,agent:de.agent,compress:de.compress,method:de.method,body:de.body,signal:de.signal,timeout:de.timeout,size:de.size};if(!Oh(de.url,be)||!Lh(de.url,be))for(const e of["authorization","www-authenticate","cookie","cookie2"])ve.headers.delete(e);return 303!==e.statusCode&&de.body&&null===getTotalBytes(de)?(ae(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void finalize()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==de.method)||(ve.method="GET",ve.body=void 0,ve.headers.delete("content-length")),ie(fetch(new Request(be,ve))),void finalize())}}e.once("end",(function(){Ce&&Ce.removeEventListener("abort",_e)}));let ve=e.pipe(new Fh);const be={url:de.url,status:e.statusCode,statusText:e.statusMessage,headers:Z,size:de.size,timeout:de.timeout,counter:de.counter},Ie=Z.get("Content-Encoding");if(!de.compress||"HEAD"===de.method||null===Ie||204===e.statusCode||304===e.statusCode)return ke=new Response(ve,be),void ie(ke);const Fe={flush:Wt.default.Z_SYNC_FLUSH,finishFlush:Wt.default.Z_SYNC_FLUSH};if("gzip"==Ie||"x-gzip"==Ie)return ve=ve.pipe(Wt.default.createGunzip(Fe)),ke=new Response(ve,be),void ie(ke);if("deflate"==Ie||"x-deflate"==Ie){const Z=e.pipe(new Fh);return Z.once("data",(function(e){ve=8==(15&e[0])?ve.pipe(Wt.default.createInflate()):ve.pipe(Wt.default.createInflateRaw()),ke=new Response(ve,be),ie(ke)})),void Z.on("end",(function(){ke||(ke=new Response(ve,be),ie(ke))}))}if("br"==Ie&&"function"==typeof Wt.default.createBrotliDecompress)return ve=ve.pipe(Wt.default.createBrotliDecompress()),ke=new Response(ve,be),void ie(ke);ke=new Response(ve,be),ie(ke)})),function writeToStream(e,Z){const ie=Z.body;null===ie?e.end():isBlob(ie)?ie.stream().pipe(e):Buffer.isBuffer(ie)?(e.write(ie),e.end()):ie.pipe(e)}(Fe,de)}))}function destroyStream(e,Z){e.destroy?e.destroy(Z):(e.emit("error",Z),e.end())}fetch.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},fetch.Promise=global.Promise;var Bh={target:"preview",force:!1,buildCache:!0,outputDir:"dist"};function generateVercelConfig(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie;return __generator(this,(function(ae){switch(ae.label){case 0:return Z={version:2,builds:[{src:"api/index.ts",use:"@vercel/node"}],routes:[{src:"/(.*)",dest:"api/index.ts"}],env:e.env||{}},ie=gt.join(process.cwd(),e.outputDir||"dist","vercel.json"),[4,nr.writeJSON(ie,Z,{spaces:2})];case 1:return ae.sent(),[2]}}))}))}var Mh="https://api.vercel.com";function prepareBuildOutput(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de;return __generator(this,(function(ve){switch(ve.label){case 0:return Z=gt.join(process.cwd(),e.outputDir||"dist"),ie=[],[4,nr.ensureDir(Z)];case 1:return ve.sent(),[4,generateVercelConfig(e)];case 2:return ve.sent(),ae=gt.join(Z,"api"),[4,nr.ensureDir(ae)];case 3:return ve.sent(),de=gt.join(process.cwd(),"src/index.ts"),[4,nr.pathExists(de)];case 4:return ve.sent()?[4,nr.copy(de,gt.join(ae,"index.ts"))]:[3,6];case 5:ve.sent(),ie.push("已复制入口文件"),ve.label=6;case 6:return[2,{outputDir:Z,buildLogs:ie}]}}))}))}function createDeployment(e,Z){return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe;return __generator(this,(function(Be){switch(Be.label){case 0:return ie={Authorization:"Bearer ".concat(e.token),"Content-Type":"application/json"},de=fetch,ve=["".concat(Mh,"/v13/deployments")],Fe={method:"POST",headers:ie},Ce=(be=JSON).stringify,Oe={name:e.name,project:e.projectId,target:e.target||"preview"},[4,getDeploymentFiles(Z.outputDir)];case 1:return[4,de.apply(void 0,ve.concat([(Fe.body=Ce.apply(be,[(Oe.files=Be.sent(),Oe)]),Fe)]))];case 2:return(ae=Be.sent()).ok?[3,4]:(ke=Error.bind,Ie="部署失败: ".concat,[4,ae.text()]);case 3:throw new(ke.apply(Error,[void 0,Ie.apply("部署失败: ",[Be.sent()])]));case 4:return[4,ae.json()];case 5:return[2,{deploymentId:(_e=Be.sent()).id,url:_e.url,status:_e.readyState,createdAt:_e.createdAt}]}}))}))}function getDeploymentFiles(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe;return __generator(this,(function(Be){switch(Be.label){case 0:return Z={},[4,nr.readdir(e,{withFileTypes:!0})];case 1:ie=Be.sent(),Be.label=2;case 2:Be.trys.push([2,9,10,11]),ae=__values(ie),de=ae.next(),Be.label=3;case 3:return de.done?[3,8]:(ve=de.value,be=gt.join(e,ve.name),Ce=gt.relative(e,be),ve.isFile()?[4,nr.readFile(be)]:[3,5]);case 4:return ke=Be.sent(),Z[Ce]={file:ke.toString("base64")},[3,7];case 5:return ve.isDirectory()?[4,getDeploymentFiles(be)]:[3,7];case 6:Ie=Be.sent(),Object.assign(Z,Ie),Be.label=7;case 7:return de=ae.next(),[3,3];case 8:return[3,11];case 9:return _e=Be.sent(),Fe={error:_e},[3,11];case 10:try{de&&!de.done&&(Oe=ae.return)&&Oe.call(ae)}finally{if(Fe)throw Fe.error}return[7];case 11:return[2,Z]}}))}))}function checkDeploymentStatus(e,Z){var ie;return __awaiter(this,void 0,void 0,(function(){var ae,de,ve,be;return __generator(this,(function(Ce){switch(Ce.label){case 0:return[4,fetch("".concat(Mh,"/v13/deployments/").concat(Z),{headers:{Authorization:"Bearer ".concat(e.token)}})];case 1:return(ae=Ce.sent()).ok?[3,3]:(de=Error.bind,ve="获取部署状态失败: ".concat,[4,ae.text()]);case 2:throw new(de.apply(Error,[void 0,ve.apply("获取部署状态失败: ",[Ce.sent()])]));case 3:return[4,ae.json()];case 4:return[2,{deploymentId:(be=Ce.sent()).id,url:be.url,status:be.readyState,createdAt:be.createdAt,error:null===(ie=be.error)||void 0===ie?void 0:ie.message}]}}))}))}function deploy(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae;return __generator(this,(function(de){switch(de.label){case 0:return[4,prepareBuildOutput(e)];case 1:return Z=de.sent(),console.log("构建输出准备完成:",Z.buildLogs),[4,createDeployment(e,Z)];case 2:ie=de.sent(),console.log("部署已创建:",ie.url),ae=ie,de.label=3;case 3:return"INITIALIZING"!==ae.status&&"BUILDING"!==ae.status?[3,6]:[4,new Promise((function(e){return setTimeout(e,5e3)}))];case 4:return de.sent(),[4,checkDeploymentStatus(e,ie.deploymentId)];case 5:return ae=de.sent(),console.log("部署状态:",ae.status),[3,3];case 6:if("ERROR"===ae.status)throw new Error("部署失败: ".concat(ae.error));return[2,ae]}}))}))}exports.create=function create(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce;return __generator(this,(function(ke){switch(ke.label){case 0:ie=(Z=e||{}).template,ae=void 0===ie?"vite":ie,de=Z.folder,ve=void 0===de?"appthen-assets-starter":de,ke.label=1;case 1:return ke.trys.push([1,6,,7]),[4,getTemplate(ae)];case 2:return(be=ke.sent())?[4,createProjectFromTemplate(be,be.url,ve)]:[3,4];case 3:return ke.sent(),[3,5];case 4:console.log("[ERROR] ","template not found"),ke.label=5;case 5:return[3,7];case 6:throw Ce=ke.sent(),console.log("[e] ",Ce),Ce;case 7:return[2,1]}}))}))},exports.deployToVercel=function deployToVercel(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae;return __generator(this,(function(de){return Z=function loadConfigFromEnv(){return{projectId:process.env.VERCEL_PROJECT_ID,token:process.env.VERCEL_TOKEN,name:process.env.VERCEL_PROJECT_NAME,target:process.env.VERCEL_ENV||"preview"}}(),ie=__assign(__assign({},Z),e),ae=function validateConfig(e){if(!e.projectId)throw new Error("Vercel 项目 ID 不能为空");if(!e.token)throw new Error("Vercel API Token 不能为空");return __assign(__assign({},Bh),e)}(ie),[2,deploy(ae)]}))}))},exports.fuck=function(){},exports.getPureValue=getPureValue,exports.initSolution=function initSolution(e,Z){return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me;return __generator(this,(function(qe){switch(qe.label){case 0:return qe.trys.push([0,11,,12]),ie=process.cwd(),ae=e[0]||"hello",de=gt.resolve(ie,ae),"."===ae&&(ae=gt.basename(ie),de=ie),ve=function(e){return e.replace(/hello-world/g,Pl(ae)).replace(/HelloWorld/g,_l(ae)).replace(/Hello World/g,wl(ae))},[4,ensureDirExists(de)];case 1:qe.sent(),be=[{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"}],qe.label=2;case 2:qe.trys.push([2,8,9,10]),Ce=__values(be),ke=Ce.next(),qe.label=3;case 3:return ke.done?[3,7]:(Ie=ke.value,Z.verbose&&console.log("%s",ft.default.gray("creating file ".concat(Ie.file))),_e=gt.join(de,Ie.file),[4,ensureDirExists(gt.dirname(_e))]);case 4:return qe.sent(),[4,nr.writeFile(_e,ve(Ie.content),{encoding:"utf-8"})];case 5:qe.sent(),qe.label=6;case 6:return ke=Ce.next(),[3,3];case 7:return[3,10];case 8:return Fe=qe.sent(),Be={error:Fe},[3,10];case 9:try{ke&&!ke.done&&(Me=Ce.return)&&Me.call(Ce)}finally{if(Be)throw Be.error}return[7];case 10:return Z.quiet||console.log("%s",ft.default.green("solution ".concat(ae," created successfully"))),[2,0];case 11:return Oe=qe.sent(),console.log(ft.default.red(getErrorMessage(Oe)||"Unexpected error: ".concat(Oe))),"object"==typeof Oe&&(null==Oe?void 0:Oe.stack)&&Z.verbose&&console.log(ft.default.gray(Oe.stack)),[2,1];case 12:return[2]}}))}))},exports.releaseMaterial=function releaseMaterial(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze,et,tt,ct,ut,lt;return __generator(this,(function(pt){switch(pt.label){case 0:return(Z=e.auth)&&updateAuthToken(Z),ie=process.cwd(),ae="build/lowcode",de=yt.default.resolve(process.cwd(),ae),(ve=Et.existsSync(de))||(de=yt.default.resolve(process.cwd(),"dist")),[4,function(e){return Promise.resolve().then((function(){return _interopNamespace(require(e))}))}(yt.default.resolve(process.cwd(),"package.json"))];case 1:return be=pt.sent(),Ce=be.name,ke=be.version,ve&&(console.log("lceViewJS: ",yt.default.resolve(process.cwd(),ae,"view.js")),Fe=Et.readFileSync(yt.default.resolve(process.cwd(),ae,"view.js"),"utf-8"),Ie=getExportName(Fe),Oe=Et.readFileSync(yt.default.resolve(process.cwd(),ae,"meta.js"),"utf-8"),_e=getExportName(Oe)),console.log("Uploading material..."),[4,getAllFile(de+"/")];case 2:Be=pt.sent(),Me=[],qe=0,pt.label=3;case 3:return qe<Be.length?(Ve=Be[qe],(Ze=Et.readFileSync(Ve.path+"/"+Ve.fileName,"utf-8"))&&0!==Ze.trim().length?[3,4]:(console.log("File is empty Do not Upload: ",Ve.path+"/"+Ve.fileName),[3,6])):[3,7];case 4:return et="".concat(Ce,"/").concat(ke,"/")+(Ve.path.split("".concat(ie,"/").concat(ae,"/"))[1]||"")+Ve.fileName,[4,uploadFile(Ve,{t:1,route:"material",path:et})];case 5:tt=pt.sent(),Me.push(tt),pt.label=6;case 6:return qe++,[3,3];case 7:return console.log("Npm Name: ",Ce),console.log("Npm Version: ",ke),ve?(ct=Me.find((function(e){return e.key.includes("".concat(ke,"/view.js"))})),ut=Me.find((function(e){return e.key.includes("".concat(ke,"/view.css"))})),lt=Me.find((function(e){return e.key.includes("".concat(ke,"/meta.js"))})),console.log("Npm Export Name: ",Ie),console.log("Npm Js Url: ",null==ct?void 0:ct.url),console.log("Npm Css Url: ",null==ut?void 0:ut.url),console.log("Meta Export Name: ",_e),console.log("Meta Url: ",null==lt?void 0:lt.url)):Me.length>0&&Me.forEach((function(e){console.log("File Name: ",e.key),console.log("File Url: ",e.url)})),[2,1]}}))}))},exports.run=run,exports.startConnecting=function startConnecting(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me;return __generator(this,(function(qe){switch(qe.label){case 0:if(Z=e.id,ie=e.auth,ae=e.daemon,e.debug,log("[进程 ".concat(process.pid,"] 开始启动连接服务,模式: ").concat(ae?"守护进程":"普通进程")),ae&&!process.env.__DAEMON_WORKER){if(de=readPid())try{return process.kill(de,0),log("[进程 ".concat(process.pid,"] 守护进程已经在运行 (PID: ").concat(de,")")),console.log("查看日志: tail -f ".concat(getLogFilePath())),[2,0]}catch(e){removePidFile()}return ve=Dt.default.openSync(getLogFilePath(),"a"),be=process.argv.slice(2).filter((function(e){return"--daemon"!==e})),(Ce=Jp(process.argv[0],__spreadArray(__spreadArray([],__read(process.argv.slice(1,2)),!1),__read(be),!1),{detached:!0,stdio:["ignore",ve,ve],env:__assign(__assign({},process.env),{__DAEMON_WORKER:"true",FORCE_COLOR:"true"})})).unref(),Dt.default.closeSync(ve),log("[进程 ".concat(process.pid,"] 已创建守护进程 (PID: ").concat(Ce.pid,")")),Ve=Ce.pid,Dt.default.writeFileSync(getPidFilePath(),Ve.toString()),console.log("守护进程已启动 (PID: ".concat(Ce.pid,")")),console.log("查看日志: tail -f ".concat(getLogFilePath())),[2,0]}qe.label=1;case 1:return qe.trys.push([1,3,,4]),log("[进程 ".concat(process.pid,"] 正在初始化连接...")),ie&&updateAuthToken(ie),ke="PROJECT_ROOM_"+Z,Ie=__read((Ma||"").split("##"),2),_e=Ie[0],Fe=Ie[1],Oe=function(){log("[进程 ".concat(process.pid,"] 正在清理...")),removePidFile(),process.exit(0)},process.on("SIGINT",Oe),process.on("SIGTERM",Oe),process.on("uncaughtException",(function(e){log("[进程 ".concat(process.pid,"] 未捕获的异常: ").concat(e)),Oe()})),Be=new Promise((function(e,Z){var ie=new Rp({token:_e,client:Fe,onlogined:function(e){log("[进程 ".concat(process.pid,"] 用户 ").concat(e," 已登录")),null==ie||ie.joinRoom({roomId:ke,account:e})},onconnect:function(){log("[进程 ".concat(process.pid,"] Editor 已连接!")),e(!0)},onclose:function(){log("[进程 ".concat(process.pid,"] Editor 已断开连接!")),setTimeout((function(){log("[进程 ".concat(process.pid,"] 尝试重新连接...")),null==ie||ie.connect()}),5e3)},onmsg:function(e){Wp&&log("[进程 ".concat(process.pid,"] 收到消息: ").concat(JSON.stringify(e)));var Z=e||{};Z.action;var ae=Z.message;if(ae){var de=ae.userId,ve=ae.current,be=ae.cwd,Ce=ae.type,ke=ae.change;if("file_change"===Ce&&ke){var Ie=ke.path;Ie.endsWith(".node.ts")&&(log("[进程 ".concat(process.pid,"] 检测到云函数文件变更: ").concat(Ie)),syncBackend({id:ve,auth:Ma,framework:"fastify",output:"./src/functions",change:ke}).catch((function(e){log("[进程 ".concat(process.pid,"] 同步失败: ").concat(e))})))}String(de)===(null==ie?void 0:ie.account)&&be&&(log("[进程 ".concat(process.pid,"] 执行命令行: ").concat(be)),Gp(be,{shell:"/bin/bash"},(function(e,Z,ae){e&&log("[进程 ".concat(process.pid,"] 执行出错: ").concat(e)),log("[进程 ".concat(process.pid,"] 执行结果: ").concat(Z)),ae&&log("[进程 ".concat(process.pid,"] 错误输出: ").concat(ae)),null==ie||ie.sendMessage({action:"cwd",message:{stdout:Z,stderr:ae,error:e}})})))}}});ie.connect()})),setInterval((function(){Wp&&log("[进程 ".concat(process.pid,"] 心跳检测..."))}),3e4),[4,Be];case 2:return qe.sent(),[2,new Promise((function(){}))];case 3:return Me=qe.sent(),log("[进程 ".concat(process.pid,"] 启动失败: ").concat(Me)),removePidFile(),[2,1];case 4:return[2]}var Ve}))}))},exports.startWatching=function startWatching(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke;return __generator(this,(function(Ie){return Z=e.id,ie=e.auth,ae=e.account,ie&&updateAuthToken(e.auth),de="PROJECT_ROOM_"+Z,ve=__read((Ma||"").split("##"),2),be=ve[0],Ce=ve[1],ke=new Rp({token:be,client:Ce,onconnect:function(){console.log("[Service] Editor connected!"),ke.joinRoom({roomId:de,account:ae})},onmsg:function(Z){var ie=Z||{};ie.action;var de=ie.message;if(de){de.updatedFileState;var ve=de.userId,be=de.current,Ce=de.cwd;String(ve)===ae&&(be&&run(0,__assign(__assign({},e),{clear:!!be.clear})),Ce&&Up(Ce,{shell:"/bin/bash"},(function(e,Z,ie){e&&console.error("执行出错: ".concat(e)),console.log("exec: ",e,Z,ie),ke.sendMessage({action:"cwd",message:{stdout:Z,stderr:ie,error:e}})})))}}}),ke.connect(),[2,1]}))}))},exports.stopConnecting=function stopConnecting(){console.log("[进程 ".concat(process.pid,"] 正在检查运行中的服务..."));var e=readPid();if(e){console.log("[进程 ".concat(process.pid,"] 找到运行中的服务进程 ").concat(e,",正在停止..."));try{return process.kill(e,0),process.kill(e),removePidFile(),!0}catch(Z){"ESRCH"===Z.code?console.log("[进程 ".concat(process.pid,"] 进程 ").concat(e," 已经不存在")):console.log("[进程 ".concat(process.pid,"] 停止进程失败:"),Z),removePidFile()}}return console.log("[进程 ".concat(process.pid,"] 没有找到运行中的服务")),!1},exports.syncBackend=syncBackend;
|
|
74
|
+
`,cliCategory:be},tabWidth:{type:"int",category:ke,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:ke,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:ke,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."}]}};Z.exports={CATEGORY_CONFIG:ae,CATEGORY_EDITOR:de,CATEGORY_FORMAT:ve,CATEGORY_OTHER:be,CATEGORY_OUTPUT:Ce,CATEGORY_GLOBAL:ke,CATEGORY_SPECIAL:Ie,options:Fe}}}),It=I({"src/main/support.js"(e,Z){_e();var ae={compare:gt(),lt:vt(),gte:bt()},de=Et(),ve=Dt().version,be=kt().options;function i(){let{plugins:e=[],showUnreleased:Z=!1,showDeprecated:Ce=!1,showInternal:ke=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ie=ve.split("-",1)[0],_e=e.flatMap((e=>e.languages||[])).filter(m),Fe=de(Object.assign({},...e.map((e=>{let{options:Z}=e;return Z})),be),"name").filter((e=>m(e)&&T(e))).sort(((e,Z)=>e.name===Z.name?0:e.name<Z.name?-1:1)).map(w).map((Z=>{Z=Object.assign({},Z),Array.isArray(Z.default)&&(Z.default=1===Z.default.length?Z.default[0].value:Z.default.filter(m).sort(((e,Z)=>ae.compare(Z.since,e.since)))[0].value),Array.isArray(Z.choices)&&(Z.choices=Z.choices.filter((e=>m(e)&&T(e))),"parser"===Z.name&&f(Z,_e,e));let ie=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[Z.name])).map((e=>[e.name,e.defaultOptions[Z.name]])));return Object.assign(Object.assign({},Z),{},{pluginDefaults:ie})}));return{languages:_e,options:Fe};function m(e){return Z||!("since"in e)||e.since&&ae.gte(Ie,e.since)}function T(e){return Ce||!("deprecated"in e)||e.deprecated&&ae.lt(Ie,e.deprecated)}function w(e){return ke?e:JD(e,ie)}}function f(e,Z,ie){let ae=new Set(e.choices.map((e=>e.value)));for(let de of Z)if(de.parsers)for(let Z of de.parsers)if(!ae.has(Z)){ae.add(Z);let ve=ie.find((e=>e.parsers&&e.parsers[Z])),be=de.name;ve&&ve.name&&(be+=` (plugin: ${ve.name})`),e.choices.push({value:Z,description:be})}}Z.exports={getSupportInfo:i}}}),_t=I({"src/utils/is-non-empty-array.js"(e,Z){function u(e){return Array.isArray(e)&&e.length>0}_e(),Z.exports=u}});function Sl(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=["[\\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(Z,e?void 0:"g")}var Ft=Ee({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){_e()}});function Tl(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Sl(),"")}var Ut=Ee({"node_modules/strip-ansi/index.js"(){_e(),Ft()}});function bl(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 qt=Ee({"node_modules/is-fullwidth-code-point/index.js"(){_e()}}),Ht=I({"node_modules/emoji-regex/index.js"(e,Z){_e(),Z.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}}}),Vt={};function Ol(e){if("string"!=typeof e||0===e.length||0===(e=Tl(e)).length)return 0;e=e.replace((0,Gt.default)()," ");let Z=0;for(let ie=0;ie<e.length;ie++){let ae=e.codePointAt(ie);ae<=31||ae>=127&&ae<=159||ae>=768&&ae<=879||(ae>65535&&ie++,Z+=bl(ae)?2:1)}return Z}ps(Vt,{default:()=>Ol});var Gt,Jt=Ee({"node_modules/string-width/index.js"(){_e(),Ut(),qt(),Gt=nl(Ht())}}),Wt=I({"src/utils/get-string-width.js"(e,Z){_e();var ie=(Jt(),ds(Vt)).default,ae=/[^\x20-\x7F]/;function D(e){return e?ae.test(e)?ie(e):e.length:0}Z.exports=D}}),Xt=I({"src/utils/text/skip.js"(e,Z){function u(e){return(Z,ie,ae)=>{let de=ae&&ae.backwards;if(!1===ie)return!1;let{length:ve}=Z,be=ie;for(;be>=0&&be<ve;){let ie=Z.charAt(be);if(e instanceof RegExp){if(!e.test(ie))return be}else if(!e.includes(ie))return be;de?be--:be++}return(-1===be||be===ve)&&be}}_e();var ie=u(/\s/),ae=u(" \t"),de=u(",; \t"),ve=u(/[^\n\r]/);Z.exports={skipWhitespace:ie,skipSpaces:ae,skipToLineEnd:de,skipEverythingButNewLine:ve}}}),Yt=I({"src/utils/text/skip-inline-comment.js"(e,Z){function u(e,Z){if(!1===Z)return!1;if("/"===e.charAt(Z)&&"*"===e.charAt(Z+1))for(let ie=Z+2;ie<e.length;++ie)if("*"===e.charAt(ie)&&"/"===e.charAt(ie+1))return ie+2;return Z}_e(),Z.exports=u}}),Zt=I({"src/utils/text/skip-trailing-comment.js"(e,Z){_e();var{skipEverythingButNewLine:ie}=Xt();function n(e,Z){return!1!==Z&&("/"===e.charAt(Z)&&"/"===e.charAt(Z+1)?ie(e,Z):Z)}Z.exports=n}}),tr=I({"src/utils/text/skip-newline.js"(e,Z){function u(e,Z,ie){let ae=ie&&ie.backwards;if(!1===Z)return!1;let de=e.charAt(Z);if(ae){if("\r"===e.charAt(Z-1)&&"\n"===de)return Z-2;if("\n"===de||"\r"===de||"\u2028"===de||"\u2029"===de)return Z-1}else{if("\r"===de&&"\n"===e.charAt(Z+1))return Z+2;if("\n"===de||"\r"===de||"\u2028"===de||"\u2029"===de)return Z+1}return Z}_e(),Z.exports=u}}),sr=I({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,Z){_e();var ie=Yt(),ae=tr(),de=Zt(),{skipSpaces:ve}=Xt();function i(e,Z){let be=null,Ce=Z;for(;Ce!==be;)be=Ce,Ce=ve(e,Ce),Ce=ie(e,Ce),Ce=de(e,Ce),Ce=ae(e,Ce);return Ce}Z.exports=i}}),nr=I({"src/common/util.js"(e,Z){_e();var{default:ie}=(ct(),ds(tt)),ae=Ze(),{getSupportInfo:de}=It(),ve=_t(),be=Wt(),{skipWhitespace:Ce,skipSpaces:ke,skipToLineEnd:Ie,skipEverythingButNewLine:Fe}=Xt(),Oe=Yt(),Be=Zt(),Me=tr(),qe=sr(),m=e=>e[e.length-2];function T(e){return(Z,ie,ae)=>{let de=ae&&ae.backwards;if(!1===ie)return!1;let{length:ve}=Z,be=ie;for(;be>=0&&be<ve;){let ie=Z.charAt(be);if(e instanceof RegExp){if(!e.test(ie))return be}else if(!e.includes(ie))return be;de?be--:be++}return(-1===be||be===ve)&&be}}function w(e,Z){let ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ae=ke(e,ie.backwards?Z-1:Z,ie);return ae!==Me(e,ae,ie)}function g(e,Z,ie){for(let ae=Z;ae<ie;++ae)if("\n"===e.charAt(ae))return!0;return!1}function N(e,Z,ie){let ae=ie(Z)-1;return ae=ke(e,ae,{backwards:!0}),ae=Me(e,ae,{backwards:!0}),ae=ke(e,ae,{backwards:!0}),ae!==Me(e,ae,{backwards:!0})}function R(e,Z){let ie=null,ae=Z;for(;ae!==ie;)ie=ae,ae=Ie(e,ae),ae=Oe(e,ae),ae=ke(e,ae);return ae=Be(e,ae),ae=Me(e,ae),!1!==ae&&w(e,ae)}function j(e,Z,ie){return R(e,ie(Z))}function _(e,Z,ie){return qe(e,ie(Z))}function O(e,Z,ie){return e.charAt(_(e,Z,ie))}function x(e,Z){let ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ke(e,ie.backwards?Z-1:Z,ie)!==Z}function k(e,Z){let ie=0;for(let ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;ae<e.length;++ae)"\t"===e[ae]?ie=ie+Z-ie%Z:ie++;return ie}function $(e,Z){let ie=e.lastIndexOf("\n");return-1===ie?0:k(e.slice(ie+1).match(/^[\t ]*/)[0],Z)}function t(e,Z){let ie={quote:'"',regex:/"/g,escaped:"""},ae={quote:"'",regex:/'/g,escaped:"'"},de="'"===Z?ae:ie,ve=de===ae?ie:ae,be=de;return(e.includes(de.quote)||e.includes(ve.quote))&&(be=(e.match(de.regex)||[]).length>(e.match(ve.regex)||[]).length?ve:de),be}function o(e,Z){let ie=e.slice(1,-1);return E(ie,"json"===Z.parser||"json5"===Z.parser&&"preserve"===Z.quoteProps&&!Z.singleQuote?'"':Z.__isInHtmlAttribute?"'":t(ie,Z.singleQuote?"'":'"').quote,!("css"===Z.parser||"less"===Z.parser||"scss"===Z.parser||Z.__embeddedInHtml))}function E(e,Z,ie){let ae='"'===Z?"'":'"',de=/\\(.)|(["'])/gs,ve=e.replace(de,((e,de,ve)=>de===ae?de:ve===Z?"\\"+ve:ve||(ie&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(de)?de:"\\"+de)));return Z+ve+Z}function p(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 A(e,Z){let ae=e.match(new RegExp(`(${ie(Z)})+`,"g"));return null===ae?0:ae.reduce(((e,ie)=>Math.max(e,ie.length/Z.length)),0)}function P(e,Z){let ae=e.match(new RegExp(`(${ie(Z)})+`,"g"));if(null===ae)return 0;let de=new Map,ve=0;for(let e of ae){let ie=e.length/Z.length;de.set(ie,!0),ie>ve&&(ve=ie)}for(let e=1;e<ve;e++)if(!de.get(e))return e;return ve+1}function M(e,Z){(e.comments||(e.comments=[])).push(Z),Z.printed=!1,Z.nodeDescription=J(e)}function z(e,Z){Z.leading=!0,Z.trailing=!1,M(e,Z)}function V(e,Z,ie){Z.leading=!1,Z.trailing=!1,ie&&(Z.marker=ie),M(e,Z)}function X(e,Z){Z.leading=!1,Z.trailing=!0,M(e,Z)}function H(e,Z){let{languages:ie}=de({plugins:Z.plugins}),ae=ie.find((Z=>{let{name:ie}=Z;return ie.toLowerCase()===e}))||ie.find((Z=>{let{aliases:ie}=Z;return Array.isArray(ie)&&ie.includes(e)}))||ie.find((Z=>{let{extensions:ie}=Z;return Array.isArray(ie)&&ie.includes(`.${e}`)}));return ae&&ae.parsers[0]}function Q(e){return e&&"front-matter"===e.type}function K(e){let Z=new WeakMap;return function(ie){return Z.has(ie)||Z.set(ie,Symbol(e)),Z.get(ie)}}function J(e){let Z=e.type||e.kind||"(unknown type)",ie=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 ie.length>20&&(ie=ie.slice(0,19)+"…"),Z+(ie?" "+ie:"")}Z.exports={inferParserByLanguage:H,getStringWidth:be,getMaxContinuousCount:A,getMinNotPresentContinuousCount:P,getPenultimate:m,getLast:ae,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:qe,getNextNonSpaceNonCommentCharacterIndex:_,getNextNonSpaceNonCommentCharacter:O,skip:T,skipWhitespace:Ce,skipSpaces:ke,skipToLineEnd:Ie,skipEverythingButNewLine:Fe,skipInlineComment:Oe,skipTrailingComment:Be,skipNewline:Me,isNextLineEmptyAfterIndex:R,isNextLineEmpty:j,isPreviousLineEmpty:N,hasNewline:w,hasNewlineInRange:g,hasSpaces:x,getAlignmentSize:k,getIndentSize:$,getPreferredQuote:t,printString:o,printNumber:p,makeString:E,addLeadingComment:z,addDanglingComment:V,addTrailingComment:X,isFrontMatterNode:Q,isNonEmptyArray:ve,createGroupIdMapper:K}}}),ir=I({"vendors/html-tag-names.json"(e,Z){Z.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"]}}}),ar=I({"src/language-html/utils/array-to-map.js"(e,Z){function u(e){let Z=Object.create(null);for(let ie of e)Z[ie]=!0;return Z}_e(),Z.exports=u}}),or=I({"src/language-html/utils/html-tag-names.js"(e,Z){_e();var{htmlTagNames:ie}=ir(),ae=ar()(ie);Z.exports=ae}}),ur=I({"vendors/html-element-attributes.json"(e,Z){Z.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"]}}}}),lr=I({"src/language-html/utils/map-object.js"(e,Z){function u(e,Z){let ie=Object.create(null);for(let[ae,de]of Object.entries(e))ie[ae]=Z(de,ae);return ie}_e(),Z.exports=u}}),pr=I({"src/language-html/utils/html-elements-attributes.js"(e,Z){_e();var{htmlElementAttributes:ie}=ur(),ae=lr()(ie,ar());Z.exports=ae}}),fr=I({"src/language-html/utils/is-unknown-namespace.js"(e,Z){function u(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}_e(),Z.exports=u}}),br=I({"src/language-html/pragma.js"(e,Z){function u(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)}function n(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}_e(),Z.exports={hasPragma:u,insertPragma:n}}}),Er=I({"src/language-html/ast.js"(e,Z){_e();var ie={attrs:!0,children:!0},ae=new Set(["parent"]),de=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let Z of new Set([...ae,...Object.keys(e)]))this.setProperty(Z,e[Z])}setProperty(e,Z){if(this[e]!==Z){if(e in ie&&(Z=Z.map((e=>this.createChild(e)))),!ae.has(e))return void(this[e]=Z);Object.defineProperty(this,e,{value:Z,enumerable:!1,configurable:!0})}}map(e){let Z;for(let ae in ie){let ie=this[ae];if(ie){let ve=s(ie,(Z=>Z.map(e)));Z!==ie&&(Z||(Z=new de({parent:this.parent})),Z.setProperty(ae,ve))}}if(Z)for(let e in this)e in ie||(Z[e]=this[e]);return e(Z||this)}walk(e){for(let Z in ie){let ie=this[Z];if(ie)for(let Z=0;Z<ie.length;Z++)ie[Z].walk(e)}e(this)}createChild(e){let Z=e instanceof de?e.clone():new de(e);return Z.setProperty("parent",this),Z}insertChildBefore(e,Z){this.children.splice(this.children.indexOf(e),0,this.createChild(Z))}removeChild(e){this.children.splice(this.children.indexOf(e),1)}replaceChild(e,Z){this.children[this.children.indexOf(e)]=this.createChild(Z)}clone(){return new de(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 s(e,Z){let ie=e.map(Z);return ie.some(((Z,ie)=>Z!==e[ie]))?ie:e}Z.exports={Node:de}}}),Cr=I({"src/language-html/conditional-comment.js"(e,Z){_e();var{ParseSourceSpan:ie}=qe(),ae=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:s},{regex:/^\[if([^\]]*)]><!$/,parse:i},{regex:/^<!\s*\[endif]$/,parse:f}];function D(e,Z){if(e.value)for(let{regex:ie,parse:de}of ae){let ae=e.value.match(ie);if(ae)return de(e,Z,ae)}return null}function s(e,Z,ae){let[,de,ve,be]=ae,Ce=4+de.length,ke=e.sourceSpan.start.moveBy(Ce),Ie=ke.moveBy(be.length),[_e,Fe]=(()=>{try{return[!0,Z(be,ke).children]}catch{return[!1,[{type:"text",value:be,sourceSpan:new ie(ke,Ie)}]]}})();return{type:"ieConditionalComment",complete:_e,children:Fe,condition:ve.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new ie(e.sourceSpan.start,ke),endSourceSpan:new ie(Ie,e.sourceSpan.end)}}function i(e,Z,ie){let[,ae]=ie;return{type:"ieConditionalStartComment",condition:ae.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan}}function f(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}Z.exports={parseIeConditionalComment:D}}}),Ar=I({"src/language-html/loc.js"(e,Z){function u(e){return e.sourceSpan.start.offset}function n(e){return e.sourceSpan.end.offset}_e(),Z.exports={locStart:u,locEnd:n}}}),Tr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){var Z;function u(e){if(":"!=e[0])return[null,e];let Z=e.indexOf(":",1);if(-1==Z)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,Z),e.slice(Z+1)]}function n(e){return"ng-container"===u(e)[1]}function D(e){return"ng-content"===u(e)[1]}function s(e){return"ng-template"===u(e)[1]}function i(e){return null===e?null:u(e)[0]}function f(e,Z){return e?`:${e}:${Z}`:Z}_e(),Object.defineProperty(e,"__esModule",{value:!0}),(Z=e.TagContentType||(e.TagContentType={}))[Z.RAW_TEXT=0]="RAW_TEXT",Z[Z.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",Z[Z.PARSABLE_DATA=2]="PARSABLE_DATA",e.splitNsName=u,e.isNgContainer=n,e.isNgContent=D,e.isNgTemplate=s,e.getNsPrefix=i,e.mergeNsAndName=f,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}}),Sr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_tags.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z,ie,ae=Tr(),de=class{constructor(){let{closedByChildren:e,implicitNamespacePrefix:Z,contentType:ie=ae.TagContentType.PARSABLE_DATA,closedByParent:de=!1,isVoid:ve=!1,ignoreFirstLf:be=!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=ve,this.closedByParent=de||ve,this.implicitNamespacePrefix=Z||null,this.contentType=ie,this.ignoreFirstLf=be}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}};function s(e){return ie||(Z=new de,ie={base:new de({isVoid:!0}),meta:new de({isVoid:!0}),area:new de({isVoid:!0}),embed:new de({isVoid:!0}),link:new de({isVoid:!0}),img:new de({isVoid:!0}),input:new de({isVoid:!0}),param:new de({isVoid:!0}),hr:new de({isVoid:!0}),br:new de({isVoid:!0}),source:new de({isVoid:!0}),track:new de({isVoid:!0}),wbr:new de({isVoid:!0}),p:new de({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 de({closedByChildren:["tbody","tfoot"]}),tbody:new de({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new de({closedByChildren:["tbody"],closedByParent:!0}),tr:new de({closedByChildren:["tr"],closedByParent:!0}),td:new de({closedByChildren:["td","th"],closedByParent:!0}),th:new de({closedByChildren:["td","th"],closedByParent:!0}),col:new de({isVoid:!0}),svg:new de({implicitNamespacePrefix:"svg"}),math:new de({implicitNamespacePrefix:"math"}),li:new de({closedByChildren:["li"],closedByParent:!0}),dt:new de({closedByChildren:["dt","dd"]}),dd:new de({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new de({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new de({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new de({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new de({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new de({closedByChildren:["optgroup"],closedByParent:!0}),option:new de({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new de({ignoreFirstLf:!0}),listing:new de({ignoreFirstLf:!0}),style:new de({contentType:ae.TagContentType.RAW_TEXT}),script:new de({contentType:ae.TagContentType.RAW_TEXT}),title:new de({contentType:ae.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new de({contentType:ae.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),ie[e]||Z}e.HtmlTagDefinition=de,e.getHtmlTagDefinition=s}}),Pr=I({"node_modules/angular-html-parser/lib/compiler/src/ast_path.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=class{constructor(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.path=e,this.position=Z}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 Z=this.path.length-1;Z>=0;Z--){let ie=this.path[Z];if(ie instanceof e)return ie}}push(e){this.path.push(e)}pop(){return this.path.pop()}};e.AstPath=Z}}),kr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/ast.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=Pr(),ie=class{constructor(e,Z,ie){this.value=e,this.sourceSpan=Z,this.i18n=ie,this.type="text"}visit(e,Z){return e.visitText(this,Z)}};e.Text=ie;var ae=class{constructor(e,Z){this.value=e,this.sourceSpan=Z,this.type="cdata"}visit(e,Z){return e.visitCdata(this,Z)}};e.CDATA=ae;var de=class{constructor(e,Z,ie,ae,de,ve){this.switchValue=e,this.type=Z,this.cases=ie,this.sourceSpan=ae,this.switchValueSourceSpan=de,this.i18n=ve}visit(e,Z){return e.visitExpansion(this,Z)}};e.Expansion=de;var ve=class{constructor(e,Z,ie,ae,de){this.value=e,this.expression=Z,this.sourceSpan=ie,this.valueSourceSpan=ae,this.expSourceSpan=de}visit(e,Z){return e.visitExpansionCase(this,Z)}};e.ExpansionCase=ve;var be=class{constructor(e,Z,ie){let ae=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,de=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;this.name=e,this.value=Z,this.sourceSpan=ie,this.valueSpan=ae,this.nameSpan=de,this.i18n=ve,this.type="attribute"}visit(e,Z){return e.visitAttribute(this,Z)}};e.Attribute=be;var Ce=class{constructor(e,Z,ie,ae){let de=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,be=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,Ce=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.name=e,this.attrs=Z,this.children=ie,this.sourceSpan=ae,this.startSourceSpan=de,this.endSourceSpan=ve,this.nameSpan=be,this.i18n=Ce,this.type="element"}visit(e,Z){return e.visitElement(this,Z)}};e.Element=Ce;var ke=class{constructor(e,Z){this.value=e,this.sourceSpan=Z,this.type="comment"}visit(e,Z){return e.visitComment(this,Z)}};e.Comment=ke;var Ie=class{constructor(e,Z){this.value=e,this.sourceSpan=Z,this.type="docType"}visit(e,Z){return e.visitDocType(this,Z)}};function a(e,Z){let ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,ae=[],de=e.visit?Z=>e.visit(Z,ie)||Z.visit(e,ie):Z=>Z.visit(e,ie);return Z.forEach((e=>{let Z=de(e);Z&&ae.push(Z)})),ae}e.DocType=Ie,e.visitAll=a;var Fe=class{constructor(){}visitElement(e,Z){this.visitChildren(Z,(Z=>{Z(e.attrs),Z(e.children)}))}visitAttribute(e,Z){}visitText(e,Z){}visitCdata(e,Z){}visitComment(e,Z){}visitDocType(e,Z){}visitExpansion(e,Z){return this.visitChildren(Z,(Z=>{Z(e.cases)}))}visitExpansionCase(e,Z){}visitChildren(e,Z){let ie=[],ae=this;function g(Z){Z&&ie.push(a(ae,Z,e))}return Z(g),Array.prototype.concat.apply([],ie)}};function h(e){let Z=e.sourceSpan.start.offset,ie=e.sourceSpan.end.offset;return e instanceof Ce&&(e.endSourceSpan?ie=e.endSourceSpan.end.offset:e.children&&e.children.length&&(ie=h(e.children[e.children.length-1]).end)),{start:Z,end:ie}}function C(e,ie){let ae=[];return a(new class extends Fe{visit(e,Z){let de=h(e);if(!(de.start<=ie&&ie<de.end))return!0;ae.push(e)}},e),new Z.AstPath(ae,ie)}e.RecursiveVisitor=Fe,e.findNode=C}}),Nr=I({"node_modules/angular-html-parser/lib/compiler/src/assertions.js"(e){function r(e,Z){if(null!=Z){if(!Array.isArray(Z))throw new Error(`Expected '${e}' to be an array of strings.`);for(let ie=0;ie<Z.length;ie+=1)if("string"!=typeof Z[ie])throw new Error(`Expected '${e}' to be an array of strings.`)}}_e(),Object.defineProperty(e,"__esModule",{value:!0}),e.assertArrayOfStrings=r;var Z=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function n(e,ie){if(null!=ie&&(!Array.isArray(ie)||2!=ie.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=ie){let e=ie[0],ae=ie[1];Z.forEach((Z=>{if(Z.test(e)||Z.test(ae))throw new Error(`['${e}', '${ae}'] contains unusable interpolation symbol.`)}))}}e.assertInterpolationSymbols=n}}),Ir=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/interpolation_config.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=Nr(),ie=class{constructor(e,Z){this.start=e,this.end=Z}static fromArray(ae){return ae?(Z.assertInterpolationSymbols("interpolation",ae),new ie(ae[0],ae[1])):e.DEFAULT_INTERPOLATION_CONFIG}};e.InterpolationConfig=ie,e.DEFAULT_INTERPOLATION_CONFIG=new ie("{{","}}")}}),Or=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/lexer.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z,ie=Fe(),ae=qe(),de=Ir(),ve=Tr();!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"}(Z=e.TokenType||(e.TokenType={}));var be=class{constructor(e,Z,ie){this.type=e,this.parts=Z,this.sourceSpan=ie}};e.Token=be;var Ce=class extends ae.ParseError{constructor(e,Z,ie){super(ie,e),this.tokenType=Z}};e.TokenError=Ce;var ke=class{constructor(e,Z){this.tokens=e,this.errors=Z}};function F(e,Z,ie){let de=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Be(new ae.ParseSourceFile(e,Z),ie,de).tokenize()}e.TokenizeResult=ke,e.tokenize=F;var Ie=/\r\n?/g;function l(e){return`Unexpected character "${e===ie.$EOF?"EOF":String.fromCharCode(e)}"`}function h(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}var Oe=class{constructor(e){this.error=e}},Be=class{constructor(e,Z,ie){this._getTagContentType=Z,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=ie.tokenizeExpansionForms||!1,this._interpolationConfig=ie.interpolationConfig||de.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=ie.leadingTriviaChars&&ie.leadingTriviaChars.map((e=>e.codePointAt(0)||0)),this._canSelfClose=ie.canSelfClose||!1,this._allowHtmComponentClosingTags=ie.allowHtmComponentClosingTags||!1;let ae=ie.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=ie.escapedString?new Ve(e,ae):new Me(e,ae);try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return e.replace(Ie,"\n")}tokenize(){for(;this._cursor.peek()!==ie.$EOF;){let e=this._cursor.clone();try{if(this._attemptCharCode(ie.$LT))if(this._attemptCharCode(ie.$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(ie.$SLASH))this._consumeTagClose(e);else{let Z=this._cursor.clone();this._attemptCharCode(ie.$QUESTION)?(this._cursor=Z,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(Z.EOF),this._endToken([]),new ke(O(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(R(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===ie.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=Z,this._currentTokenType=e}_endToken(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();if(null===this._currentTokenStart)throw new Ce("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(Z));if(null===this._currentTokenType)throw new Ce("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let ie=new be(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(ie),this._currentTokenStart=null,this._currentTokenType=null,ie}_createError(e,Z){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let ie=new Ce(e,this._currentTokenType,Z);return this._currentTokenStart=null,this._currentTokenType=null,new Oe(ie)}handleError(e){if(e instanceof Ze&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Oe))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!j(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){let Z=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(Z))}_attemptStr(e){let Z=e.length;if(this._cursor.charsLeft()<Z)return!1;let ie=this._cursor.clone();for(let ae=0;ae<Z;ae++)if(!this._attemptCharCode(e.charCodeAt(ae)))return this._cursor=ie,!1;return!0}_attemptStrCaseInsensitive(e){for(let Z=0;Z<e.length;Z++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(Z)))return!1;return!0}_requireStr(e){let Z=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(Z))}_requireStrCaseInsensitive(e){let Z=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(Z))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,Z){let ie=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.clone().diff(ie)<Z)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(ie))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(e){if(e&&this._cursor.peek()===ie.$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(ie.$HASH)){let Z=this._cursor.clone();if(this._attemptCharCodeUntilFn(N),this._cursor.peek()!=ie.$SEMICOLON)return this._cursor=Z,"&";let ae=this._cursor.getChars(Z);this._cursor.advance();let de=ve.NAMED_ENTITIES[ae];if(!de)throw this._createError(h(ae),this._cursor.getSpan(e));return de}{let Z=this._attemptCharCode(ie.$x)||this._attemptCharCode(ie.$X),ae=this._cursor.clone();if(this._attemptCharCodeUntilFn(g),this._cursor.peek()!=ie.$SEMICOLON)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan());let de=this._cursor.getChars(ae);this._cursor.advance();try{let e=parseInt(de,Z?16:10);return String.fromCharCode(e)}catch{throw this._createError(h(this._cursor.getChars(e)),this._cursor.getSpan())}}}_consumeRawText(e,ie){this._beginToken(e?Z.ESCAPABLE_RAW_TEXT:Z.RAW_TEXT);let ae=[];for(;;){let Z=this._cursor.clone(),de=ie();if(this._cursor=Z,de)break;ae.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(ae.join(""))])}_consumeComment(e){this._beginToken(Z.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("--\x3e"))),this._beginToken(Z.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(e){this._beginToken(Z.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===ie.$GT)),this._beginToken(Z.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(Z.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(Z.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(Z.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,(()=>this._cursor.peek()===ie.$GT)),this._beginToken(Z.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e,Z=this._cursor.clone(),ae="";for(;this._cursor.peek()!==ie.$COLON&&!w(this._cursor.peek());)this._cursor.advance();return this._cursor.peek()===ie.$COLON?(ae=this._cursor.getChars(Z),this._cursor.advance(),e=this._cursor.clone()):e=Z,this._requireCharCodeUntilFn(T,""===ae?0:1),[ae,this._cursor.getChars(e)]}_consumeTagOpen(e){let ae,de,be,Ce=this.tokens.length,ke=this._cursor.clone(),Ie=[];try{if(!ie.isAsciiLetter(this._cursor.peek()))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(e));for(be=this._consumeTagOpenStart(e),de=be.parts[0],ae=be.parts[1],this._attemptCharCodeUntilFn(m);this._cursor.peek()!==ie.$SLASH&&this._cursor.peek()!==ie.$GT;){let[e,Z]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(m),this._attemptCharCode(ie.$EQ)){this._attemptCharCodeUntilFn(m);let ie=this._consumeAttributeValue();Ie.push({prefix:e,name:Z,value:ie})}else Ie.push({prefix:e,name:Z});this._attemptCharCodeUntilFn(m)}this._consumeTagOpenEnd()}catch(ie){if(ie instanceof Oe)return this._cursor=ke,be&&(this.tokens.length=Ce),this._beginToken(Z.TEXT,e),void this._endToken(["<"]);throw ie}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===Z.TAG_OPEN_END_VOID)return;let _e=this._getTagContentType(ae,de,this._fullNameStack.length>0,Ie);this._handleFullNameStackForTagOpen(de,ae),_e===ve.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(de,ae,!1):_e===ve.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(de,ae,!0)}_consumeRawTextWithTagClose(e,ae,de){this._consumeRawText(de,(()=>!!(this._attemptCharCode(ie.$LT)&&this._attemptCharCode(ie.$SLASH)&&(this._attemptCharCodeUntilFn(m),this._attemptStrCaseInsensitive(e?`${e}:${ae}`:ae)))&&(this._attemptCharCodeUntilFn(m),this._attemptCharCode(ie.$GT)))),this._beginToken(Z.TAG_CLOSE),this._requireCharCodeUntilFn((e=>e===ie.$GT),3),this._cursor.advance(),this._endToken([e,ae]),this._handleFullNameStackForTagClose(e,ae)}_consumeTagOpenStart(e){this._beginToken(Z.TAG_OPEN_START,e);let ie=this._consumePrefixAndName();return this._endToken(ie)}_consumeAttributeName(){let e=this._cursor.peek();if(e===ie.$SQ||e===ie.$DQ)throw this._createError(l(e),this._cursor.getSpan());this._beginToken(Z.ATTR_NAME);let ae=this._consumePrefixAndName();return this._endToken(ae),ae}_consumeAttributeValue(){let e;if(this._cursor.peek()===ie.$SQ||this._cursor.peek()===ie.$DQ){this._beginToken(Z.ATTR_QUOTE);let ie=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(ie)]),this._beginToken(Z.ATTR_VALUE);let ae=[];for(;this._cursor.peek()!==ie;)ae.push(this._readChar(!0));e=this._processCarriageReturns(ae.join("")),this._endToken([e]),this._beginToken(Z.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(ie)])}else{this._beginToken(Z.ATTR_VALUE);let ie=this._cursor.clone();this._requireCharCodeUntilFn(T,1),e=this._processCarriageReturns(this._cursor.getChars(ie)),this._endToken([e])}return e}_consumeTagOpenEnd(){let e=this._attemptCharCode(ie.$SLASH)?Z.TAG_OPEN_END_VOID:Z.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(ie.$GT),this._endToken([])}_consumeTagClose(e){if(this._beginToken(Z.TAG_CLOSE,e),this._attemptCharCodeUntilFn(m),this._allowHtmComponentClosingTags&&this._attemptCharCode(ie.$SLASH))this._attemptCharCodeUntilFn(m),this._requireCharCode(ie.$GT),this._endToken([]);else{let[e,Z]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(m),this._requireCharCode(ie.$GT),this._endToken([e,Z]),this._handleFullNameStackForTagClose(e,Z)}}_consumeExpansionFormStart(){this._beginToken(Z.EXPANSION_FORM_START),this._requireCharCode(ie.$LBRACE),this._endToken([]),this._expansionCaseStack.push(Z.EXPANSION_FORM_START),this._beginToken(Z.RAW_TEXT);let e=this._readUntil(ie.$COMMA);this._endToken([e]),this._requireCharCode(ie.$COMMA),this._attemptCharCodeUntilFn(m),this._beginToken(Z.RAW_TEXT);let ae=this._readUntil(ie.$COMMA);this._endToken([ae]),this._requireCharCode(ie.$COMMA),this._attemptCharCodeUntilFn(m)}_consumeExpansionCaseStart(){this._beginToken(Z.EXPANSION_CASE_VALUE);let e=this._readUntil(ie.$LBRACE).trim();this._endToken([e]),this._attemptCharCodeUntilFn(m),this._beginToken(Z.EXPANSION_CASE_EXP_START),this._requireCharCode(ie.$LBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.push(Z.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(Z.EXPANSION_CASE_EXP_END),this._requireCharCode(ie.$RBRACE),this._endToken([]),this._attemptCharCodeUntilFn(m),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(Z.EXPANSION_FORM_END),this._requireCharCode(ie.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()}_consumeText(){let e=this._cursor.clone();this._beginToken(Z.TEXT,e);let ie=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(ie.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(ie.push(this._interpolationConfig.end),this._inInterpolation=!1):ie.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(ie.join(""))])}_isTextEnd(){return!!(this._cursor.peek()===ie.$LT||this._cursor.peek()===ie.$EOF||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===ie.$RBRACE&&this._isInExpansionCase()))}_readUntil(e){let Z=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(Z)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Z.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Z.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==ie.$LBRACE)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),Z=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!Z}return!0}_handleFullNameStackForTagOpen(e,Z){let ie=ve.mergeNsAndName(e,Z);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===ie)&&this._fullNameStack.push(ie)}_handleFullNameStackForTagClose(e,Z){let ie=ve.mergeNsAndName(e,Z);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===ie&&this._fullNameStack.pop()}};function m(e){return!ie.isWhitespace(e)||e===ie.$EOF}function T(e){return ie.isWhitespace(e)||e===ie.$GT||e===ie.$SLASH||e===ie.$SQ||e===ie.$DQ||e===ie.$EQ}function w(e){return(e<ie.$a||ie.$z<e)&&(e<ie.$A||ie.$Z<e)&&(e<ie.$0||e>ie.$9)}function g(e){return e==ie.$SEMICOLON||e==ie.$EOF||!ie.isAsciiHexDigit(e)}function N(e){return e==ie.$SEMICOLON||e==ie.$EOF||!ie.isAsciiLetter(e)}function R(e){return e===ie.$EQ||ie.isAsciiLetter(e)||ie.isDigit(e)}function j(e,Z){return _(e)==_(Z)}function _(e){return e>=ie.$a&&e<=ie.$z?e-ie.$a+ie.$A:e}function O(e){let ie,ae=[];for(let de=0;de<e.length;de++){let ve=e[de];ie&&ie.type==Z.TEXT&&ve.type==Z.TEXT?(ie.parts[0]+=ve.parts[0],ie.sourceSpan.end=ve.sourceSpan.end):(ie=ve,ae.push(ie))}return ae}var Me=class{constructor(e,Z){if(e instanceof Me)this.file=e.file,this.input=e.input,this.end=e.end,this.state=Object.assign({},e.state);else{if(!Z)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=Z.endPos,this.state={peek:-1,offset:Z.startPos,line:Z.startLine,column:Z.startCol}}}clone(){return new Me(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,Z){if(e=e||this,Z)for(e=e.clone();this.diff(e)>0&&-1!==Z.indexOf(e.peek());)e.advance();return new ae.ParseSourceSpan(new ae.ParseLocation(e.file,e.state.offset,e.state.line,e.state.column),new ae.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 Ze('Unexpected character "EOF"',this);let Z=this.charAt(e.offset);Z===ie.$LF?(e.line++,e.column=0):ie.isNewLine(Z)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?ie.$EOF:this.charAt(e.offset)}},Ve=class extends Me{constructor(e,Z){e instanceof Ve?(super(e),this.internalState=Object.assign({},e.internalState)):(super(e,Z),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Ve(this)}getChars(e){let Z=e.clone(),ie="";for(;Z.internalState.offset<this.internalState.offset;)ie+=String.fromCodePoint(Z.peek()),Z.advance();return ie}processEscapeSequence(){let t=()=>this.internalState.peek;if(t()===ie.$BACKSLASH)if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),t()===ie.$n)this.state.peek=ie.$LF;else if(t()===ie.$r)this.state.peek=ie.$CR;else if(t()===ie.$v)this.state.peek=ie.$VTAB;else if(t()===ie.$t)this.state.peek=ie.$TAB;else if(t()===ie.$b)this.state.peek=ie.$BSPACE;else if(t()===ie.$f)this.state.peek=ie.$FF;else if(t()===ie.$u)if(this.advanceState(this.internalState),t()===ie.$LBRACE){this.advanceState(this.internalState);let e=this.clone(),Z=0;for(;t()!==ie.$RBRACE;)this.advanceState(this.internalState),Z++;this.state.peek=this.decodeHexDigits(e,Z)}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(t()===ie.$x){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(ie.isOctalDigit(t())){let e="",Z=0,ae=this.clone();for(;ie.isOctalDigit(t())&&Z<3;)ae=this.clone(),e+=String.fromCodePoint(t()),this.advanceState(this.internalState),Z++;this.state.peek=parseInt(e,8),this.internalState=ae.internalState}else ie.isNewLine(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,Z){let ie=this.input.substr(e.internalState.offset,Z),ae=parseInt(ie,16);if(isNaN(ae))throw e.state=e.internalState,new Ze("Invalid hexadecimal escape sequence",e);return ae}},Ze=class{constructor(e,Z){this.msg=e,this.cursor=Z}};e.CursorError=Ze}}),Mr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/parser.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=qe(),ie=kr(),ae=Or(),de=Tr(),ve=class extends Z.ParseError{constructor(e,Z,ie){super(Z,ie),this.elementName=e}static create(e,Z,ie){return new ve(e,Z,ie)}};e.TreeError=ve;var be=class{constructor(e,Z){this.rootNodes=e,this.errors=Z}};e.ParseTreeResult=be;var Ce=class{constructor(e){this.getTagDefinition=e}parse(e,Z,ie){let de=arguments.length>3&&void 0!==arguments[3]&&arguments[3],ve=arguments.length>4?arguments[4]:void 0,m=e=>function(Z){for(var ie=arguments.length,ae=new Array(ie>1?ie-1:0),de=1;de<ie;de++)ae[de-1]=arguments[de];return e(Z.toLowerCase(),...ae)},Ce=de?this.getTagDefinition:m(this.getTagDefinition),w=e=>Ce(e).contentType,Ie=de?ve:m(ve),_e=ve?(e,Z,ie,ae)=>{let de=Ie(e,Z,ie,ae);return void 0!==de?de:w(e)}:w,Fe=ae.tokenize(e,Z,_e,ie),Oe=ie&&ie.canSelfClose||!1,Be=ie&&ie.allowHtmComponentClosingTags||!1,Me=new ke(Fe.tokens,Ce,Oe,Be,de).build();return new be(Me.rootNodes,Fe.errors.concat(Me.errors))}};e.Parser=Ce;var ke=class{constructor(e,Z,ie,ae,de){this.tokens=e,this.getTagDefinition=Z,this.canSelfClose=ie,this.allowHtmComponentClosingTags=ae,this.isTagNameCaseSensitive=de,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}build(){for(;this._peek.type!==ae.TokenType.EOF;)this._peek.type===ae.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ae.TokenType.TAG_CLOSE?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===ae.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ae.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ae.TokenType.TEXT||this._peek.type===ae.TokenType.RAW_TEXT||this._peek.type===ae.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ae.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===ae.TokenType.DOC_TYPE_START?this._consumeDocType(this._advance()):this._advance();return new be(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 de=this._advance(),ve=this._getText(de),be=this._advanceIf(ae.TokenType.CDATA_END);this._addToParent(new ie.CDATA(ve,new Z.ParseSourceSpan(e.sourceSpan.start,(be||de).sourceSpan.end)))}_consumeComment(e){let de=this._advanceIf(ae.TokenType.RAW_TEXT),ve=this._advanceIf(ae.TokenType.COMMENT_END),be=null!=de?de.parts[0].trim():null,Ce=new Z.ParseSourceSpan(e.sourceSpan.start,(ve||de||e).sourceSpan.end);this._addToParent(new ie.Comment(be,Ce))}_consumeDocType(e){let de=this._advanceIf(ae.TokenType.RAW_TEXT),ve=this._advanceIf(ae.TokenType.DOC_TYPE_END),be=null!=de?de.parts[0].trim():null,Ce=new Z.ParseSourceSpan(e.sourceSpan.start,(ve||de||e).sourceSpan.end);this._addToParent(new ie.DocType(be,Ce))}_consumeExpansion(e){let de=this._advance(),be=this._advance(),Ce=[];for(;this._peek.type===ae.TokenType.EXPANSION_CASE_VALUE;){let e=this._parseExpansionCase();if(!e)return;Ce.push(e)}if(this._peek.type!==ae.TokenType.EXPANSION_FORM_END)return void this._errors.push(ve.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));let ke=new Z.ParseSourceSpan(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ie.Expansion(de.parts[0],be.parts[0],Ce,ke,de.sourceSpan)),this._advance()}_parseExpansionCase(){let e=this._advance();if(this._peek.type!==ae.TokenType.EXPANSION_CASE_EXP_START)return this._errors.push(ve.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let de=this._advance(),be=this._collectExpansionExpTokens(de);if(!be)return null;let Ce=this._advance();be.push(new ae.Token(ae.TokenType.EOF,[],Ce.sourceSpan));let Ie=new ke(be,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive).build();if(Ie.errors.length>0)return this._errors=this._errors.concat(Ie.errors),null;let _e=new Z.ParseSourceSpan(e.sourceSpan.start,Ce.sourceSpan.end),Fe=new Z.ParseSourceSpan(de.sourceSpan.start,Ce.sourceSpan.end);return new ie.ExpansionCase(e.parts[0],Ie.rootNodes,_e,e.sourceSpan,Fe)}_collectExpansionExpTokens(e){let Z=[],ie=[ae.TokenType.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===ae.TokenType.EXPANSION_FORM_START||this._peek.type===ae.TokenType.EXPANSION_CASE_EXP_START)&&ie.push(this._peek.type),this._peek.type===ae.TokenType.EXPANSION_CASE_EXP_END){if(!F(ie,ae.TokenType.EXPANSION_CASE_EXP_START))return this._errors.push(ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(ie.pop(),0==ie.length)return Z}if(this._peek.type===ae.TokenType.EXPANSION_FORM_END){if(!F(ie,ae.TokenType.EXPANSION_FORM_START))return this._errors.push(ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;ie.pop()}if(this._peek.type===ae.TokenType.EOF)return this._errors.push(ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;Z.push(this._advance())}}_getText(e){let Z=e.parts[0];if(Z.length>0&&"\n"==Z[0]){let e=this._getParentElement();null!=e&&0==e.children.length&&this.getTagDefinition(e.name).ignoreFirstLf&&(Z=Z.substring(1))}return Z}_consumeText(e){let Z=this._getText(e);Z.length>0&&this._addToParent(new ie.Text(Z,e.sourceSpan))}_closeVoidElement(){let e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){let be=e.parts[0],Ce=e.parts[1],ke=[];for(;this._peek.type===ae.TokenType.ATTR_NAME;)ke.push(this._consumeAttr(this._advance()));let Ie=this._getElementFullName(be,Ce,this._getParentElement()),_e=!1;if(this._peek.type===ae.TokenType.TAG_OPEN_END_VOID){this._advance(),_e=!0;let Z=this.getTagDefinition(Ie);this.canSelfClose||Z.canSelfClose||null!==de.getNsPrefix(Ie)||Z.isVoid||this._errors.push(ve.create(Ie,e.sourceSpan,`Only void and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===ae.TokenType.TAG_OPEN_END&&(this._advance(),_e=!1);let Fe=this._peek.sourceSpan.start,Oe=new Z.ParseSourceSpan(e.sourceSpan.start,Fe),Be=new Z.ParseSourceSpan(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),Me=new ie.Element(Ie,ke,[],Oe,Oe,void 0,Be);this._pushElement(Me),_e&&(this._popElement(Ie),Me.endSourceSpan=Oe)}_pushElement(e){let Z=this._getParentElement();Z&&this.getTagDefinition(Z.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){let Z=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),Z&&this.getTagDefinition(Z).isVoid)this._errors.push(ve.create(Z,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(Z)){let ie=`Unexpected closing tag "${Z}". 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(ve.create(Z,e.sourceSpan,ie))}}_popElement(e){for(let Z=this._elementStack.length-1;Z>=0;Z--){let ie=this._elementStack[Z];if(!e||(de.getNsPrefix(ie.name)?ie.name==e:ie.name.toLowerCase()==e.toLowerCase()))return this._elementStack.splice(Z,this._elementStack.length-Z),!0;if(!this.getTagDefinition(ie.name).closedByParent)return!1}return!1}_consumeAttr(e){let ve,be,Ce=de.mergeNsAndName(e.parts[0],e.parts[1]),ke=e.sourceSpan.end,Ie="";if(this._peek.type===ae.TokenType.ATTR_QUOTE&&(be=this._advance().sourceSpan.start),this._peek.type===ae.TokenType.ATTR_VALUE){let e=this._advance();Ie=e.parts[0],ke=e.sourceSpan.end,ve=e.sourceSpan}return this._peek.type===ae.TokenType.ATTR_QUOTE&&(ke=this._advance().sourceSpan.end,ve=new Z.ParseSourceSpan(be,ke)),new ie.Attribute(Ce,Ie,new Z.ParseSourceSpan(e.sourceSpan.start,ke),ve,e.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let e=null;for(let Z=this._elementStack.length-1;Z>=0;Z--){if(!de.isNgContainer(this._elementStack[Z].name))return{parent:this._elementStack[Z],container:e};e=this._elementStack[Z]}return{parent:null,container:e}}_addToParent(e){let Z=this._getParentElement();null!=Z?Z.children.push(e):this._rootNodes.push(e)}_insertBeforeContainer(e,Z,ie){if(Z){if(e){let ae=e.children.indexOf(Z);e.children[ae]=ie}else this._rootNodes.push(ie);ie.children.push(Z),this._elementStack.splice(this._elementStack.indexOf(Z),0,ie)}else this._addToParent(ie),this._elementStack.push(ie)}_getElementFullName(e,Z,ie){return""===e&&""===(e=this.getTagDefinition(Z).implicitNamespacePrefix||"")&&null!=ie&&(e=de.getNsPrefix(ie.name)),de.mergeNsAndName(e,Z)}};function F(e,Z){return e.length>0&&e[e.length-1]===Z}}}),jr=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=Sr(),ie=Mr(),ae=Mr();e.ParseTreeResult=ae.ParseTreeResult,e.TreeError=ae.TreeError;var de=class extends ie.Parser{constructor(){super(Z.getHtmlTagDefinition)}parse(e,Z,ie){let ae=arguments.length>3&&void 0!==arguments[3]&&arguments[3],de=arguments.length>4?arguments[4]:void 0;return super.parse(e,Z,ie,ae,de)}};e.HtmlParser=de}}),Rr=I({"node_modules/angular-html-parser/lib/angular-html-parser/src/index.js"(e){_e(),Object.defineProperty(e,"__esModule",{value:!0});var Z=jr(),ie=Tr();e.TagContentType=ie.TagContentType;var ae=null,D=()=>(ae||(ae=new Z.HtmlParser),ae);function s(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{canSelfClose:ie=!1,allowHtmComponentClosingTags:ae=!1,isTagNameCaseSensitive:de=!1,getTagContentType:ve}=Z;return D().parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:ie,allowHtmComponentClosingTags:ae},de,ve)}e.parse=s}});_e();var{ParseSourceSpan:Gr,ParseLocation:Jr,ParseSourceFile:Wr}=qe(),Kr=Ve(),Xr=Ze(),Yr=et(),{inferParserByLanguage:Zr}=nr(),es=or(),ts=pr(),ss=fr(),{hasPragma:ns}=br(),{Node:is}=Er(),{parseIeConditionalComment:as}=Cr(),{locStart:cs,locEnd:hs}=Ar();function oc(e,Z,ie){let{canSelfClose:ae,normalizeTagName:de,normalizeAttributeName:ve,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce,getTagContentType:ke}=Z,Ie=Rr(),{RecursiveVisitor:_e,visitAll:Fe}=kr(),{ParseSourceSpan:Oe}=qe(),{getHtmlTagDefinition:Be}=Sr(),{rootNodes:Me,errors:Ve}=Ie.parse(e,{canSelfClose:ae,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce,getTagContentType:ke});if("vue"===ie.parser)if(Me.some((e=>"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase()))){ae=!0,de=!0,ve=!0,be=!0,Ce=!1;let Z=Ie.parse(e,{canSelfClose:ae,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce});Me=Z.rootNodes,Ve=Z.errors}else{let O=e=>{if(!e||"element"!==e.type||"template"!==e.name)return!1;let Z=e.attrs.find((e=>"lang"===e.name)),ae=Z&&Z.value;return!ae||"html"===Zr(ae,ie)};if(Me.some(O)){let Z,k=()=>Ie.parse(e,{canSelfClose:ae,allowHtmComponentClosingTags:be,isTagNameCaseSensitive:Ce}),$=()=>Z||(Z=k()),t=e=>$().rootNodes.find((Z=>{let{startSourceSpan:ie}=Z;return ie&&ie.start.offset===e.startSourceSpan.start.offset}));for(let e=0;e<Me.length;e++){let Z=Me[e],{endSourceSpan:ie,startSourceSpan:ae}=Z;if(null===ie)Ve=$().errors,Me[e]=t(Z)||Z;else if(O(Z)){let de=$(),ve=ae.end.offset,be=ie.start.offset;for(let e of de.errors){let{offset:Z}=e.span.start;if(ve<Z&&Z<be){Ve=[e];break}}Me[e]=t(Z)||Z}}}}if(Ve.length>0){let{msg:e,span:{start:Z,end:ie}}=Ve[0];throw Yr(e,{start:{line:Z.line+1,column:Z.col+1},end:{line:ie.line+1,column:ie.col+1}})}let T=e=>{let Z=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,ie=e.nameSpan.toString(),ae=null!==Z&&ie.startsWith(`${Z}:`),de=ae?ie.slice(Z.length+1):ie;e.name=de,e.namespace=Z,e.hasExplicitNamespace=ae},w=e=>{switch(e.type){case"element":T(e);for(let Z of e.attrs)T(Z),Z.valueSpan?(Z.value=Z.valueSpan.toString(),/["']/.test(Z.value[0])&&(Z.value=Z.value.slice(1,-1))):Z.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString()}},g=(e,Z)=>{let ie=e.toLowerCase();return Z(ie)?ie:e},N=e=>{if("element"===e.type&&(de&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||ss(e))&&(e.name=g(e.name,(e=>e in es))),ve)){let Z=ts[e.name]||Object.create(null);for(let ie of e.attrs)ie.namespace||(ie.name=g(ie.name,(ie=>e.name in ts&&(ie in ts["*"]||ie in Z))))}},R=e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new Oe(e.sourceSpan.start,e.endSourceSpan.end))},j=e=>{if("element"===e.type){let Z=Be(Ce?e.name:e.name.toLowerCase());!e.namespace||e.namespace===Z.implicitNamespacePrefix||ss(e)?e.tagDefinition=Z:e.tagDefinition=Be("")}};return Fe(new class extends _e{visit(e){w(e),j(e),N(e),R(e)}},Me),Me}function Ns(e,Z,ie){let ae=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{frontMatter:de,content:ve}=ae?Kr(e):{frontMatter:null,content:e},be=new Wr(e,Z.filepath),Ce=new Jr(be,0,0,0),ke=Ce.moveBy(e.length),Ie={type:"root",sourceSpan:new Gr(Ce,ke),children:oc(ve,ie,Z)};if(de){let e=new Jr(be,0,0,0),Z=e.moveBy(de.raw.length);de.sourceSpan=new Gr(e,Z),Ie.children.unshift(de)}let _e=new is(Ie),l=(ae,de)=>{let{offset:ve}=de,be=Ns(e.slice(0,ve).replace(/[^\n\r]/g," ")+ae,Z,ie,!1);be.sourceSpan=new Gr(de,Xr(be.children).sourceSpan.end);let Ce=be.children[0];return Ce.length===ve?be.children.shift():(Ce.sourceSpan=new Gr(Ce.sourceSpan.start.moveBy(ve),Ce.sourceSpan.end),Ce.value=Ce.value.slice(ve)),be};return _e.walk((e=>{if("comment"===e.type){let Z=as(e,l);Z&&e.parent.replaceChild(e,Z)}})),_e}function Ke(){let{name:e,canSelfClose:Z=!1,normalizeTagName:ie=!1,normalizeAttributeName:ae=!1,allowHtmComponentClosingTags:de=!1,isTagNameCaseSensitive:ve=!1,getTagContentType:be}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{parse:(Ce,ke,Ie)=>Ns(Ce,Object.assign({parser:e},Ie),{canSelfClose:Z,normalizeTagName:ie,normalizeAttributeName:ae,allowHtmComponentClosingTags:de,isTagNameCaseSensitive:ve,getTagContentType:be}),hasPragma:ns,astFormat:"html",locStart:cs,locEnd:hs}}Z.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,Z,ie,ae)=>{if("html"!==e.toLowerCase()&&!ie&&("template"!==e||ae.some((e=>{let{name:Z,value:ie}=e;return"lang"===Z&&"html"!==ie&&""!==ie&&void 0!==ie}))))return Rr().TagContentType.RAW_TEXT}}),lwc:Ke({name:"lwc"})}}}));return hs()}()})),up=unwrapExports(cp),lp=["css","scss","less","json","html","vue"],factory=function(e){var Z=__assign({customFileTypeParser:{}},e);return function(e,ie){var ae;if("js"===ie||"jsx"===ie)ae="babel";else if(lp.indexOf(ie)>=0)ae=ie;else{if(!Z.customFileTypeParser[ie])return e;ae=Z.customFileTypeParser[ie]}return tr.default.format(e,{parser:ae,plugins:__spreadArray([ip,op,up],__read(Z.plugins||[]),!1),singleQuote:!0,jsxSingleQuote:!0})}},pluginFactory=function(e){return function(Z){return __awaiter(void 0,void 0,void 0,(function(){var ie,ae,de;return __generator(this,(function(ve){return ie=e||"react",ae=__assign({},Z),de=ae.ir,ae.chunks.push({type:Ra.STRING,fileType:ja.JS,name:qu,content:"\n import { createRef } from '".concat(ie,"';\n "),linkAfter:[]}),de.utils&&de.utils.forEach((function(e){"function"===e.type&&ae.chunks.push({type:Ra.STRING,fileType:ja.JS,name:Vu,content:"\n export const ".concat(e.name," = ").concat(e.content.value,";\n "),linkAfter:[qu,zu,Hu]})})),[2,ae]}))}))}};var createRouter=function(e){var Z,ie=e.schema.router;if(ie&&0!==(null===(Z=ie.routes)||void 0===Z?void 0:Z.length)){var ae=[],checkRoutes=function(e){e.forEach((function(e){e.page&&-1===ae.indexOf(e.page)&&ae.push(e.page),e.children&&e.children.length>0&&checkRoutes(e.children)}))};checkRoutes(ie.routes);var de=ie.routes.map((function(e){return createNestedRoutes(e)})),ve=ae.map((function(e){return function createLazyImport(e,Z){var ie=e.slice(0,1).toUpperCase()+e.slice(1);return kt.variableDeclaration("const",[kt.variableDeclarator(kt.identifier(ie),kt.callExpression(kt.identifier("lazy"),[kt.arrowFunctionExpression([],kt.callExpression(kt.identifier("import"),[kt.stringLiteral(Z)]))]))])}(e,"./pages/".concat(e))}));return{fileLazyImports:ve,routeElements:de}}};function codeToAST(e){var Z;try{var ie=lr(e,{sourceType:"module",plugins:["jsx"]});return null===(Z=null==ie?void 0:ie.program)||void 0===Z?void 0:Z.body[0]}catch(e){return console.error("解析错误:",e),null}}function createNestedRoutes(e){var Z=[];return e.children&&(Z=e.children.map((function(e){return createNestedRoutes(e)}))),e.redirect?codeToAST('<Route path="'.concat(e.path,'" element={<Navigate to="').concat(e.redirect,'"/>}></Route>')):function createRoute(e,Z,ie,ae){void 0===ie&&(ie=!1),void 0===ae&&(ae=null);var de=[kt.jsxAttribute(kt.jsxIdentifier("path"),kt.stringLiteral(e))];ie&&de.push(kt.jsxAttribute(kt.jsxIdentifier("exact")));var ve=kt.jsxOpeningElement(kt.jsxIdentifier("Route"),de,!ae);return Z||ae?(Z&&de.push(kt.jsxAttribute(kt.jsxIdentifier("element"),kt.jsxExpressionContainer(kt.jsxElement(kt.jsxOpeningElement(kt.jsxIdentifier(Z.slice(0,1).toUpperCase()+Z.slice(1)),[],!0),null,[],!1)))),kt.jsxElement(ve,kt.jsxClosingElement(kt.jsxIdentifier("Route")),ae||[],!1)):kt.jsxElement(ve,kt.jsxClosingElement(kt.jsxIdentifier("Route")),[],!1)}(e.path,e.page,e.exact,Z)}var createAppFile=function(e,Z,ie){var ae,de,ve,be,Ce=Et.readFileSync("./src/App.jsx","utf8"),ke=lr("".concat(Ce),{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"]});ke.program.body=ke.program.body.filter((function(e){var Z,ie,ae,de;return!("VariableDeclaration"===e.type&&"lazy"===(null===(de=null===(ae=null===(ie=null===(Z=e.declarations)||void 0===Z?void 0:Z[0])||void 0===ie?void 0:ie.init)||void 0===ae?void 0:ae.callee)||void 0===de?void 0:de.name))}));var Ie=createRouter(e);if(Ie){var _e=Ie.fileLazyImports,Fe=Ie.routeElements;It.default(ke,{Program:function(e){var Z=e.node.body,ie=Z.findIndex((function(e){return"ExportDefaultDeclaration"===e.type}));Z.splice.apply(Z,__spreadArray([ie,0],__read(_e),!1))},JSXElement:function(e){var Z,ie,ae=e.node;"Routes"===(null===(ie=null===(Z=ae.openingElement)||void 0===Z?void 0:Z.name)||void 0===ie?void 0:ie.name)&&(ae.children=Fe)}})}var Oe=e.schema.config;if(null===(ae=null==Oe?void 0:Oe.layout)||void 0===ae?void 0:ae.componentName){var Be,Me=Oe.layout,qe=Me.componentName,Ve=Me.props,Ze=codeToAST("\n <".concat(qe,"\n ").concat(Object.keys(Ve||{}).map((function(e){var Z="";return"string"==typeof Ve[e]?Z="'".concat(Ve[e],"'"):"number"==typeof Ve[e]?Z="".concat(Ve[e]):"object"==typeof Ve[e]&&(Z="{".concat(JSON.stringify(Ve[e]),"}")),"".concat(e,"=").concat(Z)})).join("\n"),"\n ><AntdApp></AntdApp></").concat(qe,">\n ")).expression;It.default(ke,{JSXElement:function(e){var Z,ie;"HashRouter"===(null===(ie=null===(Z=e.node.openingElement)||void 0===Z?void 0:Z.name)||void 0===ie?void 0:ie.name)&&(Be=e)}});var et=!1;It.default(ke,{JSXElement:function(e){var Z,ie,ae,de,ve=e.node;"ConfigProvider"!==(null===(ie=null===(Z=ve.openingElement)||void 0===Z?void 0:Z.name)||void 0===ie?void 0:ie.name)||et||(Ce.includes("<AntdApp>")&&Be?Ze.children[0].children=Be.parent.children:Ze.children[0].children=ve.children,e.replaceWith(Ze),et=!0),"HashRouter"!==(null===(de=null===(ae=ve.openingElement)||void 0===ae?void 0:ae.name)||void 0===de?void 0:de.name)||et||(Ze.children[0].children=[ve],e.replaceWith(Ze),et=!0)}})}if(null===(be=null===(ve=null===(de=e.schema)||void 0===de?void 0:de.config)||void 0===ve?void 0:ve.layout)||void 0===be?void 0:be.componentName){!function manageImports(e,Z){var ie=new Map(Z.map((function(e){return[e.name,e]}))),ae=new Set(Z.map((function(e){return e.from}))),de=new Map;It.default(e,{ImportDeclaration:function(e){var Z=e.node.source.value;if(ae.has(Z)){var ve=e.node.specifiers.filter((function(e){return!kt.isImportSpecifier(e)||!kt.isIdentifier(e.imported)||!ie.has(e.imported.name)}));ve.length>0&&(de.has(Z)||de.set(Z,new Set),ve.forEach((function(e){de.get(Z).add(e)}))),e.remove()}}}),Z.forEach((function(e){de.has(e.from)||de.set(e.from,new Set),de.get(e.from).add(kt.importSpecifier(kt.identifier(e.as||e.name),kt.identifier(e.name)))})),It.default(e,{Program:function(e){__spreadArray([],__read(de.entries()),!1).forEach((function(Z){var ie=__read(Z,2),ae=ie[0],de=ie[1];if(de.size>0){var ve=e.node.body.find((function(e){return kt.isImportDeclaration(e)})),be=ve?e.node.body.indexOf(ve):0;e.node.body.splice(be,0,kt.importDeclaration(Array.from(de),kt.stringLiteral(ae)))}}))}})}(ke,[{name:"App",as:"AntdApp",from:"antd",priority:2,protected:!0},{name:"ConfigProvider",from:"@appthen/antd",priority:1}])}var tt=Ws(ke).code;Et.writeFileSync("./src/App.jsx",tt,"utf8")},writePackageJSON=function(e){var Z=Et.readFileSync("./package.json","utf8"),ie=JSON.parse(Z),ae=!1;return e.dependencies&&(Object.keys(e.dependencies).forEach((function(Z){ie.dependencies[Z]!==e.dependencies[Z]&&(ae=!0)})),Object.keys(ie.dependencies).forEach((function(Z){ie.dependencies[Z]!==e.dependencies[Z]&&(ae=!0)}))),ie.dependencies=e.dependencies,ie.resolutions&&delete ie.resolutions,Et.writeFileSync("./package.json",JSON.stringify(ie),"utf8"),ae},dp=getCjsExportFromNamespace(_mergeNamespaces({__proto__:null,default:Dt.default},[Et])),fileSystem_require=function(){if("object"==typeof process&&process.versions&&process.versions.electron)try{const e=dp;if(Object.keys(e).length>0)return e}catch(e){}return Dt.default},yp={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},gp={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"};gp.INVALID_LOC,gp.INVALID_CEN,gp.INVALID_END,gp.NO_DATA,gp.BAD_CRC,gp.FILE_IN_THE_WAY,gp.UNKNOWN_METHOD,gp.AVAIL_DATA,gp.INVALID_DISTANCE,gp.TO_MANY_CODES,gp.INVALID_REPEAT_LEN,gp.INVALID_REPEAT_FIRST,gp.INCOMPLETE_CODES,gp.INVALID_DYN_DISTANCE,gp.INVALID_CODES_LEN,gp.INVALID_STORE_BLOCK,gp.INVALID_BLOCK_TYPE,gp.CANT_EXTRACT_FILE,gp.CANT_OVERRIDE,gp.NO_ZIP,gp.NO_ENTRY,gp.DIRECTORY_CONTENT_ERROR,gp.FILE_NOT_FOUND,gp.NOT_IMPLEMENTED,gp.INVALID_FILENAME,gp.INVALID_FORMAT;const xp=fileSystem_require(),vp="object"==typeof process&&"win32"===process.platform,is_Obj=e=>e&&"object"==typeof e,bp=new Uint32Array(256).map(((e,Z)=>{for(let e=0;e<8;e++)1&Z?Z=3988292384^Z>>>1:Z>>>=1;return Z>>>0}));function Utils(e){this.sep=yt.default.sep,this.fs=xp,is_Obj(e)&&is_Obj(e.fs)&&"function"==typeof e.fs.statSync&&(this.fs=e.fs)}var Ep=Utils;Utils.prototype.makeDir=function(e){const Z=this;!function mkdirSync(e){let ie=e.split(Z.sep)[0];e.split(Z.sep).forEach((function(e){if(e&&":"!==e.substr(-1,1)){var ae;ie+=Z.sep+e;try{ae=Z.fs.statSync(ie)}catch(e){Z.fs.mkdirSync(ie)}if(ae&&ae.isFile())throw gp.FILE_IN_THE_WAY.replace("%s",ie)}}))}(e)},Utils.prototype.writeFileTo=function(e,Z,ie,ae){const de=this;if(de.fs.existsSync(e)){if(!ie)return!1;if(de.fs.statSync(e).isDirectory())return!1}var ve,be=yt.default.dirname(e);de.fs.existsSync(be)||de.makeDir(be);try{ve=de.fs.openSync(e,"w",438)}catch(Z){de.fs.chmodSync(e,438),ve=de.fs.openSync(e,"w",438)}if(ve)try{de.fs.writeSync(ve,Z,0,Z.length,0)}finally{de.fs.closeSync(ve)}return de.fs.chmodSync(e,ae||438),!0},Utils.prototype.writeFileToAsync=function(e,Z,ie,ae,de){"function"==typeof ae&&(de=ae,ae=void 0);const ve=this;ve.fs.exists(e,(function(be){if(be&&!ie)return de(!1);ve.fs.stat(e,(function(ie,Ce){if(be&&Ce.isDirectory())return de(!1);var ke=yt.default.dirname(e);ve.fs.exists(ke,(function(ie){ie||ve.makeDir(ke),ve.fs.open(e,"w",438,(function(ie,be){ie?ve.fs.chmod(e,438,(function(){ve.fs.open(e,"w",438,(function(ie,be){ve.fs.write(be,Z,0,Z.length,0,(function(){ve.fs.close(be,(function(){ve.fs.chmod(e,ae||438,(function(){de(!0)}))}))}))}))})):be?ve.fs.write(be,Z,0,Z.length,0,(function(){ve.fs.close(be,(function(){ve.fs.chmod(e,ae||438,(function(){de(!0)}))}))})):ve.fs.chmod(e,ae||438,(function(){de(!0)}))}))}))}))}))},Utils.prototype.findFiles=function(e){const Z=this;return function findSync(e,ie,ae){"boolean"==typeof ie&&(ae=ie,ie=void 0);let de=[];return Z.fs.readdirSync(e).forEach((function(ve){var be=yt.default.join(e,ve);Z.fs.statSync(be).isDirectory()&&ae&&(de=de.concat(findSync(be,ie,ae))),ie&&!ie.test(be)||de.push(yt.default.normalize(be)+(Z.fs.statSync(be).isDirectory()?Z.sep:""))})),de}(e,void 0,!0)},Utils.prototype.getAttributes=function(){},Utils.prototype.setAttributes=function(){},Utils.crc32update=function(e,Z){return bp[255&(e^Z)]^e>>>8},Utils.crc32=function(e){"string"==typeof e&&(e=Buffer.from(e,"utf8")),bp.length||genCRCTable();let Z=e.length,ie=-1;for(let ae=0;ae<Z;)ie=Utils.crc32update(ie,e[ae++]);return~ie>>>0},Utils.methodToString=function(e){switch(e){case yp.STORED:return"STORED ("+e+")";case yp.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}},Utils.canonical=function(e){if(!e)return"";var Z=yt.default.posix.normalize("/"+e.split("\\").join("/"));return yt.default.join(".",Z)},Utils.sanitize=function(e,Z){e=yt.default.resolve(yt.default.normalize(e));for(var ie=Z.split("/"),ae=0,de=ie.length;ae<de;ae++){var ve=yt.default.normalize(yt.default.join(e,ie.slice(ae,de).join(yt.default.sep)));if(0===ve.indexOf(e))return ve}return yt.default.normalize(yt.default.join(e,yt.default.basename(Z)))},Utils.toBuffer=function toBuffer(e){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):"string"==typeof e?Buffer.from(e,"utf8"):Buffer.alloc(0)},Utils.readBigUInt64LE=function(e,Z){var ie=Buffer.from(e.slice(Z,Z+8));return ie.swap64(),parseInt(`0x${ie.toString("hex")}`)},Utils.isWin=vp,Utils.crcTable=bp;const Cp=fileSystem_require();Cp.existsSync=Cp.existsSync||yt.default.existsSync;var Ap=Ep,wp=yp,Dp=gp,FileAttr=function(e){var Z=e||"",ie={directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0},ae=null;return Z&&Cp.existsSync(Z)?(ae=Cp.statSync(Z),ie.directory=ae.isDirectory(),ie.mtime=ae.mtime,ie.atime=ae.atime,ie.executable=!!(73&ae.mode),ie.readonly=!(128&ae.mode),ie.hidden="."===yt.default.basename(Z)[0]):console.warn("Invalid path: "+Z),{get directory(){return ie.directory},get readOnly(){return ie.readonly},get hidden(){return ie.hidden},get mtime(){return ie.mtime},get atime(){return ie.atime},get executable(){return ie.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:Z,isDirectory:ie.directory,isReadOnly:ie.readonly,isHidden:ie.hidden,isExecutable:ie.executable,mTime:ie.mtime,aTime:ie.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}};Ap.Constants=wp,Ap.Errors=Dp,Ap.FileAttr=FileAttr;var Tp=Ap.Constants,Sp=Ap.Constants,EntryHeader=function(){var e=20,Z=10,ie=0,ae=0,de=0,ve=0,be=0,Ce=0,ke=0,Ie=0,_e=0,Fe=0,Oe=0,Be=0,Me=0;e|=Ap.isWin?2560:768,ie|=Tp.FLG_EFS;var qe={};function setTime(e){e=new Date(e),de=(e.getFullYear()-1980&127)<<25|e.getMonth()+1<<21|e.getDate()<<16|e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1}return setTime(+new Date),{get made(){return e},set made(Z){e=Z},get version(){return Z},set version(e){Z=e},get flags(){return ie},set flags(e){ie=e},get method(){return ae},set method(e){switch(e){case Tp.STORED:this.version=10;case Tp.DEFLATED:default:this.version=20}ae=e},get time(){return new Date(1980+(de>>25&127),(de>>21&15)-1,de>>16&31,de>>11&31,de>>5&63,(31&de)<<1)},set time(e){setTime(e)},get timeHighByte(){return de>>>8&255},get crc(){return ve},set crc(e){ve=Math.max(0,e)>>>0},get compressedSize(){return be},set compressedSize(e){be=Math.max(0,e)>>>0},get size(){return Ce},set size(e){Ce=Math.max(0,e)>>>0},get fileNameLength(){return ke},set fileNameLength(e){ke=e},get extraLength(){return Ie},set extraLength(e){Ie=e},get commentLength(){return _e},set commentLength(e){_e=e},get diskNumStart(){return Fe},set diskNumStart(e){Fe=Math.max(0,e)>>>0},get inAttr(){return Oe},set inAttr(e){Oe=Math.max(0,e)>>>0},get attr(){return Be},set attr(e){Be=Math.max(0,e)>>>0},get fileAttr(){return Be?Be>>>0>>16&4095:0},get offset(){return Me},set offset(e){Me=Math.max(0,e)>>>0},get encripted(){return!(1&~ie)},get entryHeaderSize(){return Tp.CENHDR+ke+Ie+_e},get realDataOffset(){return Me+Tp.LOCHDR+qe.fnameLen+qe.extraLen},get dataHeader(){return qe},loadDataHeaderFromBinary:function(e){var Z=e.slice(Me,Me+Tp.LOCHDR);if(Z.readUInt32LE(0)!==Tp.LOCSIG)throw new Error(Ap.Errors.INVALID_LOC);qe={version:Z.readUInt16LE(Tp.LOCVER),flags:Z.readUInt16LE(Tp.LOCFLG),method:Z.readUInt16LE(Tp.LOCHOW),time:Z.readUInt32LE(Tp.LOCTIM),crc:Z.readUInt32LE(Tp.LOCCRC),compressedSize:Z.readUInt32LE(Tp.LOCSIZ),size:Z.readUInt32LE(Tp.LOCLEN),fnameLen:Z.readUInt16LE(Tp.LOCNAM),extraLen:Z.readUInt16LE(Tp.LOCEXT)}},loadFromBinary:function(qe){if(qe.length!==Tp.CENHDR||qe.readUInt32LE(0)!==Tp.CENSIG)throw new Error(Ap.Errors.INVALID_CEN);e=qe.readUInt16LE(Tp.CENVEM),Z=qe.readUInt16LE(Tp.CENVER),ie=qe.readUInt16LE(Tp.CENFLG),ae=qe.readUInt16LE(Tp.CENHOW),de=qe.readUInt32LE(Tp.CENTIM),ve=qe.readUInt32LE(Tp.CENCRC),be=qe.readUInt32LE(Tp.CENSIZ),Ce=qe.readUInt32LE(Tp.CENLEN),ke=qe.readUInt16LE(Tp.CENNAM),Ie=qe.readUInt16LE(Tp.CENEXT),_e=qe.readUInt16LE(Tp.CENCOM),Fe=qe.readUInt16LE(Tp.CENDSK),Oe=qe.readUInt16LE(Tp.CENATT),Be=qe.readUInt32LE(Tp.CENATX),Me=qe.readUInt32LE(Tp.CENOFF)},dataHeaderToBinary:function(){var e=Buffer.alloc(Tp.LOCHDR);return e.writeUInt32LE(Tp.LOCSIG,0),e.writeUInt16LE(Z,Tp.LOCVER),e.writeUInt16LE(ie,Tp.LOCFLG),e.writeUInt16LE(ae,Tp.LOCHOW),e.writeUInt32LE(de,Tp.LOCTIM),e.writeUInt32LE(ve,Tp.LOCCRC),e.writeUInt32LE(be,Tp.LOCSIZ),e.writeUInt32LE(Ce,Tp.LOCLEN),e.writeUInt16LE(ke,Tp.LOCNAM),e.writeUInt16LE(Ie,Tp.LOCEXT),e},entryHeaderToBinary:function(){var qe=Buffer.alloc(Tp.CENHDR+ke+Ie+_e);return qe.writeUInt32LE(Tp.CENSIG,0),qe.writeUInt16LE(e,Tp.CENVEM),qe.writeUInt16LE(Z,Tp.CENVER),qe.writeUInt16LE(ie,Tp.CENFLG),qe.writeUInt16LE(ae,Tp.CENHOW),qe.writeUInt32LE(de,Tp.CENTIM),qe.writeUInt32LE(ve,Tp.CENCRC),qe.writeUInt32LE(be,Tp.CENSIZ),qe.writeUInt32LE(Ce,Tp.CENLEN),qe.writeUInt16LE(ke,Tp.CENNAM),qe.writeUInt16LE(Ie,Tp.CENEXT),qe.writeUInt16LE(_e,Tp.CENCOM),qe.writeUInt16LE(Fe,Tp.CENDSK),qe.writeUInt16LE(Oe,Tp.CENATT),qe.writeUInt32LE(Be,Tp.CENATX),qe.writeUInt32LE(Me,Tp.CENOFF),qe.fill(0,Tp.CENHDR),qe},toJSON:function(){const bytes=function(e){return e+" bytes"};return{made:e,version:Z,flags:ie,method:Ap.methodToString(ae),time:this.time,crc:"0x"+ve.toString(16).toUpperCase(),compressedSize:bytes(be),size:bytes(Ce),fileNameLength:bytes(ke),extraLength:bytes(Ie),commentLength:bytes(_e),diskNumStart:Fe,inAttr:Oe,attr:Be,offset:Me,entryHeaderSize:bytes(Tp.CENHDR+ke+Ie+_e)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},MainHeader=function(){var e=0,Z=0,ie=0,ae=0,de=0;return{get diskEntries(){return e},set diskEntries(ie){e=Z=ie},get totalEntries(){return Z},set totalEntries(ie){Z=e=ie},get size(){return ie},set size(e){ie=e},get offset(){return ae},set offset(e){ae=e},get commentLength(){return de},set commentLength(e){de=e},get mainHeaderSize(){return Sp.ENDHDR+de},loadFromBinary:function(ve){if((ve.length!==Sp.ENDHDR||ve.readUInt32LE(0)!==Sp.ENDSIG)&&(ve.length<Sp.ZIP64HDR||ve.readUInt32LE(0)!==Sp.ZIP64SIG))throw new Error(Ap.Errors.INVALID_END);ve.readUInt32LE(0)===Sp.ENDSIG?(e=ve.readUInt16LE(Sp.ENDSUB),Z=ve.readUInt16LE(Sp.ENDTOT),ie=ve.readUInt32LE(Sp.ENDSIZ),ae=ve.readUInt32LE(Sp.ENDOFF),de=ve.readUInt16LE(Sp.ENDCOM)):(e=Ap.readBigUInt64LE(ve,Sp.ZIP64SUB),Z=Ap.readBigUInt64LE(ve,Sp.ZIP64TOT),ie=Ap.readBigUInt64LE(ve,Sp.ZIP64SIZE),ae=Ap.readBigUInt64LE(ve,Sp.ZIP64OFF),de=0)},toBinary:function(){var ve=Buffer.alloc(Sp.ENDHDR+de);return ve.writeUInt32LE(Sp.ENDSIG,0),ve.writeUInt32LE(0,4),ve.writeUInt16LE(e,Sp.ENDSUB),ve.writeUInt16LE(Z,Sp.ENDTOT),ve.writeUInt32LE(ie,Sp.ENDSIZ),ve.writeUInt32LE(ae,Sp.ENDOFF),ve.writeUInt16LE(de,Sp.ENDCOM),ve.fill(" ",Sp.ENDHDR),ve},toJSON:function(){return{diskEntries:e,totalEntries:Z,size:ie+" bytes",offset:function(e,Z){let ie=e.toString(16).toUpperCase();for(;ie.length<Z;)ie="0"+ie;return"0x"+ie}(ae,4),commentLength:de}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},Pp={EntryHeader:EntryHeader,MainHeader:MainHeader};const{randomFillSync:kp}=_t.default,Np=new Uint32Array(256).map(((e,Z)=>{for(let e=0;e<8;e++)1&Z?Z=Z>>>1^3988292384:Z>>>=1;return Z>>>0})),uMul=(e,Z)=>Math.imul(e,Z)>>>0,crc32update=(e,Z)=>Np[255&(e^Z)]^e>>>8,genSalt=()=>"function"==typeof kp?kp(Buffer.alloc(12)):genSalt.node();genSalt.node=()=>{const e=Buffer.alloc(12),Z=e.length;for(let ie=0;ie<Z;ie++)e[ie]=256*Math.random()&255;return e};const Ip={genSalt:genSalt};function Initkeys(e){const Z=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let e=0;e<Z.length;e++)this.updateKeys(Z[e])}Initkeys.prototype.updateKeys=function(e){const Z=this.keys;return Z[0]=crc32update(Z[0],e),Z[1]+=255&Z[0],Z[1]=uMul(Z[1],134775813)+1,Z[2]=crc32update(Z[2],Z[1]>>>24),e},Initkeys.prototype.next=function(){const e=(2|this.keys[2])>>>0;return uMul(e,1^e)>>8&255};var _p={decrypt:function decrypt(e,Z,ie){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const ae=function make_decrypter(e){const Z=new Initkeys(e);return function(e){const ie=Buffer.alloc(e.length);let ae=0;for(let de of e)ie[ae++]=Z.updateKeys(de^Z.next());return ie}}(ie),de=ae(e.slice(0,12)),ve=8&~Z.flags?Z.crc>>>24:Z.timeHighByte;if(de[11]!==ve)throw"ADM-ZIP: Wrong Password";return ae(e.slice(12))},encrypt:function encrypt(e,Z,ie,ae=!1){null==e&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const de=function make_encrypter(e){const Z=new Initkeys(e);return function(e,ie,ae=0){ie||(ie=Buffer.alloc(e.length));for(let de of e){const e=Z.next();ie[ae++]=de^e,Z.updateKeys(de)}return ie}}(ie),ve=Ip.genSalt();ve[11]=Z.crc>>>24&255,ae&&(ve[10]=Z.crc>>>16&255);const be=Buffer.alloc(e.length+12);return de(ve,be),de(e,be,12)},_salter:function _salter(e){Buffer.isBuffer(e)&&e.length>=12?Ip.genSalt=function(){return e.slice(0,12)}:Ip.genSalt="node"===e?genSalt.node:genSalt}},Deflater=function(e){var Z=Wt.default,ie={chunkSize:1024*(parseInt(e.length/1024)+1)};return{deflate:function(){return Z.deflateRawSync(e,ie)},deflateAsync:function(ae){var de=Z.createDeflateRaw(ie),ve=[],be=0;de.on("data",(function(e){ve.push(e),be+=e.length})),de.on("end",(function(){var e=Buffer.alloc(be),Z=0;e.fill(0);for(var ie=0;ie<ve.length;ie++){var de=ve[ie];de.copy(e,Z),Z+=de.length}ae&&ae(e)})),de.end(e)}}},Inflater=function(e){var Z=Wt.default;return{inflate:function(){return Z.inflateRawSync(e)},inflateAsync:function(ie){var ae=Z.createInflateRaw(),de=[],ve=0;ae.on("data",(function(e){de.push(e),ve+=e.length})),ae.on("end",(function(){var e=Buffer.alloc(ve),Z=0;e.fill(0);for(var ae=0;ae<de.length;ae++){var be=de[ae];be.copy(e,Z),Z+=be.length}ie&&ie(e)})),ae.end(e)}}},Fp={Deflater:Deflater,Inflater:Inflater,ZipCrypto:_p},Op=Ap.Constants,zipEntry=function(e){var Z=new Pp.EntryHeader,ie=Buffer.alloc(0),ae=Buffer.alloc(0),de=!1,ve=null,be=Buffer.alloc(0);function getCompressedDataFromZip(){return e&&Buffer.isBuffer(e)?(Z.loadDataHeaderFromBinary(e),e.slice(Z.realDataOffset,Z.realDataOffset+Z.compressedSize)):Buffer.alloc(0)}function crc32OK(e){return!(8&~Z.flags&&Ap.crc32(e)!==Z.dataHeader.crc)}function decompress(e,ae,ve){if(void 0===ae&&"string"==typeof e&&(ve=e,e=void 0),de)return e&&ae&&ae(Buffer.alloc(0),Ap.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var be=getCompressedDataFromZip();if(0===be.length)return e&&ae&&ae(be),be;if(Z.encripted){if("string"!=typeof ve&&!Buffer.isBuffer(ve))throw new Error("ADM-ZIP: Incompatible password parameter");be=Fp.ZipCrypto.decrypt(be,Z,ve)}var Ce=Buffer.alloc(Z.size);switch(Z.method){case Ap.Constants.STORED:if(be.copy(Ce),crc32OK(Ce))return e&&ae&&ae(Ce),Ce;throw e&&ae&&ae(Ce,Ap.Errors.BAD_CRC),new Error(Ap.Errors.BAD_CRC);case Ap.Constants.DEFLATED:var ke=new Fp.Inflater(be);if(!e){if(ke.inflate(Ce).copy(Ce,0),!crc32OK(Ce))throw new Error(Ap.Errors.BAD_CRC+" "+ie.toString());return Ce}ke.inflateAsync((function(e){e.copy(e,0),ae&&(crc32OK(e)?ae(e):ae(e,Ap.Errors.BAD_CRC))}));break;default:throw e&&ae&&ae(Buffer.alloc(0),Ap.Errors.UNKNOWN_METHOD),new Error(Ap.Errors.UNKNOWN_METHOD)}}function compress(ie,ae){if((!ve||!ve.length)&&Buffer.isBuffer(e))return ie&&ae&&ae(getCompressedDataFromZip()),getCompressedDataFromZip();if(ve.length&&!de){var be;switch(Z.method){case Ap.Constants.STORED:return Z.compressedSize=Z.size,be=Buffer.alloc(ve.length),ve.copy(be),ie&&ae&&ae(be),be;default:case Ap.Constants.DEFLATED:var Ce=new Fp.Deflater(ve);if(!ie){var ke=Ce.deflate();return Z.compressedSize=ke.length,ke}Ce.deflateAsync((function(e){be=Buffer.alloc(e.length),Z.compressedSize=e.length,e.copy(be),ae&&ae(be)})),Ce=null}}else{if(!ie||!ae)return Buffer.alloc(0);ae(Buffer.alloc(0))}}function readUInt64LE(e,Z){return(e.readUInt32LE(Z+4)<<4)+e.readUInt32LE(Z)}function parseZip64ExtendedInformation(e){var ie,ae,de,ve;e.length>=Op.EF_ZIP64_SCOMP&&(ie=readUInt64LE(e,Op.EF_ZIP64_SUNCOMP),Z.size===Op.EF_ZIP64_OR_32&&(Z.size=ie)),e.length>=Op.EF_ZIP64_RHO&&(ae=readUInt64LE(e,Op.EF_ZIP64_SCOMP),Z.compressedSize===Op.EF_ZIP64_OR_32&&(Z.compressedSize=ae)),e.length>=Op.EF_ZIP64_DSN&&(de=readUInt64LE(e,Op.EF_ZIP64_RHO),Z.offset===Op.EF_ZIP64_OR_32&&(Z.offset=de)),e.length>=Op.EF_ZIP64_DSN+4&&(ve=e.readUInt32LE(Op.EF_ZIP64_DSN),Z.diskNumStart===Op.EF_ZIP64_OR_16&&(Z.diskNumStart=ve))}return{get entryName(){return ie.toString()},get rawEntryName(){return ie},set entryName(e){var ae=(ie=Ap.toBuffer(e))[ie.length-1];de=47===ae||92===ae,Z.fileNameLength=ie.length},get extra(){return be},set extra(e){be=e,Z.extraLength=e.length,function parseExtra(e){for(var Z,ie,ae,de=0;de<e.length;)Z=e.readUInt16LE(de),de+=2,ie=e.readUInt16LE(de),de+=2,ae=e.slice(de,de+ie),de+=ie,Op.ID_ZIP64===Z&&parseZip64ExtendedInformation(ae)}(e)},get comment(){return ae.toString()},set comment(e){ae=Ap.toBuffer(e),Z.commentLength=ae.length},get name(){var e=ie.toString();return de?e.substr(e.length-1).split("/").pop():e.split("/").pop()},get isDirectory(){return de},getCompressedData:function(){return compress(!1,null)},getCompressedDataAsync:function(e){compress(!0,e)},setData:function(e){ve=Ap.toBuffer(e),!de&&ve.length?(Z.size=ve.length,Z.method=Ap.Constants.DEFLATED,Z.crc=Ap.crc32(e),Z.changed=!0):Z.method=Ap.Constants.STORED},getData:function(e){return Z.changed?ve:decompress(!1,null,e)},getDataAsync:function(e,ie){Z.changed?e(ve):decompress(!0,e,ie)},set attr(e){Z.attr=e},get attr(){return Z.attr},set header(e){Z.loadFromBinary(e)},get header(){return Z},packHeader:function(){var e=Z.entryHeaderToBinary(),de=Ap.Constants.CENHDR;return ie.copy(e,de),de+=ie.length,Z.extraLength&&(be.copy(e,de),de+=Z.extraLength),Z.commentLength&&ae.copy(e,de),e},toJSON:function(){const bytes=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:Z.toJSON(),compressedData:bytes(e),data:bytes(ve)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}},zipFile=function(e,Z){var ie=[],ae={},de=Buffer.alloc(0),ve=new Pp.MainHeader,be=!1;const Ce=Object.assign(Object.create(null),Z),{noSort:ke}=Ce;function readEntries(){be=!0,ae={},ie=new Array(ve.diskEntries);for(var Z=ve.offset,de=0;de<ie.length;de++){var Ce=Z,ke=new zipEntry(e);ke.header=e.slice(Ce,Ce+=Ap.Constants.CENHDR),ke.entryName=e.slice(Ce,Ce+=ke.header.fileNameLength),ke.header.extraLength&&(ke.extra=e.slice(Ce,Ce+=ke.header.extraLength)),ke.header.commentLength&&(ke.comment=e.slice(Ce,Ce+ke.header.commentLength)),Z+=ke.header.entryHeaderSize,ie[de]=ke,ae[ke.entryName]=ke}}function sortEntries(){ie.length>1&&!ke&&ie.sort(((e,Z)=>e.entryName.toLowerCase().localeCompare(Z.entryName.toLowerCase())))}return e?function readMainHeader(Z){var ie=e.length-Ap.Constants.ENDHDR,ae=Math.max(0,ie-65535),be=ae,Ce=e.length,ke=-1,Ie=0;for(;ie>=be;ie--)if(80===e[ie])if(e.readUInt32LE(ie)!==Ap.Constants.ENDSIG)if(e.readUInt32LE(ie)!==Ap.Constants.END64SIG){if(e.readUInt32LE(ie)===Ap.Constants.ZIP64SIG){ke=ie,Ce=ie+Ap.readBigUInt64LE(e,ie+Ap.Constants.ZIP64SIZE)+Ap.Constants.ZIP64LEAD;break}}else be=ae;else ke=ie,Ie=ie,Ce=ie+Ap.Constants.ENDHDR,be=ie-Ap.Constants.END64HDR;if(!~ke)throw new Error(Ap.Errors.INVALID_FORMAT);ve.loadFromBinary(e.slice(ke,Ce)),ve.commentLength&&(de=e.slice(Ie+Ap.Constants.ENDHDR));Z&&readEntries()}(Ce.readEntries):be=!0,{get entries(){return be||readEntries(),ie},get comment(){return de.toString()},set comment(e){de=Ap.toBuffer(e),ve.commentLength=de.length},getEntryCount:function(){return be?ie.length:ve.diskEntries},forEach:function(Z){be?ie.forEach(Z):function iterateEntries(Z){const ie=ve.diskEntries;let ae=ve.offset;for(let de=0;de<ie;de++){let ie=ae;const de=new zipEntry(e);de.header=e.slice(ie,ie+=Ap.Constants.CENHDR),de.entryName=e.slice(ie,ie+=de.header.fileNameLength),ae+=de.header.entryHeaderSize,Z(de)}}(Z)},getEntry:function(e){return be||readEntries(),ae[e]||null},setEntry:function(e){be||readEntries(),ie.push(e),ae[e.entryName]=e,ve.totalEntries=ie.length},deleteEntry:function(e){be||readEntries();var Z=ae[e];if(Z&&Z.isDirectory){var de=this;this.getEntryChildren(Z).forEach((function(Z){Z.entryName!==e&&de.deleteEntry(Z.entryName)}))}ie.splice(ie.indexOf(Z),1),delete ae[e],ve.totalEntries=ie.length},getEntryChildren:function(e){if(be||readEntries(),e&&e.isDirectory){const Z=[],ae=e.entryName,de=ae.length;return ie.forEach((function(e){e.entryName.substr(0,de)===ae&&Z.push(e)})),Z}return[]},compressToBuffer:function(){be||readEntries(),sortEntries();const e=[],Z=[];let ae=0,Ce=0;ve.size=0,ve.offset=0;for(const de of ie){const ie=de.getCompressedData();de.header.offset=Ce;const be=de.header.dataHeaderToBinary(),ke=de.rawEntryName.length,Ie=Buffer.alloc(ke+de.extra.length);de.rawEntryName.copy(Ie,0),de.extra.copy(Ie,ke);const _e=be.length+Ie.length+ie.length;Ce+=_e,e.push(be),e.push(Ie),e.push(ie);const Fe=de.packHeader();Z.push(Fe),ve.size+=Fe.length,ae+=_e+Fe.length}ae+=ve.mainHeaderSize,ve.offset=Ce,Ce=0;const ke=Buffer.alloc(ae);for(const Z of e)Z.copy(ke,Ce),Ce+=Z.length;for(const e of Z)e.copy(ke,Ce),Ce+=e.length;const Ie=ve.toBinary();return de&&de.copy(Ie,Ap.Constants.ENDHDR),Ie.copy(ke,Ce),ke},toAsyncBuffer:function(e,Z,ae,Ce){try{be||readEntries(),sortEntries();const Z=[],ke=[];let Ie=0,_e=0;ve.size=0,ve.offset=0;const compress2Buffer=function(ie){if(ie.length){const e=ie.pop(),de=e.entryName+e.extra.toString();ae&&ae(de),e.getCompressedDataAsync((function(ae){Ce&&Ce(de),e.header.offset=_e;const be=e.header.dataHeaderToBinary(),Fe=Buffer.alloc(de.length,de),Oe=be.length+Fe.length+ae.length;_e+=Oe,Z.push(be),Z.push(Fe),Z.push(ae);const Be=e.packHeader();ke.push(Be),ve.size+=Be.length,Ie+=Oe+Be.length,compress2Buffer(ie)}))}else{Ie+=ve.mainHeaderSize,ve.offset=_e,_e=0;const ie=Buffer.alloc(Ie);Z.forEach((function(e){e.copy(ie,_e),_e+=e.length})),ke.forEach((function(e){e.copy(ie,_e),_e+=e.length}));const ae=ve.toBinary();de&&de.copy(ae,Ap.Constants.ENDHDR),ae.copy(ie,_e),e(ie)}};compress2Buffer(ie)}catch(e){Z(e)}}}};const get_Bool=(e,Z)=>"boolean"==typeof e?e:Z,get_Str=(e,Z)=>"string"==typeof e?e:Z,Lp={noSort:!1,readEntries:!1,method:Ap.Constants.NONE,fs:null};var admZip=function(e,Z){let ie=null;const ae=Object.assign(Object.create(null),Lp);e&&"object"==typeof e&&(e instanceof Uint8Array||(Object.assign(ae,e),e=ae.input?ae.input:void 0,ae.input&&delete ae.input),Buffer.isBuffer(e)&&(ie=e,ae.method=Ap.Constants.BUFFER,e=void 0)),Object.assign(ae,Z);const de=new Ap(ae);if(e&&"string"==typeof e){if(!de.fs.existsSync(e))throw new Error(Ap.Errors.INVALID_FILENAME);ae.method=Ap.Constants.FILE,ae.filename=e,ie=de.fs.readFileSync(e)}const ve=new zipFile(ie,ae),{canonical:be,sanitize:Ce}=Ap;function getEntry(e){var Z;if(e&&ve&&("string"==typeof e&&(Z=ve.getEntry(e)),"object"==typeof e&&void 0!==e.entryName&&void 0!==e.header&&(Z=ve.getEntry(e.entryName)),Z))return Z;return null}function fixPath(e){const{join:Z,normalize:ie,sep:ae}=yt.default.posix;return Z(".",ie(ae+e.split("\\").join(ae)+ae))}return{readFile:function(e,Z){var ie=getEntry(e);return ie&&ie.getData(Z)||null},readFileAsync:function(e,Z){var ie=getEntry(e);ie?ie.getDataAsync(Z):Z(null,"getEntry failed for:"+e)},readAsText:function(e,Z){var ie=getEntry(e);if(ie){var ae=ie.getData();if(ae&&ae.length)return ae.toString(Z||"utf8")}return""},readAsTextAsync:function(e,Z,ie){var ae=getEntry(e);ae?ae.getDataAsync((function(e,ae){ae?Z(e,ae):e&&e.length?Z(e.toString(ie||"utf8")):Z("")})):Z("")},deleteFile:function(e){var Z=getEntry(e);Z&&ve.deleteEntry(Z.entryName)},addZipComment:function(e){ve.comment=e},getZipComment:function(){return ve.comment||""},addZipEntryComment:function(e,Z){var ie=getEntry(e);ie&&(ie.comment=Z)},getZipEntryComment:function(e){var Z=getEntry(e);return Z&&Z.comment||""},updateFile:function(e,Z){var ie=getEntry(e);ie&&ie.setData(Z)},addLocalFile:function(e,Z,ie,ae){if(!de.fs.existsSync(e))throw new Error(Ap.Errors.FILE_NOT_FOUND.replace("%s",e));{Z=Z?fixPath(Z):"";var ve=e.split("\\").join("/").split("/").pop();Z+=ie||ve;const be=de.fs.statSync(e);this.addFile(Z,de.fs.readFileSync(e),ae,be)}},addLocalFolder:function(e,Z,ie,ae){var ve;if(ie instanceof RegExp?(ve=ie,ie=function(e){return ve.test(e)}):"function"!=typeof ie&&(ie=function(){return!0}),Z=Z?fixPath(Z):"",e=yt.default.normalize(e),!de.fs.existsSync(e))throw new Error(Ap.Errors.FILE_NOT_FOUND.replace("%s",e));{const ve=de.findFiles(e),be=this;ve.length&&ve.forEach((function(ve){var Ce=yt.default.relative(e,ve).split("\\").join("/");if(ie(Ce)){var ke=de.fs.statSync(ve);ke.isFile()?be.addFile(Z+Ce,de.fs.readFileSync(ve),"",ae||ke):be.addFile(Z+Ce+"/",Buffer.alloc(0),"",ae||ke)}}))}},addLocalFolderAsync:function(e,Z,ie,ae){var ve;ae instanceof RegExp?(ve=ae,ae=function(e){return ve.test(e)}):"function"!=typeof ae&&(ae=function(){return!0}),ie=ie?fixPath(ie):"",e=yt.default.normalize(e);var be=this;de.fs.open(e,"r",(function(ve){if(ve&&"ENOENT"===ve.code)Z(void 0,Ap.Errors.FILE_NOT_FOUND.replace("%s",e));else if(ve)Z(void 0,ve);else{var Ce=de.findFiles(e),ke=-1,next=function(){if((ke+=1)<Ce.length){var ve=Ce[ke],Ie=yt.default.relative(e,ve).split("\\").join("/");Ie=Ie.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),ae(Ie)?de.fs.stat(ve,(function(e,ae){e&&Z(void 0,e),ae.isFile()?de.fs.readFile(ve,(function(e,de){e?Z(void 0,e):(be.addFile(ie+Ie,de,"",ae),next())})):(be.addFile(ie+Ie+"/",Buffer.alloc(0),"",ae),next())})):process.nextTick((()=>{next()}))}else Z(!0,void 0)};next()}}))},addLocalFolderPromise:function(e,Z){return new Promise(((ie,ae)=>{const{filter:de,zipPath:ve}=Object.assign({},Z);this.addLocalFolderAsync(e,((e,Z)=>{Z&&ae(Z),e&&ie(this)}),ve,de)}))},addFile:function(e,Z,ie,ae){let be=getEntry(e);const Ce=null!=be;Ce||(be=new zipEntry,be.entryName=e),be.comment=ie||"";const ke="object"==typeof ae&&ae instanceof de.fs.Stats;ke&&(be.header.time=ae.mtime);var Ie=be.isDirectory?16:0;let _e=be.isDirectory?16384:32768;_e|=ke?4095&ae.mode:"number"==typeof ae?4095&ae:be.isDirectory?493:420,Ie=(Ie|_e<<16)>>>0,be.attr=Ie,be.setData(Z),Ce||ve.setEntry(be)},getEntries:function(e){return ve.password=e,ve?ve.entries:[]},getEntry:function(e){return getEntry(e)},getEntryCount:function(){return ve.getEntryCount()},forEach:function(e){return ve.forEach(e)},extractEntryTo:function(e,Z,ie,ae,ke,Ie){ae=get_Bool(ae,!1),ke=get_Bool(ke,!1),ie=get_Bool(ie,!0),Ie=get_Str(Ie,get_Str(ke,void 0));var _e=getEntry(e);if(!_e)throw new Error(Ap.Errors.NO_ENTRY);var Fe=be(_e.entryName),Oe=Ce(Z,Ie&&!_e.isDirectory?Ie:ie?Fe:yt.default.basename(Fe));if(_e.isDirectory)return ve.getEntryChildren(_e).forEach((function(e){if(e.isDirectory)return;var ve=e.getData();if(!ve)throw new Error(Ap.Errors.CANT_EXTRACT_FILE);var Ie=be(e.entryName),_e=Ce(Z,ie?Ie:yt.default.basename(Ie));const Fe=ke?e.header.fileAttr:void 0;de.writeFileTo(_e,ve,ae,Fe)})),!0;var Be=_e.getData(ve.password);if(!Be)throw new Error(Ap.Errors.CANT_EXTRACT_FILE);if(de.fs.existsSync(Oe)&&!ae)throw new Error(Ap.Errors.CANT_OVERRIDE);const Me=ke?e.header.fileAttr:void 0;return de.writeFileTo(Oe,Be,ae,Me),!0},test:function(e){if(!ve)return!1;for(var Z in ve.entries)try{if(Z.isDirectory)continue;if(!ve.entries[Z].getData(e))return!1}catch(e){return!1}return!0},extractAllTo:function(e,Z,ie,ae){if(Z=get_Bool(Z,!1),ae=get_Str(ie,ae),ie=get_Bool(ie,!1),!ve)throw new Error(Ap.Errors.NO_ZIP);ve.entries.forEach((function(ve){var ke=Ce(e,be(ve.entryName.toString()));if(ve.isDirectory)return void de.makeDir(ke);var Ie=ve.getData(ae);if(!Ie)throw new Error(Ap.Errors.CANT_EXTRACT_FILE);const _e=ie?ve.header.fileAttr:void 0;de.writeFileTo(ke,Ie,Z,_e);try{de.fs.utimesSync(ke,ve.header.time,ve.header.time)}catch(e){throw new Error(Ap.Errors.CANT_EXTRACT_FILE)}}))},extractAllToAsync:function(e,Z,ie,ae){if(Z=get_Bool(Z,!1),"function"!=typeof ie||ae||(ae=ie),ie=get_Bool(ie,!1),ae||(ae=function(e){throw new Error(e)}),!ve)return void ae(new Error(Ap.Errors.NO_ZIP));e=yt.default.resolve(e);const getPath=Z=>Ce(e,yt.default.normalize(be(Z.entryName.toString()))),getError=(e,Z)=>new Error(e+': "'+Z+'"'),ke=[],Ie=new Set;ve.entries.forEach((e=>{e.isDirectory?ke.push(e):Ie.add(e)}));for(const e of ke){const Z=getPath(e),ve=ie?e.header.fileAttr:void 0;try{de.makeDir(Z),ve&&de.fs.chmodSync(Z,ve),de.fs.utimesSync(Z,e.header.time,e.header.time)}catch(e){ae(getError("Unable to create folder",Z))}}const done=()=>{0===Ie.size&&ae()};for(const ve of Ie.values()){const ke=yt.default.normalize(be(ve.entryName.toString())),_e=Ce(e,ke);ve.getDataAsync((function(e,be){if(be)ae(new Error(be));else if(e){const be=ie?ve.header.fileAttr:void 0;de.writeFileToAsync(_e,e,Z,be,(function(e){e?de.fs.utimes(_e,ve.header.time,ve.header.time,(function(e){e?ae(getError("Unable to set times",_e)):(done(),Ie.delete(ve))})):ae(getError("Unable to write file",_e))}))}else ae(new Error(Ap.Errors.CANT_EXTRACT_FILE))}))}done()},writeZip:function(e,Z){if(1===arguments.length&&"function"==typeof e&&(Z=e,e=""),!e&&ae.filename&&(e=ae.filename),e){var ie=ve.compressToBuffer();if(ie){var be=de.writeFileTo(e,ie,!0);"function"==typeof Z&&Z(be?null:new Error("failed"),"")}}},writeZipPromise:function(e,Z){const{overwrite:ie,perm:ve}=Object.assign({overwrite:!0},Z);return new Promise(((Z,be)=>{!e&&ae.filename&&(e=ae.filename),e||be("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then((ae=>{de.writeFileToAsync(e,ae,ie,ve,(e=>e?Z(e):be("ADM-ZIP: Wasn't able to write zip file")))}),be)}))},toBufferPromise:function(){return new Promise(((e,Z)=>{ve.toAsyncBuffer(e,Z)}))},toBuffer:function(e,Z,ie,ae){return this.valueOf=2,"function"==typeof e?(ve.toAsyncBuffer(e,Z,ie,ae),null):ve.compressToBuffer()}}};function extractTemplate(e,Z){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(ie){try{console.log("Extracting template..."),new admZip(e).extractAllTo(Z,!0),Dt.default.unlinkSync(e)}catch(e){throw console.error("Error extracting template:",e),e}return[2]}))}))}function downloadAndExtractTemplate(e,Z,ie){return __awaiter(this,void 0,void 0,(function(){var ae,de,ve,be;return __generator(this,(function(Ce){switch(Ce.label){case 0:return Ce.trys.push([0,5,,6]),console.log("Downloading template from ".concat(e,"...")),[4,sr.default.ensureDir(Z)];case 1:return Ce.sent(),ae="".concat(Z,"/template").concat(Date.now(),".zip"),[4,downloadFile(e,ae)];case 2:return Ce.sent(),console.log("Template downloaded."),[4,extractTemplate(ae,Z)];case 3:return Ce.sent(),[4,sr.default.readdir(Z,{withFileTypes:!0})];case 4:if(de=Ce.sent(),(ve=de.find((function(e){return e.isDirectory()&&(e.name.startsWith(ie.zipName||"---")||e.name===ie.zipName)})))||(ve=de[0]),!ve)throw new Error("Failed to find the extracted template directory.");return[2,"".concat(Z,"/").concat(ve.name)];case 5:throw be=Ce.sent(),console.error("Error downloading or extracting template: ",be),be;case 6:return[2]}}))}))}function getTemplate(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae;return __generator(this,(function(de){switch(de.label){case 0:return[4,request("/material/templates",{},{method:"GET"})];case 1:return Z=de.sent(),ie=Z.data,ae=ie.find((function(Z){return Z.name===e})),[2,ae]}}))}))}function updateProjectTemplate(e){return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze;return __generator(this,(function(et){switch(et.label){case 0:return ie=Et.readFileSync("./package.json","utf8"),ae=JSON.parse(ie),de=ae.appthen,Ce=(be=de||{}).template,ke=void 0===Ce?e||"vite":Ce,Ie=be.templateVersion,_e=void 0===Ie?"taro"===e?"0.0.0":"0.0.3":Ie,"vite"===ke&&"taro"===e&&(ke="taro",_e="0.0.0"),[4,request("/material/check-template-update",{template:ke,templateVersion:_e},{method:"POST"})];case 1:return Fe=et.sent(),(Oe=Fe.data)?[4,getTemplate(ke)]:[2];case 2:return(Be=et.sent())?(Me=null==Be?void 0:Be.url,qe="./node_modules/@appthen/templates-".concat(ke),qe=gt.resolve(qe),[4,downloadAndExtractTemplate(Me,qe,Be)]):(console.error("Template not found"),[2]);case 3:return qe=et.sent(),Ve=gt.resolve("."),Oe.files_changed.forEach((function(e){var ie=gt.join(qe,e.file_path),ae=gt.join(Ve,e.file_path);switch(e.change_type){case"add":if(Et.existsSync(ie)){var de=gt.dirname(ae);Et.existsSync(de)||Et.mkdirSync(de,{recursive:!0}),Et.copyFileSync(ie,ae),console.log("Added ".concat(ie," to ").concat(ae))}else console.error("Source file not found for addition: ".concat(ie));break;case"modify":if(ve.existsSync(ie)){de=Z.dirname(ae);ve.existsSync(de)||Et.mkdirSync(de,{recursive:!0}),ve.copyFileSync(ie,ae),console.log("Copied ".concat(ie," to ").concat(ae))}else console.error("Source file not found: ".concat(ie));break;case"delete":ve.existsSync(ae)&&(Et.unlinkSync(ae),console.log("Deleted ".concat(ae)));break;default:console.warn("Unknown change type: ".concat(e.change_type))}})),Ze=Oe.version_number,ae.appthen=__assign(__assign({},ae.appthen),{template:ke,templateVersion:Ze}),Et.writeFileSync("./package.json",JSON.stringify(ae,null,2),"utf8"),console.log("Project template has been updated to version ".concat(Ze)),[2]}}))}))}var Bp=require("fs-extra"),Mp="$__cacheTime";function run(e,Z){var ie,de,ve,be;return __awaiter(this,void 0,void 0,(function(){var e,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze,et,tt,ct,ut,lt,pt,mt,gt,Et,Dt,St,kt,It,_t,Ft,Ut,qt,Ht,Vt,Gt,Jt,Wt,Xt,Yt,Zt,tr,sr,nr,ir,ar;return __generator(this,(function(or){switch(or.label){case 0:e=yt.default.join(vt.default.homedir(),".cache","mengti_temp"),Ce=yt.default.join(vt.default.homedir(),".cache","mengti_translate"),Z.clear&&removeDir(Ce),ke=yt.default.join(process.cwd()+"/"+(Z.output||""))+Mp,or.label=1;case 1:return or.trys.push([1,15,,16]),Ie=Va.getKey(ke),console.log("[最后同步时间] ",Ie?new Date(Number(Ie)).toLocaleString():"无"),_e=Ie&&!Z.clear?Number(Ie):0,updateAuthToken(Z.auth),console.log("[INFO] 开始下载项目... "),[4,loadSchema({projectId:Z.id,auth:Z.auth,filter:Z.filter,folder:Z.folder,frame:Z.frame,afterTime:_e})];case 2:return Fe=or.sent(),Oe=Fe.schema,Be=Fe.project,Me=Fe.documents,qe=Fe.componentDocs,Ve=Fe.packageJSON,Ze=Be.documents||[],et=Ze.map((function(e){return e.fileName})),tt=(null===(ie=Be.appConfig)||void 0===ie?void 0:ie.subPages)||[],ct=Z.frame||(null==Be?void 0:Be.type),[4,updateProjectTemplate(lt=(ut="web"===ct)?"vite":"taro")];case 3:return or.sent(),Be&&0!==Me.length?(pt=Z.output,mt=function createRuoqingCodeGeneratorProjectBuilder(e){return bt.default.createProjectBuilder({template:Fl.template,plugins:{components:[pluginFactory$6(),pluginFactory$2({fileType:"jsx"}),pluginFactory$5(e),pluginFactory$4(e),pluginFactory$7(),bt.default.plugins.react.containerInitState(),bt.default.plugins.react.containerLifeCycle(),pluginFactory$3(),pluginFactory$8(),pluginFactory$1({nodeTypeMapping:{Div:"View",Component:"React.Fragment",Page:"View",Block:"React.Fragment"}}),bt.default.plugins.style.css()],pages:[pluginFactory$6(),pluginFactory$2({fileType:"jsx"}),pluginFactory$5(e),pluginFactory$4(e),pluginFactory$7(),bt.default.plugins.react.containerInitState(),bt.default.plugins.react.containerLifeCycle(),pluginFactory$3(),pluginFactory$8(),pluginFactory$1({nodeTypeMapping:{Div:"div",Component:"React.Fragment",Page:"Page",Block:"React.Fragment"}}),bt.default.plugins.style.css()],router:[bt.default.plugins.common.esmodule(),Fl.plugins.router()],entry:[Fl.plugins.entry()],constants:[bt.default.plugins.project.constants()],utils:[bt.default.plugins.common.esmodule(),pluginFactory("react")],i18n:[bt.default.plugins.project.i18n()],globalStyle:[Fl.plugins.globalStyle()],htmlEntry:[Fl.plugins.entryHtml()],packageJSON:[Fl.plugins.packageJSON()]},postProcessors:[factory()]})}({type:ct,solution:lt}),Z.env&&(gt=null===(ve=null===(de=Be.envInfo)||void 0===de?void 0:de.list)||void 0===ve?void 0:ve.find((function(e){return e.alias===Z.env})),gt&&(Oe.constants=__assign(__assign({},Oe.constants),getPureValue(gt.data)))),[4,mt.generateProject(Oe)]):(console.log(ft.default.yellow("提示:无文件更新,请确认是否保存!如需更新全部,请勾选清除缓存")),[2,0]);case 4:return(Et=or.sent()).files=Et.files.filter((function(e){return"css"===e.ext||"jsx"===e.ext})),Dt=bt.default.publishers.disk(),removeDir(e),[4,Dt.publish({project:Et,outputPath:e,projectSlug:"example",createProjectFolder:!1})];case 5:return or.sent(),Bp.existsSync("./".concat(pt,"/"))||Bp.mkdirSync("./".concat(pt,"/"),{recursive:!0}),St="sub",kt="./".concat(null==pt?void 0:pt.replace("pages",St),"/"),!(It=Bp.existsSync(kt))&&tt.length>0&&Bp.mkdirSync(kt,{recursive:!0}),_t=function(e,Z){if(e.path==="./".concat(pt,"/"))return"".concat(null==pt?void 0:pt.replace("src/",""),"/").concat(e.fileName.split(".")[0]);var ie=null==pt?void 0:pt.replace("src/","");return Z&&(ie=null==ie?void 0:ie.replace("pages",Z)),"".concat(ie,"/").concat(e.name,"/index")},Ft=function(e){return St&&e.path.includes("pages")&&tt.includes(e.name)?e.path.replace("pages",St):e.path},[4,getAllFile("./".concat(pt,"/"))];case 6:return Ut=or.sent(),It?[4,getAllFile(kt)]:[3,8];case 7:return Ht=or.sent(),[3,9];case 8:Ht=[],or.label=9;case 9:return qt=Ht,[4,getAllFile(e+"/")];case 10:Vt=or.sent(),Gt={components:Ut.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return et.includes(e)})),pages:Ut.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 et.includes(e)&&!tt.includes(e)})),pageUrls:Ut.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes("pages")&&!e.path.includes("components")})).filter((function(e){return et.includes(e.name)&&!tt.includes(e.name)})).map((function(e){return _t(e)})),subPages:qt.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes(St)&&!e.path.includes("components")})).map((function(e){return e.name})).filter((function(e){return et.includes(e)&&tt.includes(e)})),subPageUrls:qt.filter((function(e){return["tsx","jsx"].includes(e.ext)&&e.path.includes(St)&&!e.path.includes("components")})).filter((function(e){return et.includes(e.name)&&tt.includes(e.name)})).map((function(e){return _t(e,St)}))},Jt=function(Z){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Ve,Ze,et,ct,mt,ft,yt,gt;return __generator(this,(function(vt){switch(vt.label){case 0:return(ie=Vt[Z]).path.includes("/BasicLayout/")?[3,10]:(ae=ie.name,de=ie.ext,Ft(ie),"js"!==de||"utils.js"!==ie.fileName?[3,2]:[4,transformUtils(ie,Oe,Be,lt)]);case 1:vt.sent(),vt.label=2;case 2:return"css"!==de&&"scss"!==de||(ve=ie.path+"/"+ie.fileName,"taro"===lt?(Bp.renameSync(ie.path+"/"+ie.fileName,ie.path+"/"+ie.fileName.replace("css","scss")),ve=ie.path+"/"+ie.fileName.replace("css","scss")):"scss"===de&&(Bp.renameSync(ie.path+"/"+ie.fileName,ie.path+"/"+ie.fileName.replace("scss","css")),ve=ie.path+"/"+ie.fileName.replace("scss","css")),(be=Bp.readFileSync(ve,"utf8"))&&be.includes("calc")&&Bp.writeFileSync(ve,be.replace(/ /g," "),"utf8")),"jsx"!==de&&"tsx"!==de?[3,10]:(Ce=Me.concat(qe).find((function(e){return e.fileName.toLowerCase()===ae.toLowerCase()})),"Page"===(null==Ce?void 0:Ce.type)&&(Gt.pages.includes(ae)||tt.includes(ae)||(Gt.pages.push(ae),Gt.pageUrls.push(_t(ie))),!Gt.subPages.includes(ae)&&tt.includes(ae)&&(Gt.subPages.push(ae),Gt.subPageUrls.push(_t(ie,St)))),"Component"===(null==Ce?void 0:Ce.type)&&(Gt.components.includes(ae)||Gt.components.push(ae)),console.log("[BUILD FILE]",ie.name),[4,transformJsx(ie,lt,pt)]);case 3:for(ke=vt.sent(),Ie=ke.code,_e=ke.images,Fe=ke.svgs,Bp.writeFileSync(ie.path+"/"+ie.fileName,Ie),Bp.renameSync(ie.path+"/"+ie.fileName,ie.path+"/"+(ut?ie.fileName:ie.fileName.replace("jsx","tsx"))),ut||"Page"!==(null==Ce?void 0:Ce.type)||((Ve=["export default definePageConfig({"]).push(" navigationBarTitleText: '".concat(Ce.title,"',")),Ve.push(" navigationStyle: '".concat("custom","',")),Ve.push(" disableScroll: true,"),Ve.push("})"),Bp.writeFileSync(ie.path+"/index.config.ts",Ve.join("\n"))),Ze=[],et=[],mt=0;mt<Fe.length;mt++)if((ct=Fe[mt]).svgStr&&ct.fileName)try{Bp.existsSync(ie.path+"/icons")||Bp.mkdirSync(ie.path+"/icons"),Bp.writeFileSync(ie.path+"/icons/"+ct.fileName+".svg",ct.svgStr),Ze.push("import ".concat(ct.fileName," from './").concat(ct.fileName,".svg").concat("vite"===lt?"?raw":"","';")),et.push(" ".concat(ct.fileName,","))}catch(e){console.log("[saveSvg Error] ",e)}Ze.length>0&&Bp.writeFileSync(ie.path+"/icons/index.ts",Ze.concat(["const ICONS = {"]).concat(et).concat(["}"]).concat("export default ICONS;").join("\n")),mt=0,vt.label=4;case 4:if(!(mt<_e.length))return[3,9];if(!(ft=_e[mt]).url||!ft.fileName)return[3,8];vt.label=5;case 5:return vt.trys.push([5,7,,8]),Bp.existsSync(ie.path+"/images")||Bp.mkdirSync(ie.path+"/images"),[4,downloadFile(ft.url,ie.path+"/images/"+ft.fileName)];case 6:return vt.sent(),[3,8];case 7:return yt=vt.sent(),console.log("[downloadFile Error] ",yt),[3,8];case 8:return mt++,[3,4];case 9:gt="./".concat(tt.includes(ie.name)?null==pt?void 0:pt.replace("pages",St):pt,"/").concat(ie.name),"Component"===(null==Ce?void 0:Ce.type)&&(gt="./".concat(pt,"/components/").concat(ie.name)),Bp.existsSync(gt)&&removeDir(gt),"Page"===(null==Ce?void 0:Ce.type)&&Bp.copySync("".concat(e,"/src/pages/").concat(ie.name),gt),"Component"===(null==Ce?void 0:Ce.type)&&Bp.copySync("".concat(e,"/src/components/").concat(ie.name),gt),vt.label=10;case 10:return[2]}}))},Wt=0,or.label=11;case 11:return Wt<Vt.length?[5,Jt(Wt)]:[3,14];case 12:or.sent(),or.label=13;case 13:return Wt++,[3,11];case 14:return Va.setKey(ke,String(Date.now())),(Xt=null===(be=Be.appConfig)||void 0===be?void 0:be.indexPage)&&(Gt.pages=Gt.pages.sort((function(e,Z){return e===Xt?-1:Z===Xt?1:0})),Yt=Gt.pageUrls.find((function(e){return e.includes("/".concat(Xt,"/"))})),Gt.pageUrls=Gt.pageUrls.sort((function(e,Z){return e===Yt?-1:Z===Yt?1:0}))),Bp.writeFileSync("./".concat(pt,"/map.json"),JSON.stringify(Gt)),"vite"===lt?(Zt=Bp.readFileSync("".concat(e,"/src/global.css"),"utf-8"),tr=Zt.split("\n").slice(6).join("\n"),Bp.writeFileSync("./src/App.css",tr)):(Zt=Bp.readFileSync("".concat(e,"/src/global.sscss"),"utf-8"),tr=Zt.split("\n").slice(6).join("\n"),Bp.writeFileSync("./src/global.scss",tr),(sr=Bp.readFileSync("./src/app.tsx","utf-8")).includes("import './global.scss'")||(nr=sr.replace("import './app.scss'","import './app.scss'\nimport './global.scss'"),Bp.writeFileSync("./src/app.tsx",nr))),Bp.copyFileSync("".concat(e,"/src/utils.js"),"./src/utils/utils.js"),Bp.copyFileSync("".concat(e,"/src/constants.js"),"./src/utils/constants.js"),ir=createPartalImport(Be,pt,lt),Bp.writeFileSync("./src/utils/portal.js",ir),ut?createAppFile(Be):genAppConfig(Z.frame||Be.type,Be,Gt),writePackageJSON(Ve)&&(console.log("[INFO] package.json 文件已更新,将重新安装依赖"),"pnpm",ae.execSync("".concat("pnpm"," install --registry=https://registry.npmmirror.com"),{stdio:"inherit"}),console.log("[INFO] 本地依赖已更新,请重新启动本地项目")),Va.save(),console.log("[INFO ".concat((new Date).toLocaleString(),"] 代码增量同步完成")),[2,0];case 15:return ar=or.sent(),console.log(ft.default.red(getErrorMessage(ar)||"Unexpected error: ".concat(ar))),Va.removeKey(ke),Va.save(),"object"==typeof ar&&(null==ar?void 0:ar.stack)&&Z.verbose&&console.log(ft.default.gray(ar.stack)),[2,1];case 16:return[2]}}))}))}function loadSchema(e){var Z,ie;return __awaiter(this,void 0,void 0,(function(){var ae,de;return __generator(this,(function(ve){switch(ve.label){case 0:return ve.trys.push([0,2,,3]),[4,request("/editor/getExportDetail",{_id:e.projectId,auth:e.auth,count:!1,folders:null===(Z=null==e?void 0:e.folder)||void 0===Z?void 0:Z.split(","),fileNames:null===(ie=e.filter)||void 0===ie?void 0:ie.split(","),frame:e.frame,afterTime:e.afterTime})];case 1:return"string"==typeof(ae=ve.sent()).data.schema&&(ae.data.schema=JSON.parse(ae.data.schema)),[2,ae.data];case 2:throw de=ve.sent(),console.log("[ERROR] ",de),de;case 3:return[2]}}))}))}var getPureValue=function(e){var Z=e,ie=null==e?void 0:e.__enable;return ie&&(Object.keys(e).forEach((function(e){ie.includes(e)||delete Z[e]})),null==Z||delete Z.__enable),e},getUpToken=function(e,Z){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(ie){switch(ie.label){case 0:return ie.trys.push([0,2,,3]),[4,request("/file/getUploadToken",__assign({},Z))];case 1:return[2,ie.sent().data];case 2:return e=ie.sent(),console.log("getUpToken error: ",e),[3,3];case 3:return[2]}}))}))},uploadFile=function(e,Z){return __awaiter(void 0,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke;return __generator(this,(function(Ie){switch(Ie.label){case 0:return[4,getUpToken(0,Z)];case 1:ie=Ie.sent(),ae=ie.token,de=ie.key,(ve=new Ui).append("file",Et.createReadStream(e.path+"/"+e.fileName)),ve.append("key",de),ve.append("token",ae),Ie.label=2;case 2:return Ie.trys.push([2,4,,5]),[4,la.post("https://up-z0.qiniup.com/",ve,{headers:ve.getHeaders()})];case 3:if(be=Ie.sent(),null===(ke=be.data)||void 0===ke?void 0:ke.hash)return[2,be.data];throw console.log("File upload failed.",be.data),new Error("File upload failed.");case 4:throw Ce=Ie.sent(),console.error("Error uploading file:",Ce),new Error("Error uploading file");case 5:return[2]}}))}))},getExportName=function(e){var Z=/exports\.(\w+)/.exec(e);return Z?Z[1]:""};function ensureDirExists(e){return __awaiter(this,void 0,void 0,(function(){var Z;return __generator(this,(function(ie){switch(ie.label){case 0:return ie.trys.push([0,2,,3]),[4,nr.mkdir(e,{recursive:!0})];case 1:return ie.sent(),[3,3];case 2:if("EEXIST"===(Z=ie.sent()).code)return[2];throw Z;case 3:return[2]}}))}))}function createProjectFromTemplate(e,Z,ie){return __awaiter(this,void 0,void 0,(function(){var ae,de,ve;return __generator(this,(function(be){switch(be.label){case 0:return ae=process.cwd(),de="".concat(ae,"/").concat(ie),[4,downloadAndExtractTemplate(Z,ae,e)];case 1:return ve=be.sent(),[4,sr.default.pathExists(ve)];case 2:return be.sent(),[4,sr.default.rename(ve,de)];case 3:return be.sent(),console.log('Project "'.concat(ie,'" created successfully from template.')),[2]}}))}))}var jp=process.env.DEV,Rp=function(){function SocketStore(e){this.connectState="connecting",this.connectStateText="连接中...",this.roomId="",this.account="",this.config=e}return SocketStore.prototype.joinRoom=function(e){var Z,ie=e.roomId,ae=e.account;this.roomId=ie,this.account=ae,null===(Z=this.socket)||void 0===Z||Z.emit("join",{room:ie,account:ae})},SocketStore.prototype.leaveRoom=function(){var e;null===(e=this.socket)||void 0===e||e.emit("leave",{room:this.roomId,account:this.account})},SocketStore.prototype.sendMessage=function(e){var Z;null===(Z=this.socket)||void 0===Z||Z.emit("message",{room:this.roomId,message:e})},SocketStore.prototype.connect=function(){var e=this,Z=this.config,ie=Z.token,ae=Z.onconnect,de=Z.onlogined,ve=Z.onreconnect,be=Z.onmsg;console.log("token: ",ie);var Ce=ir.default(jp?"ws://127.0.0.1:1626":"wss://editor.appthen.com",{transports:["websocket"],query:{token:ie}});this.onConnectChange("connecting"),Ce.on("opend",(function(Z){e.onConnectChange("connect")})),Ce.on("message",(function(e){jp&&console.log("socket.io message event",e),null==be||be(e)})),Ce.on("connect",(function(){jp&&console.log("socket.io connect event"),ae()})),Ce.on("auth_success",(function(Z){var ie;jp&&console.log("socket.io auth_success event",Z),e.account=null===(ie=null==Z?void 0:Z.data)||void 0===ie?void 0:ie.id,null==de||de(e.account)})),Ce.on("disconnect",(function(){jp&&console.log("socket.io disconnect event"),e.onConnectChange("disconnect")})),Ce.on("connect_error",(function(Z){jp&&console.log("socket.io connect_error event",Z),e.onConnectChange("connect_error")})),Ce.on("connect_timeout",(function(){jp&&console.log("socket.io connect_timeout event"),e.onConnectChange("connect_timeout")})),Ce.on("reconnect",(function(){jp&&console.log("socket.io reconnect event"),null==ve||ve(),e.onConnectChange("reconnect")})),Ce.on("reconnect_attempt",(function(){jp&&console.log("socket.io reconnect_attempt event"),e.onConnectChange("reconnect_attempt")})),Ce.on("reconnecting",(function(){jp&&console.log("socket.io reconnecting event"),e.onConnectChange("reconnecting")})),Ce.on("reconnect_error",(function(){jp&&console.log("socket.io reconnect_error event"),e.onConnectChange("reconnect_error")})),Ce.on("reconnect_failed",(function(){jp&&console.log("socket.io reconnect_failed event"),e.onConnectChange("reconnect_failed")})),this.socket=Ce},SocketStore.prototype.onConnectChange=function(e){var Z=this;switch(this.connectState=e,e){case"connecting":case"reconnecting":this.connectStateText="连接中...";break;case"connect":this.connectStateText="已连接";break;case"disconnect":this.connectStateText="已断开";break;case"connect_error":this.connectStateText="连接错误";break;case"connect_timeout":this.connectStateText="连接超时";break;case"reconnect":this.connectStateText="连接成功",setTimeout((function(){Z.connectStateText=""}),1500);break;case"reconnect_error":case"reconnect_failed":this.connectStateText="请检查网络"}},SocketStore.prototype.close=function(){var e;null===(e=this.socket)||void 0===e||e.disconnect(),this.socket=void 0},SocketStore}(),Up=require("child_process").exec;var $p=["database","mongo","redis","mysql","postgresql","storage","oss","cos","s3","function","invoke","http","axios","request","cache","memory","config","env","logger","console","auth","jwt","oauth","getToken","getUser","getUserId","getUserInfo","getUserRole","getUserRoles","getUserPermissions","checkPermission","checkRole","login","logout","register","resetPassword","verifyToken","refreshToken","crypto","md5","sha256","sha512","aes","rsa","base64","hex","shared","utils","helper","date","time","uuid","validator","validator"],qp=!1,transformCloudFunctionToFastify=function(e,Z){try{console.log("开始解析代码...",Z);var ie=lr(e,{sourceType:"module",plugins:["typescript","jsx","classProperties","decorators"]});console.log("AST解析成功,开始遍历...");var ae=!1,de=!1;if(It.default(ie,{ImportDeclaration:function(e){try{"@lafjs/cloud"===e.node.source.value?(e.node.source.value="@@/utils/mongodb",e.node.specifiers&&e.node.specifiers.length>0&&e.node.specifiers.forEach((function(e){kt.isImportDefaultSpecifier(e)&&"cloud"===e.local.name&&(e.local.name="mongo")})),console.log("检测到 Laf 云开发依赖:",{source:e.node.source.value,location:e.node.loc?"第".concat(e.node.loc.start.line,"行"):"未知位置"})):"@@/types/fastify"===e.node.source.value&&e.node.specifiers.forEach((function(e){kt.isImportSpecifier(e)&&"FunctionContext"===e.local.name&&(de=!0)}))}catch(Z){console.error("处理导入声明时出错:",{error:Z.message,location:e.node.loc?"第".concat(e.node.loc.start.line,"行"):"未知位置",code:e.toString()})}},Identifier:function(e){"FunctionContext"===e.node.name&&(ae=!0)},MemberExpression:function(e){kt.isIdentifier(e.node.object,{name:"cloud"})&&kt.isIdentifier(e.node.property)&&$p.includes(e.node.property.name)&&(qp=!0)}}),ae&&!de){var ve=lr("import { FunctionContext } from '@@/types/fastify';",{sourceType:"module"});ie.program.body.unshift(ve.program.body[0])}if(qp){var be=lr("import cloud from '@@/utils/cloud';",{sourceType:"module"});ie.program.body.unshift(be.program.body[0])}console.log("AST遍历完成,开始生成代码...");var Ce=Ws(ie).code;return Ce=Ce.replaceAll("cloud.mongo.db","mongo.db").replaceAll("cloud.mongo.client","mongo.client"),console.log("代码生成完成"),Ce}catch(ie){throw console.error("AST处理过程出错:",{filePath:Z,error:ie.message,type:ie.name,position:ie.loc?"第".concat(ie.loc.line,"行第").concat(ie.loc.column,"列"):"未知位置",snippet:ie.loc?e.split("\n")[ie.loc.line-1]:"无法获取代码片段"}),ie}},zp="$__cacheTime",Hp="__all_cloud_functions";function generateRoutesFile(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve;return __generator(this,(function(be){return Z=e.outputPath,ie=e.allFilesList,ae=e.verbose,de=gt.join(process.cwd(),gt.dirname(Z),"/routes/cloud_function.ts"),ve="import { FastifyInstance, FastifyPluginAsync } from 'fastify';\nimport { FunctionContext } from '@@/types/fastify';\nimport { createContext } from '../utils/context';\n\nconst routes: FastifyPluginAsync = async (fastify: FastifyInstance) => {\n const beforeRequest = await import('../functions/__interceptor__') as any;\n // 添加全局预处理钩子\n fastify.addHook('preHandler', async (request, reply) => {\n\n // 放行 OPTIONS 请求\n if (request.method === 'OPTIONS') {\n return true;\n }\n \n // 统一处理通用参数\n const ctx: FunctionContext = await createContext(request, reply);\n // 创建一个 Promise 来处理 next 的执行\n const nextPromise = new Promise((resolve) => {\n // 创建一个 next 函数,用于继续处理请求\n const next = async (context: FunctionContext) => {\n // 将 context 存储到 request 中,这样路由处理函数可以访问到\n (request as any).functionContext = context;\n resolve(true);\n };\n\n // 调用用户定义的拦截器\n (beforeRequest.main || beforeRequest.default)(ctx, next).then((result: any) => {\n // 如果拦截器返回了结果(不是 next 的返回值),说明请求被拦截了\n if (result !== undefined) {\n resolve(result);\n }\n });\n });\n\n // 等待 Promise 完成\n const result = await nextPromise;\n\n // 如果结果是 true,表示继续处理请求\n if (result === true) {\n return;\n }\n\n // 否则发送拦截结果\n reply.send(result);\n });\n\n ".concat(ie.map((function(e){var Z=e.name.replace(/^\//,""),ie=(e.data||{}).methods;return(void 0===ie?[]:ie).map((function(ie){return"\n // ".concat(e.desc||"无描述","\n fastify.").concat(ie.toLowerCase(),"('/").concat(e.name,"', async (request, response) => {\n const handler = await import('../functions/").concat(Z,"') as any;\n try {\n const ctx = request.functionContext;\n const result = await (handler.main || handler.default)?.(ctx);\n return result;\n } catch(e) {\n console.error(e);\n return {\n code: 500,\n message: '服务器内部错误,请稍后重试'\n };\n } \n });")})).join("\n")})).join("\n"),"\n};\n\nexport default routes;"),nr.writeFileSync(de,ve,"utf-8"),ae&&console.log(ft.default.green("已生成路由文件: ".concat(de))),[2]}))}))}function sendRestartSignal(){return __awaiter(this,void 0,void 0,(function(){var e,Z,ie;return __generator(this,(function(ae){try{if(console.log(ft.default.blue("开始发送重启信号...")),e=gt.join(process.cwd(),"app.pid"),console.log(ft.default.gray("PID 文件路径: ".concat(e))),!nr.existsSync(e))throw console.error(ft.default.red("PID 文件不存在")),new Error("找不到 PID 文件,请确保服务正在运行");if(Z=nr.readFileSync(e,"utf-8").trim(),console.log(ft.default.gray("PID 文件内容: ".concat(Z))),ie=parseInt(Z,10),isNaN(ie))throw console.error(ft.default.red("无效的 PID: ".concat(Z))),new Error("PID 文件内容无效");console.log(ft.default.green("找到主进程 PID: ".concat(ie))),process.kill(ie,"SIGUSR2"),console.log(ft.default.green("已发送重启信号"))}catch(e){throw console.error(ft.default.red("发送重启信号失败:"),e),e instanceof Error&&console.error(ft.default.gray("错误堆栈:"),e.stack),e}return[2]}))}))}function buildIncremental(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(Z){return[2,new Promise((function(Z,ie){console.log(ft.default.blue("开始增量构建...")),console.log(ft.default.gray("构建文件列表:"),e),process.env.INCREMENTAL_FILES=JSON.stringify(e),console.log(ft.default.gray("环境变量 INCREMENTAL_FILES:"),process.env.INCREMENTAL_FILES),console.log(ft.default.blue("执行 rollup 构建..."));var de=ae.spawn("npx",["rollup","-c"],{stdio:"inherit",env:process.env});de.on("close",(function(e){if(console.log(ft.default.gray("rollup 进程退出,退出码: ".concat(e))),0===e)console.log(ft.default.green("增量构建完成")),Z();else{var ae=new Error("构建失败,退出码: ".concat(e));console.error(ft.default.red(ae.message)),ie(ae)}})),de.on("error",(function(e){console.error(ft.default.red("构建过程出错:"),e),console.error(ft.default.gray("错误堆栈:"),e.stack),ie(e)}))}))]}))}))}function restartService(){return __awaiter(this,void 0,void 0,(function(){var e,Z;return __generator(this,(function(ie){switch(ie.label){case 0:return ie.trys.push([0,3,,4]),console.log(ft.default.blue("开始重启服务流程...")),e=[gt.join(process.cwd(),"src/routes/cloud_function.ts")],console.log(ft.default.gray("变更文件路径:"),e),console.log(ft.default.blue("开始增量构建...")),[4,buildIncremental(e)];case 1:return ie.sent(),console.log(ft.default.green("增量构建完成")),console.log(ft.default.blue("准备重启服务...")),[4,sendRestartSignal()];case 2:return ie.sent(),console.log(ft.default.green("重启信号已发送")),[3,4];case 3:throw Z=ie.sent(),console.error(ft.default.red("重启服务失败:"),Z),Z instanceof Error&&console.error(ft.default.gray("错误堆栈:"),Z.stack),Z;case 4:return[2]}}))}))}function syncBackend(e){var Z;return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze,et,tt,ct,ut,lt,pt,mt,yt,vt,bt,Et,Dt,St,kt,It,_t,Ft,Ut,qt,Ht;return __generator(this,(function(Vt){switch(Vt.label){case 0:return Vt.trys.push([0,9,,10]),console.log(ft.default.blue("开始同步后端...")),console.log(ft.default.gray("同步选项:"),__assign(__assign({},e),{auth:e.auth?"***":void 0})),ie=e.output||"src/types",ae=gt.join(process.cwd()+"/"+ie),console.log(ft.default.gray("项目路径:"),ae),de=ae+zp,ve=ae+Hp,console.log(ft.default.blue("更新认证 token...")),updateAuthToken(e.auth),be=Va.getKey(de),console.log(ft.default.gray("缓存时间:"),be),console.log("[最后同步时间] ",be?new Date(Number(be)).toLocaleString():"无"),Ce=be&&!e.clear?Number(be):0,console.log(ft.default.gray("同步时间点:"),Ce),ke=Va.getKey(ve),Ie=ke?JSON.parse(ke):[],console.log(ft.default.gray("缓存文件数量:"),Ie.length),e.change?(console.log(ft.default.blue("处理文件变更...")),console.log(ft.default.gray("变更信息:"),e.change),_e=e.change,Fe=_e.path,Oe=_e.action,_e.type,_e.content,_e.patch,Be=_e.oldPath,"delete"!==Oe?[3,3]:(console.log(ft.default.blue("处理删除操作...")),mt=Fe.replace(/^\//,""),yt=gt.join(ie,"".concat(mt,".ts")),console.log(ft.default.gray("目标文件路径:"),yt),Ie=Ie.filter((function(e){return e.name!==Fe})),console.log(ft.default.gray("更新后的缓存文件数量:"),Ie.length),nr.existsSync(yt)?(console.log(ft.default.blue("删除本地文件...")),nr.unlinkSync(yt),e.verbose&&console.log(ft.default.green("已删除文件: ".concat(yt)))):console.log(ft.default.yellow("文件不存在: ".concat(yt))),console.log(ft.default.blue("更新缓存...")),Va.setKey(ve,JSON.stringify(Ie)),Va.save(),console.log(ft.default.blue("生成路由文件...")),[4,generateRoutesFile({outputPath:ie,allFilesList:Ie,verbose:e.verbose})])):[3,4];case 1:return Vt.sent(),console.log(ft.default.blue("重启服务...")),[4,restartService()];case 2:return Vt.sent(),[2,0];case 3:"rename"===Oe&&Be&&(console.log(ft.default.blue("处理重命名操作...")),Me=Be.replace(/^\//,""),qe=gt.join(ie,"".concat(Me,".ts")),console.log(ft.default.gray("旧文件路径:"),qe),nr.existsSync(qe)?(console.log(ft.default.blue("删除旧文件...")),nr.unlinkSync(qe),e.verbose&&console.log(ft.default.green("已删除旧文件: ".concat(qe)))):console.log(ft.default.yellow("旧文件不存在: ".concat(qe))),Ie=Ie.filter((function(e){return e.name!==Be})),console.log(ft.default.gray("更新后的缓存文件数量:"),Ie.length)),Vt.label=4;case 4:return console.log(ft.default.blue("从接口获取类型文件...")),[4,request("/type/get",{afterTime:Ce,type:"cloud_function",projectId:e.id,pageSize:500})];case 5:if(Ve=Vt.sent(),Ze=(null===(Z=Ve.data)||void 0===Z?void 0:Z.data)||[],console.log(ft.default.gray("获取到的文件数量:"),Ze.length),!Ze||0===Ze.length)return console.log(ft.default.yellow("提示:无文件更新。如需更新全部,请使用 --clear 选项")),[2,0];if(1===Ze.length?(console.log(ft.default.blue("处理单个文件更新...")),et=Ze[0],-1!==(tt=Ie.findIndex((function(e){return e.name===et.name})))?(console.log(ft.default.gray("更新现有文件...")),Ie[tt]=et):(console.log(ft.default.gray("添加新文件...")),Ie.push(et))):(console.log(ft.default.blue("处理多个文件更新...")),Ie=Ze),console.log(ft.default.blue("检查输出目录...")),nr.existsSync(ie)||(console.log(ft.default.gray("创建输出目录...")),nr.mkdirSync(ie,{recursive:!0})),ct={},e.mapping){console.log(ft.default.blue("处理路径映射..."));try{ct=JSON.parse(e.mapping),console.log(ft.default.gray("路径映射配置:"),ct)}catch(e){console.error(ft.default.red("路径映射配置解析失败:"),e)}}console.log(ft.default.blue("开始写入文件..."));try{for(ut=__values(Ze),lt=ut.next();!lt.done;lt=ut.next()){pt=lt.value,mt=pt.name.replace(/^\//,""),yt=gt.join(ie,"".concat(mt,".ts")),console.log(ft.default.gray("处理文件:"),mt);try{for(qt=void 0,vt=__values(Object.entries(ct)),bt=vt.next();!bt.done;bt=vt.next())if(Et=__read(bt.value,2),Dt=Et[0],St=Et[1],mt.startsWith(Dt)){yt=gt.join(St,mt.slice(Dt.length)),console.log(ft.default.gray("应用路径映射:"),{key:Dt,value:St,targetPath:yt});break}}catch(e){qt={error:e}}finally{try{bt&&!bt.done&&(Ht=vt.return)&&Ht.call(vt)}finally{if(qt)throw qt.error}}kt=gt.dirname(yt),nr.existsSync(kt)||(console.log(ft.default.gray("创建目标目录:"),kt),nr.mkdirSync(kt,{recursive:!0})),console.log(ft.default.gray("写入文件:"),yt),It=transformCloudFunctionToFastify(pt.source,yt),nr.writeFileSync(yt,It,"utf-8"),e.verbose&&console.log(ft.default.green("已更新文件: ".concat(yt)))}}catch(e){Ft={error:e}}finally{try{lt&&!lt.done&&(Ut=ut.return)&&Ut.call(ut)}finally{if(Ft)throw Ft.error}}return console.log(ft.default.blue("生成路由文件...")),[4,generateRoutesFile({outputPath:ie,allFilesList:Ie,verbose:e.verbose})];case 6:return Vt.sent(),console.log(ft.default.blue("更新缓存...")),Va.setKey(de,String(Date.now())),Va.setKey(ve,JSON.stringify(Ie)),Va.save(),e.change?(console.log(ft.default.blue("重启服务...")),[4,restartService()]):[3,8];case 7:Vt.sent(),Vt.label=8;case 8:return e.quiet||console.log(ft.default.green("成功同步 ".concat(Ze.length," 个文件"))),[2,0];case 9:return _t=Vt.sent(),console.error(ft.default.red("同步失败:"),_t),"object"==typeof _t&&(null==_t?void 0:_t.stack)&&e.verbose&&console.log(ft.default.gray("错误堆栈:"),_t.stack),[2,1];case 10:return[2]}}))}))}var Vp=require("child_process"),Gp=Vp.exec,Jp=Vp.spawn,Wp=!!process.env.DEV,getPidFilePath=function(){return yt.default.join(vt.default.tmpdir(),"appthen-connect.pid")},readPid=function(){try{var e=Dt.default.readFileSync(getPidFilePath(),"utf8");return parseInt(e,10)}catch(e){return null}},removePidFile=function(){try{Dt.default.unlinkSync(getPidFilePath())}catch(e){}},getLogFilePath=function(){var e=yt.default.join(vt.default.homedir(),".appthen","logs");return Dt.default.existsSync(e)||Dt.default.mkdirSync(e,{recursive:!0}),yt.default.join(e,"appthen-connect.log")},log=function(e){var Z=(new Date).toISOString(),ie="[".concat(Z,"] ").concat(e,"\n");process.env.__DAEMON_WORKER?Dt.default.appendFileSync(getLogFilePath(),ie):console.log("[".concat(Z,"] ").concat(e))};const Kp=Ht.default.Readable,Xp=Symbol("buffer"),Yp=Symbol("type");class Blob$1{constructor(){this[Yp]="";const e=arguments[0],Z=arguments[1],ie=[];let ae=0;if(e){const Z=e,de=Number(Z.length);for(let e=0;e<de;e++){const de=Z[e];let ve;ve=de instanceof Buffer?de:ArrayBuffer.isView(de)?Buffer.from(de.buffer,de.byteOffset,de.byteLength):de instanceof ArrayBuffer?Buffer.from(de):de instanceof Blob$1?de[Xp]:Buffer.from("string"==typeof de?de:String(de)),ae+=ve.length,ie.push(ve)}}this[Xp]=Buffer.concat(ie);let de=Z&&void 0!==Z.type&&String(Z.type).toLowerCase();de&&!/[^\u0020-\u007E]/.test(de)&&(this[Yp]=de)}get size(){return this[Xp].length}get type(){return this[Yp]}text(){return Promise.resolve(this[Xp].toString())}arrayBuffer(){const e=this[Xp],Z=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(Z)}stream(){const e=new Kp;return e._read=function(){},e.push(this[Xp]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,Z=arguments[0],ie=arguments[1];let ae,de;ae=void 0===Z?0:Z<0?Math.max(e+Z,0):Math.min(Z,e),de=void 0===ie?e:ie<0?Math.max(e+ie,0):Math.min(ie,e);const ve=Math.max(de-ae,0),be=this[Xp].slice(ae,ae+ve),Ce=new Blob$1([],{type:arguments[2]});return Ce[Xp]=be,Ce}}function FetchError(e,Z,ie){Error.call(this,e),this.message=e,this.type=Z,ie&&(this.code=this.errno=ie.code),Error.captureStackTrace(this,this.constructor)}let Zp;Object.defineProperties(Blob$1.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(Blob$1.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),FetchError.prototype=Object.create(Error.prototype),FetchError.prototype.constructor=FetchError,FetchError.prototype.name="FetchError";try{Zp=require("encoding").convert}catch(e){}const Qp=Symbol("Body internals"),eh=Ht.default.PassThrough;function Body(e){var Z=this,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ae=ie.size;let de=void 0===ae?0:ae;var ve=ie.timeout;let be=void 0===ve?0:ve;null==e?e=null:isURLSearchParams(e)?e=Buffer.from(e.toString()):isBlob(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Ht.default||(e=Buffer.from(String(e)))),this[Qp]={body:e,disturbed:!1,error:null},this.size=de,this.timeout=be,e instanceof Ht.default&&e.on("error",(function(e){const ie="AbortError"===e.name?e:new FetchError(`Invalid response body while trying to fetch ${Z.url}: ${e.message}`,"system",e);Z[Qp].error=ie}))}function consumeBody(){var e=this;if(this[Qp].disturbed)return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[Qp].disturbed=!0,this[Qp].error)return Body.Promise.reject(this[Qp].error);let Z=this.body;if(null===Z)return Body.Promise.resolve(Buffer.alloc(0));if(isBlob(Z)&&(Z=Z.stream()),Buffer.isBuffer(Z))return Body.Promise.resolve(Z);if(!(Z instanceof Ht.default))return Body.Promise.resolve(Buffer.alloc(0));let ie=[],ae=0,de=!1;return new Body.Promise((function(ve,be){let Ce;e.timeout&&(Ce=setTimeout((function(){de=!0,be(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),Z.on("error",(function(Z){"AbortError"===Z.name?(de=!0,be(Z)):be(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${Z.message}`,"system",Z))})),Z.on("data",(function(Z){if(!de&&null!==Z){if(e.size&&ae+Z.length>e.size)return de=!0,void be(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));ae+=Z.length,ie.push(Z)}})),Z.on("end",(function(){if(!de){clearTimeout(Ce);try{ve(Buffer.concat(ie,ae))}catch(Z){be(new FetchError(`Could not create Buffer from response body for ${e.url}: ${Z.message}`,"system",Z))}}}))}))}function isURLSearchParams(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function isBlob(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function clone(e){let Z,ie,ae=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return ae instanceof Ht.default&&"function"!=typeof ae.getBoundary&&(Z=new eh,ie=new eh,ae.pipe(Z),ae.pipe(ie),e[Qp].body=Z,ae=ie),ae}function extractContentType(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":isURLSearchParams(e)?"application/x-www-form-urlencoded;charset=UTF-8":isBlob(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof Ht.default?null:"text/plain;charset=UTF-8"}function getTotalBytes(e){const Z=e.body;return null===Z?0:isBlob(Z)?Z.size:Buffer.isBuffer(Z)?Z.length:Z&&"function"==typeof Z.getLengthSync&&(Z._lengthRetrievers&&0==Z._lengthRetrievers.length||Z.hasKnownLength&&Z.hasKnownLength())?Z.getLengthSync():null}Body.prototype={get body(){return this[Qp].body},get bodyUsed(){return this[Qp].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(Z){return Object.assign(new Blob$1([],{type:e.toLowerCase()}),{[Xp]:Z})}))},json(){var e=this;return consumeBody.call(this).then((function(Z){try{return JSON.parse(Z.toString())}catch(Z){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${Z.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(Z){return function convertBody(e,Z){if("function"!=typeof Zp)throw new Error("The package `encoding` must be installed to use the textConverted() function");const ie=Z.get("content-type");let ae,de,ve="utf-8";ie&&(ae=/charset=([^;]*)/i.exec(ie));de=e.slice(0,1024).toString(),!ae&&de&&(ae=/<meta.+?charset=(['"])(.+?)\1/i.exec(de));!ae&&de&&(ae=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(de),ae||(ae=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(de),ae&&ae.pop()),ae&&(ae=/charset=(.*)/i.exec(ae.pop())));!ae&&de&&(ae=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(de));ae&&(ve=ae.pop(),"gb2312"!==ve&&"gbk"!==ve||(ve="gb18030"));return Zp(e,"UTF-8",ve).toString()}(Z,e.headers)}))}},Object.defineProperties(Body.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),Body.mixIn=function(e){for(const Z of Object.getOwnPropertyNames(Body.prototype))if(!(Z in e)){const ie=Object.getOwnPropertyDescriptor(Body.prototype,Z);Object.defineProperty(e,Z,ie)}},Body.Promise=global.Promise;const rh=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,sh=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){if(e=`${e}`,rh.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function validateValue(e){if(e=`${e}`,sh.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function find(e,Z){Z=Z.toLowerCase();for(const ie in e)if(ie.toLowerCase()===Z)return ie}const ah=Symbol("map");class Headers{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[ah]=Object.create(null),e instanceof Headers){const Z=e.raw(),ie=Object.keys(Z);for(const e of ie)for(const ie of Z[e])this.append(e,ie)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const Z=e[Symbol.iterator];if(null!=Z){if("function"!=typeof Z)throw new TypeError("Header pairs must be iterable");const ie=[];for(const Z of e){if("object"!=typeof Z||"function"!=typeof Z[Symbol.iterator])throw new TypeError("Each header pair must be iterable");ie.push(Array.from(Z))}for(const e of ie){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const Z of Object.keys(e)){const ie=e[Z];this.append(Z,ie)}}}}get(e){validateName(e=`${e}`);const Z=find(this[ah],e);return void 0===Z?null:this[ah][Z].join(", ")}forEach(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,ie=getHeaders(this),ae=0;for(;ae<ie.length;){var de=ie[ae];const ve=de[0],be=de[1];e.call(Z,be,ve,this),ie=getHeaders(this),ae++}}set(e,Z){Z=`${Z}`,validateName(e=`${e}`),validateValue(Z);const ie=find(this[ah],e);this[ah][void 0!==ie?ie:e]=[Z]}append(e,Z){Z=`${Z}`,validateName(e=`${e}`),validateValue(Z);const ie=find(this[ah],e);void 0!==ie?this[ah][ie].push(Z):this[ah][e]=[Z]}has(e){return validateName(e=`${e}`),void 0!==find(this[ah],e)}delete(e){validateName(e=`${e}`);const Z=find(this[ah],e);void 0!==Z&&delete this[ah][Z]}raw(){return this[ah]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}function getHeaders(e){let Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[ah]).sort().map("key"===Z?function(e){return e.toLowerCase()}:"value"===Z?function(Z){return e[ah][Z].join(", ")}:function(Z){return[Z.toLowerCase(),e[ah][Z].join(", ")]})}Headers.prototype.entries=Headers.prototype[Symbol.iterator],Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Headers.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const gh=Symbol("internal");function createHeadersIterator(e,Z){const ie=Object.create(xh);return ie[gh]={target:e,kind:Z,index:0},ie}const xh=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==xh)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[gh];const Z=e.target,ie=e.kind,ae=e.index,de=getHeaders(Z,ie);return ae>=de.length?{value:void 0,done:!0}:(this[gh].index=ae+1,{value:de[ae],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function exportNodeCompatibleHeaders(e){const Z=Object.assign({__proto__:null},e[ah]),ie=find(e[ah],"Host");return void 0!==ie&&(Z[ie]=Z[ie][0]),Z}Object.defineProperty(xh,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const vh=Symbol("Response internals"),Ah=Ft.default.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Body.call(this,e,Z);const ie=Z.status||200,ae=new Headers(Z.headers);if(null!=e&&!ae.has("Content-Type")){const Z=extractContentType(e);Z&&ae.append("Content-Type",Z)}this[vh]={url:Z.url,status:ie,statusText:Z.statusText||Ah[ie],headers:ae,counter:Z.counter}}get url(){return this[vh].url||""}get status(){return this[vh].status}get ok(){return this[vh].status>=200&&this[vh].status<300}get redirected(){return this[vh].counter>0}get statusText(){return this[vh].statusText}get headers(){return this[vh].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype),Object.defineProperties(Response.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const wh=Symbol("Request internals"),Dh=qt.default.URL||ar.default.URL,Ph=qt.default.parse,kh=qt.default.format;function parseURL(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new Dh(e).toString()),Ph(e)}const Nh="destroy"in Ht.default.Readable.prototype;function isRequest(e){return"object"==typeof e&&"object"==typeof e[wh]}class Request{constructor(e){let Z,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};isRequest(e)?Z=parseURL(e.url):(Z=e&&e.href?parseURL(e.href):parseURL(`${e}`),e={});let ae=ie.method||e.method||"GET";if(ae=ae.toUpperCase(),(null!=ie.body||isRequest(e)&&null!==e.body)&&("GET"===ae||"HEAD"===ae))throw new TypeError("Request with GET/HEAD method cannot have body");let de=null!=ie.body?ie.body:isRequest(e)&&null!==e.body?clone(e):null;Body.call(this,de,{timeout:ie.timeout||e.timeout||0,size:ie.size||e.size||0});const ve=new Headers(ie.headers||e.headers||{});if(null!=de&&!ve.has("Content-Type")){const e=extractContentType(de);e&&ve.append("Content-Type",e)}let be=isRequest(e)?e.signal:null;if("signal"in ie&&(be=ie.signal),null!=be&&!function isAbortSignal(e){const Z=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!Z||"AbortSignal"!==Z.constructor.name)}(be))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[wh]={method:ae,redirect:ie.redirect||e.redirect||"follow",headers:ve,parsedURL:Z,signal:be},this.follow=void 0!==ie.follow?ie.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==ie.compress?ie.compress:void 0===e.compress||e.compress,this.counter=ie.counter||e.counter||0,this.agent=ie.agent||e.agent}get method(){return this[wh].method}get url(){return kh(this[wh].parsedURL)}get headers(){return this[wh].headers}get redirect(){return this[wh].redirect}get signal(){return this[wh].signal}clone(){return new Request(this)}}function AbortError(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Body.mixIn(Request.prototype),Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Request.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),AbortError.prototype=Object.create(Error.prototype),AbortError.prototype.constructor=AbortError,AbortError.prototype.name="AbortError";const _h=qt.default.URL||ar.default.URL,Fh=Ht.default.PassThrough,Oh=function isDomainOrSubdomain(e,Z){const ie=new _h(Z).hostname,ae=new _h(e).hostname;return ie===ae||"."===ie[ie.length-ae.length-1]&&ie.endsWith(ae)},Lh=function isSameProtocol(e,Z){return new _h(Z).protocol===new _h(e).protocol};function fetch(e,Z){if(!fetch.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Body.Promise=fetch.Promise,new fetch.Promise((function(ie,ae){const de=new Request(e,Z),ve=function getNodeRequestOptions(e){const Z=e[wh].parsedURL,ie=new Headers(e[wh].headers);if(ie.has("Accept")||ie.set("Accept","*/*"),!Z.protocol||!Z.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(Z.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof Ht.default.Readable&&!Nh)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let ae=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(ae="0"),null!=e.body){const Z=getTotalBytes(e);"number"==typeof Z&&(ae=String(Z))}ae&&ie.set("Content-Length",ae),ie.has("User-Agent")||ie.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!ie.has("Accept-Encoding")&&ie.set("Accept-Encoding","gzip,deflate");let de=e.agent;return"function"==typeof de&&(de=de(Z)),Object.assign({},Z,{method:e.method,headers:exportNodeCompatibleHeaders(ie),agent:de})}(de),be=("https:"===ve.protocol?Ut.default:Ft.default).request,Ce=de.signal;let ke=null;const Ie=function abort(){let e=new AbortError("The user aborted a request.");ae(e),de.body&&de.body instanceof Ht.default.Readable&&destroyStream(de.body,e),ke&&ke.body&&ke.body.emit("error",e)};if(Ce&&Ce.aborted)return void Ie();const _e=function abortAndFinalize(){Ie(),finalize()},Fe=be(ve);let Oe;function finalize(){Fe.abort(),Ce&&Ce.removeEventListener("abort",_e),clearTimeout(Oe)}Ce&&Ce.addEventListener("abort",_e),de.timeout&&Fe.once("socket",(function(e){Oe=setTimeout((function(){ae(new FetchError(`network timeout at: ${de.url}`,"request-timeout")),finalize()}),de.timeout)})),Fe.on("error",(function(e){ae(new FetchError(`request to ${de.url} failed, reason: ${e.message}`,"system",e)),ke&&ke.body&&destroyStream(ke.body,e),finalize()})),function fixResponseChunkedTransferBadEnding(e,Z){let ie;e.on("socket",(function(e){ie=e})),e.on("response",(function(e){const ae=e.headers;"chunked"!==ae["transfer-encoding"]||ae["content-length"]||e.once("close",(function(e){if(ie&&ie.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",Z(e)}}))}))}(Fe,(function(e){Ce&&Ce.aborted||ke&&ke.body&&destroyStream(ke.body,e)})),parseInt(process.version.substring(1))<14&&Fe.on("socket",(function(e){e.addListener("close",(function(Z){const ie=e.listenerCount("data")>0;if(ke&&ie&&!Z&&(!Ce||!Ce.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",ke.body.emit("error",e)}}))})),Fe.on("response",(function(e){clearTimeout(Oe);const Z=function createHeadersLenient(e){const Z=new Headers;for(const ie of Object.keys(e))if(!rh.test(ie))if(Array.isArray(e[ie]))for(const ae of e[ie])sh.test(ae)||(void 0===Z[ah][ie]?Z[ah][ie]=[ae]:Z[ah][ie].push(ae));else sh.test(e[ie])||(Z[ah][ie]=[e[ie]]);return Z}(e.headers);if(fetch.isRedirect(e.statusCode)){const ve=Z.get("Location");let be=null;try{be=null===ve?null:new _h(ve,de.url).toString()}catch(e){if("manual"!==de.redirect)return ae(new FetchError(`uri requested responds with an invalid redirect URL: ${ve}`,"invalid-redirect")),void finalize()}switch(de.redirect){case"error":return ae(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${de.url}`,"no-redirect")),void finalize();case"manual":if(null!==be)try{Z.set("Location",be)}catch(e){ae(e)}break;case"follow":if(null===be)break;if(de.counter>=de.follow)return ae(new FetchError(`maximum redirect reached at: ${de.url}`,"max-redirect")),void finalize();const ve={headers:new Headers(de.headers),follow:de.follow,counter:de.counter+1,agent:de.agent,compress:de.compress,method:de.method,body:de.body,signal:de.signal,timeout:de.timeout,size:de.size};if(!Oh(de.url,be)||!Lh(de.url,be))for(const e of["authorization","www-authenticate","cookie","cookie2"])ve.headers.delete(e);return 303!==e.statusCode&&de.body&&null===getTotalBytes(de)?(ae(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void finalize()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==de.method)||(ve.method="GET",ve.body=void 0,ve.headers.delete("content-length")),ie(fetch(new Request(be,ve))),void finalize())}}e.once("end",(function(){Ce&&Ce.removeEventListener("abort",_e)}));let ve=e.pipe(new Fh);const be={url:de.url,status:e.statusCode,statusText:e.statusMessage,headers:Z,size:de.size,timeout:de.timeout,counter:de.counter},Ie=Z.get("Content-Encoding");if(!de.compress||"HEAD"===de.method||null===Ie||204===e.statusCode||304===e.statusCode)return ke=new Response(ve,be),void ie(ke);const Fe={flush:Wt.default.Z_SYNC_FLUSH,finishFlush:Wt.default.Z_SYNC_FLUSH};if("gzip"==Ie||"x-gzip"==Ie)return ve=ve.pipe(Wt.default.createGunzip(Fe)),ke=new Response(ve,be),void ie(ke);if("deflate"==Ie||"x-deflate"==Ie){const Z=e.pipe(new Fh);return Z.once("data",(function(e){ve=8==(15&e[0])?ve.pipe(Wt.default.createInflate()):ve.pipe(Wt.default.createInflateRaw()),ke=new Response(ve,be),ie(ke)})),void Z.on("end",(function(){ke||(ke=new Response(ve,be),ie(ke))}))}if("br"==Ie&&"function"==typeof Wt.default.createBrotliDecompress)return ve=ve.pipe(Wt.default.createBrotliDecompress()),ke=new Response(ve,be),void ie(ke);ke=new Response(ve,be),ie(ke)})),function writeToStream(e,Z){const ie=Z.body;null===ie?e.end():isBlob(ie)?ie.stream().pipe(e):Buffer.isBuffer(ie)?(e.write(ie),e.end()):ie.pipe(e)}(Fe,de)}))}function destroyStream(e,Z){e.destroy?e.destroy(Z):(e.emit("error",Z),e.end())}fetch.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},fetch.Promise=global.Promise;var Bh={target:"preview",force:!1,buildCache:!0,outputDir:"dist"};function generateVercelConfig(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie;return __generator(this,(function(ae){switch(ae.label){case 0:return Z={version:2,builds:[{src:"api/index.ts",use:"@vercel/node"}],routes:[{src:"/(.*)",dest:"api/index.ts"}],env:e.env||{}},ie=gt.join(process.cwd(),e.outputDir||"dist","vercel.json"),[4,nr.writeJSON(ie,Z,{spaces:2})];case 1:return ae.sent(),[2]}}))}))}var Mh="https://api.vercel.com";function prepareBuildOutput(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de;return __generator(this,(function(ve){switch(ve.label){case 0:return Z=gt.join(process.cwd(),e.outputDir||"dist"),ie=[],[4,nr.ensureDir(Z)];case 1:return ve.sent(),[4,generateVercelConfig(e)];case 2:return ve.sent(),ae=gt.join(Z,"api"),[4,nr.ensureDir(ae)];case 3:return ve.sent(),de=gt.join(process.cwd(),"src/index.ts"),[4,nr.pathExists(de)];case 4:return ve.sent()?[4,nr.copy(de,gt.join(ae,"index.ts"))]:[3,6];case 5:ve.sent(),ie.push("已复制入口文件"),ve.label=6;case 6:return[2,{outputDir:Z,buildLogs:ie}]}}))}))}function createDeployment(e,Z){return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe;return __generator(this,(function(Be){switch(Be.label){case 0:return ie={Authorization:"Bearer ".concat(e.token),"Content-Type":"application/json"},de=fetch,ve=["".concat(Mh,"/v13/deployments")],Fe={method:"POST",headers:ie},Ce=(be=JSON).stringify,Oe={name:e.name,project:e.projectId,target:e.target||"preview"},[4,getDeploymentFiles(Z.outputDir)];case 1:return[4,de.apply(void 0,ve.concat([(Fe.body=Ce.apply(be,[(Oe.files=Be.sent(),Oe)]),Fe)]))];case 2:return(ae=Be.sent()).ok?[3,4]:(ke=Error.bind,Ie="部署失败: ".concat,[4,ae.text()]);case 3:throw new(ke.apply(Error,[void 0,Ie.apply("部署失败: ",[Be.sent()])]));case 4:return[4,ae.json()];case 5:return[2,{deploymentId:(_e=Be.sent()).id,url:_e.url,status:_e.readyState,createdAt:_e.createdAt}]}}))}))}function getDeploymentFiles(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe;return __generator(this,(function(Be){switch(Be.label){case 0:return Z={},[4,nr.readdir(e,{withFileTypes:!0})];case 1:ie=Be.sent(),Be.label=2;case 2:Be.trys.push([2,9,10,11]),ae=__values(ie),de=ae.next(),Be.label=3;case 3:return de.done?[3,8]:(ve=de.value,be=gt.join(e,ve.name),Ce=gt.relative(e,be),ve.isFile()?[4,nr.readFile(be)]:[3,5]);case 4:return ke=Be.sent(),Z[Ce]={file:ke.toString("base64")},[3,7];case 5:return ve.isDirectory()?[4,getDeploymentFiles(be)]:[3,7];case 6:Ie=Be.sent(),Object.assign(Z,Ie),Be.label=7;case 7:return de=ae.next(),[3,3];case 8:return[3,11];case 9:return _e=Be.sent(),Fe={error:_e},[3,11];case 10:try{de&&!de.done&&(Oe=ae.return)&&Oe.call(ae)}finally{if(Fe)throw Fe.error}return[7];case 11:return[2,Z]}}))}))}function checkDeploymentStatus(e,Z){var ie;return __awaiter(this,void 0,void 0,(function(){var ae,de,ve,be;return __generator(this,(function(Ce){switch(Ce.label){case 0:return[4,fetch("".concat(Mh,"/v13/deployments/").concat(Z),{headers:{Authorization:"Bearer ".concat(e.token)}})];case 1:return(ae=Ce.sent()).ok?[3,3]:(de=Error.bind,ve="获取部署状态失败: ".concat,[4,ae.text()]);case 2:throw new(de.apply(Error,[void 0,ve.apply("获取部署状态失败: ",[Ce.sent()])]));case 3:return[4,ae.json()];case 4:return[2,{deploymentId:(be=Ce.sent()).id,url:be.url,status:be.readyState,createdAt:be.createdAt,error:null===(ie=be.error)||void 0===ie?void 0:ie.message}]}}))}))}function deploy(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae;return __generator(this,(function(de){switch(de.label){case 0:return[4,prepareBuildOutput(e)];case 1:return Z=de.sent(),console.log("构建输出准备完成:",Z.buildLogs),[4,createDeployment(e,Z)];case 2:ie=de.sent(),console.log("部署已创建:",ie.url),ae=ie,de.label=3;case 3:return"INITIALIZING"!==ae.status&&"BUILDING"!==ae.status?[3,6]:[4,new Promise((function(e){return setTimeout(e,5e3)}))];case 4:return de.sent(),[4,checkDeploymentStatus(e,ie.deploymentId)];case 5:return ae=de.sent(),console.log("部署状态:",ae.status),[3,3];case 6:if("ERROR"===ae.status)throw new Error("部署失败: ".concat(ae.error));return[2,ae]}}))}))}exports.create=function create(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce;return __generator(this,(function(ke){switch(ke.label){case 0:ie=(Z=e||{}).template,ae=void 0===ie?"vite":ie,de=Z.folder,ve=void 0===de?"appthen-assets-starter":de,ke.label=1;case 1:return ke.trys.push([1,6,,7]),[4,getTemplate(ae)];case 2:return(be=ke.sent())?[4,createProjectFromTemplate(be,be.url,ve)]:[3,4];case 3:return ke.sent(),[3,5];case 4:console.log("[ERROR] ","template not found"),ke.label=5;case 5:return[3,7];case 6:throw Ce=ke.sent(),console.log("[e] ",Ce),Ce;case 7:return[2,1]}}))}))},exports.deployToVercel=function deployToVercel(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae;return __generator(this,(function(de){return Z=function loadConfigFromEnv(){return{projectId:process.env.VERCEL_PROJECT_ID,token:process.env.VERCEL_TOKEN,name:process.env.VERCEL_PROJECT_NAME,target:process.env.VERCEL_ENV||"preview"}}(),ie=__assign(__assign({},Z),e),ae=function validateConfig(e){if(!e.projectId)throw new Error("Vercel 项目 ID 不能为空");if(!e.token)throw new Error("Vercel API Token 不能为空");return __assign(__assign({},Bh),e)}(ie),[2,deploy(ae)]}))}))},exports.fuck=function(){},exports.getPureValue=getPureValue,exports.initSolution=function initSolution(e,Z){return __awaiter(this,void 0,void 0,(function(){var ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me;return __generator(this,(function(qe){switch(qe.label){case 0:return qe.trys.push([0,11,,12]),ie=process.cwd(),ae=e[0]||"hello",de=gt.resolve(ie,ae),"."===ae&&(ae=gt.basename(ie),de=ie),ve=function(e){return e.replace(/hello-world/g,Pl(ae)).replace(/HelloWorld/g,_l(ae)).replace(/Hello World/g,wl(ae))},[4,ensureDirExists(de)];case 1:qe.sent(),be=[{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"}],qe.label=2;case 2:qe.trys.push([2,8,9,10]),Ce=__values(be),ke=Ce.next(),qe.label=3;case 3:return ke.done?[3,7]:(Ie=ke.value,Z.verbose&&console.log("%s",ft.default.gray("creating file ".concat(Ie.file))),_e=gt.join(de,Ie.file),[4,ensureDirExists(gt.dirname(_e))]);case 4:return qe.sent(),[4,nr.writeFile(_e,ve(Ie.content),{encoding:"utf-8"})];case 5:qe.sent(),qe.label=6;case 6:return ke=Ce.next(),[3,3];case 7:return[3,10];case 8:return Fe=qe.sent(),Be={error:Fe},[3,10];case 9:try{ke&&!ke.done&&(Me=Ce.return)&&Me.call(Ce)}finally{if(Be)throw Be.error}return[7];case 10:return Z.quiet||console.log("%s",ft.default.green("solution ".concat(ae," created successfully"))),[2,0];case 11:return Oe=qe.sent(),console.log(ft.default.red(getErrorMessage(Oe)||"Unexpected error: ".concat(Oe))),"object"==typeof Oe&&(null==Oe?void 0:Oe.stack)&&Z.verbose&&console.log(ft.default.gray(Oe.stack)),[2,1];case 12:return[2]}}))}))},exports.releaseMaterial=function releaseMaterial(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me,qe,Ve,Ze,et,tt,ct,ut,lt;return __generator(this,(function(pt){switch(pt.label){case 0:return(Z=e.auth)&&updateAuthToken(Z),ie=process.cwd(),ae="build/lowcode",de=yt.default.resolve(process.cwd(),ae),(ve=Et.existsSync(de))||(de=yt.default.resolve(process.cwd(),"dist")),[4,function(e){return Promise.resolve().then((function(){return _interopNamespace(require(e))}))}(yt.default.resolve(process.cwd(),"package.json"))];case 1:return be=pt.sent(),Ce=be.name,ke=be.version,ve&&(console.log("lceViewJS: ",yt.default.resolve(process.cwd(),ae,"view.js")),Fe=Et.readFileSync(yt.default.resolve(process.cwd(),ae,"view.js"),"utf-8"),Ie=getExportName(Fe),Oe=Et.readFileSync(yt.default.resolve(process.cwd(),ae,"meta.js"),"utf-8"),_e=getExportName(Oe)),console.log("Uploading material..."),[4,getAllFile(de+"/")];case 2:Be=pt.sent(),Me=[],qe=0,pt.label=3;case 3:return qe<Be.length?(Ve=Be[qe],(Ze=Et.readFileSync(Ve.path+"/"+Ve.fileName,"utf-8"))&&0!==Ze.trim().length?[3,4]:(console.log("File is empty Do not Upload: ",Ve.path+"/"+Ve.fileName),[3,6])):[3,7];case 4:return et="".concat(Ce,"/").concat(ke,"/")+(Ve.path.split("".concat(ie,"/").concat(ae,"/"))[1]||"")+Ve.fileName,[4,uploadFile(Ve,{t:1,route:"material",path:et})];case 5:tt=pt.sent(),Me.push(tt),pt.label=6;case 6:return qe++,[3,3];case 7:return console.log("Npm Name: ",Ce),console.log("Npm Version: ",ke),ve?(ct=Me.find((function(e){return e.key.includes("".concat(ke,"/view.js"))})),ut=Me.find((function(e){return e.key.includes("".concat(ke,"/view.css"))})),lt=Me.find((function(e){return e.key.includes("".concat(ke,"/meta.js"))})),console.log("Npm Export Name: ",Ie),console.log("Npm Js Url: ",null==ct?void 0:ct.url),console.log("Npm Css Url: ",null==ut?void 0:ut.url),console.log("Meta Export Name: ",_e),console.log("Meta Url: ",null==lt?void 0:lt.url)):Me.length>0&&Me.forEach((function(e){console.log("File Name: ",e.key),console.log("File Url: ",e.url)})),[2,1]}}))}))},exports.run=run,exports.startConnecting=function startConnecting(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke,Ie,_e,Fe,Oe,Be,Me;return __generator(this,(function(qe){switch(qe.label){case 0:if(Z=e.id,ie=e.auth,ae=e.daemon,e.debug,log("[进程 ".concat(process.pid,"] 开始启动连接服务,模式: ").concat(ae?"守护进程":"普通进程")),ae&&!process.env.__DAEMON_WORKER){if(de=readPid())try{return process.kill(de,0),log("[进程 ".concat(process.pid,"] 守护进程已经在运行 (PID: ").concat(de,")")),console.log("查看日志: tail -f ".concat(getLogFilePath())),[2,0]}catch(e){removePidFile()}return ve=Dt.default.openSync(getLogFilePath(),"a"),be=process.argv.slice(2).filter((function(e){return"--daemon"!==e})),(Ce=Jp(process.argv[0],__spreadArray(__spreadArray([],__read(process.argv.slice(1,2)),!1),__read(be),!1),{detached:!0,stdio:["ignore",ve,ve],env:__assign(__assign({},process.env),{__DAEMON_WORKER:"true",FORCE_COLOR:"true"})})).unref(),Dt.default.closeSync(ve),log("[进程 ".concat(process.pid,"] 已创建守护进程 (PID: ").concat(Ce.pid,")")),Ve=Ce.pid,Dt.default.writeFileSync(getPidFilePath(),Ve.toString()),console.log("守护进程已启动 (PID: ".concat(Ce.pid,")")),console.log("查看日志: tail -f ".concat(getLogFilePath())),[2,0]}qe.label=1;case 1:return qe.trys.push([1,3,,4]),log("[进程 ".concat(process.pid,"] 正在初始化连接...")),ie&&updateAuthToken(ie),ke="PROJECT_ROOM_"+Z,Ie=__read((Ma||"").split("##"),2),_e=Ie[0],Fe=Ie[1],Oe=function(){log("[进程 ".concat(process.pid,"] 正在清理...")),removePidFile(),process.exit(0)},process.on("SIGINT",Oe),process.on("SIGTERM",Oe),process.on("uncaughtException",(function(e){log("[进程 ".concat(process.pid,"] 未捕获的异常: ").concat(e)),Oe()})),Be=new Promise((function(e,Z){var ie=new Rp({token:_e,client:Fe,onlogined:function(e){log("[进程 ".concat(process.pid,"] 用户 ").concat(e," 已登录")),null==ie||ie.joinRoom({roomId:ke,account:e})},onconnect:function(){log("[进程 ".concat(process.pid,"] Editor 已连接!")),e(!0)},onclose:function(){log("[进程 ".concat(process.pid,"] Editor 已断开连接!")),setTimeout((function(){log("[进程 ".concat(process.pid,"] 尝试重新连接...")),null==ie||ie.connect()}),5e3)},onmsg:function(e){Wp&&log("[进程 ".concat(process.pid,"] 收到消息: ").concat(JSON.stringify(e)));var Z=e||{};Z.action;var ae=Z.message;if(ae){var de=ae.userId,ve=ae.current,be=ae.cwd,Ce=ae.type,ke=ae.change;if("file_change"===Ce&&ke){var Ie=ke.path;Ie.endsWith(".node.ts")&&(log("[进程 ".concat(process.pid,"] 检测到云函数文件变更: ").concat(Ie)),syncBackend({id:ve,auth:Ma,framework:"fastify",output:"./src/functions",change:ke}).catch((function(e){log("[进程 ".concat(process.pid,"] 同步失败: ").concat(e))})))}String(de)===(null==ie?void 0:ie.account)&&be&&(log("[进程 ".concat(process.pid,"] 执行命令行: ").concat(be)),Gp(be,{shell:"/bin/bash"},(function(e,Z,ae){e&&log("[进程 ".concat(process.pid,"] 执行出错: ").concat(e)),log("[进程 ".concat(process.pid,"] 执行结果: ").concat(Z)),ae&&log("[进程 ".concat(process.pid,"] 错误输出: ").concat(ae)),null==ie||ie.sendMessage({action:"cwd",message:{stdout:Z,stderr:ae,error:e}})})))}}});ie.connect()})),setInterval((function(){Wp&&log("[进程 ".concat(process.pid,"] 心跳检测..."))}),3e4),[4,Be];case 2:return qe.sent(),[2,new Promise((function(){}))];case 3:return Me=qe.sent(),log("[进程 ".concat(process.pid,"] 启动失败: ").concat(Me)),removePidFile(),[2,1];case 4:return[2]}var Ve}))}))},exports.startWatching=function startWatching(e){return __awaiter(this,void 0,void 0,(function(){var Z,ie,ae,de,ve,be,Ce,ke;return __generator(this,(function(Ie){return Z=e.id,ie=e.auth,ae=e.account,ie&&updateAuthToken(e.auth),de="PROJECT_ROOM_"+Z,ve=__read((Ma||"").split("##"),2),be=ve[0],Ce=ve[1],ke=new Rp({token:be,client:Ce,onconnect:function(){console.log("[Service] Editor connected!"),ke.joinRoom({roomId:de,account:ae})},onmsg:function(Z){var ie=Z||{};ie.action;var de=ie.message;if(de){de.updatedFileState;var ve=de.userId,be=de.current,Ce=de.cwd;String(ve)===ae&&(be&&run(0,__assign(__assign({},e),{clear:!!be.clear})),Ce&&Up(Ce,{shell:"/bin/bash"},(function(e,Z,ie){e&&console.error("执行出错: ".concat(e)),console.log("exec: ",e,Z,ie),ke.sendMessage({action:"cwd",message:{stdout:Z,stderr:ie,error:e}})})))}}}),ke.connect(),[2,1]}))}))},exports.stopConnecting=function stopConnecting(){console.log("[进程 ".concat(process.pid,"] 正在检查运行中的服务..."));var e=readPid();if(e){console.log("[进程 ".concat(process.pid,"] 找到运行中的服务进程 ").concat(e,",正在停止..."));try{return process.kill(e,0),process.kill(e),removePidFile(),!0}catch(Z){"ESRCH"===Z.code?console.log("[进程 ".concat(process.pid,"] 进程 ").concat(e," 已经不存在")):console.log("[进程 ".concat(process.pid,"] 停止进程失败:"),Z),removePidFile()}}return console.log("[进程 ".concat(process.pid,"] 没有找到运行中的服务")),!1},exports.syncBackend=syncBackend;
|