@absolutejs/absolute 0.19.0-beta.1082 → 0.19.0-beta.1083

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.
Files changed (148) hide show
  1. package/dist/.absolutejs/generated/angular/indexes/angular-example.1g23yr9r.js +167 -0
  2. package/dist/.absolutejs/generated/react/indexes/ReactExample.e6kzvjqy.js +3 -0
  3. package/dist/.absolutejs/generated/svelte/client/pages/SvelteExample.5pq2wmw6.js +1 -0
  4. package/dist/.absolutejs/generated/svelte/indexes/pages/SvelteExample.9zcw5vtg.js +1 -0
  5. package/dist/.absolutejs/generated/vue/client/pages/VueExample.q47m56s4.js +1 -0
  6. package/dist/.absolutejs/generated/vue/indexes/VueExample.6bqszcxv.js +1 -0
  7. package/dist/_prerendered/angular.html +45 -0
  8. package/dist/_prerendered/angular.meta +1 -0
  9. package/dist/_prerendered/html.html +70 -0
  10. package/dist/_prerendered/html.meta +1 -0
  11. package/dist/_prerendered/htmx.html +239 -0
  12. package/dist/_prerendered/htmx.meta +1 -0
  13. package/dist/_prerendered/index.html +70 -0
  14. package/dist/_prerendered/index.meta +1 -0
  15. package/dist/_prerendered/react.html +1 -0
  16. package/dist/_prerendered/react.meta +1 -0
  17. package/dist/_prerendered/vue.html +41 -0
  18. package/dist/_prerendered/vue.meta +1 -0
  19. package/dist/angular/browser.js +18 -18
  20. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  21. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  22. package/dist/angular/components/defer-slot-templates.directive.js +2 -2
  23. package/dist/angular/components/defer-slot.component.js +3 -3
  24. package/dist/angular/components/image.component.js +3 -3
  25. package/dist/angular/components/stream-slot.component.js +3 -3
  26. package/dist/angular/example/angular/pages/angular-example.djr1v9hj.js +373 -0
  27. package/dist/angular/index.js +43 -43
  28. package/dist/angular/server.js +31 -31
  29. package/dist/angular/vendor/angular_common.js +310 -0
  30. package/dist/angular/vendor/angular_common_http.js +129 -0
  31. package/dist/angular/vendor/angular_core.js +1177 -0
  32. package/dist/angular/vendor/angular_core_primitives_di.js +36 -0
  33. package/dist/angular/vendor/angular_core_primitives_signals.js +132 -0
  34. package/dist/angular/vendor/angular_platform-browser.js +117 -0
  35. package/dist/angular/vendor/angular_router.js +6410 -0
  36. package/dist/angular/vendor/chunk-2c9evnn0.js +4764 -0
  37. package/dist/angular/vendor/chunk-3evcs0sk.js +2567 -0
  38. package/dist/angular/vendor/chunk-5h3qyvpj.js +729 -0
  39. package/dist/angular/vendor/chunk-hgg0w52m.js +62 -0
  40. package/dist/angular/vendor/chunk-n6rt7w2y.js +23 -0
  41. package/dist/angular/vendor/chunk-t4tc7c8b.js +28013 -0
  42. package/dist/angular/vendor/chunk-vqd7j0kb.js +1786 -0
  43. package/dist/angular/vendor/chunk-yqjkhk8j.js +145 -0
  44. package/dist/angular/vendor/server/angular_common.js +311 -0
  45. package/dist/angular/vendor/server/angular_common_http.js +130 -0
  46. package/dist/angular/vendor/server/angular_core.js +1178 -0
  47. package/dist/angular/vendor/server/angular_core_primitives_di.js +37 -0
  48. package/dist/angular/vendor/server/angular_core_primitives_signals.js +133 -0
  49. package/dist/angular/vendor/server/angular_platform-browser.js +118 -0
  50. package/dist/angular/vendor/server/angular_platform-server.js +59 -0
  51. package/dist/angular/vendor/server/angular_router.js +261 -0
  52. package/dist/angular/vendor/server/angular_ssr.js +11669 -0
  53. package/dist/angular/vendor/server/chunk-2akxms5e.js +2566 -0
  54. package/dist/angular/vendor/server/chunk-659a9c3p.js +6218 -0
  55. package/dist/angular/vendor/server/chunk-8eecnjd1.js +16686 -0
  56. package/dist/angular/vendor/server/chunk-9jz2apvp.js +743 -0
  57. package/dist/angular/vendor/server/chunk-dhs2bg35.js +48 -0
  58. package/dist/angular/vendor/server/chunk-hs2gc8sr.js +1787 -0
  59. package/dist/angular/vendor/server/chunk-k46n34mb.js +63 -0
  60. package/dist/angular/vendor/server/chunk-p2fdvyh1.js +4767 -0
  61. package/dist/angular/vendor/server/chunk-r0w9r4bg.js +730 -0
  62. package/dist/angular/vendor/server/chunk-vthxj7kd.js +146 -0
  63. package/dist/angular/vendor/server/chunk-xahr7f2f.js +35534 -0
  64. package/dist/assets/css/tailwind.generated.css +218 -0
  65. package/dist/assets/css/vue-example-compiled.abzaxheq.css +32 -0
  66. package/dist/assets/ico/favicon.ico +0 -0
  67. package/dist/assets/png/absolutejs-temp.png +0 -0
  68. package/dist/assets/svg/HTML5_Badge.svg +7 -0
  69. package/dist/assets/svg/angular.svg +18 -0
  70. package/dist/assets/svg/htmx-logo-black.svg +9 -0
  71. package/dist/assets/svg/htmx-logo-white.svg +9 -0
  72. package/dist/assets/svg/react.svg +1 -0
  73. package/dist/assets/svg/svelte-logo.svg +1 -0
  74. package/dist/assets/svg/vue-logo.svg +4 -0
  75. package/dist/build.js +42 -42
  76. package/dist/chunk-7pp6gkg8.js +2 -0
  77. package/dist/chunk-ek2qyx2c.js +11 -0
  78. package/dist/chunk-ysr5ycdt.js +2 -0
  79. package/dist/cli/config/server.js +11 -11
  80. package/dist/cli/index.js +12 -1
  81. package/dist/client/index.js +13 -13
  82. package/dist/client.tsx +15 -0
  83. package/dist/example/html/scripts/typescript-example.fqn9zkdh.js +1 -0
  84. package/dist/html/pages/HTMLExample.html +70 -0
  85. package/dist/htmx/htmx.min.js +1 -0
  86. package/dist/htmx/pages/HTMXExample.html +239 -0
  87. package/dist/htmx.min.js +1 -0
  88. package/dist/index.js +62 -62
  89. package/dist/indexes/angular-example.xsx88ph0.css +227 -0
  90. package/dist/indexes/html-example.s3banzdc.css +221 -0
  91. package/dist/indexes/htmx-example.5vgssc3f.css +221 -0
  92. package/dist/indexes/react-example.bz1k8xa2.css +245 -0
  93. package/dist/indexes/svelte-example.vy3015es.css +221 -0
  94. package/dist/indexes/vue-example.q4vf2wtq.css +228 -0
  95. package/dist/islands/index.js +14 -14
  96. package/dist/manifest.json +26 -0
  97. package/dist/nested/dynamic-module.txt +1 -0
  98. package/dist/package-asset.txt +1 -0
  99. package/dist/react/browser.js +3 -3
  100. package/dist/react/components/browser/index.js +5 -5
  101. package/dist/react/components/index.js +7 -7
  102. package/dist/react/hooks/index.js +2 -2
  103. package/dist/react/index.js +30 -30
  104. package/dist/react/jsxDevRuntimeCompat.js +1 -1
  105. package/dist/react/router/browser.js +2 -2
  106. package/dist/react/router/index.js +2 -2
  107. package/dist/react/server.js +13 -13
  108. package/dist/react/vendor/chunk-2kh60w9b.js +33 -0
  109. package/dist/react/vendor/chunk-9g12fvrw.js +236 -0
  110. package/dist/react/vendor/chunk-rejbymp5.js +837 -0
  111. package/dist/react/vendor/chunk-wwy122hz.js +200 -0
  112. package/dist/react/vendor/react-dom.js +44 -0
  113. package/dist/react/vendor/react-dom_client.js +15864 -0
  114. package/dist/react/vendor/react-refresh_runtime.js +304 -0
  115. package/dist/react/vendor/react.js +103 -0
  116. package/dist/react/vendor/react_jsx-dev-runtime.js +17 -0
  117. package/dist/react/vendor/react_jsx-runtime.js +22 -0
  118. package/dist/robots.txt +2 -0
  119. package/dist/runtime/blob.txt +1 -0
  120. package/dist/runtime/dir-join.txt +1 -0
  121. package/dist/runtime/nested/binary.bin +1 -0
  122. package/dist/runtime/nested/readfile.txt +1 -0
  123. package/dist/runtime/template.html +1 -0
  124. package/dist/server.js +92156 -0
  125. package/dist/sitemap.xml +48 -0
  126. package/dist/svelte/index.js +26 -26
  127. package/dist/svelte/router/page.js +1 -1
  128. package/dist/svelte/server/pages/SvelteExample.fxs20w1b.js +290 -0
  129. package/dist/svelte/server.js +13 -13
  130. package/dist/svelte/vendor/chunk-5qdxn1p3.js +4586 -0
  131. package/dist/svelte/vendor/chunk-8qdfbbez.js +12 -0
  132. package/dist/svelte/vendor/chunk-r2jyyfjt.js +4495 -0
  133. package/dist/svelte/vendor/svelte.js +49 -0
  134. package/dist/svelte/vendor/svelte_internal.js +2 -0
  135. package/dist/svelte/vendor/svelte_internal_client.js +395 -0
  136. package/dist/svelte/vendor/svelte_internal_disclose-version.js +7 -0
  137. package/dist/svelte/vendor/svelte_internal_flags_async.js +6 -0
  138. package/dist/svelte/vendor/svelte_internal_flags_legacy.js +6 -0
  139. package/dist/svelte/vendor/svelte_store.js +99 -0
  140. package/dist/vue/browser.js +3 -3
  141. package/dist/vue/components/Image.js +1 -1
  142. package/dist/vue/components/index.js +5 -5
  143. package/dist/vue/index.js +36 -36
  144. package/dist/vue/server/pages/VueExample.fyhmna2p.css +32 -0
  145. package/dist/vue/server/pages/VueExample.fyhmna2p.js +75 -0
  146. package/dist/vue/server.js +13 -13
  147. package/dist/vue/vendor/vue.js +11011 -0
  148. package/package.json +1 -1
@@ -0,0 +1,167 @@
1
+ import{i as lF}from"../../../../chunk-ysr5ycdt.js";var UJ=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");class Y5{element=null;classNames=[];attrs=[];notSelectors=[];static parse(J){let Y=[],Z=(Q,K)=>{if(K.notSelectors.length>0&&!K.element&&K.classNames.length==0&&K.attrs.length==0)K.element="*";Q.push(K)},$=new Y5,G,z=$,H=!1;UJ.lastIndex=0;while(G=UJ.exec(J)){if(G[1]){if(H)throw Error("Nesting :not in a selector is not allowed");H=!0,z=new Y5,$.notSelectors.push(z)}let Q=G[2];if(Q){let _=G[3];if(_==="#")z.addAttribute("id",Q.slice(1));else if(_===".")z.addClassName(Q.slice(1));else z.setElement(Q)}let K=G[4];if(K)z.addAttribute(z.unescapeAttribute(K),G[6]);if(G[7])H=!1,z=$;if(G[8]){if(H)throw Error("Multiple selectors in :not are not supported");Z(Y,$),$=z=new Y5}}return Z(Y,$),Y}unescapeAttribute(J){let Y="",Z=!1;for(let $=0;$<J.length;$++){let G=J.charAt($);if(G==="\\"){Z=!0;continue}if(G==="$"&&!Z)throw Error(`Error in attribute selector "${J}". Unescaped "$" is not supported. Please escape with "\\$".`);Z=!1,Y+=G}return Y}escapeAttribute(J){return J.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}setElement(J=null){this.element=J}getAttrs(){let J=[];if(this.classNames.length>0)J.push("class",this.classNames.join(" "));return J.concat(this.attrs)}addAttribute(J,Y=""){this.attrs.push(J,Y&&Y.toLowerCase()||"")}addClassName(J){this.classNames.push(J.toLowerCase())}toString(){let J=this.element||"";if(this.classNames)this.classNames.forEach((Y)=>J+=`.${Y}`);if(this.attrs)for(let Y=0;Y<this.attrs.length;Y+=2){let Z=this.escapeAttribute(this.attrs[Y]),$=this.attrs[Y+1];J+=`[${Z}${$?"="+$:""}]`}return this.notSelectors.forEach((Y)=>J+=`:not(${Y})`),J}}class U6{static createNotMatcher(J){let Y=new U6;return Y.addSelectables(J,null),Y}_elementMap=new Map;_elementPartialMap=new Map;_classMap=new Map;_classPartialMap=new Map;_attrValueMap=new Map;_attrValuePartialMap=new Map;_listContexts=[];addSelectables(J,Y){let Z=null;if(J.length>1)Z=new RZ(J),this._listContexts.push(Z);for(let $=0;$<J.length;$++)this._addSelectable(J[$],Y,Z)}_addSelectable(J,Y,Z){let $=this,G=J.element,z=J.classNames,H=J.attrs,Q=new UZ(J,Y,Z);if(G)if(H.length===0&&z.length===0)this._addTerminal($._elementMap,G,Q);else $=this._addPartial($._elementPartialMap,G);if(z)for(let K=0;K<z.length;K++){let _=H.length===0&&K===z.length-1,X=z[K];if(_)this._addTerminal($._classMap,X,Q);else $=this._addPartial($._classPartialMap,X)}if(H)for(let K=0;K<H.length;K+=2){let _=K===H.length-2,X=H[K],L=H[K+1];if(_){let F=$._attrValueMap,D=F.get(X);if(!D)D=new Map,F.set(X,D);this._addTerminal(D,L,Q)}else{let F=$._attrValuePartialMap,D=F.get(X);if(!D)D=new Map,F.set(X,D);$=this._addPartial(D,L)}}}_addTerminal(J,Y,Z){let $=J.get(Y);if(!$)$=[],J.set(Y,$);$.push(Z)}_addPartial(J,Y){let Z=J.get(Y);if(!Z)Z=new U6,J.set(Y,Z);return Z}match(J,Y){let Z=!1,$=J.element,G=J.classNames,z=J.attrs;for(let H=0;H<this._listContexts.length;H++)this._listContexts[H].alreadyMatched=!1;if(Z=this._matchTerminal(this._elementMap,$,J,Y)||Z,Z=this._matchPartial(this._elementPartialMap,$,J,Y)||Z,G)for(let H=0;H<G.length;H++){let Q=G[H];Z=this._matchTerminal(this._classMap,Q,J,Y)||Z,Z=this._matchPartial(this._classPartialMap,Q,J,Y)||Z}if(z)for(let H=0;H<z.length;H+=2){let Q=z[H],K=z[H+1],_=this._attrValueMap.get(Q);if(K)Z=this._matchTerminal(_,"",J,Y)||Z;Z=this._matchTerminal(_,K,J,Y)||Z;let X=this._attrValuePartialMap.get(Q);if(K)Z=this._matchPartial(X,"",J,Y)||Z;Z=this._matchPartial(X,K,J,Y)||Z}return Z}_matchTerminal(J,Y,Z,$){if(!J||typeof Y!=="string")return!1;let G=J.get(Y)||[],z=J.get("*");if(z)G=G.concat(z);if(G.length===0)return!1;let H,Q=!1;for(let K=0;K<G.length;K++)H=G[K],Q=H.finalize(Z,$)||Q;return Q}_matchPartial(J,Y,Z,$){if(!J||typeof Y!=="string")return!1;let G=J.get(Y);if(!G)return!1;return G.match(Z,$)}}class RZ{selectors;alreadyMatched=!1;constructor(J){this.selectors=J}}class UZ{selector;cbContext;listContext;notSelectors;constructor(J,Y,Z){this.selector=J,this.cbContext=Y,this.listContext=Z,this.notSelectors=J.notSelectors}finalize(J,Y){let Z=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched))Z=!U6.createNotMatcher(this.notSelectors).match(J,null);if(Z&&Y&&(!this.listContext||!this.listContext.alreadyMatched)){if(this.listContext)this.listContext.alreadyMatched=!0;Y(this.selector,this.cbContext)}return Z}}class l3{registry;constructor(J){this.registry=J}match(J){return this.registry.has(J)?this.registry.get(J):[]}}var t1;(function(J){J[J.Emulated=0]="Emulated",J[J.None=2]="None",J[J.ShadowDom=3]="ShadowDom",J[J.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(t1||(t1={}));var q7;(function(J){J[J.OnPush=0]="OnPush",J[J.Default=1]="Default",J[J.Eager=1]="Eager"})(q7||(q7={}));var $4;(function(J){J[J.None=0]="None",J[J.SignalBased=1]="SignalBased",J[J.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})($4||($4={}));var FJ={name:"custom-elements"},qJ={name:"no-errors-schema"};var s;(function(J){J[J.NONE=0]="NONE",J[J.HTML=1]="HTML",J[J.STYLE=2]="STYLE",J[J.SCRIPT=3]="SCRIPT",J[J.URL=4]="URL",J[J.RESOURCE_URL=5]="RESOURCE_URL",J[J.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING"})(s||(s={}));var VJ;(function(J){J[J.Error=0]="Error",J[J.Warning=1]="Warning",J[J.Ignore=2]="Ignore"})(VJ||(VJ={}));function Jz(J){let Y=J.classNames&&J.classNames.length?[8,...J.classNames]:[];return[J.element&&J.element!=="*"?J.element:"",...J.attrs,...Y]}function Yz(J){let Y=J.classNames&&J.classNames.length?[8,...J.classNames]:[];if(J.element)return[5,J.element,...J.attrs,...Y];else if(J.attrs.length)return[3,...J.attrs,...Y];else return J.classNames&&J.classNames.length?[9,...J.classNames]:[]}function Zz(J){let Y=Jz(J),Z=J.notSelectors&&J.notSelectors.length?J.notSelectors.map(($)=>Yz($)):[];return Y.concat(...Z)}function U8(J){return J?Y5.parse(J).map(Zz):[]}var I1;(function(J){J[J.Directive=0]="Directive",J[J.Component=1]="Component",J[J.Injectable=2]="Injectable",J[J.Pipe=3]="Pipe",J[J.NgModule=4]="NgModule"})(I1||(I1={}));var DJ;(function(J){J[J.Directive=0]="Directive",J[J.Pipe=1]="Pipe",J[J.NgModule=2]="NgModule"})(DJ||(DJ={}));var wJ;(function(J){J[J.Emulated=0]="Emulated",J[J.None=2]="None",J[J.ShadowDom=3]="ShadowDom",J[J.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(wJ||(wJ={}));var V7;function $z(J){return Qz(Hz(J.nodes).join("")+`[${J.meaning}]`)}function Gz(J){return J.id||FZ(J)}function FZ(J){let Y=new qZ,Z=J.nodes.map(($)=>$.visit(Y,null));return VZ(Z.join(""),J.meaning)}class F8{visitText(J,Y){return J.value}visitContainer(J,Y){return`[${J.children.map((Z)=>Z.visit(this)).join(", ")}]`}visitIcu(J,Y){let Z=Object.keys(J.cases).map(($)=>`${$} {${J.cases[$].visit(this)}}`);return`{${J.expression}, ${J.type}, ${Z.join(", ")}}`}visitTagPlaceholder(J,Y){return J.isVoid?`<ph tag name="${J.startName}"/>`:`<ph tag name="${J.startName}">${J.children.map((Z)=>Z.visit(this)).join(", ")}</ph name="${J.closeName}">`}visitPlaceholder(J,Y){return J.value?`<ph name="${J.name}">${J.value}</ph>`:`<ph name="${J.name}"/>`}visitIcuPlaceholder(J,Y){return`<ph icu name="${J.name}">${J.value.visit(this)}</ph>`}visitBlockPlaceholder(J,Y){return`<ph block name="${J.startName}">${J.children.map((Z)=>Z.visit(this)).join(", ")}</ph name="${J.closeName}">`}}var zz=new F8;function Hz(J){return J.map((Y)=>Y.visit(zz,null))}class qZ extends F8{visitIcu(J){let Y=Object.keys(J.cases).map((Z)=>`${Z} {${J.cases[Z].visit(this)}}`);return`{${J.type}, ${Y.join(", ")}}`}}function Qz(J){V7??=new TextEncoder;let Y=[...V7.encode(J)],Z=Kz(Y,D7.Big),$=Y.length*8,G=new Uint32Array(80),z=1732584193,H=4023233417,Q=2562383102,K=271733878,_=3285377520;Z[$>>5]|=128<<24-$%32,Z[($+64>>9<<4)+15]=$;for(let X=0;X<Z.length;X+=16){let L=z,F=H,D=Q,w=K,T=_;for(let I=0;I<80;I++){if(I<16)G[I]=Z[X+I];else G[I]=E3(G[I-3]^G[I-8]^G[I-14]^G[I-16],1);let B=_z(I,H,Q,K),d=B[0],t=B[1],l=[E3(z,5),d,_,t,G[I]].reduce(s5);_=K,K=Q,Q=E3(H,30),H=z,z=l}z=s5(z,L),H=s5(H,F),Q=s5(Q,D),K=s5(K,w),_=s5(_,T)}return c4(z)+c4(H)+c4(Q)+c4(K)+c4(_)}function c4(J){return(J>>>0).toString(16).padStart(8,"0")}function _z(J,Y,Z,$){if(J<20)return[Y&Z|~Y&$,1518500249];if(J<40)return[Y^Z^$,1859775393];if(J<60)return[Y&Z|Y&$|Z&$,2400959708];return[Y^Z^$,3395469782]}function EJ(J){V7??=new TextEncoder;let Y=V7.encode(J),Z=new DataView(Y.buffer,Y.byteOffset,Y.byteLength),$=AJ(Z,Y.length,0),G=AJ(Z,Y.length,102072);if($==0&&(G==0||G==1))$=$^319790063,G=G^-1801410264;return BigInt.asUintN(32,BigInt($))<<BigInt(32)|BigInt.asUintN(32,BigInt(G))}function VZ(J,Y=""){let Z=EJ(J);if(Y)Z=BigInt.asUintN(64,Z<<BigInt(1))|Z>>BigInt(63)&BigInt(1),Z+=EJ(Y);return BigInt.asUintN(63,Z).toString()}function AJ(J,Y,Z){let $=2654435769,G=2654435769,z=0,H=Y-12;for(;z<=H;z+=12){$+=J.getUint32(z,!0),G+=J.getUint32(z+4,!0),Z+=J.getUint32(z+8,!0);let K=IJ($,G,Z);$=K[0],G=K[1],Z=K[2]}let Q=Y-z;if(Z+=Y,Q>=4)if($+=J.getUint32(z,!0),z+=4,Q>=8){if(G+=J.getUint32(z,!0),z+=4,Q>=9)Z+=J.getUint8(z++)<<8;if(Q>=10)Z+=J.getUint8(z++)<<16;if(Q===11)Z+=J.getUint8(z++)<<24}else{if(Q>=5)G+=J.getUint8(z++);if(Q>=6)G+=J.getUint8(z++)<<8;if(Q===7)G+=J.getUint8(z++)<<16}else{if(Q>=1)$+=J.getUint8(z++);if(Q>=2)$+=J.getUint8(z++)<<8;if(Q===3)$+=J.getUint8(z++)<<16}return IJ($,G,Z)[2]}function IJ(J,Y,Z){return J-=Y,J-=Z,J^=Z>>>13,Y-=Z,Y-=J,Y^=J<<8,Z-=J,Z-=Y,Z^=Y>>>13,J-=Y,J-=Z,J^=Z>>>12,Y-=Z,Y-=J,Y^=J<<16,Z-=J,Z-=Y,Z^=Y>>>5,J-=Y,J-=Z,J^=Z>>>3,Y-=Z,Y-=J,Y^=J<<10,Z-=J,Z-=Y,Z^=Y>>>15,[J,Y,Z]}var D7;(function(J){J[J.Little=0]="Little",J[J.Big=1]="Big"})(D7||(D7={}));function s5(J,Y){return Wz(J,Y)[1]}function Wz(J,Y){let Z=(J&65535)+(Y&65535),$=(J>>>16)+(Y>>>16)+(Z>>>16);return[$>>>16,$<<16|Z&65535]}function E3(J,Y){return J<<Y|J>>>32-Y}function Kz(J,Y){let Z=J.length+3>>>2,$=[];for(let G=0;G<Z;G++)$[G]=Xz(J,G*4,Y);return $}function jJ(J,Y){return Y>=J.length?0:J[Y]}function Xz(J,Y,Z){let $=0;if(Z===D7.Big)for(let G=0;G<4;G++)$+=jJ(J,Y+G)<<24-8*G;else for(let G=0;G<4;G++)$+=jJ(J,Y+G)<<8*G;return $}var c3;(function(J){J[J.None=0]="None",J[J.Const=1]="Const"})(c3||(c3={}));class q8{modifiers;constructor(J=c3.None){this.modifiers=J}hasModifier(J){return(this.modifiers&J)!==0}}var O1;(function(J){J[J.Dynamic=0]="Dynamic",J[J.Bool=1]="Bool",J[J.String=2]="String",J[J.Int=3]="Int",J[J.Number=4]="Number",J[J.Function=5]="Function",J[J.Inferred=6]="Inferred",J[J.None=7]="None"})(O1||(O1={}));class d1 extends q8{name;constructor(J,Y){super(Y);this.name=J}visitType(J,Y){return J.visitBuiltinType(this,Y)}}class F1 extends q8{value;typeParams;constructor(J,Y,Z=null){super(Y);this.value=J,this.typeParams=Z}visitType(J,Y){return J.visitExpressionType(this,Y)}}var g0=new d1(O1.Dynamic),q1=new d1(O1.Inferred),Lz=new d1(O1.Bool),$q=new d1(O1.Int),y5=new d1(O1.Number),V8=new d1(O1.String),Gq=new d1(O1.Function),N1=new d1(O1.None),U4;(function(J){J[J.Minus=0]="Minus",J[J.Plus=1]="Plus"})(U4||(U4={}));var E;(function(J){J[J.Equals=0]="Equals",J[J.NotEquals=1]="NotEquals",J[J.Assign=2]="Assign",J[J.Identical=3]="Identical",J[J.NotIdentical=4]="NotIdentical",J[J.Minus=5]="Minus",J[J.Plus=6]="Plus",J[J.Divide=7]="Divide",J[J.Multiply=8]="Multiply",J[J.Modulo=9]="Modulo",J[J.And=10]="And",J[J.Or=11]="Or",J[J.BitwiseOr=12]="BitwiseOr",J[J.BitwiseAnd=13]="BitwiseAnd",J[J.Lower=14]="Lower",J[J.LowerEquals=15]="LowerEquals",J[J.Bigger=16]="Bigger",J[J.BiggerEquals=17]="BiggerEquals",J[J.NullishCoalesce=18]="NullishCoalesce",J[J.Exponentiation=19]="Exponentiation",J[J.In=20]="In",J[J.InstanceOf=21]="InstanceOf",J[J.AdditionAssignment=22]="AdditionAssignment",J[J.SubtractionAssignment=23]="SubtractionAssignment",J[J.MultiplicationAssignment=24]="MultiplicationAssignment",J[J.DivisionAssignment=25]="DivisionAssignment",J[J.RemainderAssignment=26]="RemainderAssignment",J[J.ExponentiationAssignment=27]="ExponentiationAssignment",J[J.AndAssignment=28]="AndAssignment",J[J.OrAssignment=29]="OrAssignment",J[J.NullishCoalesceAssignment=30]="NullishCoalesceAssignment"})(E||(E={}));function Rz(J,Y){if(J==null||Y==null)return J==Y;return J.isEquivalent(Y)}function DZ(J,Y,Z){let $=J.length;if($!==Y.length)return!1;for(let G=0;G<$;G++)if(!Z(J[G],Y[G]))return!1;return!0}function s0(J,Y){return DZ(J,Y,(Z,$)=>Z.isEquivalent($))}class p{type;sourceSpan;constructor(J,Y){this.type=J||null,this.sourceSpan=Y||null}prop(J,Y){return new b0(this,J,null,Y)}key(J,Y,Z){return new M1(this,J,Y,Z)}callFn(J,Y,Z){return new h0(this,J,null,Y,Z)}instantiate(J,Y,Z){return new q4(this,J,Y,Z)}conditional(J,Y=null,Z){return new V1(this,J,Y,null,Z)}equals(J,Y){return new b(E.Equals,this,J,null,Y)}notEquals(J,Y){return new b(E.NotEquals,this,J,null,Y)}identical(J,Y){return new b(E.Identical,this,J,null,Y)}notIdentical(J,Y){return new b(E.NotIdentical,this,J,null,Y)}minus(J,Y){return new b(E.Minus,this,J,null,Y)}plus(J,Y){return new b(E.Plus,this,J,null,Y)}divide(J,Y){return new b(E.Divide,this,J,null,Y)}multiply(J,Y){return new b(E.Multiply,this,J,null,Y)}modulo(J,Y){return new b(E.Modulo,this,J,null,Y)}power(J,Y){return new b(E.Exponentiation,this,J,null,Y)}and(J,Y){return new b(E.And,this,J,null,Y)}bitwiseOr(J,Y){return new b(E.BitwiseOr,this,J,null,Y)}bitwiseAnd(J,Y){return new b(E.BitwiseAnd,this,J,null,Y)}or(J,Y){return new b(E.Or,this,J,null,Y)}lower(J,Y){return new b(E.Lower,this,J,null,Y)}lowerEquals(J,Y){return new b(E.LowerEquals,this,J,null,Y)}bigger(J,Y){return new b(E.Bigger,this,J,null,Y)}biggerEquals(J,Y){return new b(E.BiggerEquals,this,J,null,Y)}isBlank(J){return this.equals(Dz,J)}nullishCoalesce(J,Y){return new b(E.NullishCoalesce,this,J,null,Y)}toStmt(){return new I0(this,null)}}class G1 extends p{name;constructor(J,Y,Z){super(Y,Z);this.name=J}isEquivalent(J){return J instanceof G1&&this.name===J.name}isConstant(){return!1}visitExpression(J,Y){return J.visitReadVarExpr(this,Y)}clone(){return new G1(this.name,this.type,this.sourceSpan)}set(J){return new b(E.Assign,this,J,null,this.sourceSpan)}}class h5 extends p{expr;constructor(J,Y,Z){super(Y,Z);this.expr=J}visitExpression(J,Y){return J.visitTypeofExpr(this,Y)}isEquivalent(J){return J instanceof h5&&J.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new h5(this.expr.clone())}}class F6 extends p{expr;constructor(J,Y,Z){super(Y,Z);this.expr=J}visitExpression(J,Y){return J.visitVoidExpr(this,Y)}isEquivalent(J){return J instanceof F6&&J.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new F6(this.expr.clone())}}class g extends p{node;constructor(J,Y,Z){super(Y,Z);this.node=J}isEquivalent(J){return J instanceof g&&this.node===J.node}isConstant(){return!1}visitExpression(J,Y){return J.visitWrappedNodeExpr(this,Y)}clone(){return new g(this.node,this.type,this.sourceSpan)}}class h0 extends p{fn;args;pure;constructor(J,Y,Z,$,G=!1){super(Z,$);this.fn=J,this.args=Y,this.pure=G}get receiver(){return this.fn}isEquivalent(J){return J instanceof h0&&this.fn.isEquivalent(J.fn)&&s0(this.args,J.args)&&this.pure===J.pure}isConstant(){return!1}visitExpression(J,Y){return J.visitInvokeFunctionExpr(this,Y)}clone(){return new h0(this.fn.clone(),this.args.map((J)=>J.clone()),this.type,this.sourceSpan,this.pure)}}class F4 extends p{tag;template;constructor(J,Y,Z,$){super(Z,$);this.tag=J,this.template=Y}isEquivalent(J){return J instanceof F4&&this.tag.isEquivalent(J.tag)&&this.template.isEquivalent(J.template)}isConstant(){return!1}visitExpression(J,Y){return J.visitTaggedTemplateLiteralExpr(this,Y)}clone(){return new F4(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}}class q4 extends p{classExpr;args;constructor(J,Y,Z,$){super(Z,$);this.classExpr=J,this.args=Y}isEquivalent(J){return J instanceof q4&&this.classExpr.isEquivalent(J.classExpr)&&s0(this.args,J.args)}isConstant(){return!1}visitExpression(J,Y){return J.visitInstantiateExpr(this,Y)}clone(){return new q4(this.classExpr.clone(),this.args.map((J)=>J.clone()),this.type,this.sourceSpan)}}class k5 extends p{body;flags;constructor(J,Y,Z){super(null,Z);this.body=J,this.flags=Y}isEquivalent(J){return J instanceof k5&&this.body===J.body&&this.flags===J.flags}isConstant(){return!0}visitExpression(J,Y){return J.visitRegularExpressionLiteral(this,Y)}clone(){return new k5(this.body,this.flags,this.sourceSpan)}}class w0 extends p{value;constructor(J,Y,Z){super(Y,Z);this.value=J}isEquivalent(J){return J instanceof w0&&this.value===J.value}isConstant(){return!0}visitExpression(J,Y){return J.visitLiteralExpr(this,Y)}clone(){return new w0(this.value,this.type,this.sourceSpan)}}class V4 extends p{elements;expressions;constructor(J,Y,Z){super(null,Z);this.elements=J,this.expressions=Y}isEquivalent(J){return J instanceof V4&&DZ(this.elements,J.elements,(Y,Z)=>Y.text===Z.text)&&s0(this.expressions,J.expressions)}isConstant(){return!1}visitExpression(J,Y){return J.visitTemplateLiteralExpr(this,Y)}clone(){return new V4(this.elements.map((J)=>J.clone()),this.expressions.map((J)=>J.clone()))}}class q6 extends p{text;rawText;constructor(J,Y,Z){super(V8,Y);this.text=J,this.rawText=Z??d3(X7(J))}visitExpression(J,Y){return J.visitTemplateLiteralElementExpr(this,Y)}isEquivalent(J){return J instanceof q6&&J.text===this.text&&J.rawText===this.rawText}isConstant(){return!0}clone(){return new q6(this.text,this.sourceSpan,this.rawText)}}class W4{text;sourceSpan;constructor(J,Y){this.text=J,this.sourceSpan=Y}}class G6{text;sourceSpan;associatedMessage;constructor(J,Y,Z){this.text=J,this.sourceSpan=Y,this.associatedMessage=Z}}var Uz="|",CJ="@@",Fz="␟";class p7 extends p{metaBlock;messageParts;placeHolderNames;expressions;constructor(J,Y,Z,$,G){super(V8,G);this.metaBlock=J,this.messageParts=Y,this.placeHolderNames=Z,this.expressions=$}isEquivalent(J){return!1}isConstant(){return!1}visitExpression(J,Y){return J.visitLocalizedString(this,Y)}clone(){return new p7(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map((J)=>J.clone()),this.sourceSpan)}serializeI18nHead(){let J=this.metaBlock.description||"";if(this.metaBlock.meaning)J=`${this.metaBlock.meaning}${Uz}${J}`;if(this.metaBlock.customId)J=`${J}${CJ}${this.metaBlock.customId}`;if(this.metaBlock.legacyIds)this.metaBlock.legacyIds.forEach((Y)=>{J=`${J}${Fz}${Y}`});return TJ(J,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(J){return this.messageParts[J]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(J){return this.placeHolderNames[J]?.sourceSpan??this.expressions[J]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(J){let Y=this.placeHolderNames[J-1],Z=this.messageParts[J],$=Y.text;if(Y.associatedMessage?.legacyIds.length===0)$+=`${CJ}${VZ(Y.associatedMessage.messageString,Y.associatedMessage.meaning)}`;return TJ($,Z.text,this.getMessagePartSourceSpan(J))}}var X7=(J)=>J.replace(/\\/g,"\\\\"),qz=(J)=>J.replace(/^:/,"\\:"),Vz=(J)=>J.replace(/:/g,"\\:"),d3=(J)=>J.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function TJ(J,Y,Z){if(J==="")return{cooked:Y,raw:d3(qz(X7(Y))),range:Z};else return{cooked:`:${J}:${Y}`,raw:d3(`:${Vz(X7(J))}:${X7(Y)}`),range:Z}}class G5 extends p{value;typeParams;constructor(J,Y,Z=null,$){super(Y,$);this.value=J,this.typeParams=Z}isEquivalent(J){return J instanceof G5&&this.value.name===J.value.name&&this.value.moduleName===J.value.moduleName}isConstant(){return!1}visitExpression(J,Y){return J.visitExternalExpr(this,Y)}clone(){return new G5(this.value,this.type,this.typeParams,this.sourceSpan)}}class V1 extends p{condition;falseCase;trueCase;constructor(J,Y,Z=null,$,G){super($||Y.type,G);this.condition=J,this.falseCase=Z,this.trueCase=Y}isEquivalent(J){return J instanceof V1&&this.condition.isEquivalent(J.condition)&&this.trueCase.isEquivalent(J.trueCase)&&Rz(this.falseCase,J.falseCase)}isConstant(){return!1}visitExpression(J,Y){return J.visitConditionalExpr(this,Y)}clone(){return new V1(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}}class D4 extends p{condition;constructor(J,Y){super(Lz,Y);this.condition=J}isEquivalent(J){return J instanceof D4&&this.condition.isEquivalent(J.condition)}isConstant(){return!1}visitExpression(J,Y){return J.visitNotExpr(this,Y)}clone(){return new D4(this.condition.clone(),this.sourceSpan)}}class Q0{name;type;constructor(J,Y=null){this.name=J,this.type=Y}isEquivalent(J){return this.name===J.name}clone(){return new Q0(this.name,this.type)}}class f1 extends p{params;statements;name;constructor(J,Y,Z,$,G){super(Z,$);this.params=J,this.statements=Y,this.name=G}isEquivalent(J){return(J instanceof f1||J instanceof V6)&&s0(this.params,J.params)&&s0(this.statements,J.statements)}isConstant(){return!1}visitExpression(J,Y){return J.visitFunctionExpr(this,Y)}toDeclStmt(J,Y){return new V6(J,this.params,this.statements,this.type,Y,this.sourceSpan)}clone(){return new f1(this.params.map((J)=>J.clone()),this.statements,this.type,this.sourceSpan,this.name)}}var l5=class J extends p{params;body;constructor(Y,Z,$,G){super($,G);this.params=Y,this.body=Z}isEquivalent(Y){if(!(Y instanceof J)||!s0(this.params,Y.params))return!1;if(this.body instanceof p&&Y.body instanceof p)return this.body.isEquivalent(Y.body);if(Array.isArray(this.body)&&Array.isArray(Y.body))return s0(this.body,Y.body);return!1}isConstant(){return!1}visitExpression(Y,Z){return Y.visitArrowFunctionExpr(this,Z)}clone(){return new J(this.params.map((Y)=>Y.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(Y,Z){return new U0(Y,this,q1,Z,this.sourceSpan)}};class z5 extends p{operator;expr;parens;constructor(J,Y,Z,$,G=!0){super(Z||y5,$);this.operator=J,this.expr=Y,this.parens=G}isEquivalent(J){return J instanceof z5&&this.operator===J.operator&&this.expr.isEquivalent(J.expr)}isConstant(){return!1}visitExpression(J,Y){return J.visitUnaryOperatorExpr(this,Y)}clone(){return new z5(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}}class z1 extends p{expr;constructor(J,Y,Z){super(Y,Z);this.expr=J}visitExpression(J,Y){return J.visitParenthesizedExpr(this,Y)}isEquivalent(J){return J instanceof z1&&J.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new z1(this.expr.clone())}}class b extends p{operator;rhs;lhs;constructor(J,Y,Z,$,G){super($||Y.type,G);this.operator=J,this.rhs=Z,this.lhs=Y}isEquivalent(J){return J instanceof b&&this.operator===J.operator&&this.lhs.isEquivalent(J.lhs)&&this.rhs.isEquivalent(J.rhs)}isConstant(){return!1}visitExpression(J,Y){return J.visitBinaryOperatorExpr(this,Y)}clone(){return new b(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let J=this.operator;return J===E.Assign||J===E.AdditionAssignment||J===E.SubtractionAssignment||J===E.MultiplicationAssignment||J===E.DivisionAssignment||J===E.RemainderAssignment||J===E.ExponentiationAssignment||J===E.AndAssignment||J===E.OrAssignment||J===E.NullishCoalesceAssignment}}class b0 extends p{receiver;name;constructor(J,Y,Z,$){super(Z,$);this.receiver=J,this.name=Y}get index(){return this.name}isEquivalent(J){return J instanceof b0&&this.receiver.isEquivalent(J.receiver)&&this.name===J.name}isConstant(){return!1}visitExpression(J,Y){return J.visitReadPropExpr(this,Y)}set(J){return new b(E.Assign,this.receiver.prop(this.name),J,null,this.sourceSpan)}clone(){return new b0(this.receiver.clone(),this.name,this.type,this.sourceSpan)}}class M1 extends p{receiver;index;constructor(J,Y,Z,$){super(Z,$);this.receiver=J,this.index=Y}isEquivalent(J){return J instanceof M1&&this.receiver.isEquivalent(J.receiver)&&this.index.isEquivalent(J.index)}isConstant(){return!1}visitExpression(J,Y){return J.visitReadKeyExpr(this,Y)}set(J){return new b(E.Assign,this.receiver.key(this.index),J,null,this.sourceSpan)}clone(){return new M1(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}}class D1 extends p{entries;constructor(J,Y,Z){super(Y,Z);this.entries=J}isConstant(){return this.entries.every((J)=>J.isConstant())}isEquivalent(J){return J instanceof D1&&s0(this.entries,J.entries)}visitExpression(J,Y){return J.visitLiteralArrayExpr(this,Y)}clone(){return new D1(this.entries.map((J)=>J.clone()),this.type,this.sourceSpan)}}class v4{key;value;quoted;constructor(J,Y,Z){this.key=J,this.value=Y,this.quoted=Z}isEquivalent(J){return this.key===J.key&&this.value.isEquivalent(J.value)}clone(){return new v4(this.key,this.value.clone(),this.quoted)}isConstant(){return this.value.isConstant()}}class b1{expression;constructor(J){this.expression=J}isEquivalent(J){return J instanceof b1&&this.expression.isEquivalent(J.expression)}clone(){return new b1(this.expression.clone())}isConstant(){return this.expression.isConstant()}}class H1 extends p{entries;valueType=null;constructor(J,Y,Z){super(Y,Z);if(this.entries=J,Y)this.valueType=Y.valueType}isEquivalent(J){return J instanceof H1&&s0(this.entries,J.entries)}isConstant(){return this.entries.every((J)=>J.isConstant())}visitExpression(J,Y){return J.visitLiteralMapExpr(this,Y)}clone(){let J=this.entries.map((Y)=>Y.clone());return new H1(J,this.type,this.sourceSpan)}}class H5 extends p{expression;constructor(J,Y){super(null,Y);this.expression=J}isEquivalent(J){return J instanceof H5&&this.expression.isEquivalent(J.expression)}isConstant(){return this.expression.isConstant()}visitExpression(J,Y){return J.visitSpreadElementExpr(this,Y)}clone(){return new H5(this.expression.clone(),this.sourceSpan)}}var w4=new w0(null,null,null),Dz=new w0(null,q1,null),D0;(function(J){J[J.None=0]="None",J[J.Final=1]="Final",J[J.Private=2]="Private",J[J.Exported=4]="Exported",J[J.Static=8]="Static"})(D0||(D0={}));class wZ{text;multiline;trailingNewline;constructor(J,Y,Z){this.text=J,this.multiline=Y,this.trailingNewline=Z}toString(){return this.multiline?` ${this.text} `:this.text}}class D8 extends wZ{tags;constructor(J){super("",!0,!0);this.tags=J}toString(){return jz(this.tags)}}class S4{modifiers;sourceSpan;leadingComments;constructor(J=D0.None,Y=null,Z){this.modifiers=J,this.sourceSpan=Y,this.leadingComments=Z}hasModifier(J){return(this.modifiers&J)!==0}addLeadingComment(J){this.leadingComments=this.leadingComments??[],this.leadingComments.push(J)}}class U0 extends S4{name;value;type;constructor(J,Y,Z,$,G,z){super($,G,z);this.name=J,this.value=Y,this.type=Z||Y&&Y.type||null}isEquivalent(J){return J instanceof U0&&this.name===J.name&&(this.value?!!J.value&&this.value.isEquivalent(J.value):!J.value)}visitStatement(J,Y){return J.visitDeclareVarStmt(this,Y)}}class V6 extends S4{name;params;statements;type;constructor(J,Y,Z,$,G,z,H){super(G,z,H);this.name=J,this.params=Y,this.statements=Z,this.type=$||null}isEquivalent(J){return J instanceof V6&&s0(this.params,J.params)&&s0(this.statements,J.statements)}visitStatement(J,Y){return J.visitDeclareFunctionStmt(this,Y)}}class I0 extends S4{expr;constructor(J,Y,Z){super(D0.None,Y,Z);this.expr=J}isEquivalent(J){return J instanceof I0&&this.expr.isEquivalent(J.expr)}visitStatement(J,Y){return J.visitExpressionStmt(this,Y)}}class _0 extends S4{value;constructor(J,Y=null,Z){super(D0.None,Y,Z);this.value=J}isEquivalent(J){return J instanceof _0&&this.value.isEquivalent(J.value)}visitStatement(J,Y){return J.visitReturnStmt(this,Y)}}class i7 extends S4{condition;trueCase;falseCase;constructor(J,Y,Z=[],$,G){super(D0.None,$,G);this.condition=J,this.trueCase=Y,this.falseCase=Z}isEquivalent(J){return J instanceof i7&&this.condition.isEquivalent(J.condition)&&s0(this.trueCase,J.trueCase)&&s0(this.falseCase,J.falseCase)}visitStatement(J,Y){return J.visitIfStmt(this,Y)}}function wz(J=[]){return new D8(J)}function S(J,Y,Z){return new G1(J,Y,Z)}function O(J,Y=null,Z){return new G5(J,null,Y,Z)}function A0(J,Y,Z){return new F1(J,Y,Z)}function u6(J){return new h5(J)}function o(J,Y,Z){return new D1(J,Y,Z)}function Q1(J,Y=null){return new H1(J.map((Z)=>new v4(Z.key,Z.value,Z.quoted)),Y,null)}function Ez(J,Y){return new D4(J,Y)}function Q5(J,Y,Z,$,G){return new f1(J,Y,Z,$,G)}function o0(J,Y,Z,$){return new l5(J,Y,Z,$)}function s7(J,Y,Z,$,G){return new i7(J,Y,Z,$,G)}function Az(J,Y,Z,$){return new F4(J,Y,Z,$)}function q(J,Y,Z){return new w0(J,Y,Z)}function Iz(J,Y,Z,$,G){return new p7(J,Y,Z,$,G)}function BJ(J){let Y="";if(J.tagName)Y+=` @${J.tagName}`;if(J.text){if(J.text.match(/\/\*|\*\//))throw Error('JSDoc text cannot contain "/*" and "*/"');Y+=" "+J.text.replace(/@/g,"\\@")}return Y}function jz(J){if(J.length===0)return"";if(J.length===1&&J[0].tagName&&!J[0].text)return`*${BJ(J[0])} `;let Y=`*
2
+ `;for(let Z of J)Y+=" *",Y+=BJ(Z).replace(/\n/g,`
3
+ * `),Y+=`
4
+ `;return Y+=" ",Y}var Cz="_c",Tz={},Bz=50;class w7 extends p{resolved;original;shared=!1;constructor(J){super(J.type);this.resolved=J,this.original=J}visitExpression(J,Y){if(Y===Tz)return this.original.visitExpression(J,Y);else return this.resolved.visitExpression(J,Y)}isEquivalent(J){return J instanceof w7&&this.resolved.isEquivalent(J.resolved)}isConstant(){return!0}clone(){throw Error("Not supported.")}fixup(J){this.resolved=J,this.shared=!0}}class p3{isClosureCompilerEnabled;statements=[];literals=new Map;literalFactories=new Map;sharedConstants=new Map;_claimedNames=new Map;nextNameIndex=0;constructor(J=!1){this.isClosureCompilerEnabled=J}getConstLiteral(J,Y){if(J instanceof w0&&!OJ(J)||J instanceof w7)return J;let Z=m6.INSTANCE.keyOf(J),$=this.literals.get(Z),G=!1;if(!$)$=new w7(J),this.literals.set(Z,$),G=!0;if(!G&&!$.shared||G&&Y){let z=this.freshName(),H,Q;if(this.isClosureCompilerEnabled&&OJ(J))H=new f1([],[new _0(J)]),Q=S(z).callFn([]);else H=J,Q=S(z);this.statements.push(new U0(z,H,q1,D0.Final)),$.fixup(Q)}return $}getSharedConstant(J,Y){let Z=J.keyOf(Y);if(!this.sharedConstants.has(Z)){let $=this.freshName();this.sharedConstants.set(Z,S($)),this.statements.push(J.toSharedConstantDeclaration($,Y))}return this.sharedConstants.get(Z)}getSharedFunctionReference(J,Y,Z=!0){let $=J instanceof l5;for(let z of this.statements){if($&&z instanceof U0&&z.value?.isEquivalent(J))return S(z.name);if(!$&&z instanceof V6&&J instanceof f1&&J.isEquivalent(z))return S(z.name)}let G=Z?this.uniqueName(Y):Y;return this.statements.push(J instanceof f1?J.toDeclStmt(G,D0.Final):new U0(G,J,q1,D0.Final,J.sourceSpan)),S(G)}uniqueName(J,Y=!0){let Z=this._claimedNames.get(J)??0,$=Z===0&&!Y?`${J}`:`${J}${Z}`;return this._claimedNames.set(J,Z+1),$}freshName(){return this.uniqueName(Cz)}}class m6{static INSTANCE=new m6;keyOf(J){if(J instanceof w0&&typeof J.value==="string")return`"${J.value}"`;else if(J instanceof w0)return String(J.value);else if(J instanceof k5)return`/${J.body}/${J.flags??""}`;else if(J instanceof D1){let Y=[];for(let Z of J.entries)Y.push(this.keyOf(Z));return`[${Y.join(",")}]`}else if(J instanceof H1){let Y=[];for(let Z of J.entries)if(Z instanceof b1)Y.push("..."+this.keyOf(Z.expression));else{let $=Z.key;if(Z.quoted)$=`"${$}"`;Y.push($+":"+this.keyOf(Z.value))}return`{${Y.join(",")}}`}else if(J instanceof G5)return`import("${J.value.moduleName}", ${J.value.name})`;else if(J instanceof G1)return`read(${J.name})`;else if(J instanceof h5)return`typeof(${this.keyOf(J.expr)})`;else if(J instanceof H5)return`...${this.keyOf(J.expression)}`;else throw Error(`${this.constructor.name} does not handle expressions of type ${J.constructor.name}`)}}function OJ(J){return J instanceof w0&&typeof J.value==="string"&&J.value.length>=Bz}var U="@angular/core";class R{static core={name:null,moduleName:U};static namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:U};static namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:U};static namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:U};static element={name:"ɵɵelement",moduleName:U};static elementStart={name:"ɵɵelementStart",moduleName:U};static elementEnd={name:"ɵɵelementEnd",moduleName:U};static domElement={name:"ɵɵdomElement",moduleName:U};static domElementStart={name:"ɵɵdomElementStart",moduleName:U};static domElementEnd={name:"ɵɵdomElementEnd",moduleName:U};static domElementContainer={name:"ɵɵdomElementContainer",moduleName:U};static domElementContainerStart={name:"ɵɵdomElementContainerStart",moduleName:U};static domElementContainerEnd={name:"ɵɵdomElementContainerEnd",moduleName:U};static domTemplate={name:"ɵɵdomTemplate",moduleName:U};static domListener={name:"ɵɵdomListener",moduleName:U};static advance={name:"ɵɵadvance",moduleName:U};static syntheticHostProperty={name:"ɵɵsyntheticHostProperty",moduleName:U};static syntheticHostListener={name:"ɵɵsyntheticHostListener",moduleName:U};static attribute={name:"ɵɵattribute",moduleName:U};static classProp={name:"ɵɵclassProp",moduleName:U};static elementContainerStart={name:"ɵɵelementContainerStart",moduleName:U};static elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:U};static elementContainer={name:"ɵɵelementContainer",moduleName:U};static styleMap={name:"ɵɵstyleMap",moduleName:U};static classMap={name:"ɵɵclassMap",moduleName:U};static styleProp={name:"ɵɵstyleProp",moduleName:U};static interpolate={name:"ɵɵinterpolate",moduleName:U};static interpolate1={name:"ɵɵinterpolate1",moduleName:U};static interpolate2={name:"ɵɵinterpolate2",moduleName:U};static interpolate3={name:"ɵɵinterpolate3",moduleName:U};static interpolate4={name:"ɵɵinterpolate4",moduleName:U};static interpolate5={name:"ɵɵinterpolate5",moduleName:U};static interpolate6={name:"ɵɵinterpolate6",moduleName:U};static interpolate7={name:"ɵɵinterpolate7",moduleName:U};static interpolate8={name:"ɵɵinterpolate8",moduleName:U};static interpolateV={name:"ɵɵinterpolateV",moduleName:U};static nextContext={name:"ɵɵnextContext",moduleName:U};static resetView={name:"ɵɵresetView",moduleName:U};static templateCreate={name:"ɵɵtemplate",moduleName:U};static defer={name:"ɵɵdefer",moduleName:U};static deferWhen={name:"ɵɵdeferWhen",moduleName:U};static deferOnIdle={name:"ɵɵdeferOnIdle",moduleName:U};static deferOnImmediate={name:"ɵɵdeferOnImmediate",moduleName:U};static deferOnTimer={name:"ɵɵdeferOnTimer",moduleName:U};static deferOnHover={name:"ɵɵdeferOnHover",moduleName:U};static deferOnInteraction={name:"ɵɵdeferOnInteraction",moduleName:U};static deferOnViewport={name:"ɵɵdeferOnViewport",moduleName:U};static deferPrefetchWhen={name:"ɵɵdeferPrefetchWhen",moduleName:U};static deferPrefetchOnIdle={name:"ɵɵdeferPrefetchOnIdle",moduleName:U};static deferPrefetchOnImmediate={name:"ɵɵdeferPrefetchOnImmediate",moduleName:U};static deferPrefetchOnTimer={name:"ɵɵdeferPrefetchOnTimer",moduleName:U};static deferPrefetchOnHover={name:"ɵɵdeferPrefetchOnHover",moduleName:U};static deferPrefetchOnInteraction={name:"ɵɵdeferPrefetchOnInteraction",moduleName:U};static deferPrefetchOnViewport={name:"ɵɵdeferPrefetchOnViewport",moduleName:U};static deferHydrateWhen={name:"ɵɵdeferHydrateWhen",moduleName:U};static deferHydrateNever={name:"ɵɵdeferHydrateNever",moduleName:U};static deferHydrateOnIdle={name:"ɵɵdeferHydrateOnIdle",moduleName:U};static deferHydrateOnImmediate={name:"ɵɵdeferHydrateOnImmediate",moduleName:U};static deferHydrateOnTimer={name:"ɵɵdeferHydrateOnTimer",moduleName:U};static deferHydrateOnHover={name:"ɵɵdeferHydrateOnHover",moduleName:U};static deferHydrateOnInteraction={name:"ɵɵdeferHydrateOnInteraction",moduleName:U};static deferHydrateOnViewport={name:"ɵɵdeferHydrateOnViewport",moduleName:U};static deferEnableTimerScheduling={name:"ɵɵdeferEnableTimerScheduling",moduleName:U};static conditionalCreate={name:"ɵɵconditionalCreate",moduleName:U};static conditionalBranchCreate={name:"ɵɵconditionalBranchCreate",moduleName:U};static conditional={name:"ɵɵconditional",moduleName:U};static repeater={name:"ɵɵrepeater",moduleName:U};static repeaterCreate={name:"ɵɵrepeaterCreate",moduleName:U};static repeaterTrackByIndex={name:"ɵɵrepeaterTrackByIndex",moduleName:U};static repeaterTrackByIdentity={name:"ɵɵrepeaterTrackByIdentity",moduleName:U};static componentInstance={name:"ɵɵcomponentInstance",moduleName:U};static text={name:"ɵɵtext",moduleName:U};static enableBindings={name:"ɵɵenableBindings",moduleName:U};static disableBindings={name:"ɵɵdisableBindings",moduleName:U};static getCurrentView={name:"ɵɵgetCurrentView",moduleName:U};static textInterpolate={name:"ɵɵtextInterpolate",moduleName:U};static textInterpolate1={name:"ɵɵtextInterpolate1",moduleName:U};static textInterpolate2={name:"ɵɵtextInterpolate2",moduleName:U};static textInterpolate3={name:"ɵɵtextInterpolate3",moduleName:U};static textInterpolate4={name:"ɵɵtextInterpolate4",moduleName:U};static textInterpolate5={name:"ɵɵtextInterpolate5",moduleName:U};static textInterpolate6={name:"ɵɵtextInterpolate6",moduleName:U};static textInterpolate7={name:"ɵɵtextInterpolate7",moduleName:U};static textInterpolate8={name:"ɵɵtextInterpolate8",moduleName:U};static textInterpolateV={name:"ɵɵtextInterpolateV",moduleName:U};static restoreView={name:"ɵɵrestoreView",moduleName:U};static pureFunction0={name:"ɵɵpureFunction0",moduleName:U};static pureFunction1={name:"ɵɵpureFunction1",moduleName:U};static pureFunction2={name:"ɵɵpureFunction2",moduleName:U};static pureFunction3={name:"ɵɵpureFunction3",moduleName:U};static pureFunction4={name:"ɵɵpureFunction4",moduleName:U};static pureFunction5={name:"ɵɵpureFunction5",moduleName:U};static pureFunction6={name:"ɵɵpureFunction6",moduleName:U};static pureFunction7={name:"ɵɵpureFunction7",moduleName:U};static pureFunction8={name:"ɵɵpureFunction8",moduleName:U};static pureFunctionV={name:"ɵɵpureFunctionV",moduleName:U};static pipeBind1={name:"ɵɵpipeBind1",moduleName:U};static pipeBind2={name:"ɵɵpipeBind2",moduleName:U};static pipeBind3={name:"ɵɵpipeBind3",moduleName:U};static pipeBind4={name:"ɵɵpipeBind4",moduleName:U};static pipeBindV={name:"ɵɵpipeBindV",moduleName:U};static domProperty={name:"ɵɵdomProperty",moduleName:U};static ariaProperty={name:"ɵɵariaProperty",moduleName:U};static property={name:"ɵɵproperty",moduleName:U};static control={name:"ɵɵcontrol",moduleName:U};static controlCreate={name:"ɵɵcontrolCreate",moduleName:U};static animationEnterListener={name:"ɵɵanimateEnterListener",moduleName:U};static animationLeaveListener={name:"ɵɵanimateLeaveListener",moduleName:U};static animationEnter={name:"ɵɵanimateEnter",moduleName:U};static animationLeave={name:"ɵɵanimateLeave",moduleName:U};static i18n={name:"ɵɵi18n",moduleName:U};static i18nAttributes={name:"ɵɵi18nAttributes",moduleName:U};static i18nExp={name:"ɵɵi18nExp",moduleName:U};static i18nStart={name:"ɵɵi18nStart",moduleName:U};static i18nEnd={name:"ɵɵi18nEnd",moduleName:U};static i18nApply={name:"ɵɵi18nApply",moduleName:U};static i18nPostprocess={name:"ɵɵi18nPostprocess",moduleName:U};static pipe={name:"ɵɵpipe",moduleName:U};static projection={name:"ɵɵprojection",moduleName:U};static projectionDef={name:"ɵɵprojectionDef",moduleName:U};static reference={name:"ɵɵreference",moduleName:U};static inject={name:"ɵɵinject",moduleName:U};static injectAttribute={name:"ɵɵinjectAttribute",moduleName:U};static directiveInject={name:"ɵɵdirectiveInject",moduleName:U};static invalidFactory={name:"ɵɵinvalidFactory",moduleName:U};static invalidFactoryDep={name:"ɵɵinvalidFactoryDep",moduleName:U};static templateRefExtractor={name:"ɵɵtemplateRefExtractor",moduleName:U};static forwardRef={name:"forwardRef",moduleName:U};static resolveForwardRef={name:"resolveForwardRef",moduleName:U};static replaceMetadata={name:"ɵɵreplaceMetadata",moduleName:U};static getReplaceMetadataURL={name:"ɵɵgetReplaceMetadataURL",moduleName:U};static ɵɵdefineInjectable={name:"ɵɵdefineInjectable",moduleName:U};static declareInjectable={name:"ɵɵngDeclareInjectable",moduleName:U};static InjectableDeclaration={name:"ɵɵInjectableDeclaration",moduleName:U};static resolveWindow={name:"ɵɵresolveWindow",moduleName:U};static resolveDocument={name:"ɵɵresolveDocument",moduleName:U};static resolveBody={name:"ɵɵresolveBody",moduleName:U};static getComponentDepsFactory={name:"ɵɵgetComponentDepsFactory",moduleName:U};static defineComponent={name:"ɵɵdefineComponent",moduleName:U};static declareComponent={name:"ɵɵngDeclareComponent",moduleName:U};static setComponentScope={name:"ɵɵsetComponentScope",moduleName:U};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:U};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:U};static ComponentDeclaration={name:"ɵɵComponentDeclaration",moduleName:U};static FactoryDeclaration={name:"ɵɵFactoryDeclaration",moduleName:U};static declareFactory={name:"ɵɵngDeclareFactory",moduleName:U};static FactoryTarget={name:"ɵɵFactoryTarget",moduleName:U};static defineDirective={name:"ɵɵdefineDirective",moduleName:U};static declareDirective={name:"ɵɵngDeclareDirective",moduleName:U};static DirectiveDeclaration={name:"ɵɵDirectiveDeclaration",moduleName:U};static InjectorDef={name:"ɵɵInjectorDef",moduleName:U};static InjectorDeclaration={name:"ɵɵInjectorDeclaration",moduleName:U};static defineInjector={name:"ɵɵdefineInjector",moduleName:U};static declareInjector={name:"ɵɵngDeclareInjector",moduleName:U};static NgModuleDeclaration={name:"ɵɵNgModuleDeclaration",moduleName:U};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:U};static defineNgModule={name:"ɵɵdefineNgModule",moduleName:U};static declareNgModule={name:"ɵɵngDeclareNgModule",moduleName:U};static setNgModuleScope={name:"ɵɵsetNgModuleScope",moduleName:U};static registerNgModuleType={name:"ɵɵregisterNgModuleType",moduleName:U};static PipeDeclaration={name:"ɵɵPipeDeclaration",moduleName:U};static definePipe={name:"ɵɵdefinePipe",moduleName:U};static declarePipe={name:"ɵɵngDeclarePipe",moduleName:U};static declareClassMetadata={name:"ɵɵngDeclareClassMetadata",moduleName:U};static declareClassMetadataAsync={name:"ɵɵngDeclareClassMetadataAsync",moduleName:U};static setClassMetadata={name:"ɵsetClassMetadata",moduleName:U};static setClassMetadataAsync={name:"ɵsetClassMetadataAsync",moduleName:U};static setClassDebugInfo={name:"ɵsetClassDebugInfo",moduleName:U};static queryRefresh={name:"ɵɵqueryRefresh",moduleName:U};static viewQuery={name:"ɵɵviewQuery",moduleName:U};static loadQuery={name:"ɵɵloadQuery",moduleName:U};static contentQuery={name:"ɵɵcontentQuery",moduleName:U};static viewQuerySignal={name:"ɵɵviewQuerySignal",moduleName:U};static contentQuerySignal={name:"ɵɵcontentQuerySignal",moduleName:U};static queryAdvance={name:"ɵɵqueryAdvance",moduleName:U};static twoWayProperty={name:"ɵɵtwoWayProperty",moduleName:U};static twoWayBindingSet={name:"ɵɵtwoWayBindingSet",moduleName:U};static twoWayListener={name:"ɵɵtwoWayListener",moduleName:U};static declareLet={name:"ɵɵdeclareLet",moduleName:U};static storeLet={name:"ɵɵstoreLet",moduleName:U};static readContextLet={name:"ɵɵreadContextLet",moduleName:U};static arrowFunction={name:"ɵɵarrowFunction",moduleName:U};static attachSourceLocations={name:"ɵɵattachSourceLocations",moduleName:U};static NgOnChangesFeature={name:"ɵɵNgOnChangesFeature",moduleName:U};static ControlFeature={name:"ɵɵControlFeature",moduleName:U};static InheritDefinitionFeature={name:"ɵɵInheritDefinitionFeature",moduleName:U};static ProvidersFeature={name:"ɵɵProvidersFeature",moduleName:U};static HostDirectivesFeature={name:"ɵɵHostDirectivesFeature",moduleName:U};static ExternalStylesFeature={name:"ɵɵExternalStylesFeature",moduleName:U};static listener={name:"ɵɵlistener",moduleName:U};static getInheritedFactory={name:"ɵɵgetInheritedFactory",moduleName:U};static sanitizeHtml={name:"ɵɵsanitizeHtml",moduleName:U};static sanitizeStyle={name:"ɵɵsanitizeStyle",moduleName:U};static validateAttribute={name:"ɵɵvalidateAttribute",moduleName:U};static sanitizeResourceUrl={name:"ɵɵsanitizeResourceUrl",moduleName:U};static sanitizeScript={name:"ɵɵsanitizeScript",moduleName:U};static sanitizeUrl={name:"ɵɵsanitizeUrl",moduleName:U};static sanitizeUrlOrResourceUrl={name:"ɵɵsanitizeUrlOrResourceUrl",moduleName:U};static trustConstantHtml={name:"ɵɵtrustConstantHtml",moduleName:U};static trustConstantResourceUrl={name:"ɵɵtrustConstantResourceUrl",moduleName:U};static inputDecorator={name:"Input",moduleName:U};static outputDecorator={name:"Output",moduleName:U};static viewChildDecorator={name:"ViewChild",moduleName:U};static viewChildrenDecorator={name:"ViewChildren",moduleName:U};static contentChildDecorator={name:"ContentChild",moduleName:U};static contentChildrenDecorator={name:"ContentChildren",moduleName:U};static InputSignalBrandWriteType={name:"ɵINPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:U};static UnwrapDirectiveSignalInputs={name:"ɵUnwrapDirectiveSignalInputs",moduleName:U};static unwrapWritableSignal={name:"ɵunwrapWritableSignal",moduleName:U};static assertType={name:"ɵassertType",moduleName:U}}var Oz=/-+([a-z0-9])/g;function Nz(J){return J.replace(Oz,(...Y)=>Y[1].toUpperCase())}function Mz(J,Y){return EZ(J,":",Y)}function Pz(J,Y){return EZ(J,".",Y)}function EZ(J,Y,Z){let $=J.indexOf(Y);if($==-1)return Z;return[J.slice(0,$).trim(),J.slice($+1).trim()]}function yz(J){let Y=[];for(let Z=0;Z<J.length;Z++){let $=J.charCodeAt(Z);if($>=55296&&$<=56319&&J.length>Z+1){let G=J.charCodeAt(Z+1);if(G>=56320&&G<=57343)Z++,$=($-55296<<10)+G-56320+65536}if($<=127)Y.push($);else if($<=2047)Y.push($>>6&31|192,$&63|128);else if($<=65535)Y.push($>>12|224,$>>6&63|128,$&63|128);else if($<=2097151)Y.push($>>18&7|240,$>>12&63|128,$>>6&63|128,$&63|128)}return Y}function AZ(J){if(typeof J==="string")return J;if(Array.isArray(J))return`[${J.map(AZ).join(", ")}]`;if(J==null)return""+J;let Y=J.overriddenName||J.name;if(Y)return`${Y}`;if(!J.toString)return"object";let Z=J.toString();if(Z==null)return""+Z;let $=Z.indexOf(`
5
+ `);return $>=0?Z.slice(0,$):Z}class IZ{full;major;minor;patch;constructor(J){this.full=J;let Y=J.split(".");this.major=Y[0],this.minor=Y[1],this.patch=Y.slice(2).join(".")}}var z6=globalThis,hz=/^([1-9]|1[0-8])\./;function jZ(J){if(J.startsWith("0."))return!0;if(hz.test(J))return!1;return!0}var kz=3,xz="# sourceMappingURL=data:application/json;base64,";class CZ{file;sourcesContent=new Map;lines=[];lastCol0=0;hasMappings=!1;constructor(J=null){this.file=J}addSource(J,Y=null){if(!this.sourcesContent.has(J))this.sourcesContent.set(J,Y);return this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(J,Y,Z,$){if(!this.currentLine)throw Error("A line must be added before mappings can be added");if(Y!=null&&!this.sourcesContent.has(Y))throw Error(`Unknown source file "${Y}"`);if(J==null)throw Error("The column in the generated code must be provided");if(J<this.lastCol0)throw Error("Mapping should be added in output order");if(Y&&(Z==null||$==null))throw Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=J,this.currentLine.push({col0:J,sourceUrl:Y,sourceLine0:Z,sourceCol0:$}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let J=new Map,Y=[],Z=[];Array.from(this.sourcesContent.keys()).forEach((K,_)=>{J.set(K,_),Y.push(K),Z.push(this.sourcesContent.get(K)||null)});let $="",G=0,z=0,H=0,Q=0;return this.lines.forEach((K)=>{G=0,$+=K.map((_)=>{let X=e6(_.col0-G);if(G=_.col0,_.sourceUrl!=null)X+=e6(J.get(_.sourceUrl)-z),z=J.get(_.sourceUrl),X+=e6(_.sourceLine0-H),H=_.sourceLine0,X+=e6(_.sourceCol0-Q),Q=_.sourceCol0;return X}).join(","),$+=";"}),$=$.slice(0,-1),{file:this.file||"",version:kz,sourceRoot:"",sources:Y,sourcesContent:Z,mappings:$}}toJsComment(){return this.hasMappings?"//"+xz+vz(JSON.stringify(this,null,0)):""}}function vz(J){let Y="",Z=yz(J);for(let $=0;$<Z.length;){let G=Z[$++],z=$<Z.length?Z[$++]:null,H=$<Z.length?Z[$++]:null;Y+=e4(G>>2),Y+=e4((G&3)<<4|(z===null?0:z>>4)),Y+=z===null?"=":e4((z&15)<<2|(H===null?0:H>>6)),Y+=z===null||H===null?"=":e4(H&63)}return Y}function e6(J){J=J<0?(-J<<1)+1:J<<1;let Y="";do{let Z=J&31;if(J=J>>5,J>0)Z=Z|32;Y+=e4(Z)}while(J>0);return Y}var Sz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function e4(J){if(J<0||J>=64)throw Error("Can only encode value in the range [0, 63]");return Sz[J]}var fz=/'|\\|\n|\r|\$/g,gz=/^[$A-Z_][0-9A-Z_$]*$/i,i3=" ";class s3{indent;partsLength=0;parts=[];srcSpans=[];constructor(J){this.indent=J}}var bz=new Map([[E.And,"&&"],[E.Bigger,">"],[E.BiggerEquals,">="],[E.BitwiseOr,"|"],[E.BitwiseAnd,"&"],[E.Divide,"/"],[E.Assign,"="],[E.Equals,"=="],[E.Identical,"==="],[E.Lower,"<"],[E.LowerEquals,"<="],[E.Minus,"-"],[E.Modulo,"%"],[E.Exponentiation,"**"],[E.Multiply,"*"],[E.NotEquals,"!="],[E.NotIdentical,"!=="],[E.NullishCoalesce,"??"],[E.Or,"||"],[E.Plus,"+"],[E.In,"in"],[E.InstanceOf,"instanceof"],[E.AdditionAssignment,"+="],[E.SubtractionAssignment,"-="],[E.MultiplicationAssignment,"*="],[E.DivisionAssignment,"/="],[E.RemainderAssignment,"%="],[E.ExponentiationAssignment,"**="],[E.AndAssignment,"&&="],[E.OrAssignment,"||="],[E.NullishCoalesceAssignment,"??="]]);class w8{_indent;static createRoot(){return new w8(0)}_lines;constructor(J){this._indent=J,this._lines=[new s3(J)]}get _currentLine(){return this._lines[this._lines.length-1]}println(J,Y=""){this.print(J||null,Y,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*i3.length+this._currentLine.partsLength}print(J,Y,Z=!1){if(Y.length>0)this._currentLine.parts.push(Y),this._currentLine.partsLength+=Y.length,this._currentLine.srcSpans.push(J&&J.sourceSpan||null);if(Z)this._lines.push(new s3(this._indent))}removeEmptyLastLine(){if(this.lineIsEmpty())this._lines.pop()}incIndent(){if(this._indent++,this.lineIsEmpty())this._currentLine.indent=this._indent}decIndent(){if(this._indent--,this.lineIsEmpty())this._currentLine.indent=this._indent}toSource(){return this.sourceLines.map((J)=>J.parts.length>0?NJ(J.indent)+J.parts.join(""):"").join(`
6
+ `)}toSourceMapGenerator(J,Y=0){let Z=new CZ(J),$=!1,G=()=>{if(!$)Z.addSource(J," ").addMapping(0,J,0,0),$=!0};for(let z=0;z<Y;z++)Z.addLine(),G();return this.sourceLines.forEach((z,H)=>{Z.addLine();let{srcSpans:Q,parts:K}=z,_=z.indent*i3.length,X=0;while(X<Q.length&&!Q[X])_+=K[X].length,X++;if(X<Q.length&&H===0&&_===0)$=!0;else G();while(X<Q.length){let L=Q[X],F=L.start.file,D=L.start.line,w=L.start.col;Z.addSource(F.url,F.content).addMapping(_,F.url,D,w),_+=K[X].length,X++;while(X<Q.length&&(L===Q[X]||!Q[X]))_+=K[X].length,X++}}),Z}spanOf(J,Y){let Z=this._lines[J];if(Z){let $=Y-NJ(Z.indent).length;for(let G=0;G<Z.parts.length;G++){let z=Z.parts[G];if(z.length>$)return Z.srcSpans[G];$-=z.length}}return null}get sourceLines(){if(this._lines.length&&this._lines[this._lines.length-1].parts.length===0)return this._lines.slice(0,-1);return this._lines}}class TZ{_escapeDollarInStrings;lastIfCondition=null;constructor(J){this._escapeDollarInStrings=J}printLeadingComments(J,Y){if(J.leadingComments===void 0)return;for(let Z of J.leadingComments)if(Z instanceof D8)Y.print(J,`/*${Z.toString()}*/`,Z.trailingNewline);else if(Z.multiline)Y.print(J,`/* ${Z.text} */`,Z.trailingNewline);else Z.text.split(`
7
+ `).forEach(($)=>{Y.println(J,`// ${$}`)})}visitExpressionStmt(J,Y){return this.printLeadingComments(J,Y),J.expr.visitExpression(this,Y),Y.println(J,";"),null}visitReturnStmt(J,Y){return this.printLeadingComments(J,Y),Y.print(J,"return "),J.value.visitExpression(this,Y),Y.println(J,";"),null}visitIfStmt(J,Y){this.printLeadingComments(J,Y),Y.print(J,"if ("),this.lastIfCondition=J.condition,J.condition.visitExpression(this,Y),this.lastIfCondition=null,Y.print(J,") {");let Z=J.falseCase!=null&&J.falseCase.length>0;if(J.trueCase.length<=1&&!Z)Y.print(J," "),this.visitAllStatements(J.trueCase,Y),Y.removeEmptyLastLine(),Y.print(J," ");else if(Y.println(),Y.incIndent(),this.visitAllStatements(J.trueCase,Y),Y.decIndent(),Z)Y.println(J,"} else {"),Y.incIndent(),this.visitAllStatements(J.falseCase,Y),Y.decIndent();return Y.println(J,"}"),null}visitInvokeFunctionExpr(J,Y){let Z=J.fn instanceof l5;if(Z)Y.print(J.fn,"(");if(J.fn.visitExpression(this,Y),Z)Y.print(J.fn,")");return Y.print(J,"("),this.visitAllExpressions(J.args,Y,","),Y.print(J,")"),null}visitTaggedTemplateLiteralExpr(J,Y){return J.tag.visitExpression(this,Y),J.template.visitExpression(this,Y),null}visitTemplateLiteralExpr(J,Y){Y.print(J,"`");for(let Z=0;Z<J.elements.length;Z++){J.elements[Z].visitExpression(this,Y);let $=Z<J.expressions.length?J.expressions[Z]:null;if($!==null)Y.print($,"${"),$.visitExpression(this,Y),Y.print($,"}")}Y.print(J,"`")}visitTemplateLiteralElementExpr(J,Y){Y.print(J,J.rawText)}visitWrappedNodeExpr(J,Y){throw Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(J,Y){Y.print(J,"typeof "),J.expr.visitExpression(this,Y)}visitVoidExpr(J,Y){Y.print(J,"void "),J.expr.visitExpression(this,Y)}visitReadVarExpr(J,Y){return Y.print(J,J.name),null}visitInstantiateExpr(J,Y){return Y.print(J,"new "),J.classExpr.visitExpression(this,Y),Y.print(J,"("),this.visitAllExpressions(J.args,Y,","),Y.print(J,")"),null}visitLiteralExpr(J,Y){let Z=J.value;if(typeof Z==="string")Y.print(J,j5(Z,this._escapeDollarInStrings));else Y.print(J,`${Z}`);return null}visitRegularExpressionLiteral(J,Y){return Y.print(J,`/${J.body}/${J.flags||""}`),null}visitLocalizedString(J,Y){let Z=J.serializeI18nHead();Y.print(J,"$localize `"+Z.raw);for(let $=1;$<J.messageParts.length;$++)Y.print(J,"${"),J.expressions[$-1].visitExpression(this,Y),Y.print(J,`}${J.serializeI18nTemplatePart($).raw}`);return Y.print(J,"`"),null}visitConditionalExpr(J,Y){return Y.print(J,"("),J.condition.visitExpression(this,Y),Y.print(J,"? "),J.trueCase.visitExpression(this,Y),Y.print(J,": "),J.falseCase.visitExpression(this,Y),Y.print(J,")"),null}visitDynamicImportExpr(J,Y){Y.print(J,`import(${J.url})`)}visitNotExpr(J,Y){return Y.print(J,"!"),J.condition.visitExpression(this,Y),null}visitUnaryOperatorExpr(J,Y){let Z;switch(J.operator){case U4.Plus:Z="+";break;case U4.Minus:Z="-";break;default:throw Error(`Unknown operator ${J.operator}`)}let $=J!==this.lastIfCondition;if($)Y.print(J,"(");if(Y.print(J,Z),J.expr.visitExpression(this,Y),$)Y.print(J,")");return null}visitBinaryOperatorExpr(J,Y){let Z=bz.get(J.operator);if(!Z)throw Error(`Unknown operator ${J.operator}`);let $=J!==this.lastIfCondition;if($)Y.print(J,"(");if(J.lhs.visitExpression(this,Y),Y.print(J,` ${Z} `),J.rhs.visitExpression(this,Y),$)Y.print(J,")");return null}visitReadPropExpr(J,Y){return J.receiver.visitExpression(this,Y),Y.print(J,"."),Y.print(J,J.name),null}visitReadKeyExpr(J,Y){return J.receiver.visitExpression(this,Y),Y.print(J,"["),J.index.visitExpression(this,Y),Y.print(J,"]"),null}visitLiteralArrayExpr(J,Y){return Y.print(J,"["),this.visitAllExpressions(J.entries,Y,","),Y.print(J,"]"),null}visitLiteralMapExpr(J,Y){return Y.print(J,"{"),this.visitAllObjects((Z)=>{if(Z instanceof b1)Y.print(J,"..."),Z.expression.visitExpression(this,Y);else Y.print(J,`${j5(Z.key,this._escapeDollarInStrings,Z.quoted)}:`),Z.value.visitExpression(this,Y)},J.entries,Y,","),Y.print(J,"}"),null}visitCommaExpr(J,Y){return Y.print(J,"("),this.visitAllExpressions(J.parts,Y,","),Y.print(J,")"),null}visitParenthesizedExpr(J,Y){J.expr.visitExpression(this,Y)}visitSpreadElementExpr(J,Y){Y.print(J,"..."),J.expression.visitExpression(this,Y)}visitAllExpressions(J,Y,Z){this.visitAllObjects(($)=>$.visitExpression(this,Y),J,Y,Z)}visitAllObjects(J,Y,Z,$){let G=!1;for(let z=0;z<Y.length;z++){if(z>0)if(Z.lineLength()>80){if(Z.print(null,$,!0),!G)Z.incIndent(),Z.incIndent(),G=!0}else Z.print(null,$,!1);J(Y[z])}if(G)Z.decIndent(),Z.decIndent()}visitAllStatements(J,Y){J.forEach((Z)=>Z.visitStatement(this,Y))}}function j5(J,Y,Z=!0){if(J==null)return null;let $=J.replace(fz,(...z)=>{if(z[0]=="$")return Y?"\\$":"$";else if(z[0]==`
8
+ `)return"\\n";else if(z[0]=="\r")return"\\r";else return`\\${z[0]}`});return Z||!gz.test($)?`'${$}'`:$}function NJ(J){let Y="";for(let Z=0;Z<J;Z++)Y+=i3;return Y}function o7(J,Y){if(Y===0)return A0(J);let Z=[];for(let $=0;$<Y;$++)Z.push(g0);return A0(J,void 0,Z)}function uz(J,Y){let Z=j5(Y,!1,!1);return Z!==Y?`${J}[${Z}]`:`${J}.${Y}`}function mz(J){return lz("ngJitMode",J)}function lz(J,Y){let Z=new G5({name:J,moduleName:null}),$=new b(E.Identical,new h5(Z),q("undefined")),G=new b(E.Or,$,Z,void 0,void 0);return new b(E.And,G,Y)}function L0(J){let Y=new g(J);return{value:Y,type:Y}}function C5(J,Y){let Z=o(J.map(($)=>$.value));return Y?o0([],Z):Z}function E8(J,Y){return{expression:J,forwardRef:Y}}function cz({expression:J,forwardRef:Y}){switch(Y){case 0:case 1:return J;case 2:return dz(J)}}function dz(J){return O(R.forwardRef).callFn([o0([],J)])}var D6;(function(J){J[J.Class=0]="Class",J[J.Function=1]="Function"})(D6||(D6={}));function A5(J){let Y=S("__ngFactoryType__"),Z=null,$=!PJ(J)?new b(E.Or,Y,J.type.value):Y,G=null;if(J.deps!==null){if(J.deps!=="invalid")G=new q4($,MJ(J.deps,J.target))}else Z=S(`ɵ${J.name}_BaseFactory`),G=Z.callFn([$]);let z=[],H=null;function Q(_){let X=S("__ngConditionalFactory__");z.push(new U0(X.name,w4,q1));let L=G!==null?X.set(G).toStmt():O(R.invalidFactory).callFn([]).toStmt();return z.push(s7(Y,[L],[X.set(_).toStmt()])),X}if(PJ(J)){let _=MJ(J.delegateDeps,J.target),X=new(J.delegateType===D6.Class?q4:h0)(J.delegate,_);H=Q(X)}else if(nz(J))H=Q(J.expression);else H=G;if(H===null)z.push(O(R.invalidFactory).callFn([]).toStmt());else if(Z!==null){let _=O(R.getInheritedFactory).callFn([J.type.value]),X=new b(E.Or,Z,Z.set(_));z.push(new _0(X.callFn([$])))}else z.push(new _0(H));let K=Q5([new Q0(Y.name,g0)],z,q1,void 0,`${J.name}_Factory`);if(Z!==null)K=o0([],[new U0(Z.name),new _0(K)]).callFn([],void 0,!0);return{expression:K,statements:[],type:pz(J)}}function pz(J){let Y=J.deps!==null&&J.deps!=="invalid"?sz(J.deps):N1;return A0(O(R.FactoryDeclaration,[o7(J.type.type,J.typeArgumentCount),Y]))}function MJ(J,Y){return J.map((Z,$)=>iz(Z,Y,$))}function iz(J,Y,Z){if(J.token===null)return O(R.invalidFactoryDep).callFn([q(Z)]);else if(J.attributeNameType===null){let $=0|(J.self?2:0)|(J.skipSelf?4:0)|(J.host?1:0)|(J.optional?8:0)|(Y===I1.Pipe?16:0),G=$!==0||J.optional?q($):null,z=[J.token];if(G)z.push(G);let H=rz(Y);return O(H).callFn(z)}else return O(R.injectAttribute).callFn([J.token])}function sz(J){let Y=!1,Z=J.map(($)=>{let G=oz($);if(G!==null)return Y=!0,G;else return q(null)});if(Y)return A0(o(Z));else return N1}function oz(J){let Y=[];if(J.attributeNameType!==null)Y.push({key:"attribute",value:J.attributeNameType,quoted:!1});if(J.optional)Y.push({key:"optional",value:q(!0),quoted:!1});if(J.host)Y.push({key:"host",value:q(!0),quoted:!1});if(J.self)Y.push({key:"self",value:q(!0),quoted:!1});if(J.skipSelf)Y.push({key:"skipSelf",value:q(!0),quoted:!1});return Y.length>0?Q1(Y):null}function PJ(J){return J.delegateType!==void 0}function nz(J){return J.expression!==void 0}function rz(J){switch(J){case I1.Component:case I1.Directive:case I1.Pipe:return R.directiveInject;case I1.NgModule:case I1.Injectable:default:return R.inject}}class E4{start;end;constructor(J,Y){this.start=J,this.end=Y}toAbsolute(J){return new Z1(J+this.start,J+this.end)}}class a{span;sourceSpan;constructor(J,Y){this.span=J,this.sourceSpan=Y}toString(){return"AST"}}class n7 extends a{nameSpan;constructor(J,Y,Z){super(J,Y);this.nameSpan=Z}}var j0=class extends a{visit(Y,Z=null){return Y.visitEmptyExpr?.(this,Z)}};class u1 extends a{visit(J,Y=null){return J.visitImplicitReceiver(this,Y)}}class r7 extends a{visit(J,Y=null){return J.visitThisReceiver?.(this,Y)}}class l6 extends a{expressions;constructor(J,Y,Z){super(J,Y);this.expressions=Z}visit(J,Y=null){return J.visitChain(this,Y)}}class A8 extends a{condition;trueExp;falseExp;constructor(J,Y,Z,$,G){super(J,Y);this.condition=Z,this.trueExp=$,this.falseExp=G}visit(J,Y=null){return J.visitConditional(this,Y)}}class g1 extends n7{receiver;name;constructor(J,Y,Z,$,G){super(J,Y,Z);this.receiver=$,this.name=G}visit(J,Y=null){return J.visitPropertyRead(this,Y)}}class a7 extends n7{receiver;name;constructor(J,Y,Z,$,G){super(J,Y,Z);this.receiver=$,this.name=G}visit(J,Y=null){return J.visitSafePropertyRead(this,Y)}}class A4 extends a{receiver;key;constructor(J,Y,Z,$){super(J,Y);this.receiver=Z,this.key=$}visit(J,Y=null){return J.visitKeyedRead(this,Y)}}class t7 extends a{receiver;key;constructor(J,Y,Z,$){super(J,Y);this.receiver=Z,this.key=$}visit(J,Y=null){return J.visitSafeKeyedRead(this,Y)}}var H6;(function(J){J[J.ReferencedByName=0]="ReferencedByName",J[J.ReferencedDirectly=1]="ReferencedDirectly"})(H6||(H6={}));class I8 extends n7{exp;name;args;type;constructor(J,Y,Z,$,G,z,H){super(J,Y,H);this.exp=Z,this.name=$,this.args=G,this.type=z}visit(J,Y=null){return J.visitPipe(this,Y)}}class d0 extends a{value;constructor(J,Y,Z){super(J,Y);this.value=Z}visit(J,Y=null){return J.visitLiteralPrimitive(this,Y)}}class e7 extends a{expressions;constructor(J,Y,Z){super(J,Y);this.expressions=Z}visit(J,Y=null){return J.visitLiteralArray(this,Y)}}class j8 extends a{expression;constructor(J,Y,Z){super(J,Y);this.expression=Z}visit(J,Y=null){return J.visitSpreadElement(this,Y)}}class I4 extends a{keys;values;constructor(J,Y,Z,$){super(J,Y);this.keys=Z,this.values=$}visit(J,Y=null){return J.visitLiteralMap(this,Y)}}var c6=class extends a{strings;expressions;constructor(Y,Z,$,G){super(Y,Z);this.strings=$,this.expressions=G}visit(Y,Z=null){return Y.visitInterpolation(this,Z)}};class k0 extends a{operation;left;right;constructor(J,Y,Z,$,G){super(J,Y);this.operation=Z,this.left=$,this.right=G}visit(J,Y=null){return J.visitBinary(this,Y)}static isAssignmentOperation(J){return J==="="||J==="+="||J==="-="||J==="*="||J==="/="||J==="%="||J==="**="||J==="&&="||J==="||="||J==="??="}}class B5 extends k0{operator;expr;left=null;right=null;operation=null;static createMinus(J,Y,Z){return new B5(J,Y,"-",Z,"-",new d0(J,Y,0),Z)}static createPlus(J,Y,Z){return new B5(J,Y,"+",Z,"-",Z,new d0(J,Y,0))}constructor(J,Y,Z,$,G,z,H){super(J,Y,G,z,H);this.operator=Z,this.expr=$}visit(J,Y=null){if(J.visitUnary!==void 0)return J.visitUnary(this,Y);return J.visitBinary(this,Y)}}class E7 extends a{expression;constructor(J,Y,Z){super(J,Y);this.expression=Z}visit(J,Y=null){return J.visitPrefixNot(this,Y)}}class A7 extends a{expression;constructor(J,Y,Z){super(J,Y);this.expression=Z}visit(J,Y=null){return J.visitTypeofExpression(this,Y)}}class I7 extends a{expression;constructor(J,Y,Z){super(J,Y);this.expression=Z}visit(J,Y=null){return J.visitVoidExpression(this,Y)}}class J3 extends a{expression;constructor(J,Y,Z){super(J,Y);this.expression=Z}visit(J,Y=null){return J.visitNonNullAssert(this,Y)}}class d6 extends a{receiver;args;argumentSpan;constructor(J,Y,Z,$,G){super(J,Y);this.receiver=Z,this.args=$,this.argumentSpan=G}visit(J,Y=null){return J.visitCall(this,Y)}}class C8 extends a{receiver;args;argumentSpan;constructor(J,Y,Z,$,G){super(J,Y);this.receiver=Z,this.args=$,this.argumentSpan=G}visit(J,Y=null){return J.visitSafeCall(this,Y)}}class j7 extends a{tag;template;constructor(J,Y,Z,$){super(J,Y);this.tag=Z,this.template=$}visit(J,Y){return J.visitTaggedTemplateLiteral(this,Y)}}class C7 extends a{elements;expressions;constructor(J,Y,Z,$){super(J,Y);this.elements=Z,this.expressions=$}visit(J,Y){return J.visitTemplateLiteral(this,Y)}}class o3 extends a{text;constructor(J,Y,Z){super(J,Y);this.text=Z}visit(J,Y){return J.visitTemplateLiteralElement(this,Y)}}class Y3 extends a{expression;constructor(J,Y,Z){super(J,Y);this.expression=Z}visit(J,Y){return J.visitParenthesizedExpression(this,Y)}}class BZ{name;span;sourceSpan;constructor(J,Y,Z){this.name=J,this.span=Y,this.sourceSpan=Z}}class T8 extends a{parameters;body;constructor(J,Y,Z,$){super(J,Y);this.parameters=Z,this.body=$}visit(J,Y){return J.visitArrowFunction(this,Y)}}class B8 extends a{body;flags;constructor(J,Y,Z,$){super(J,Y);this.body=Z,this.flags=$}visit(J,Y){return J.visitRegularExpressionLiteral(this,Y)}}class Z1{start;end;constructor(J,Y){this.start=J,this.end=Y}}class p0 extends a{ast;source;location;errors;constructor(J,Y,Z,$,G){super(new E4(0,Y===null?0:Y.length),new Z1($,Y===null?$:$+Y.length));this.ast=J,this.source=Y,this.location=Z,this.errors=G}visit(J,Y=null){if(J.visitASTWithSource)return J.visitASTWithSource(this,Y);return this.ast.visit(J,Y)}toString(){return`${this.source} in ${this.location}`}}class T7{sourceSpan;key;value;constructor(J,Y,Z){this.sourceSpan=J,this.key=Y,this.value=Z}}class OZ{sourceSpan;key;value;constructor(J,Y,Z){this.sourceSpan=J,this.key=Y,this.value=Z}}class p6{visit(J,Y){J.visit(this,Y)}visitUnary(J,Y){this.visit(J.expr,Y)}visitBinary(J,Y){this.visit(J.left,Y),this.visit(J.right,Y)}visitChain(J,Y){this.visitAll(J.expressions,Y)}visitConditional(J,Y){this.visit(J.condition,Y),this.visit(J.trueExp,Y),this.visit(J.falseExp,Y)}visitPipe(J,Y){this.visit(J.exp,Y),this.visitAll(J.args,Y)}visitImplicitReceiver(J,Y){}visitThisReceiver(J,Y){}visitInterpolation(J,Y){this.visitAll(J.expressions,Y)}visitKeyedRead(J,Y){this.visit(J.receiver,Y),this.visit(J.key,Y)}visitLiteralArray(J,Y){this.visitAll(J.expressions,Y)}visitLiteralMap(J,Y){this.visitAll(J.values,Y)}visitLiteralPrimitive(J,Y){}visitPrefixNot(J,Y){this.visit(J.expression,Y)}visitTypeofExpression(J,Y){this.visit(J.expression,Y)}visitVoidExpression(J,Y){this.visit(J.expression,Y)}visitNonNullAssert(J,Y){this.visit(J.expression,Y)}visitPropertyRead(J,Y){this.visit(J.receiver,Y)}visitSafePropertyRead(J,Y){this.visit(J.receiver,Y)}visitSafeKeyedRead(J,Y){this.visit(J.receiver,Y),this.visit(J.key,Y)}visitCall(J,Y){this.visit(J.receiver,Y),this.visitAll(J.args,Y)}visitSafeCall(J,Y){this.visit(J.receiver,Y),this.visitAll(J.args,Y)}visitTemplateLiteral(J,Y){for(let Z=0;Z<J.elements.length;Z++){this.visit(J.elements[Z],Y);let $=Z<J.expressions.length?J.expressions[Z]:null;if($!==null)this.visit($,Y)}}visitTemplateLiteralElement(J,Y){}visitTaggedTemplateLiteral(J,Y){this.visit(J.tag,Y),this.visit(J.template,Y)}visitParenthesizedExpression(J,Y){this.visit(J.expression,Y)}visitArrowFunction(J,Y){this.visit(J.body,Y)}visitRegularExpressionLiteral(J,Y){}visitSpreadElement(J,Y){this.visit(J.expression,Y)}visitEmptyExpr(J,Y){}visitAll(J,Y){for(let Z of J)this.visit(Z,Y)}}class J6{name;expression;type;sourceSpan;keySpan;valueSpan;isLiteral;isLegacyAnimation;isAnimation;constructor(J,Y,Z,$,G,z){this.name=J,this.expression=Y,this.type=Z,this.sourceSpan=$,this.keySpan=G,this.valueSpan=z,this.isLiteral=this.type===X1.LITERAL_ATTR,this.isLegacyAnimation=this.type===X1.LEGACY_ANIMATION,this.isAnimation=this.type===X1.ANIMATION}}var X1;(function(J){J[J.DEFAULT=0]="DEFAULT",J[J.LITERAL_ATTR=1]="LITERAL_ATTR",J[J.LEGACY_ANIMATION=2]="LEGACY_ANIMATION",J[J.TWO_WAY=3]="TWO_WAY",J[J.ANIMATION=4]="ANIMATION"})(X1||(X1={}));var B0;(function(J){J[J.Regular=0]="Regular",J[J.LegacyAnimation=1]="LegacyAnimation",J[J.TwoWay=2]="TwoWay",J[J.Animation=3]="Animation"})(B0||(B0={}));class n3{name;targetOrPhase;type;handler;sourceSpan;handlerSpan;keySpan;constructor(J,Y,Z,$,G,z,H){this.name=J,this.targetOrPhase=Y,this.type=Z,this.handler=$,this.sourceSpan=G,this.handlerSpan=z,this.keySpan=H}}class NZ{name;value;sourceSpan;keySpan;valueSpan;constructor(J,Y,Z,$,G){this.name=J,this.value=Y,this.sourceSpan=Z,this.keySpan=$,this.valueSpan=G}}var u;(function(J){J[J.Property=0]="Property",J[J.Attribute=1]="Attribute",J[J.Class=2]="Class",J[J.Style=3]="Style",J[J.LegacyAnimation=4]="LegacyAnimation",J[J.TwoWay=5]="TwoWay",J[J.Animation=6]="Animation"})(u||(u={}));class r3{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;constructor(J,Y,Z,$,G,z,H,Q){this.name=J,this.type=Y,this.securityContext=Z,this.value=$,this.unit=G,this.sourceSpan=z,this.keySpan=H,this.valueSpan=Q}}var R1;(function(J){J[J.RAW_TEXT=0]="RAW_TEXT",J[J.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",J[J.PARSABLE_DATA=2]="PARSABLE_DATA"})(R1||(R1={}));function w1(J,Y=!0){if(J[0]!=":")return[null,J];let Z=J.indexOf(":",1);if(Z===-1)if(Y)throw Error(`Unsupported format "${J}" expecting ":namespace:name"`);else return[null,J];return[J.slice(1,Z),J.slice(Z+1)]}function yJ(J){return w1(J)[1]==="ng-container"}function a3(J){return w1(J)[1]==="ng-content"}function az(J){return w1(J)[1]==="ng-template"}function t3(J){return J===null?null:w1(J)[0]}function L7(J,Y){return J?`:${J}:${Y}`:Y}var Z3=class{value;sourceSpan;constructor(Y,Z){this.value=Y,this.sourceSpan=Z}visit(Y){throw Error("visit() not implemented for Comment")}},T5=class{value;sourceSpan;constructor(Y,Z){this.value=Y,this.sourceSpan=Z}visit(Y){return Y.visitText(this)}};class w6{value;sourceSpan;i18n;constructor(J,Y,Z){this.value=J,this.sourceSpan=Y,this.i18n=Z}visit(J){return J.visitBoundText(this)}}class E6{name;value;sourceSpan;keySpan;valueSpan;i18n;constructor(J,Y,Z,$,G,z){this.name=J,this.value=Y,this.sourceSpan=Z,this.keySpan=$,this.valueSpan=G,this.i18n=z}visit(J){return J.visitTextAttribute(this)}}class O8{name;type;securityContext;value;unit;sourceSpan;keySpan;valueSpan;i18n;constructor(J,Y,Z,$,G,z,H,Q,K){this.name=J,this.type=Y,this.securityContext=Z,this.value=$,this.unit=G,this.sourceSpan=z,this.keySpan=H,this.valueSpan=Q,this.i18n=K}static fromBoundElementProperty(J,Y){if(J.keySpan===void 0)throw Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${J.name}: ${J.sourceSpan}`);return new O8(J.name,J.type,J.securityContext,J.value,J.unit,J.sourceSpan,J.keySpan,J.valueSpan,Y)}visit(J){return J.visitBoundAttribute(this)}}class N8{name;type;handler;target;phase;sourceSpan;handlerSpan;keySpan;constructor(J,Y,Z,$,G,z,H,Q){this.name=J,this.type=Y,this.handler=Z,this.target=$,this.phase=G,this.sourceSpan=z,this.handlerSpan=H,this.keySpan=Q}static fromParsedEvent(J){let Y=J.type===B0.Regular?J.targetOrPhase:null,Z=J.type===B0.LegacyAnimation?J.targetOrPhase:null;if(J.keySpan===void 0)throw Error(`Unexpected state: keySpan must be defined for bound event but was not for ${J.name}: ${J.sourceSpan}`);return new N8(J.name,J.type,J.handler,Y,Z,J.sourceSpan,J.handlerSpan,J.keySpan)}visit(J){return J.visitBoundEvent(this)}}var P1=class{name;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;isVoid;i18n;constructor(Y,Z,$,G,z,H,Q,K,_,X,L,F,D){this.name=Y,this.attributes=Z,this.inputs=$,this.outputs=G,this.directives=z,this.children=H,this.references=Q,this.isSelfClosing=K,this.sourceSpan=_,this.startSourceSpan=X,this.endSourceSpan=L,this.isVoid=F,this.i18n=D}visit(Y){return Y.visitElement(this)}};class p1{nameSpan;sourceSpan;prefetchSpan;whenOrOnSourceSpan;hydrateSpan;constructor(J,Y,Z,$,G){this.nameSpan=J,this.sourceSpan=Y,this.prefetchSpan=Z,this.whenOrOnSourceSpan=$,this.hydrateSpan=G}visit(J){return J.visitDeferredTrigger(this)}}class M8 extends p1{value;constructor(J,Y,Z,$,G){super(null,Y,Z,$,G);this.value=J}}class MZ extends p1{}class PZ extends p1{}class yZ extends p1{}class P8 extends p1{reference;constructor(J,Y,Z,$,G,z){super(Y,Z,$,G,z);this.reference=J}}class hZ extends p1{delay;constructor(J,Y,Z,$,G,z){super(Y,Z,$,G,z);this.delay=J}}class y8 extends p1{reference;constructor(J,Y,Z,$,G,z){super(Y,Z,$,G,z);this.reference=J}}class $3 extends p1{reference;options;constructor(J,Y,Z,$,G,z,H){super(Z,$,G,z,H);this.reference=J,this.options=Y}}class a0{nameSpan;sourceSpan;startSourceSpan;endSourceSpan;constructor(J,Y,Z,$){this.nameSpan=J,this.sourceSpan=Y,this.startSourceSpan=Z,this.endSourceSpan=$}}class G3 extends a0{children;minimumTime;i18n;constructor(J,Y,Z,$,G,z,H){super(Z,$,G,z);this.children=J,this.minimumTime=Y,this.i18n=H}visit(J){return J.visitDeferredBlockPlaceholder(this)}}class z3 extends a0{children;afterTime;minimumTime;i18n;constructor(J,Y,Z,$,G,z,H,Q){super($,G,z,H);this.children=J,this.afterTime=Y,this.minimumTime=Z,this.i18n=Q}visit(J){return J.visitDeferredBlockLoading(this)}}class H3 extends a0{children;i18n;constructor(J,Y,Z,$,G,z){super(Y,Z,$,G);this.children=J,this.i18n=z}visit(J){return J.visitDeferredBlockError(this)}}class j4 extends a0{children;placeholder;loading;error;mainBlockSpan;i18n;triggers;prefetchTriggers;hydrateTriggers;definedTriggers;definedPrefetchTriggers;definedHydrateTriggers;constructor(J,Y,Z,$,G,z,H,Q,K,_,X,L,F){super(Q,K,X,L);this.children=J,this.placeholder=G,this.loading=z,this.error=H,this.mainBlockSpan=_,this.i18n=F,this.triggers=Y,this.prefetchTriggers=Z,this.hydrateTriggers=$,this.definedTriggers=Object.keys(Y),this.definedPrefetchTriggers=Object.keys(Z),this.definedHydrateTriggers=Object.keys($)}visit(J){return J.visitDeferredBlock(this)}visitAll(J){this.visitTriggers(this.definedHydrateTriggers,this.hydrateTriggers,J),this.visitTriggers(this.definedTriggers,this.triggers,J),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,J),A3(J,this.children);let Y=[this.placeholder,this.loading,this.error].filter((Z)=>Z!==null);A3(J,Y)}visitTriggers(J,Y,Z){A3(Z,J.map(($)=>Y[$]))}}class h8 extends a0{expression;groups;unknownBlocks;exhaustiveCheck;constructor(J,Y,Z,$,G,z,H,Q){super(Q,G,z,H);this.expression=J,this.groups=Y,this.unknownBlocks=Z,this.exhaustiveCheck=$}visit(J){return J.visitSwitchBlock(this)}}class kZ extends a0{expression;constructor(J,Y,Z,$,G){super(G,Y,Z,$);this.expression=J}visit(J){return J.visitSwitchBlockCase(this)}}class Q3 extends a0{cases;children;i18n;constructor(J,Y,Z,$,G,z,H){super(z,Z,$,G);this.cases=J,this.children=Y,this.i18n=H}visit(J){return J.visitSwitchBlockCaseGroup(this)}}class xZ extends a0{constructor(J,Y,Z,$){super($,J,Y,Z)}visit(J){return J.visitSwitchExhaustiveCheck(this)}}class i6 extends a0{item;expression;trackBy;trackKeywordSpan;contextVariables;children;empty;mainBlockSpan;i18n;constructor(J,Y,Z,$,G,z,H,Q,K,_,X,L,F){super(L,Q,_,X);this.item=J,this.expression=Y,this.trackBy=Z,this.trackKeywordSpan=$,this.contextVariables=G,this.children=z,this.empty=H,this.mainBlockSpan=K,this.i18n=F}visit(J){return J.visitForLoopBlock(this)}}class _3 extends a0{children;i18n;constructor(J,Y,Z,$,G,z){super(G,Y,Z,$);this.children=J,this.i18n=z}visit(J){return J.visitForLoopBlockEmpty(this)}}class k8 extends a0{branches;constructor(J,Y,Z,$,G){super(G,Y,Z,$);this.branches=J}visit(J){return J.visitIfBlock(this)}}class K4 extends a0{expression;children;expressionAlias;i18n;constructor(J,Y,Z,$,G,z,H,Q){super(H,$,G,z);this.expression=J,this.children=Y,this.expressionAlias=Z,this.i18n=Q}visit(J){return J.visitIfBlockBranch(this)}}class x8{name;sourceSpan;nameSpan;constructor(J,Y,Z){this.name=J,this.sourceSpan=Y,this.nameSpan=Z}visit(J){return J.visitUnknownBlock(this)}}var v8=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(Y,Z,$,G,z){this.name=Y,this.value=Z,this.sourceSpan=$,this.nameSpan=G,this.valueSpan=z}visit(Y){return Y.visitLetDeclaration(this)}},Q6=class{componentName;tagName;fullName;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(Y,Z,$,G,z,H,Q,K,_,X,L,F,D,w){this.componentName=Y,this.tagName=Z,this.fullName=$,this.attributes=G,this.inputs=z,this.outputs=H,this.directives=Q,this.children=K,this.references=_,this.isSelfClosing=X,this.sourceSpan=L,this.startSourceSpan=F,this.endSourceSpan=D,this.i18n=w}visit(Y){return Y.visitComponent(this)}},vZ=class{name;attributes;inputs;outputs;references;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(Y,Z,$,G,z,H,Q,K,_){this.name=Y,this.attributes=Z,this.inputs=$,this.outputs=G,this.references=z,this.sourceSpan=H,this.startSourceSpan=Q,this.endSourceSpan=K,this.i18n=_}visit(Y){return Y.visitDirective(this)}};class $1{tagName;attributes;inputs;outputs;directives;templateAttrs;children;references;variables;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(J,Y,Z,$,G,z,H,Q,K,_,X,L,F,D){this.tagName=J,this.attributes=Y,this.inputs=Z,this.outputs=$,this.directives=G,this.templateAttrs=z,this.children=H,this.references=Q,this.variables=K,this.isSelfClosing=_,this.sourceSpan=X,this.startSourceSpan=L,this.endSourceSpan=F,this.i18n=D}visit(J){return J.visitTemplate(this)}}class s6{selector;attributes;children;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;name="ng-content";constructor(J,Y,Z,$,G,z,H,Q){this.selector=J,this.attributes=Y,this.children=Z,this.isSelfClosing=$,this.sourceSpan=G,this.startSourceSpan=z,this.endSourceSpan=H,this.i18n=Q}visit(J){return J.visitContent(this)}}class x5{name;value;sourceSpan;keySpan;valueSpan;constructor(J,Y,Z,$,G){this.name=J,this.value=Y,this.sourceSpan=Z,this.keySpan=$,this.valueSpan=G}visit(J){return J.visitVariable(this)}}class B7{name;value;sourceSpan;keySpan;valueSpan;constructor(J,Y,Z,$,G){this.name=J,this.value=Y,this.sourceSpan=Z,this.keySpan=$,this.valueSpan=G}visit(J){return J.visitReference(this)}}var SZ=class{vars;placeholders;sourceSpan;i18n;constructor(Y,Z,$,G){this.vars=Y,this.placeholders=Z,this.sourceSpan=$,this.i18n=G}visit(Y){return Y.visitIcu(this)}};class W3{tagNames;bindings;listeners;sourceSpan;constructor(J,Y,Z,$){if(this.tagNames=J,this.bindings=Y,this.listeners=Z,this.sourceSpan=$,J.length===0)throw Error("HostElement must have at least one tag name.")}visit(){throw Error("HostElement cannot be visited")}}function A3(J,Y){let Z=[];if(J.visit)for(let $ of Y)J.visit($);else for(let $ of Y){let G=$.visit(J);if(G)Z.push(G)}return Z}class f0{nodes;placeholders;placeholderToMessage;meaning;description;customId;sources;id;legacyIds=[];messageString;constructor(J,Y,Z,$,G,z){if(this.nodes=J,this.placeholders=Y,this.placeholderToMessage=Z,this.meaning=$,this.description=G,this.customId=z,this.id=this.customId,this.messageString=tz(this.nodes),J.length)this.sources=[{filePath:J[0].sourceSpan.start.file.url,startLine:J[0].sourceSpan.start.line+1,startCol:J[0].sourceSpan.start.col+1,endLine:J[J.length-1].sourceSpan.end.line+1,endCol:J[0].sourceSpan.start.col+1}];else this.sources=[]}}var d4=class{value;sourceSpan;constructor(Y,Z){this.value=Y,this.sourceSpan=Z}visit(Y,Z){return Y.visitText(this,Z)}};class Z5{children;sourceSpan;constructor(J,Y){this.children=J,this.sourceSpan=Y}visit(J,Y){return J.visitContainer(this,Y)}}class S8{expression;type;cases;sourceSpan;expressionPlaceholder;constructor(J,Y,Z,$,G){this.expression=J,this.type=Y,this.cases=Z,this.sourceSpan=$,this.expressionPlaceholder=G}visit(J,Y){return J.visitIcu(this,Y)}}class v5{tag;attrs;startName;closeName;children;isVoid;sourceSpan;startSourceSpan;endSourceSpan;constructor(J,Y,Z,$,G,z,H,Q,K){this.tag=J,this.attrs=Y,this.startName=Z,this.closeName=$,this.children=G,this.isVoid=z,this.sourceSpan=H,this.startSourceSpan=Q,this.endSourceSpan=K}visit(J,Y){return J.visitTagPlaceholder(this,Y)}}class O7{value;name;sourceSpan;constructor(J,Y,Z){this.value=J,this.name=Y,this.sourceSpan=Z}visit(J,Y){return J.visitPlaceholder(this,Y)}}class A6{value;name;sourceSpan;previousMessage;constructor(J,Y,Z){this.value=J,this.name=Y,this.sourceSpan=Z}visit(J,Y){return J.visitIcuPlaceholder(this,Y)}}class S5{name;parameters;startName;closeName;children;sourceSpan;startSourceSpan;endSourceSpan;constructor(J,Y,Z,$,G,z,H,Q){this.name=J,this.parameters=Y,this.startName=Z,this.closeName=$,this.children=G,this.sourceSpan=z,this.startSourceSpan=H,this.endSourceSpan=Q}visit(J,Y){return J.visitBlockPlaceholder(this,Y)}}function tz(J){let Y=new fZ;return J.map(($)=>$.visit(Y)).join("")}class fZ{visitText(J){return J.value}visitContainer(J){return J.children.map((Y)=>Y.visit(this)).join("")}visitIcu(J){let Y=Object.keys(J.cases).map((Z)=>`${Z} {${J.cases[Z].visit(this)}}`);return`{${J.expressionPlaceholder}, ${J.type}, ${Y.join(" ")}}`}visitTagPlaceholder(J){let Y=J.children.map((Z)=>Z.visit(this)).join("");return`{$${J.startName}}${Y}{$${J.closeName}}`}visitPlaceholder(J){return`{$${J.name}}`}visitIcuPlaceholder(J){return`{$${J.name}}`}visitBlockPlaceholder(J){let Y=J.children.map((Z)=>Z.visit(this)).join("");return`{$${J.startName}}${Y}{$${J.closeName}}`}}var ez=class{visitTag(Y){let Z=this._serializeAttributes(Y.attrs);if(Y.children.length==0)return`<${Y.name}${Z}/>`;let $=Y.children.map((G)=>G.visit(this));return`<${Y.name}${Z}>${$.join("")}</${Y.name}>`}visitText(Y){return Y.value}visitDeclaration(Y){return`<?xml${this._serializeAttributes(Y.attrs)} ?>`}_serializeAttributes(Y){let Z=Object.keys(Y).map(($)=>`${$}="${Y[$]}"`).join(" ");return Z.length>0?" "+Z:""}visitDoctype(Y){return`<!DOCTYPE ${Y.rootTag} [
9
+ ${Y.dtd}
10
+ ]>`}},zq=new ez;function JH(J){return J.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var gZ="i18n",e3="i18n-",YH="VAR_";function bZ(J){return J===gZ||J.startsWith(e3)}function ZH(J){return J.attrs.some((Y)=>bZ(Y.name))}function uZ(J){return J.nodes[0]}function f8(J={},Y){let Z={};if(J&&Object.keys(J).length)Object.keys(J).forEach(($)=>Z[o6($,Y)]=J[$]);return Z}function o6(J,Y=!0){let Z=JH(J);if(!Y)return Z;let $=Z.split("_");if($.length===1)return J.toLowerCase();let G;if(/^\d+$/.test($[$.length-1]))G=$.pop();let z=$.shift().toLowerCase();if($.length)z+=$.map((H)=>H.charAt(0).toUpperCase()+H.slice(1).toLowerCase()).join("");return G?`${z}_${G}`:z}var $H=/[-.]/,g8="_t",n0="ctx",f4="rf";function mZ(J,Y){let Z=null;return()=>{if(!Z)J(new U0(g8,void 0,g0)),Z=S(Y);return Z}}function G4(J){if(Array.isArray(J))return o(J.map(G4));return q(J,q1)}function hJ(J,Y){let Z=Object.getOwnPropertyNames(J);if(Z.length===0)return null;return Q1(Z.map(($)=>{let G=J[$],z,H,Q,K;if(typeof G==="string")z=$,Q=$,H=G,K=G4(H);else{Q=$,z=G.classPropertyName,H=G.bindingPropertyName;let _=H!==z,X=G.transformFunction!==null,L=$4.None;if(G.isSignal)L|=$4.SignalBased;if(X)L|=$4.HasDecoratorInputTransform;if(Y&&(_||X||L!==$4.None)){let F=[q(L),G4(H)];if(_||X){if(F.push(G4(z)),X)F.push(G.transformFunction)}K=o(F)}else K=G4(H)}return{key:Q,quoted:$H.test(Q),value:K}}))}class c5{values=[];set(J,Y){if(Y){let Z=this.values.find(($)=>$.key===J);if(Z)Z.value=Y;else this.values.push({key:J,value:Y,quoted:!1})}}toLiteralMap(){return Q1(this.values)}}function GH(J){let Y=J instanceof P1?J.name:"ng-template",Z=zH(J),$=new Y5,G=w1(Y)[1];return $.setElement(G),Object.getOwnPropertyNames(Z).forEach((z)=>{let H=w1(z)[1],Q=Z[z];if($.addAttribute(H,Q),z.toLowerCase()==="class")Q.trim().split(/\s+/).forEach((_)=>$.addClassName(_))}),$}function zH(J){let Y={};if(J instanceof $1&&J.tagName!=="ng-template")J.templateAttrs.forEach((Z)=>Y[Z.name]="");else J.attributes.forEach((Z)=>{if(!bZ(Z.name))Y[Z.name]=Z.value}),J.inputs.forEach((Z)=>{if(Z.type===u.Property||Z.type===u.TwoWay)Y[Z.name]=""}),J.outputs.forEach((Z)=>{Y[Z.name]=""});return Y}function kJ(J,Y){let Z=null,$={name:J.name,type:J.type,typeArgumentCount:J.typeArgumentCount,deps:[],target:I1.Injectable};if(J.useClass!==void 0){let Q=J.useClass.expression.isEquivalent(J.type.value),K=void 0;if(J.deps!==void 0)K=J.deps;if(K!==void 0)Z=A5({...$,delegate:J.useClass.expression,delegateDeps:K,delegateType:D6.Class});else if(Q)Z=A5($);else Z={statements:[],expression:xJ(J.type.value,J.useClass.expression,Y)}}else if(J.useFactory!==void 0)if(J.deps!==void 0)Z=A5({...$,delegate:J.useFactory,delegateDeps:J.deps||[],delegateType:D6.Function});else Z={statements:[],expression:o0([],J.useFactory.callFn([]))};else if(J.useValue!==void 0)Z=A5({...$,expression:J.useValue.expression});else if(J.useExisting!==void 0)Z=A5({...$,expression:O(R.inject).callFn([J.useExisting.expression])});else Z={statements:[],expression:xJ(J.type.value,J.type.value,Y)};let G=J.type.value,z=new c5;if(z.set("token",G),z.set("factory",Z.expression),J.providedIn.expression.value!==null)z.set("providedIn",cz(J.providedIn));return{expression:O(R.ɵɵdefineInjectable).callFn([z.toLiteralMap()],void 0,!0),type:HH(J),statements:Z.statements}}function HH(J){return new F1(O(R.InjectableDeclaration,[o7(J.type.type,J.typeArgumentCount)]))}function xJ(J,Y,Z){if(J.node===Y.node)return Y.prop("ɵfac");if(!Z)return vJ(Y);let $=O(R.resolveForwardRef).callFn([Y]);return vJ($)}function vJ(J){let Y=new Q0("__ngFactoryType__",g0);return o0([Y],J.prop("ɵfac").callFn([S(Y.name)]))}var V0=0,QH=8,b8=9,O5=10,lZ=11,cZ=12,u8=13,dZ=32,J8=33,I6=34,pZ=35,K3=36,_H=37,N7=38,j6=39,P0=40,z0=41,SJ=42,iZ=43,C0=44,M7=45,E5=46,t0=47,j1=58,v0=59,X4=60,F0=61,c0=62,fJ=63,m8=48,WH=55,sZ=57,L5=65,KH=69,XH=70,LH=88,g4=90,T1=91,N5=92,k1=93,RH=94,R5=95,f5=97,UH=98,FH=101,l8=102,oZ=110,nZ=114,rZ=116,aZ=117,tZ=118,eZ=120,n6=122,J1=123,gJ=124,M0=125,J$=160,o5=64,Y8=96;function C6(J){return J>=b8&&J<=dZ||J==J$}function e0(J){return m8<=J&&J<=sZ}function _5(J){return J>=f5&&J<=n6||J>=L5&&J<=g4}function qH(J){return J>=f5&&J<=l8||J>=L5&&J<=XH||e0(J)}function P7(J){return J===O5||J===u8}function bJ(J){return m8<=J&&J<=WH}function _6(J){return J===j6||J===I6||J===Y8}class T6{file;offset;line;col;constructor(J,Y,Z,$){this.file=J,this.offset=Y,this.line=Z,this.col=$}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(J){let Y=this.file.content,Z=Y.length,$=this.offset,G=this.line,z=this.col;while($>0&&J<0)if($--,J++,Y.charCodeAt($)==O5){G--;let Q=Y.substring(0,$-1).lastIndexOf(String.fromCharCode(O5));z=Q>0?$-Q:$}else z--;while($<Z&&J>0){let H=Y.charCodeAt($);if($++,J--,H==O5)G++,z=0;else z++}return new T6(this.file,$,G,z)}getContext(J,Y){let Z=this.file.content,$=this.offset;if($!=null){if($>Z.length-1)$=Z.length-1;let G=$,z=0,H=0;while(z<J&&$>0)if($--,z++,Z[$]==`
11
+ `){if(++H==Y)break}z=0,H=0;while(z<J&&G<Z.length-1)if(G++,z++,Z[G]==`
12
+ `){if(++H==Y)break}return{before:Z.substring($,this.offset),after:Z.substring(this.offset,G+1)}}return null}}class c8{content;url;constructor(J,Y){this.content=J,this.url=Y}}class h{start;end;fullStart;details;constructor(J,Y,Z=J,$=null){this.start=J,this.end=Y,this.fullStart=Z,this.details=$}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var x1;(function(J){J[J.WARNING=0]="WARNING",J[J.ERROR=1]="ERROR"})(x1||(x1={}));class M extends Error{span;msg;level;relatedError;constructor(J,Y,Z=x1.ERROR,$){super(Y);this.span=J,this.msg=Y,this.level=Z,this.relatedError=$,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let J=this.span.start.getContext(100,3);return J?`${this.msg} ("${J.before}[${x1[this.level]} ->]${J.after}")`:this.msg}toString(){let J=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${J}`}}function VH(J,Y,Z){let $=`in ${J} ${Y} in ${Z}`,G=new c8("",$);return new h(new T6(G,-1,-1,-1),new T6(G,-1,-1,-1))}var DH=0;function wH(J){if(!J||!J.reference)return null;let Y=J.reference;if(Y.__anonymousType)return Y.__anonymousType;if(Y.__forward_ref__)return"__forward_ref__";let Z=AZ(Y);if(Z.indexOf("(")>=0)Z=`anonymous_${DH++}`,Y.__anonymousType=Z;else Z=I5(Z);return Z}function I5(J){return J.replace(/\W/g,"_")}var uJ='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';class Y$ extends TZ{constructor(){super(!1)}visitWrappedNodeExpr(J,Y){throw Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(J,Y){if(Y.print(J,`var ${J.name}`),J.value)Y.print(J," = "),J.value.visitExpression(this,Y);return Y.println(J,";"),null}visitTaggedTemplateLiteralExpr(J,Y){let Z=J.template.elements;return J.tag.visitExpression(this,Y),Y.print(J,`(${uJ}(`),Y.print(J,`[${Z.map(($)=>j5($.text,!1)).join(", ")}], `),Y.print(J,`[${Z.map(($)=>j5($.rawText,!1)).join(", ")}])`),J.template.expressions.forEach(($)=>{Y.print(J,", "),$.visitExpression(this,Y)}),Y.print(J,")"),null}visitTemplateLiteralExpr(J,Y){Y.print(J,"`");for(let Z=0;Z<J.elements.length;Z++){J.elements[Z].visitExpression(this,Y);let $=Z<J.expressions.length?J.expressions[Z]:null;if($!==null)Y.print($,"${"),$.visitExpression(this,Y),Y.print($,"}")}Y.print(J,"`")}visitTemplateLiteralElementExpr(J,Y){return Y.print(J,J.rawText),null}visitFunctionExpr(J,Y){return Y.print(J,`function${J.name?" "+J.name:""}(`),this._visitParams(J.params,Y),Y.println(J,") {"),Y.incIndent(),this.visitAllStatements(J.statements,Y),Y.decIndent(),Y.print(J,"}"),null}visitArrowFunctionExpr(J,Y){if(Y.print(J,"("),this._visitParams(J.params,Y),Y.print(J,") =>"),Array.isArray(J.body))Y.println(J,"{"),Y.incIndent(),this.visitAllStatements(J.body,Y),Y.decIndent(),Y.print(J,"}");else{let Z=J.body instanceof H1;if(Z)Y.print(J,"(");if(J.body.visitExpression(this,Y),Z)Y.print(J,")")}return null}visitDeclareFunctionStmt(J,Y){return Y.print(J,`function ${J.name}(`),this._visitParams(J.params,Y),Y.println(J,") {"),Y.incIndent(),this.visitAllStatements(J.statements,Y),Y.decIndent(),Y.println(J,"}"),null}visitLocalizedString(J,Y){Y.print(J,`$localize(${uJ}(`);let Z=[J.serializeI18nHead()];for(let $=1;$<J.messageParts.length;$++)Z.push(J.serializeI18nTemplatePart($));return Y.print(J,`[${Z.map(($)=>j5($.cooked,!1)).join(", ")}], `),Y.print(J,`[${Z.map(($)=>j5($.raw,!1)).join(", ")}])`),J.expressions.forEach(($)=>{Y.print(J,", "),$.visitExpression(this,Y)}),Y.print(J,")"),null}_visitParams(J,Y){this.visitAllObjects((Z)=>Y.print(null,Z.name),J,Y,",")}}var J7;function EH(){if(J7===void 0){let J=z6.trustedTypes;if(J7=null,J)try{J7=J.createPolicy("angular#unsafe-jit",{createScript:(Y)=>Y})}catch{}}return J7}function AH(J){return EH()?.createScript(J)||J}function mJ(...J){if(!z6.trustedTypes)return Function(...J);let Y=J.slice(0,-1).join(","),Z=J[J.length-1],$=`(function anonymous(${Y}
13
+ ) { ${Z}
14
+ })`,G=z6.eval(AH($));if(G.bind===void 0)return Function(...J);return G.toString=()=>$,G.bind(z6)}class Z${evaluateStatements(J,Y,Z,$){let G=new $$(Z),z=w8.createRoot();if(Y.length>0&&!IH(Y[0]))Y=[q("use strict").toStmt(),...Y];return G.visitAllStatements(Y,z),G.createReturnStmt(z),this.evaluateCode(J,z,G.getArgs(),$)}evaluateCode(J,Y,Z,$){let G=`"use strict";${Y.toSource()}
15
+ //# sourceURL=${J}`,z=[],H=[];for(let K in Z)H.push(Z[K]),z.push(K);if($){let K=mJ(...z.concat("return null;")).toString(),_=K.slice(0,K.indexOf("return null;")).split(`
16
+ `).length-1;G+=`
17
+ ${Y.toSourceMapGenerator(J,_).toJsComment()}`}let Q=mJ(...z.concat(G));return this.executeFunction(Q,H)}executeFunction(J,Y){return J(...Y)}}class $$ extends Y${refResolver;_evalArgNames=[];_evalArgValues=[];_evalExportedVars=[];constructor(J){super();this.refResolver=J}createReturnStmt(J){new _0(new H1(this._evalExportedVars.map((Z)=>new v4(Z,S(Z),!1)))).visitStatement(this,J)}getArgs(){let J={};for(let Y=0;Y<this._evalArgNames.length;Y++)J[this._evalArgNames[Y]]=this._evalArgValues[Y];return J}visitExternalExpr(J,Y){return this._emitReferenceToExternal(J,this.refResolver.resolveExternalReference(J.value),Y),null}visitWrappedNodeExpr(J,Y){return this._emitReferenceToExternal(J,J.node,Y),null}visitDeclareVarStmt(J,Y){if(J.hasModifier(D0.Exported))this._evalExportedVars.push(J.name);return super.visitDeclareVarStmt(J,Y)}visitDeclareFunctionStmt(J,Y){if(J.hasModifier(D0.Exported))this._evalExportedVars.push(J.name);return super.visitDeclareFunctionStmt(J,Y)}_emitReferenceToExternal(J,Y,Z){let $=this._evalArgValues.indexOf(Y);if($===-1){$=this._evalArgValues.length,this._evalArgValues.push(Y);let G=wH({reference:Y})||"val";this._evalArgNames.push(`jit_${G}_${$}`)}Z.print(J,this._evalArgNames[$])}}function IH(J){return J.isEquivalent(q("use strict").toStmt())}function lJ(J){let Y=new c5;if(J.providers!==null)Y.set("providers",J.providers);if(J.imports.length>0)Y.set("imports",o(J.imports));let Z=O(R.defineInjector).callFn([Y.toLiteralMap()],void 0,!0),$=jH(J);return{expression:Z,type:$,statements:[]}}function jH(J){return new F1(O(R.InjectorDeclaration,[new F1(J.type.type)]))}class G${context;constructor(J){this.context=J}resolveExternalReference(J){if(J.moduleName!=="@angular/core")throw Error(`Cannot resolve external reference to ${J.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(J.name))throw Error(`No value provided for @angular/core symbol '${J.name}'.`);return this.context[J.name]}}var B6;(function(J){J[J.Inline=0]="Inline",J[J.SideEffect=1]="SideEffect",J[J.Omit=2]="Omit"})(B6||(B6={}));var v1;(function(J){J[J.Global=0]="Global",J[J.Local=1]="Local"})(v1||(v1={}));function CH(J){let Y=[],Z=new c5;if(Z.set("type",J.type.value),J.kind===v1.Global&&J.bootstrap.length>0)Z.set("bootstrap",C5(J.bootstrap,J.containsForwardDecls));if(J.selectorScopeMode===B6.Inline){if(J.declarations.length>0)Z.set("declarations",C5(J.declarations,J.containsForwardDecls));if(J.imports.length>0)Z.set("imports",C5(J.imports,J.containsForwardDecls));if(J.exports.length>0)Z.set("exports",C5(J.exports,J.containsForwardDecls))}else if(J.selectorScopeMode===B6.SideEffect){let z=OH(J);if(z!==null)Y.push(z)}if(J.schemas!==null&&J.schemas.length>0)Z.set("schemas",o(J.schemas.map((z)=>z.value)));if(J.id!==null)Z.set("id",J.id),Y.push(O(R.registerNgModuleType).callFn([J.type.value,J.id]).toStmt());let $=O(R.defineNgModule).callFn([Z.toLiteralMap()],void 0,!0),G=BH(J);return{expression:$,type:G,statements:Y}}function TH(J){let Y=new c5;if(Y.set("type",new g(J.type)),J.bootstrap!==void 0)Y.set("bootstrap",new g(J.bootstrap));if(J.declarations!==void 0)Y.set("declarations",new g(J.declarations));if(J.imports!==void 0)Y.set("imports",new g(J.imports));if(J.exports!==void 0)Y.set("exports",new g(J.exports));if(J.schemas!==void 0)Y.set("schemas",new g(J.schemas));if(J.id!==void 0)Y.set("id",new g(J.id));return O(R.defineNgModule).callFn([Y.toLiteralMap()])}function BH(J){if(J.kind===v1.Local)return new F1(J.type.value);let{type:Y,declarations:Z,exports:$,imports:G,includeImportTypes:z,publicDeclarationTypes:H}=J;return new F1(O(R.NgModuleDeclaration,[new F1(Y.type),H===null?I3(Z):NH(H),z?I3(G):N1,I3($)]))}function OH(J){let Y=new c5;if(J.kind===v1.Global){if(J.declarations.length>0)Y.set("declarations",C5(J.declarations,J.containsForwardDecls))}else if(J.declarationsExpression)Y.set("declarations",J.declarationsExpression);if(J.kind===v1.Global){if(J.imports.length>0)Y.set("imports",C5(J.imports,J.containsForwardDecls))}else if(J.importsExpression)Y.set("imports",J.importsExpression);if(J.kind===v1.Global){if(J.exports.length>0)Y.set("exports",C5(J.exports,J.containsForwardDecls))}else if(J.exportsExpression)Y.set("exports",J.exportsExpression);if(J.kind===v1.Local&&J.bootstrapExpression)Y.set("bootstrap",J.bootstrapExpression);if(Object.keys(Y.values).length===0)return null;let Z=new h0(O(R.setNgModuleScope),[J.type.value,Y.toLiteralMap()]),$=mz(Z),G=new f1([],[$.toStmt()]);return new h0(G,[]).toStmt()}function I3(J){let Y=J.map((Z)=>u6(Z.type));return J.length>0?A0(o(Y)):N1}function NH(J){let Y=J.map((Z)=>u6(Z));return J.length>0?A0(o(Y)):N1}function cJ(J){let Y=[];if(Y.push({key:"name",value:q(J.pipeName??J.name),quoted:!1}),Y.push({key:"type",value:J.type.value,quoted:!1}),Y.push({key:"pure",value:q(J.pure),quoted:!1}),J.isStandalone===!1)Y.push({key:"standalone",value:q(!1),quoted:!1});let Z=O(R.definePipe).callFn([Q1(Y)],void 0,!0),$=MH(J);return{expression:Z,type:$,statements:[]}}function MH(J){return new F1(O(R.PipeDeclaration,[o7(J.type.type,J.typeArgumentCount),new F1(new w0(J.pipeName)),new F1(new w0(J.isStandalone))]))}var g5;(function(J){J[J.Directive=0]="Directive",J[J.Pipe=1]="Pipe",J[J.NgModule=2]="NgModule"})(g5||(g5={}));var PH=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),yH=["@media","@supports","@document","@layer","@container","@scope","@starting-style"];class z${shimCssText(J,Y,Z=""){let $=[];J=J.replace(sH,(H)=>{if(H.match(oH))$.push(H);else{let Q=H.match(iH);$.push(Q?.join("")??"")}return p8}),J=this._insertDirectives(J);let G=this._scopeCssText(J,Y,Z),z=0;return G.replace(nH,()=>$[z++])}_insertDirectives(J){return J=this._insertPolyfillDirectivesInCssText(J),this._insertPolyfillRulesInCssText(J)}_scopeKeyframesRelatedCss(J,Y){let Z=new Set,$=Y7(J,(G)=>this._scopeLocalKeyframeDeclarations(G,Y,Z));return Y7($,(G)=>this._scopeAnimationRule(G,Y,Z))}_scopeLocalKeyframeDeclarations(J,Y,Z){return{...J,selector:J.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,($,G,z,H,Q)=>{return Z.add(iJ(H,z)),`${G}${z}${Y}_${H}${z}${Q}`})}}_scopeAnimationKeyframe(J,Y,Z){return J.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,($,G,z,H,Q)=>{return H=`${Z.has(iJ(H,z))?Y+"_":""}${H}`,`${G}${z}${H}${z}${Q}`})}_animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;_scopeAnimationRule(J,Y,Z){let $=J.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(G,z,H)=>z+H.replace(this._animationDeclarationKeyframesRe,(Q,K,_="",X,L)=>{if(X)return`${K}${this._scopeAnimationKeyframe(`${_}${X}${_}`,Y,Z)}`;else return PH.has(L)?Q:`${K}${this._scopeAnimationKeyframe(L,Y,Z)}`}));return $=$.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(G,z,H)=>`${z}${H.split(",").map((Q)=>this._scopeAnimationKeyframe(Q,Y,Z)).join(",")}`),{...J,content:$}}_insertPolyfillDirectivesInCssText(J){return J.replace(kH,function(...Y){return Y[2]+"{"})}_insertPolyfillRulesInCssText(J){return J.replace(xH,(...Y)=>{let Z=Y[0].replace(Y[1],"").replace(Y[2],"");return Y[4]+Z})}_scopeCssText(J,Y,Z){let $=this._extractUnscopedRulesFromCssText(J);if(J=this._insertPolyfillHostInCssText(J),J=this._convertColonHost(J),J=this._convertColonHostContext(J),J=this._convertShadowDOMSelectors(J),Y)J=this._scopeKeyframesRelatedCss(J,Y),J=this._scopeSelectors(J,Y,Z);return J=J+`
18
+ `+$,J.trim()}_extractUnscopedRulesFromCssText(J){let Y="",Z;dJ.lastIndex=0;while((Z=dJ.exec(J))!==null){let $=Z[0].replace(Z[2],"").replace(Z[1],Z[4]);Y+=$+`
19
+
20
+ `}return Y}_convertColonHost(J){return J.replace(gH,(Y,Z,$)=>{if(Z){let G=[];for(let z of this._splitOnTopLevelCommas(Z,!0)){let H=z.trim();if(!H)break;let Q=r1+H.replace(y7,"")+$;G.push(Q)}return G.join(",")}else return r1+$})}*_splitOnTopLevelCommas(J,Y){let Z=J.length,$=0,G=0;for(let z=0;z<Z;z++){let H=J.charCodeAt(z);if(H===P0)$++;else if(H===z0){if($--,$<0&&Y){yield J.slice(G,z);return}}else if(H===C0&&$===0)yield J.slice(G,z),G=z+1}yield J.slice(G)}_convertColonHostContext(J){let Y=[];for(let Z of this._splitOnTopLevelCommas(J,!1))Y.push(this._convertColonHostContextInSelectorPart(Z));return Y.join(",")}_convertColonHostContextInSelectorPart(J){return J.replace(uH,(Y,Z)=>{let $=[[]],G=Y.indexOf(J4);while(G!==-1){let z=Y.substring(G+J4.length);if(!z||z[0]!=="("){Y=z,G=Y.indexOf(J4);continue}let H=[],Q=0;for(let _ of this._splitOnTopLevelCommas(z.substring(1),!0)){Q=Q+_.length+1;let X=_.trim();if(X)H.push(X)}let K=$.length;HQ($,H.length);for(let _=0;_<H.length;_++)for(let X=0;X<K;X++)$[X+_*K].push(H[_]);Y=z.substring(Q+1),G=Y.indexOf(J4)}return $.map((z)=>zQ(z,Y,Z)).join(", ")})}_convertShadowDOMSelectors(J){return lH.reduce((Y,Z)=>Y.replace(Z," "),J)}_scopeSelectors(J,Y,Z){return Y7(J,($)=>{let{selector:G,content:z}=$;if($.selector[0]!=="@")G=this._scopeSelector({selector:G,scopeSelector:Y,hostSelector:Z,isParentSelector:!0});else if(yH.some((H)=>$.selector.startsWith(H)))z=this._scopeSelectors($.content,Y,Z);else if($.selector.startsWith("@font-face")||$.selector.startsWith("@page"))z=this._stripScopingSelectors($.content);return new h7(G,z)})}_stripScopingSelectors(J){return Y7(J,(Y)=>{let Z=Y.selector.replace(pJ," ").replace(j3," ");return new h7(Z,Y.content)})}_safeSelector;_shouldScopeIndicator;_scopeSelector({selector:J,scopeSelector:Y,hostSelector:Z,isParentSelector:$=!1}){let G=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return J.split(G).map((z)=>z.split(pJ)).map((z)=>{let[H,...Q]=z;return[((_)=>{if(this._selectorNeedsScoping(_,Y))return this._applySelectorScope({selector:_,scopeSelector:Y,hostSelector:Z,isParentSelector:$});else return _})(H),...Q].join(" ")}).join(", ")}_selectorNeedsScoping(J,Y){return!this._makeScopeMatcher(Y).test(J)}_makeScopeMatcher(J){let Y=/\[/g,Z=/\]/g;return J=J.replace(Y,"\\[").replace(Z,"\\]"),new RegExp("^("+J+")"+cH,"m")}_applySimpleSelectorScope(J,Y,Z){if(z4.lastIndex=0,z4.test(J)){let $=`[${Z}]`,G=J;while(G.match(j3))G=G.replace(j3,(z,H)=>{return H.replace(/([^:\)]*)(:*)(.*)/,(Q,K,_,X)=>{return K+$+_+X})});return G.replace(z4,$)}return Y+" "+J}_applySelectorScope({selector:J,scopeSelector:Y,hostSelector:Z,isParentSelector:$}){let G=/\[is=([^\]]*)\]/g;Y=Y.replace(G,(w,...T)=>T[0]);let z=`[${Y}]`,H=(w)=>{let T=w.trim();if(!T)return w;if(w.includes(r1)){if(T=this._applySimpleSelectorScope(w,Y,Z),!w.match(mH)){let[I,B,d,t]=T.match(/([^:]*)(:*)([\s\S]*)/);T=B+z+d+t}}else{let I=w.replace(z4,"");if(I.length>0){let B=I.match(/([^:]*)(:*)([\s\S]*)/);if(B)T=B[1]+z+B[2]+B[3]}}return T},Q=(w)=>{let T="",I=[],B;while((B=p4.exec(w))!==null){let d=1,t=p4.lastIndex;while(t<w.length){let l=w[t];if(t++,l==="("){d++;continue}if(l===")"){if(d--,d===0)break;continue}}I.push(`${B[0]}${w.slice(p4.lastIndex,t)}`),p4.lastIndex=t}if(I.join("")===w)T=I.map((d)=>{let[t]=d.match(p4)??[],l=d.slice(t?.length,-1);if(l.includes(r1))this._shouldScopeIndicator=!0;let l4=this._scopeSelector({selector:l,scopeSelector:Y,hostSelector:Z});return`${t}${l4})`}).join("");else this._shouldScopeIndicator=this._shouldScopeIndicator||w.includes(r1),T=this._shouldScopeIndicator?H(w):w;return T};if($)this._safeSelector=new H$(J),J=this._safeSelector.content();let K="",_=0,X,L=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,F=J.includes(r1);if($||this._shouldScopeIndicator)this._shouldScopeIndicator=!F;while((X=L.exec(J))!==null){let w=X[1],T=J.slice(_,X.index);if(T.match(/__esc-ph-(\d+)__/)&&J[X.index+1]?.match(/[a-fA-F\d]/))continue;let I=Q(T);K+=`${I} ${w} `,_=L.lastIndex}let D=J.substring(_);return K+=Q(D),this._safeSelector.restore(K)}_insertPolyfillHostInCssText(J){return J.replace(pH,J4).replace(dH,y7)}}class H${placeholders=[];index=0;_content;constructor(J){J=this._escapeRegexMatches(J,/(\[[^\]]*\])/g),J=J.replace(/(\\.)/g,(Y,Z)=>{let $=`__esc-ph-${this.index}__`;return this.placeholders.push(Z),this.index++,$}),this._content=J.replace(fH,(Y,Z,$)=>{let G=`__ph-${this.index}__`;return this.placeholders.push(`(${$})`),this.index++,Z+G})}restore(J){return J.replace(/__(?:ph|esc-ph)-(\d+)__/g,(Y,Z)=>this.placeholders[+Z])}content(){return this._content}_escapeRegexMatches(J,Y){return J.replace(Y,(Z,$)=>{let G=`__ph-${this.index}__`;return this.placeholders.push($),this.index++,G})}}var hH="(:(where|is)\\()?",p4=/:(where|is)\(/gi,kH=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,xH=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,dJ=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,y7="-shadowcsshost",J4="-shadowcsscontext",Z8="[^)(]*",vH=String.raw`(?:\(${Z8}\)|${Z8})+?`,SH=String.raw`(?:\(${vH}\)|${Z8})+?`,d8=String.raw`(?:\((${SH})\))`,fH=new RegExp(String.raw`(:nth-[-\w]+)`+d8,"g"),gH=new RegExp(y7+d8+"?([^,{]*)","gim"),bH=J4+d8+"?([^{]*)",uH=new RegExp(`${hH}(${bH})`,"gim"),r1=y7+"-no-combinator",mH=new RegExp(`${r1}(?![^(]*\\))`,"g"),j3=/-shadowcsshost-no-combinator([^\s,]*)/,lH=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],pJ=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,cH="([>\\s~+[.,{:][\\s\\S]*)?$",z4=/-shadowcsshost/gim,dH=/:host/gim,pH=/:host-context/gim,iH=/\r?\n/g,sH=/\/\*[\s\S]*?\*\//g,oH=/\/\*\s*#\s*source(Mapping)?URL=/g,p8="%COMMENT%",nH=new RegExp(p8,"g"),C3="%BLOCK%",rH=new RegExp(`(\\s*(?:${p8}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),aH=new Map([["{","}"]]),Q$="%COMMA_IN_PLACEHOLDER%",_$="%SEMI_IN_PLACEHOLDER%",W$="%COLON_IN_PLACEHOLDER%",tH=new RegExp(Q$,"g"),eH=new RegExp(_$,"g"),JQ=new RegExp(W$,"g");class h7{selector;content;constructor(J,Y){this.selector=J,this.content=Y}}function Y7(J,Y){let Z=$Q(J),$=YQ(Z,aH,C3),G=0,z=$.escapedString.replace(rH,(...H)=>{let Q=H[2],K="",_=H[4],X="";if(_&&_.startsWith("{"+C3))K=$.blocks[G++],_=_.substring(C3.length+1),X="{";let L=Y(new h7(Q,K));return`${H[1]}${L.selector}${H[3]}${X}${L.content}${_}`});return GQ(z)}class K${escapedString;blocks;constructor(J,Y){this.escapedString=J,this.blocks=Y}}function YQ(J,Y,Z){let $=[],G=[],z=0,H=0,Q=-1,K,_;for(let X=0;X<J.length;X++){let L=J[X];if(L==="\\")X++;else if(L===_){if(z--,z===0)G.push(J.substring(Q,X)),$.push(Z),H=X,Q=-1,K=_=void 0}else if(L===K)z++;else if(z===0&&Y.has(L))K=L,_=Y.get(L),z=1,Q=X+1,$.push(J.substring(H,Q))}if(Q!==-1)G.push(J.substring(Q)),$.push(Z);else $.push(J.substring(H));return new K$($.join(""),G)}var ZQ={";":_$,",":Q$,":":W$};function $Q(J){let Y=J,Z=null;for(let $=0;$<Y.length;$++){let G=Y[$];if(G==="\\")$++;else if(Z!==null)if(G===Z)Z=null;else{let z=ZQ[G];if(z)Y=`${Y.substr(0,$)}${z}${Y.substr($+1)}`,$+=z.length-1}else if(G==="'"||G==='"')Z=G}return Y}function GQ(J){let Y=J.replace(tH,",");return Y=Y.replace(eH,";"),Y=Y.replace(JQ,":"),Y}function iJ(J,Y){return!Y?J:J.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1")}function zQ(J,Y,Z=""){let $=r1;z4.lastIndex=0;let G=z4.test(Y);if(J.length===0)return $+Y;let z=[J.pop()||""];while(J.length>0){let H=z.length,Q=J.pop();for(let K=0;K<H;K++){let _=z[K];z[H*2+K]=_+" "+Q,z[H+K]=Q+" "+_,z[K]=Q+_}}return z.map((H)=>G?`${Z}${H}${Y}`:`${Z}${H}${$}${Y}, ${Z}${H} ${$}${Y}`).join(",")}function HQ(J,Y){let Z=J.length;for(let $=1;$<Y;$++)for(let G=0;G<Z;G++)J[G+$*Z]=J[G].slice(0)}var W;(function(J){J[J.ListEnd=0]="ListEnd",J[J.Statement=1]="Statement",J[J.Variable=2]="Variable",J[J.ElementStart=3]="ElementStart",J[J.Element=4]="Element",J[J.Template=5]="Template",J[J.ElementEnd=6]="ElementEnd",J[J.ContainerStart=7]="ContainerStart",J[J.Container=8]="Container",J[J.ContainerEnd=9]="ContainerEnd",J[J.DisableBindings=10]="DisableBindings",J[J.ConditionalCreate=11]="ConditionalCreate",J[J.ConditionalBranchCreate=12]="ConditionalBranchCreate",J[J.Conditional=13]="Conditional",J[J.EnableBindings=14]="EnableBindings",J[J.Text=15]="Text",J[J.Listener=16]="Listener",J[J.InterpolateText=17]="InterpolateText",J[J.Binding=18]="Binding",J[J.Property=19]="Property",J[J.StyleProp=20]="StyleProp",J[J.ClassProp=21]="ClassProp",J[J.StyleMap=22]="StyleMap",J[J.ClassMap=23]="ClassMap",J[J.Advance=24]="Advance",J[J.Pipe=25]="Pipe",J[J.Attribute=26]="Attribute",J[J.ExtractedAttribute=27]="ExtractedAttribute",J[J.Defer=28]="Defer",J[J.DeferOn=29]="DeferOn",J[J.DeferWhen=30]="DeferWhen",J[J.I18nMessage=31]="I18nMessage",J[J.DomProperty=32]="DomProperty",J[J.Namespace=33]="Namespace",J[J.ProjectionDef=34]="ProjectionDef",J[J.Projection=35]="Projection",J[J.RepeaterCreate=36]="RepeaterCreate",J[J.Repeater=37]="Repeater",J[J.TwoWayProperty=38]="TwoWayProperty",J[J.TwoWayListener=39]="TwoWayListener",J[J.DeclareLet=40]="DeclareLet",J[J.StoreLet=41]="StoreLet",J[J.I18nStart=42]="I18nStart",J[J.I18n=43]="I18n",J[J.I18nEnd=44]="I18nEnd",J[J.I18nExpression=45]="I18nExpression",J[J.I18nApply=46]="I18nApply",J[J.IcuStart=47]="IcuStart",J[J.IcuEnd=48]="IcuEnd",J[J.IcuPlaceholder=49]="IcuPlaceholder",J[J.I18nContext=50]="I18nContext",J[J.I18nAttributes=51]="I18nAttributes",J[J.SourceLocation=52]="SourceLocation",J[J.Animation=53]="Animation",J[J.AnimationString=54]="AnimationString",J[J.AnimationBinding=55]="AnimationBinding",J[J.AnimationListener=56]="AnimationListener",J[J.Control=57]="Control",J[J.ControlCreate=58]="ControlCreate"})(W||(W={}));var N;(function(J){J[J.LexicalRead=0]="LexicalRead",J[J.Context=1]="Context",J[J.TrackContext=2]="TrackContext",J[J.ReadVariable=3]="ReadVariable",J[J.NextContext=4]="NextContext",J[J.Reference=5]="Reference",J[J.StoreLet=6]="StoreLet",J[J.ContextLetReference=7]="ContextLetReference",J[J.GetCurrentView=8]="GetCurrentView",J[J.RestoreView=9]="RestoreView",J[J.ResetView=10]="ResetView",J[J.PureFunctionExpr=11]="PureFunctionExpr",J[J.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",J[J.PipeBinding=13]="PipeBinding",J[J.PipeBindingVariadic=14]="PipeBindingVariadic",J[J.SafePropertyRead=15]="SafePropertyRead",J[J.SafeKeyedRead=16]="SafeKeyedRead",J[J.SafeInvokeFunction=17]="SafeInvokeFunction",J[J.SafeTernaryExpr=18]="SafeTernaryExpr",J[J.EmptyExpr=19]="EmptyExpr",J[J.AssignTemporaryExpr=20]="AssignTemporaryExpr",J[J.ReadTemporaryExpr=21]="ReadTemporaryExpr",J[J.SlotLiteralExpr=22]="SlotLiteralExpr",J[J.ConditionalCase=23]="ConditionalCase",J[J.ConstCollected=24]="ConstCollected",J[J.TwoWayBindingSet=25]="TwoWayBindingSet",J[J.ArrowFunction=26]="ArrowFunction"})(N||(N={}));var i0;(function(J){J[J.None=0]="None",J[J.AlwaysInline=1]="AlwaysInline"})(i0||(i0={}));var R0;(function(J){J[J.Context=0]="Context",J[J.Identifier=1]="Identifier",J[J.SavedView=2]="SavedView",J[J.Alias=3]="Alias"})(R0||(R0={}));var C;(function(J){J[J.Attribute=0]="Attribute",J[J.ClassName=1]="ClassName",J[J.StyleProperty=2]="StyleProperty",J[J.Property=3]="Property",J[J.Template=4]="Template",J[J.I18n=5]="I18n",J[J.LegacyAnimation=6]="LegacyAnimation",J[J.TwoWayProperty=7]="TwoWayProperty",J[J.Animation=8]="Animation"})(C||(C={}));var C4;(function(J){J[J.Creation=0]="Creation",J[J.Postproccessing=1]="Postproccessing"})(C4||(C4={}));var b5;(function(J){J[J.I18nText=0]="I18nText",J[J.I18nAttribute=1]="I18nAttribute"})(b5||(b5={}));var n;(function(J){J[J.None=0]="None",J[J.ElementTag=1]="ElementTag",J[J.TemplateTag=2]="TemplateTag",J[J.OpenTag=4]="OpenTag",J[J.CloseTag=8]="CloseTag",J[J.ExpressionIndex=16]="ExpressionIndex"})(n||(n={}));var E0;(function(J){J[J.HTML=0]="HTML",J[J.SVG=1]="SVG",J[J.Math=2]="Math"})(E0||(E0={}));var i;(function(J){J[J.Idle=0]="Idle",J[J.Immediate=1]="Immediate",J[J.Timer=2]="Timer",J[J.Hover=3]="Hover",J[J.Interaction=4]="Interaction",J[J.Viewport=5]="Viewport",J[J.Never=6]="Never"})(i||(i={}));var J5;(function(J){J[J.RootI18n=0]="RootI18n",J[J.Icu=1]="Icu",J[J.Attr=2]="Attr"})(J5||(J5={}));var y0;(function(J){J[J.NgTemplate=0]="NgTemplate",J[J.Structural=1]="Structural",J[J.Block=2]="Block"})(y0||(y0={}));class V{static nextListId=0;debugListId=V.nextListId++;head={kind:W.ListEnd,next:null,prev:null,debugListId:this.debugListId};tail={kind:W.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(J){if(Array.isArray(J)){for(let Z of J)this.push(Z);return}V.assertIsNotEnd(J),V.assertIsUnowned(J),J.debugListId=this.debugListId;let Y=this.tail.prev;J.prev=Y,Y.next=J,J.next=this.tail,this.tail.prev=J}prepend(J){if(J.length===0)return;for(let $ of J)V.assertIsNotEnd($),V.assertIsUnowned($),$.debugListId=this.debugListId;let Y=this.head.next,Z=this.head;for(let $ of J)Z.next=$,$.prev=Z,Z=$;Z.next=Y,Y.prev=Z}*[Symbol.iterator](){let J=this.head.next;while(J!==this.tail){V.assertIsOwned(J,this.debugListId);let Y=J.next;yield J,J=Y}}*reversed(){let J=this.tail.prev;while(J!==this.head){V.assertIsOwned(J,this.debugListId);let Y=J.prev;yield J,J=Y}}static replace(J,Y){if(V.assertIsNotEnd(J),V.assertIsNotEnd(Y),V.assertIsOwned(J),V.assertIsUnowned(Y),Y.debugListId=J.debugListId,J.prev!==null)J.prev.next=Y,Y.prev=J.prev;if(J.next!==null)J.next.prev=Y,Y.next=J.next;J.debugListId=null,J.prev=null,J.next=null}static replaceWithMany(J,Y){if(Y.length===0){V.remove(J);return}V.assertIsNotEnd(J),V.assertIsOwned(J);let Z=J.debugListId;J.debugListId=null;for(let K of Y)V.assertIsNotEnd(K),V.assertIsUnowned(K);let{prev:$,next:G}=J;J.prev=null,J.next=null;let z=$;for(let K of Y)V.assertIsUnowned(K),K.debugListId=Z,z.next=K,K.prev=z,K.next=null,z=K;let H=Y[0],Q=z;if($!==null)$.next=H,H.prev=$;if(G!==null)G.prev=Q,Q.next=G}static remove(J){V.assertIsNotEnd(J),V.assertIsOwned(J),J.prev.next=J.next,J.next.prev=J.prev,J.debugListId=null,J.prev=null,J.next=null}static insertBefore(J,Y){if(Array.isArray(J)){for(let Z of J)V.insertBefore(Z,Y);return}if(V.assertIsOwned(Y),Y.prev===null)throw Error("AssertionError: illegal operation on list start");V.assertIsNotEnd(J),V.assertIsUnowned(J),J.debugListId=Y.debugListId,J.prev=null,Y.prev.next=J,J.prev=Y.prev,J.next=Y,Y.prev=J}static insertAfter(J,Y){if(V.assertIsOwned(Y),Y.next===null)throw Error("AssertionError: illegal operation on list end");V.assertIsNotEnd(J),V.assertIsUnowned(J),J.debugListId=Y.debugListId,Y.next.prev=J,J.next=Y.next,J.prev=Y,Y.next=J}static assertIsUnowned(J){if(J.debugListId!==null)throw Error(`AssertionError: illegal operation on owned node: ${W[J.kind]}`)}static assertIsOwned(J,Y){if(J.debugListId===null)throw Error(`AssertionError: illegal operation on unowned node: ${W[J.kind]}`);else if(Y!==void 0&&J.debugListId!==Y)throw Error(`AssertionError: node belongs to the wrong list (expected ${Y}, actual ${J.debugListId})`)}static assertIsNotEnd(J){if(J.kind===W.ListEnd)throw Error("AssertionError: illegal operation on list head or tail")}}function r0(J){return{kind:W.Statement,statement:J,...y}}function e1(J,Y,Z,$){return{kind:W.Variable,xref:J,variable:Y,initializer:Z,flags:$,...y}}var y={debugListId:null,prev:null,next:null},X$=Symbol("ConsumesSlot"),i8=Symbol("DependsOnSlotContext"),d5=Symbol("ConsumesVars"),r6=Symbol("UsesVarOffset"),_1={[X$]:!0,numSlotsUsed:1},u0={[i8]:!0},m0={[d5]:!0};function b4(J){return J[X$]===!0}function O6(J){return J[i8]===!0}function T3(J){return J[d5]===!0}function sJ(J){return J[r6]===!0}function QQ(J,Y,Z){return{kind:W.InterpolateText,target:J,interpolation:Y,sourceSpan:Z,...u0,...m0,...y}}class Z0{strings;expressions;i18nPlaceholders;constructor(J,Y,Z){if(this.strings=J,this.expressions=Y,this.i18nPlaceholders=Z,Z.length!==0&&Z.length!==Y.length)throw Error(`Expected ${Y.length} placeholders to match interpolation expression count, but got ${Z.length}`)}}function u5(J,Y,Z,$,G,z,H,Q,K,_,X){return{kind:W.Binding,bindingKind:Y,target:J,name:Z,expression:$,unit:G,securityContext:z,isTextAttribute:H,isStructuralTemplateAttribute:Q,templateKind:K,i18nContext:null,i18nMessage:_,sourceSpan:X,...y}}function _Q(J,Y,Z,$,G,z,H,Q,K,_){return{kind:W.Property,target:J,name:Y,expression:Z,bindingKind:$,securityContext:G,sanitizer:null,isStructuralTemplateAttribute:z,templateKind:H,i18nContext:Q,i18nMessage:K,sourceSpan:_,...u0,...m0,...y}}function WQ(J,Y,Z,$,G,z,H,Q,K){return{kind:W.TwoWayProperty,target:J,name:Y,expression:Z,securityContext:$,sanitizer:null,isStructuralTemplateAttribute:G,templateKind:z,i18nContext:H,i18nMessage:Q,sourceSpan:K,...u0,...m0,...y}}function KQ(J,Y,Z,$,G){return{kind:W.StyleProp,target:J,name:Y,expression:Z,unit:$,sourceSpan:G,...u0,...m0,...y}}function XQ(J,Y,Z,$){return{kind:W.ClassProp,target:J,name:Y,expression:Z,sourceSpan:$,...u0,...m0,...y}}function LQ(J,Y,Z){return{kind:W.StyleMap,target:J,expression:Y,sourceSpan:Z,...u0,...m0,...y}}function RQ(J,Y,Z){return{kind:W.ClassMap,target:J,expression:Y,sourceSpan:Z,...u0,...m0,...y}}function oJ(J,Y,Z,$,G,z,H,Q,K,_){return{kind:W.Attribute,target:J,namespace:Y,name:Z,expression:$,securityContext:G,sanitizer:null,isTextAttribute:z,isStructuralTemplateAttribute:H,templateKind:Q,i18nContext:null,i18nMessage:K,sourceSpan:_,...u0,...m0,...y}}function UQ(J,Y){return{kind:W.Advance,delta:J,sourceSpan:Y,...y}}function L$(J,Y,Z,$){return{kind:W.Conditional,target:J,test:Y,conditions:Z,processed:null,sourceSpan:$,contextValue:null,...y,...u0,...m0}}function FQ(J,Y,Z,$){return{kind:W.Repeater,target:J,targetSlot:Y,collection:Z,sourceSpan:$,...y,...u0}}function nJ(J,Y,Z,$,G,z,H){return{kind:W.AnimationBinding,name:J,target:Y,animationKind:Z,expression:$,i18nMessage:null,securityContext:G,sanitizer:null,sourceSpan:z,animationBindingKind:H,...y}}function qQ(J,Y,Z,$){return{kind:W.DeferWhen,target:J,expr:Y,modifier:Z,sourceSpan:$,...y,...u0,...m0}}function R$(J,Y,Z,$,G,z,H,Q,K,_,X){return{kind:W.I18nExpression,context:J,target:Y,i18nOwner:Z,handle:$,expression:G,icuPlaceholder:z,i18nPlaceholder:H,resolutionTime:Q,usage:K,name:_,sourceSpan:X,...y,...m0,...u0}}function VQ(J,Y,Z){return{kind:W.I18nApply,owner:J,handle:Y,sourceSpan:Z,...y}}function DQ(J,Y,Z,$){return{kind:W.StoreLet,target:J,declaredName:Y,value:Z,sourceSpan:$,...u0,...m0,...y}}function wQ(J,Y){return{kind:W.Control,sourceSpan:Y,target:J,...u0,...y}}function y1(J){return J instanceof r}class r extends p{constructor(J=null){super(null,J)}}class q0 extends r{name;kind=N.LexicalRead;constructor(J){super();this.name=J}visitExpression(J,Y){}isEquivalent(J){return this.name===J.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new q0(this.name)}}class N6 extends r{target;targetSlot;offset;kind=N.Reference;constructor(J,Y,Z){super();this.target=J,this.targetSlot=Y,this.offset=Z}visitExpression(){}isEquivalent(J){return J instanceof N6&&J.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new N6(this.target,this.targetSlot,this.offset)}}class T4 extends r{target;value;sourceSpan;kind=N.StoreLet;[d5]=!0;[i8]=!0;constructor(J,Y,Z){super();this.target=J,this.value=Y,this.sourceSpan=Z}visitExpression(){}isEquivalent(J){return J instanceof T4&&J.target===this.target&&J.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(J,Y){this.value=j(this.value,J,Y)}clone(){return new T4(this.target,this.value,this.sourceSpan)}}class B4 extends r{target;targetSlot;kind=N.ContextLetReference;constructor(J,Y){super();this.target=J,this.targetSlot=Y}visitExpression(){}isEquivalent(J){return J instanceof B4&&J.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new B4(this.target,this.targetSlot)}}class m1 extends r{view;kind=N.Context;constructor(J){super();this.view=J}visitExpression(){}isEquivalent(J){return J instanceof m1&&J.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new m1(this.view)}}class k7 extends r{view;kind=N.TrackContext;constructor(J){super();this.view=J}visitExpression(){}isEquivalent(J){return J instanceof k7&&J.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new k7(this.view)}}class M6 extends r{kind=N.NextContext;steps=1;visitExpression(){}isEquivalent(J){return J instanceof M6&&J.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let J=new M6;return J.steps=this.steps,J}}class x7 extends r{kind=N.GetCurrentView;constructor(){super()}visitExpression(){}isEquivalent(J){return J instanceof x7}isConstant(){return!1}transformInternalExpressions(){}clone(){return new x7}}class O4 extends r{view;kind=N.RestoreView;constructor(J){super();this.view=J}visitExpression(J,Y){if(typeof this.view!=="number")this.view.visitExpression(J,Y)}isEquivalent(J){if(!(J instanceof O4)||typeof J.view!==typeof this.view)return!1;if(typeof this.view==="number")return this.view===J.view;else return this.view.isEquivalent(J.view)}isConstant(){return!1}transformInternalExpressions(J,Y){if(typeof this.view!=="number")this.view=j(this.view,J,Y)}clone(){return new O4(this.view instanceof p?this.view.clone():this.view)}}class P6 extends r{expr;kind=N.ResetView;constructor(J){super();this.expr=J}visitExpression(J,Y){this.expr.visitExpression(J,Y)}isEquivalent(J){return J instanceof P6&&this.expr.isEquivalent(J.expr)}isConstant(){return!1}transformInternalExpressions(J,Y){this.expr=j(this.expr,J,Y)}clone(){return new P6(this.expr.clone())}}class X3 extends r{target;value;kind=N.TwoWayBindingSet;constructor(J,Y){super();this.target=J,this.value=Y}visitExpression(J,Y){this.target.visitExpression(J,Y),this.value.visitExpression(J,Y)}isEquivalent(J){return this.target.isEquivalent(J.target)&&this.value.isEquivalent(J.value)}isConstant(){return!1}transformInternalExpressions(J,Y){this.target=j(this.target,J,Y),this.value=j(this.value,J,Y)}clone(){return new X3(this.target,this.value)}}class B1 extends r{xref;kind=N.ReadVariable;name=null;constructor(J){super();this.xref=J}visitExpression(){}isEquivalent(J){return J instanceof B1&&J.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let J=new B1(this.xref);return J.name=this.name,J}}class W5 extends r{kind=N.PureFunctionExpr;[d5]=!0;[r6]=!0;varOffset=null;body;args;fn=null;constructor(J,Y){super();this.body=J,this.args=Y}visitExpression(J,Y){this.body?.visitExpression(J,Y);for(let Z of this.args)Z.visitExpression(J,Y)}isEquivalent(J){if(!(J instanceof W5)||J.args.length!==this.args.length)return!1;return J.body!==null&&this.body!==null&&J.body.isEquivalent(this.body)&&J.args.every((Y,Z)=>Y.isEquivalent(this.args[Z]))}isConstant(){return!1}transformInternalExpressions(J,Y){if(this.body!==null)this.body=j(this.body,J,Y|v.InChildOperation);else if(this.fn!==null)this.fn=j(this.fn,J,Y);for(let Z=0;Z<this.args.length;Z++)this.args[Z]=j(this.args[Z],J,Y)}clone(){let J=new W5(this.body?.clone()??null,this.args.map((Y)=>Y.clone()));return J.fn=this.fn?.clone()??null,J.varOffset=this.varOffset,J}}class l1 extends r{index;kind=N.PureFunctionParameterExpr;constructor(J){super();this.index=J}visitExpression(){}isEquivalent(J){return J instanceof l1&&J.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new l1(this.index)}}class p5 extends r{target;targetSlot;name;args;kind=N.PipeBinding;[d5]=!0;[r6]=!0;varOffset=null;constructor(J,Y,Z,$){super();this.target=J,this.targetSlot=Y,this.name=Z,this.args=$}visitExpression(J,Y){for(let Z of this.args)Z.visitExpression(J,Y)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(J,Y){for(let Z=0;Z<this.args.length;Z++)this.args[Z]=j(this.args[Z],J,Y)}clone(){let J=new p5(this.target,this.targetSlot,this.name,this.args.map((Y)=>Y.clone()));return J.varOffset=this.varOffset,J}}class a6 extends r{target;targetSlot;name;args;numArgs;kind=N.PipeBindingVariadic;[d5]=!0;[r6]=!0;varOffset=null;constructor(J,Y,Z,$,G){super();this.target=J,this.targetSlot=Y,this.name=Z,this.args=$,this.numArgs=G}visitExpression(J,Y){this.args.visitExpression(J,Y)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(J,Y){this.args=j(this.args,J,Y)}clone(){let J=new a6(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return J.varOffset=this.varOffset,J}}class N4 extends r{receiver;name;kind=N.SafePropertyRead;constructor(J,Y){super();this.receiver=J,this.name=Y}get index(){return this.name}visitExpression(J,Y){this.receiver.visitExpression(J,Y)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(J,Y){this.receiver=j(this.receiver,J,Y)}clone(){return new N4(this.receiver.clone(),this.name)}}class M4 extends r{receiver;index;kind=N.SafeKeyedRead;constructor(J,Y,Z){super(Z);this.receiver=J,this.index=Y}visitExpression(J,Y){this.receiver.visitExpression(J,Y),this.index.visitExpression(J,Y)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(J,Y){this.receiver=j(this.receiver,J,Y),this.index=j(this.index,J,Y)}clone(){return new M4(this.receiver.clone(),this.index.clone(),this.sourceSpan)}}class m5 extends r{receiver;args;kind=N.SafeInvokeFunction;constructor(J,Y){super();this.receiver=J,this.args=Y}visitExpression(J,Y){this.receiver.visitExpression(J,Y);for(let Z of this.args)Z.visitExpression(J,Y)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(J,Y){this.receiver=j(this.receiver,J,Y);for(let Z=0;Z<this.args.length;Z++)this.args[Z]=j(this.args[Z],J,Y)}clone(){return new m5(this.receiver.clone(),this.args.map((J)=>J.clone()))}}class P4 extends r{guard;expr;kind=N.SafeTernaryExpr;constructor(J,Y){super();this.guard=J,this.expr=Y}visitExpression(J,Y){this.guard.visitExpression(J,Y),this.expr.visitExpression(J,Y)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(J,Y){this.guard=j(this.guard,J,Y),this.expr=j(this.expr,J,Y)}clone(){return new P4(this.guard.clone(),this.expr.clone())}}class y4 extends r{kind=N.EmptyExpr;visitExpression(J,Y){}isEquivalent(J){return J instanceof y4}isConstant(){return!0}clone(){return new y4}transformInternalExpressions(){}}class h1 extends r{expr;xref;kind=N.AssignTemporaryExpr;name=null;constructor(J,Y){super();this.expr=J,this.xref=Y}visitExpression(J,Y){this.expr.visitExpression(J,Y)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(J,Y){this.expr=j(this.expr,J,Y)}clone(){let J=new h1(this.expr.clone(),this.xref);return J.name=this.name,J}}class K5 extends r{xref;kind=N.ReadTemporaryExpr;name=null;constructor(J){super();this.xref=J}visitExpression(J,Y){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(J,Y){}clone(){let J=new K5(this.xref);return J.name=this.name,J}}class y6 extends r{slot;kind=N.SlotLiteralExpr;constructor(J){super();this.slot=J}visitExpression(J,Y){}isEquivalent(J){return J instanceof y6&&J.slot===this.slot}isConstant(){return!0}clone(){return new y6(this.slot)}transformInternalExpressions(){}}class h6 extends r{expr;target;targetSlot;alias;kind=N.ConditionalCase;constructor(J,Y,Z,$=null){super();this.expr=J,this.target=Y,this.targetSlot=Z,this.alias=$}visitExpression(J,Y){if(this.expr!==null)this.expr.visitExpression(J,Y)}isEquivalent(J){return J instanceof h6&&J.expr===this.expr}isConstant(){return!0}clone(){return new h6(this.expr,this.target,this.targetSlot)}transformInternalExpressions(J,Y){if(this.expr!==null)this.expr=j(this.expr,J,Y)}}class h4 extends r{expr;kind=N.ConstCollected;constructor(J){super();this.expr=J}transformInternalExpressions(J,Y){this.expr=J(this.expr,Y)}visitExpression(J,Y){this.expr.visitExpression(J,Y)}isEquivalent(J){if(!(J instanceof h4))return!1;return this.expr.isEquivalent(J.expr)}isConstant(){return this.expr.isConstant()}clone(){return new h4(this.expr)}}class v7 extends r{parameters;body;kind=N.ArrowFunction;[d5]=!0;[r6]=!0;contextName=n0;currentViewName="view";varOffset=null;ops;constructor(J,Y){super();this.parameters=J,this.body=Y,this.ops=new V,this.ops.push([r0(new _0(Y,Y.sourceSpan))])}visitExpression(J,Y){for(let Z of this.ops)G0(Z,($)=>{$.visitExpression(J,Y)})}isEquivalent(J){return J instanceof v7&&J.parameters.length===this.parameters.length&&J.parameters.every((Y,Z)=>Y.isEquivalent(this.parameters[Z]))&&J.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(J,Y){for(let Z of this.ops)Y0(Z,J,Y|(v.InChildOperation|v.InArrowFunctionOperation))}clone(){let J=new v7(this.parameters,this.body);return J.varOffset=this.varOffset,J.ops=this.ops,J}}function G0(J,Y){Y0(J,(Z,$)=>{return Y(Z,$),Z},v.None)}var v;(function(J){J[J.None=0]="None",J[J.InChildOperation=1]="InChildOperation",J[J.InArrowFunctionOperation=2]="InArrowFunctionOperation"})(v||(v={}));function B3(J,Y,Z){for(let $=0;$<J.expressions.length;$++)J.expressions[$]=j(J.expressions[$],Y,Z)}function Y0(J,Y,Z){switch(J.kind){case W.StyleProp:case W.StyleMap:case W.ClassProp:case W.ClassMap:case W.AnimationString:case W.AnimationBinding:case W.Binding:if(J.expression instanceof Z0)B3(J.expression,Y,Z);else J.expression=j(J.expression,Y,Z);break;case W.Property:case W.DomProperty:case W.Attribute:if(J.expression instanceof Z0)B3(J.expression,Y,Z);else J.expression=j(J.expression,Y,Z);J.sanitizer=J.sanitizer&&j(J.sanitizer,Y,Z);break;case W.TwoWayProperty:J.expression=j(J.expression,Y,Z),J.sanitizer=J.sanitizer&&j(J.sanitizer,Y,Z);break;case W.I18nExpression:J.expression=j(J.expression,Y,Z);break;case W.InterpolateText:B3(J.interpolation,Y,Z);break;case W.Statement:S7(J.statement,Y,Z);break;case W.Variable:J.initializer=j(J.initializer,Y,Z);break;case W.Conditional:for(let $ of J.conditions){if($.expr===null)continue;$.expr=j($.expr,Y,Z)}if(J.processed!==null)J.processed=j(J.processed,Y,Z);if(J.contextValue!==null)J.contextValue=j(J.contextValue,Y,Z);break;case W.Animation:case W.AnimationListener:case W.Listener:case W.TwoWayListener:for(let $ of J.handlerOps)Y0($,Y,Z|v.InChildOperation);break;case W.ExtractedAttribute:J.expression=J.expression&&j(J.expression,Y,Z),J.trustedValueFn=J.trustedValueFn&&j(J.trustedValueFn,Y,Z);break;case W.RepeaterCreate:if(J.trackByOps===null)J.track=j(J.track,Y,Z);else for(let $ of J.trackByOps)Y0($,Y,Z|v.InChildOperation);if(J.trackByFn!==null)J.trackByFn=j(J.trackByFn,Y,Z);break;case W.Repeater:J.collection=j(J.collection,Y,Z);break;case W.Defer:if(J.loadingConfig!==null)J.loadingConfig=j(J.loadingConfig,Y,Z);if(J.placeholderConfig!==null)J.placeholderConfig=j(J.placeholderConfig,Y,Z);if(J.resolverFn!==null)J.resolverFn=j(J.resolverFn,Y,Z);break;case W.I18nMessage:for(let[$,G]of J.params)J.params.set($,j(G,Y,Z));for(let[$,G]of J.postprocessingParams)J.postprocessingParams.set($,j(G,Y,Z));break;case W.DeferWhen:J.expr=j(J.expr,Y,Z);break;case W.StoreLet:J.value=j(J.value,Y,Z);break;case W.Advance:case W.Container:case W.ContainerEnd:case W.ContainerStart:case W.DeferOn:case W.DisableBindings:case W.Element:case W.ElementEnd:case W.ElementStart:case W.EnableBindings:case W.I18n:case W.I18nApply:case W.I18nContext:case W.I18nEnd:case W.I18nStart:case W.IcuEnd:case W.IcuStart:case W.Namespace:case W.Pipe:case W.Projection:case W.ProjectionDef:case W.Template:case W.Text:case W.I18nAttributes:case W.IcuPlaceholder:case W.DeclareLet:case W.SourceLocation:case W.ConditionalCreate:case W.ConditionalBranchCreate:case W.Control:case W.ControlCreate:break;default:throw Error(`AssertionError: transformExpressionsInOp doesn't handle ${W[J.kind]}`)}}function j(J,Y,Z){if(J instanceof r)J.transformInternalExpressions(Y,Z);else if(J instanceof b)J.lhs=j(J.lhs,Y,Z),J.rhs=j(J.rhs,Y,Z);else if(J instanceof z5)J.expr=j(J.expr,Y,Z);else if(J instanceof b0)J.receiver=j(J.receiver,Y,Z);else if(J instanceof M1)J.receiver=j(J.receiver,Y,Z),J.index=j(J.index,Y,Z);else if(J instanceof h0){J.fn=j(J.fn,Y,Z);for(let $=0;$<J.args.length;$++)J.args[$]=j(J.args[$],Y,Z)}else if(J instanceof D1)for(let $=0;$<J.entries.length;$++)J.entries[$]=j(J.entries[$],Y,Z);else if(J instanceof H1)for(let $ of J.entries)if($ instanceof b1)$.expression=j($.expression,Y,Z);else $.value=j($.value,Y,Z);else if(J instanceof V1){if(J.condition=j(J.condition,Y,Z),J.trueCase=j(J.trueCase,Y,Z),J.falseCase!==null)J.falseCase=j(J.falseCase,Y,Z)}else if(J instanceof h5)J.expr=j(J.expr,Y,Z);else if(J instanceof F6)J.expr=j(J.expr,Y,Z);else if(J instanceof p7)for(let $=0;$<J.expressions.length;$++)J.expressions[$]=j(J.expressions[$],Y,Z);else if(J instanceof D4)J.condition=j(J.condition,Y,Z);else if(J instanceof F4)J.tag=j(J.tag,Y,Z),J.template.expressions=J.template.expressions.map(($)=>j($,Y,Z));else if(J instanceof l5)if(Array.isArray(J.body))for(let $=0;$<J.body.length;$++)S7(J.body[$],Y,Z|v.InChildOperation);else J.body=j(J.body,Y,Z|v.InChildOperation);else if(J instanceof g);else if(J instanceof V4)for(let $=0;$<J.expressions.length;$++)J.expressions[$]=j(J.expressions[$],Y,Z);else if(J instanceof z1)J.expr=j(J.expr,Y,Z);else if(J instanceof H5)J.expression=j(J.expression,Y,Z);else if(J instanceof G1||J instanceof G5||J instanceof w0||J instanceof k5);else throw Error(`Unhandled expression kind: ${J.constructor.name}`);return Y(J,Z)}function S7(J,Y,Z){if(J instanceof I0)J.expr=j(J.expr,Y,Z);else if(J instanceof _0)J.value=j(J.value,Y,Z);else if(J instanceof U0){if(J.value!==void 0)J.value=j(J.value,Y,Z)}else if(J instanceof i7){J.condition=j(J.condition,Y,Z);for(let $ of J.trueCase)S7($,Y,Z);for(let $ of J.falseCase)S7($,Y,Z)}else throw Error(`Unhandled statement kind: ${J.constructor.name}`)}function U$(J){return J instanceof w0&&typeof J.value==="string"}class O0{slot=null}var EQ=new Set([W.Element,W.ElementStart,W.Container,W.ContainerStart,W.Template,W.RepeaterCreate,W.ConditionalCreate,W.ConditionalBranchCreate]);function X5(J){return EQ.has(J.kind)}function AQ(J,Y,Z,$,G,z){return{kind:W.ElementStart,xref:Y,tag:J,handle:new O0,attributes:null,localRefs:[],nonBindable:!1,namespace:Z,i18nPlaceholder:$,startSourceSpan:G,wholeSourceSpan:z,..._1,...y}}function F$(J,Y,Z,$,G,z,H,Q){return{kind:W.Template,xref:J,templateKind:Y,attributes:null,tag:Z,handle:new O0,functionNameSuffix:$,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:G,i18nPlaceholder:z,startSourceSpan:H,wholeSourceSpan:Q,..._1,...y}}function q$(J,Y,Z,$,G,z,H,Q){return{kind:W.ConditionalCreate,xref:J,templateKind:Y,attributes:null,tag:Z,handle:new O0,functionNameSuffix:$,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:G,i18nPlaceholder:z,startSourceSpan:H,wholeSourceSpan:Q,..._1,...y}}function V$(J,Y,Z,$,G,z,H,Q){return{kind:W.ConditionalBranchCreate,xref:J,templateKind:Y,attributes:null,tag:Z,handle:new O0,functionNameSuffix:$,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:G,i18nPlaceholder:z,startSourceSpan:H,wholeSourceSpan:Q,..._1,...y}}function IQ(J,Y,Z,$,G,z,H,Q,K,_){return{kind:W.RepeaterCreate,attributes:null,xref:J,handle:new O0,emptyView:Y,track:$,trackByFn:null,trackByOps:null,tag:Z,emptyTag:z,emptyAttributes:null,functionNameSuffix:"For",namespace:E0.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:G,usesComponentInstance:!1,i18nPlaceholder:H,emptyI18nPlaceholder:Q,startSourceSpan:K,wholeSourceSpan:_,..._1,...y,...m0,numSlotsUsed:Y===null?2:3}}function jQ(J,Y){return{kind:W.ElementEnd,xref:J,sourceSpan:Y,...y}}function CQ(J){return{kind:W.DisableBindings,xref:J,...y}}function TQ(J){return{kind:W.EnableBindings,xref:J,...y}}function D$(J,Y,Z,$){return{kind:W.Text,xref:J,handle:new O0,initialValue:Y,icuPlaceholder:Z,sourceSpan:$,..._1,...y}}function BQ(J,Y,Z,$,G,z){return{kind:W.AnimationString,name:J,target:Y,animationKind:Z,expression:$,i18nMessage:null,securityContext:G,sanitizer:null,sourceSpan:z,...y}}function OQ(J,Y,Z,$,G,z){let H=new V;return H.push($),{kind:W.Animation,name:J,target:Y,animationKind:Z,handlerOps:H,handlerFnName:null,i18nMessage:null,securityContext:G,sanitizer:null,sourceSpan:z,...y}}function s8(J,Y,Z,$,G,z,H,Q,K){let _=new V;return _.push(G),{kind:W.Listener,target:J,targetSlot:Y,tag:$,hostListener:Q,name:Z,handlerOps:_,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:z!==null,legacyAnimationPhase:z,eventTarget:H,sourceSpan:K,...y}}function w$(J,Y,Z,$,G,z,H,Q,K){let _=new V;return _.push(G),{kind:W.AnimationListener,target:J,targetSlot:Y,tag:$,hostListener:Q,name:Z,animationKind:z,handlerOps:_,handlerFnName:null,consumesDollarEvent:!1,eventTarget:H,sourceSpan:K,...y}}function E$(J,Y,Z,$,G,z){let H=new V;return H.push(G),{kind:W.TwoWayListener,target:J,targetSlot:Y,tag:$,name:Z,handlerOps:H,handlerFnName:null,sourceSpan:z,...y}}function NQ(J,Y,Z){return{kind:W.Pipe,xref:J,handle:Y,name:Z,...y,..._1}}function MQ(J){return{kind:W.Namespace,active:J,...y}}function PQ(J){return{kind:W.ProjectionDef,def:J,...y}}function yQ(J,Y,Z,$,G){return{kind:W.Projection,xref:J,handle:new O0,selector:Y,i18nPlaceholder:Z,fallbackView:$,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:G,...y,..._1,numSlotsUsed:$===null?1:2}}function Y1(J,Y,Z,$,G,z,H,Q){return{kind:W.ExtractedAttribute,target:J,bindingKind:Y,namespace:Z,name:$,expression:G,i18nContext:z,i18nMessage:H,securityContext:Q,trustedValueFn:null,...y}}function hQ(J,Y,Z,$,G,z){return{kind:W.Defer,xref:J,handle:new O0,mainView:Y,mainSlot:Z,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:$,resolverFn:G,flags:null,sourceSpan:z,...y,..._1,numSlotsUsed:2}}function n1(J,Y,Z,$){return{kind:W.DeferOn,defer:J,trigger:Y,modifier:Z,sourceSpan:$,...y}}function kQ(J,Y,Z){return{kind:W.DeclareLet,xref:J,declaredName:Y,sourceSpan:Z,handle:new O0,..._1,...y}}function xQ(J,Y,Z,$,G,z,H,Q){return{kind:W.I18nMessage,xref:J,i18nContext:Y,i18nBlock:Z,message:$,messagePlaceholder:G,params:z,postprocessingParams:H,needsPostprocessing:Q,subMessages:[],...y}}function L3(J,Y,Z,$){return{kind:W.I18nStart,xref:J,handle:new O0,root:Z??J,message:Y,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:$,...y,..._1}}function R3(J,Y){return{kind:W.I18nEnd,xref:J,sourceSpan:Y,...y}}function vQ(J,Y,Z,$){return{kind:W.IcuStart,xref:J,message:Y,messagePlaceholder:Z,context:null,sourceSpan:$,...y}}function SQ(J){return{kind:W.IcuEnd,xref:J,...y}}function fQ(J,Y,Z){return{kind:W.IcuPlaceholder,xref:J,name:Y,strings:Z,expressionPlaceholders:[],...y}}function O3(J,Y,Z,$,G){if(Z===null&&J!==J5.Attr)throw Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return{kind:W.I18nContext,contextKind:J,xref:Y,i18nBlock:Z,message:$,sourceSpan:G,params:new Map,postprocessingParams:new Map,...y}}function A$(J,Y,Z){return{kind:W.I18nAttributes,xref:J,handle:Y,target:Z,i18nAttributesConfig:null,...y,..._1}}function gQ(J,Y){return{kind:W.SourceLocation,templatePath:J,locations:Y,...y}}function bQ(J){return{kind:W.ControlCreate,sourceSpan:J,...y}}function uQ(J,Y,Z,$,G,z){return{kind:W.DomProperty,name:J,expression:Y,bindingKind:Z,i18nContext:$,securityContext:G,sanitizer:null,sourceSpan:z,...m0,...y}}var I$="CTX_REF_MARKER",A;(function(J){J[J.Tmpl=0]="Tmpl",J[J.Host=1]="Host",J[J.Both=2]="Both"})(A||(A={}));var N0;(function(J){J[J.Full=0]="Full",J[J.DomOnly=1]="DomOnly"})(N0||(N0={}));class o8{componentName;pool;mode;constructor(J,Y,Z){this.componentName=J,this.pool=Y,this.mode=Z}kind=A.Both;allocateXrefId(){return this.nextXrefId++}nextXrefId=0}class U3 extends o8{relativeContextFilePath;i18nUseExternalIds;deferMeta;allDeferrableDepsFn;relativeTemplatePath;enableDebugLocations;constructor(J,Y,Z,$,G,z,H,Q,K){super(J,Y,Z);this.relativeContextFilePath=$,this.i18nUseExternalIds=G,this.deferMeta=z,this.allDeferrableDepsFn=H,this.relativeTemplatePath=Q,this.enableDebugLocations=K,this.root=new U1(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}kind=A.Tmpl;fnSuffix="Template";root;views=new Map;contentSelectors=null;allocateView(J){let Y=new U1(this,this.allocateXrefId(),J);return this.views.set(Y.xref,Y),Y}get units(){return this.views.values()}addConst(J,Y){for(let $=0;$<this.consts.length;$++)if(this.consts[$].isEquivalent(J))return $;let Z=this.consts.length;if(this.consts.push(J),Y)this.constsInitializers.push(...Y);return Z}consts=[];constsInitializers=[]}class n8{xref;constructor(J){this.xref=J}create=new V;update=new V;functions=new Set;fnName=null;vars=null;*ops(){for(let J of this.functions)for(let Y of J.ops)yield Y;for(let J of this.create)if(yield J,J.kind===W.Listener||J.kind===W.Animation||J.kind===W.AnimationListener||J.kind===W.TwoWayListener)for(let Y of J.handlerOps)yield Y;else if(J.kind===W.RepeaterCreate&&J.trackByOps!==null)for(let Y of J.trackByOps)yield Y;for(let J of this.update)yield J}}class U1 extends n8{job;parent;constructor(J,Y,Z){super(Y);this.job=J,this.parent=Z}contextVariables=new Map;aliases=new Set;decls=null}class r8 extends o8{constructor(J,Y,Z){super(J,Y,Z);this.root=new j$(this)}kind=A.Host;fnSuffix="HostBindings";root;get units(){return[this.root]}}class j$ extends n8{job;constructor(J){super(0);this.job=J}attributes=null}function mQ(J){for(let Y of J.units)for(let Z of Y.ops())Y0(Z,lQ,v.None)}function lQ(J){if(J instanceof h0&&J.fn instanceof q0&&J.fn.name==="$any"){if(J.args.length!==1)throw Error("The $any builtin function expects exactly one argument.");return J.args[0]}return J}function cQ(J){let Y=new Map;for(let Z of J.units)for(let $ of Z.create)if($.kind===W.I18nContext)Y.set($.xref,$);for(let Z of J.units)for(let $ of Z.update)if($.kind===W.I18nExpression&&dQ(Y,$))V.insertAfter(VQ($.i18nOwner,$.handle,null),$)}function dQ(J,Y){if(Y.next?.kind!==W.I18nExpression)return!0;let Z=J.get(Y.context),$=J.get(Y.next.context);if(Z===void 0)throw Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if($===void 0)throw Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");if(Z.i18nBlock!==null){if(Z.i18nBlock!==$.i18nBlock)return!0;return!1}if(Y.i18nOwner!==Y.next.i18nOwner)return!0;return!1}function pQ(J){for(let Y of J.units){let Z=Y.update.head,$=[],G=null;for(let z of Y.create){if(z.kind===W.I18nStart)G={blockXref:z.xref,lastSlotConsumer:z.xref};else if(z.kind===W.I18nEnd){for(let H of $)H.target=G.lastSlotConsumer,V.insertBefore(H,Z);$.length=0,G=null}if(b4(z)){if(G!==null)G.lastSlotConsumer=z.xref;while(!0){if(Z.next===null)break;if(G!==null&&Z.kind===W.I18nExpression&&Z.usage===b5.I18nText&&Z.i18nOwner===G.blockXref){let Q=Z;Z=Z.next,V.remove(Q),$.push(Q);continue}let H=!1;if(O6(Z)&&Z.target!==z.xref)H=!0;else if(Z.kind===W.Statement||Z.kind===W.Variable)G0(Z,(Q)=>{if(!H&&O6(Q)&&Q.target!==z.xref)H=!0});if(H)break;Z=Z.next}}}}}function iQ(J){if(!J.enableDebugLocations||J.relativeTemplatePath===null)return;for(let Y of J.units){let Z=[];for(let $ of Y.create)if($.kind===W.ElementStart||$.kind===W.Element){let G=$.startSourceSpan.start;Z.push({targetSlot:$.handle,offset:G.offset,line:G.line,column:G.col})}if(Z.length>0)Y.create.push(gQ(J.relativeTemplatePath,Z))}}function C$(J){let Y=new Map;for(let Z of J.create){if(!b4(Z))continue;if(Y.set(Z.xref,Z),Z.kind===W.RepeaterCreate&&Z.emptyView!==null)Y.set(Z.emptyView,Z)}return Y}function sQ(J){for(let Y of J.units){let Z=C$(Y);for(let $ of Y.ops())switch($.kind){case W.Attribute:oQ(Y,$,Z);break;case W.Property:if($.bindingKind!==C.LegacyAnimation&&$.bindingKind!==C.Animation){let G;if($.i18nMessage!==null&&$.templateKind===null)G=C.I18n;else if($.isStructuralTemplateAttribute)G=C.Template;else G=C.Property;V.insertBefore(Y1($.target,G,null,$.name,null,null,null,$.securityContext),Y4(Z,$.target))}break;case W.TwoWayProperty:V.insertBefore(Y1($.target,C.TwoWayProperty,null,$.name,null,null,null,$.securityContext),Y4(Z,$.target));break;case W.StyleProp:case W.ClassProp:if($.expression instanceof y4)V.insertBefore(Y1($.target,C.Property,null,$.name,null,null,null,s.STYLE),Y4(Z,$.target));break;case W.Listener:if(!$.isLegacyAnimationListener){let G=Y1($.target,C.Property,null,$.name,null,null,null,s.NONE);if(J.kind===A.Host)break;else V.insertBefore(G,Y4(Z,$.target))}break;case W.TwoWayListener:if(J.kind!==A.Host){let G=Y1($.target,C.Property,null,$.name,null,null,null,s.NONE);V.insertBefore(G,Y4(Z,$.target))}break}}}function Y4(J,Y){let Z=J.get(Y);if(Z===void 0)throw Error("All attributes should have an element-like target.");return Z}function oQ(J,Y,Z){if(Y.expression instanceof Z0)return;if(Y.isTextAttribute){let $=Y1(Y.target,Y.isStructuralTemplateAttribute?C.Template:C.Attribute,Y.namespace,Y.name,Y.expression,Y.i18nContext,Y.i18nMessage,Y.securityContext);if(J.job.kind===A.Host)J.create.push($);else{let G=Y4(Z,Y.target);V.insertBefore($,G)}V.remove(Y)}}var rJ="aria-";function T$(J){return J.startsWith(rJ)&&J.length>rJ.length}function nQ(J,Y){let Z=J.get(Y);if(Z===void 0)throw Error("All attributes should have an element-like target.");return Z}function rQ(J){let Y=new Map;for(let Z of J.units)for(let $ of Z.create){if(!X5($))continue;Y.set($.xref,$)}for(let Z of J.units)for(let $ of Z.ops()){if($.kind!==W.Binding)continue;switch($.bindingKind){case C.Attribute:if($.name==="ngNonBindable"){V.remove($);let G=nQ(Y,$.target);G.nonBindable=!0}else if($.name.startsWith("animate."))V.replace($,nJ($.name,$.target,$.name==="animate.enter"?"enter":"leave",$.expression,$.securityContext,$.sourceSpan,0));else{let[G,z]=w1($.name);V.replace($,oJ($.target,G,z,$.expression,$.securityContext,$.isTextAttribute,$.isStructuralTemplateAttribute,$.templateKind,$.i18nMessage,$.sourceSpan))}break;case C.Animation:V.replace($,nJ($.name,$.target,$.name==="animate.enter"?"enter":"leave",$.expression,$.securityContext,$.sourceSpan,1));break;case C.Property:case C.LegacyAnimation:if(J.mode===N0.DomOnly&&T$($.name))V.replace($,oJ($.target,null,$.name,$.expression,$.securityContext,!1,$.isStructuralTemplateAttribute,$.templateKind,$.i18nMessage,$.sourceSpan));else if(J.kind===A.Host)V.replace($,uQ($.name,$.expression,$.bindingKind,$.i18nContext,$.securityContext,$.sourceSpan));else V.replace($,_Q($.target,$.name,$.expression,$.bindingKind,$.securityContext,$.isStructuralTemplateAttribute,$.templateKind,$.i18nContext,$.i18nMessage,$.sourceSpan));break;case C.TwoWayProperty:if(!($.expression instanceof p))throw Error(`Expected value of two-way property binding "${$.name}" to be an expression`);V.replace($,WQ($.target,$.name,$.expression,$.securityContext,$.isStructuralTemplateAttribute,$.templateKind,$.i18nContext,$.i18nMessage,$.sourceSpan));break;case C.I18n:case C.ClassName:case C.StyleProperty:throw Error(`Unhandled binding of kind ${C[$.bindingKind]}`)}}}var aJ=new Map([[R.ariaProperty,R.ariaProperty],[R.attribute,R.attribute],[R.classProp,R.classProp],[R.element,R.element],[R.elementContainer,R.elementContainer],[R.elementContainerEnd,R.elementContainerEnd],[R.elementContainerStart,R.elementContainerStart],[R.elementEnd,R.elementEnd],[R.elementStart,R.elementStart],[R.domProperty,R.domProperty],[R.i18nExp,R.i18nExp],[R.listener,R.listener],[R.listener,R.listener],[R.property,R.property],[R.styleProp,R.styleProp],[R.syntheticHostListener,R.syntheticHostListener],[R.syntheticHostProperty,R.syntheticHostProperty],[R.templateCreate,R.templateCreate],[R.twoWayProperty,R.twoWayProperty],[R.twoWayListener,R.twoWayListener],[R.declareLet,R.declareLet],[R.conditionalCreate,R.conditionalBranchCreate],[R.conditionalBranchCreate,R.conditionalBranchCreate],[R.domElement,R.domElement],[R.domElementStart,R.domElementStart],[R.domElementEnd,R.domElementEnd],[R.domElementContainer,R.domElementContainer],[R.domElementContainerStart,R.domElementContainerStart],[R.domElementContainerEnd,R.domElementContainerEnd],[R.domListener,R.domListener],[R.domTemplate,R.domTemplate],[R.animationEnter,R.animationEnter],[R.animationLeave,R.animationLeave],[R.animationEnterListener,R.animationEnterListener],[R.animationLeaveListener,R.animationLeaveListener]]),aQ=256;function tQ(J){for(let Y of J.units)tJ(Y.create),tJ(Y.update)}function tJ(J){let Y=null;for(let Z of J){if(Z.kind!==W.Statement||!(Z.statement instanceof I0)){Y=null;continue}if(!(Z.statement.expr instanceof h0)||!(Z.statement.expr.fn instanceof G5)){Y=null;continue}let $=Z.statement.expr.fn.value;if(!aJ.has($)){Y=null;continue}if(Y!==null&&aJ.get(Y.instruction)===$&&Y.length<aQ){let G=Y.expression.callFn(Z.statement.expr.args,Z.statement.expr.sourceSpan,Z.statement.expr.pure);Y.expression=G,Y.op.statement=G.toStmt(),Y.length++,V.remove(Z)}else Y={op:Z,instruction:$,expression:Z.statement.expr,length:1}}}function eQ(J){for(let Y of J.units)for(let Z of Y.update)if((Z.kind===W.Attribute||Z.kind===W.StyleProp||Z.kind==W.StyleMap||Z.kind===W.ClassMap)&&Z.expression instanceof Z0&&Z.expression.strings.length===2&&Z.expression.strings.every((G)=>G===""))Z.expression=Z.expression.expressions[0]}function J_(J){for(let Y of J.units)for(let Z of Y.ops()){if(Z.kind!==W.Conditional)continue;let $,G=Z.conditions.findIndex((Q)=>Q.expr===null);if(G>=0){let Q=Z.conditions.splice(G,1)[0].targetSlot;$=new y6(Q)}else $=q(-1);let z=Z.test==null?null:new h1(Z.test,J.allocateXrefId()),H=null;for(let Q=Z.conditions.length-1;Q>=0;Q--){let K=Z.conditions[Q];if(K.expr===null)continue;if(z!==null){let _=Q===0?z:new K5(z.xref);K.expr=new b(E.Identical,_,K.expr)}else if(K.alias!==null)H??=J.allocateXrefId(),K.expr=new h1(K.expr,H),Z.contextValue=new K5(H);$=new V1(K.expr,new y6(K.targetSlot),$)}Z.processed=$,Z.conditions=[]}}var Y_=new Map([["&&",E.And],[">",E.Bigger],[">=",E.BiggerEquals],["|",E.BitwiseOr],["&",E.BitwiseAnd],["/",E.Divide],["=",E.Assign],["==",E.Equals],["===",E.Identical],["<",E.Lower],["<=",E.LowerEquals],["-",E.Minus],["%",E.Modulo],["**",E.Exponentiation],["*",E.Multiply],["!=",E.NotEquals],["!==",E.NotIdentical],["??",E.NullishCoalesce],["||",E.Or],["+",E.Plus],["in",E.In],["instanceof",E.InstanceOf],["+=",E.AdditionAssignment],["-=",E.SubtractionAssignment],["*=",E.MultiplicationAssignment],["/=",E.DivisionAssignment],["%=",E.RemainderAssignment],["**=",E.ExponentiationAssignment],["&&=",E.AndAssignment],["||=",E.OrAssignment],["??=",E.NullishCoalesceAssignment]]);function B$(J){let Y=new Map([["svg",E0.SVG],["math",E0.Math]]);if(J===null)return E0.HTML;return Y.get(J)??E0.HTML}function Z_(J){let Y=new Map([["svg",E0.SVG],["math",E0.Math]]);for(let[Z,$]of Y.entries())if($===J)return Z;return null}function $_(J,Y){if(Y===E0.HTML)return J;return`:${Z_(Y)}:${J}`}function k4(J){if(Array.isArray(J))return o(J.map(k4));return q(J)}function G_(J){let Y=new Map;for(let Z of J.units)for(let $ of Z.create)if($.kind===W.ExtractedAttribute){let G=Y.get($.target)||new O$;Y.set($.target,G),G.add($.bindingKind,$.name,$.expression,$.namespace,$.trustedValueFn),V.remove($)}if(J instanceof U3){for(let Z of J.units)for(let $ of Z.create)if($.kind==W.Projection){let G=Y.get($.xref);if(G!==void 0){let z=$8(G);if(z.entries.length>0)$.attributes=z}}else if(X5($)){if($.attributes=eJ(J,Y,$.xref),$.kind===W.RepeaterCreate&&$.emptyView!==null)$.emptyAttributes=eJ(J,Y,$.emptyView)}}else if(J instanceof r8)for(let[Z,$]of Y.entries()){if(Z!==J.root.xref)throw Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let G=$8($);if(G.entries.length>0)J.root.attributes=G}}function eJ(J,Y,Z){let $=Y.get(Z);if($!==void 0){let G=$8($);if(G.entries.length>0)return J.addConst(G)}return null}var n5=Object.freeze([]);class O${known=new Map;byKind=new Map;propertyBindings=null;projectAs=null;get attributes(){return this.byKind.get(C.Attribute)??n5}get classes(){return this.byKind.get(C.ClassName)??n5}get styles(){return this.byKind.get(C.StyleProperty)??n5}get bindings(){return this.propertyBindings??n5}get template(){return this.byKind.get(C.Template)??n5}get i18n(){return this.byKind.get(C.I18n)??n5}isKnown(J,Y){let Z=this.known.get(J)??new Set;if(this.known.set(J,Z),Z.has(Y))return!0;return Z.add(Y),!1}add(J,Y,Z,$,G){if(!(J===C.Attribute||J===C.ClassName||J===C.StyleProperty)&&this.isKnown(J,Y))return;if(Y==="ngProjectAs"){if(Z===null||!(Z instanceof w0)||Z.value==null||typeof Z.value?.toString()!=="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=Z.value.toString()}let H=this.arrayFor(J);if(H.push(...z_($,Y)),J===C.Attribute||J===C.StyleProperty){if(Z===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(G!==null){if(!U$(Z))throw Error("AssertionError: extracted attribute value should be string literal");H.push(Az(G,new V4([new q6(Z.value)],[]),void 0,Z.sourceSpan))}else H.push(Z)}}arrayFor(J){if(J===C.Property||J===C.TwoWayProperty)return this.propertyBindings??=[],this.propertyBindings;else{if(!this.byKind.has(J))this.byKind.set(J,[]);return this.byKind.get(J)}}}function z_(J,Y){let Z=q(Y);if(J)return[q(0),q(J),Z];return[Z]}function $8({attributes:J,bindings:Y,classes:Z,i18n:$,projectAs:G,styles:z,template:H}){let Q=[...J];if(G!==null){let K=U8(G)[0];Q.push(q(5),k4(K))}if(Z.length>0)Q.push(q(1),...Z);if(z.length>0)Q.push(q(2),...z);if(Y.length>0)Q.push(q(3),...Y);if(H.length>0)Q.push(q(4),...H);if($.length>0)Q.push(q(6),...$);return o(Q)}function H_(J,Y){let Z=J.get(Y);if(Z===void 0)throw Error("All attributes should have an element-like target.");return Z}function Q_(J){let Y=new Map;for(let Z of J.units)for(let $ of Z.create){if(!X5($))continue;Y.set($.xref,$)}for(let Z of J.units)for(let $ of Z.ops())if($.kind===W.AnimationBinding){let G=__($);if(J.kind===A.Host)Z.create.push(G);else V.insertAfter(G,H_(Y,$.target));V.remove($)}}function __(J){if(J.animationBindingKind===0)return BQ(J.name,J.target,J.name==="animate.enter"?"enter":"leave",J.expression,J.securityContext,J.sourceSpan);else{let Y=J.expression;return OQ(J.name,J.target,J.name==="animate.enter"?"enter":"leave",[r0(new _0(Y,Y.sourceSpan))],J.securityContext,J.sourceSpan)}}function W_(J){let Y=new Map;for(let Z of J.units){for(let $ of Z.create)if($.kind===W.I18nAttributes)Y.set($.target,$);for(let $ of Z.update)switch($.kind){case W.Property:case W.Attribute:if($.i18nContext===null)continue;if(!($.expression instanceof Z0))continue;let G=Y.get($.target);if(G===void 0)throw Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(G.target!==$.target)throw Error("AssertionError: Expected i18nAttributes target element to match binding target element");let z=[];for(let H=0;H<$.expression.expressions.length;H++){let Q=$.expression.expressions[H];if($.expression.i18nPlaceholders.length!==$.expression.expressions.length)throw Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${$.expression.i18nPlaceholders.length} placeholders and ${$.expression.expressions.length} expressions`);z.push(R$($.i18nContext,G.target,G.xref,G.handle,Q,null,$.expression.i18nPlaceholders[H],C4.Creation,b5.I18nAttribute,$.name,$.sourceSpan))}V.replaceWithMany($,z);break}}}function K_(J){let Y=new Map;for(let G of J.units)for(let z of G.ops())switch(z.kind){case W.Binding:case W.Property:case W.Attribute:case W.ExtractedAttribute:if(z.i18nMessage===null)continue;if(!Y.has(z.i18nMessage)){let H=O3(J5.Attr,J.allocateXrefId(),null,z.i18nMessage,null);G.create.push(H),Y.set(z.i18nMessage,H.xref)}z.i18nContext=Y.get(z.i18nMessage);break}let Z=new Map;for(let G of J.units)for(let z of G.create)switch(z.kind){case W.I18nStart:if(z.xref===z.root){let H=O3(J5.RootI18n,J.allocateXrefId(),z.xref,z.message,null);G.create.push(H),z.context=H.xref,Z.set(z.xref,H)}break}for(let G of J.units)for(let z of G.create)if(z.kind===W.I18nStart&&z.xref!==z.root){let H=Z.get(z.root);if(H===void 0)throw Error("AssertionError: Root i18n block i18n context should have been created.");z.context=H.xref,Z.set(z.xref,H)}let $=null;for(let G of J.units)for(let z of G.create)switch(z.kind){case W.I18nStart:$=z;break;case W.I18nEnd:$=null;break;case W.IcuStart:if($===null)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(z.message.id!==$.message.id){let H=O3(J5.Icu,J.allocateXrefId(),$.root,z.message,null);G.create.push(H),z.context=H.xref}else z.context=$.context,Z.get($.xref).contextKind=J5.Icu;break}}function X_(J){let Y=new Map;for(let Z of J.units)for(let $ of Z.update.reversed())if($.kind===W.Binding&&$.isTextAttribute){let G=Y.get($.target)||new Set;if(G.has($.name)&&($.name==="style"||$.name==="class"))V.remove($);G.add($.name),Y.set($.target,G)}}function L_(J){for(let Y of J.units)for(let Z of Y.create){if(Z.kind!==W.Defer)continue;if(Z.placeholderMinimumTime!==null)Z.placeholderConfig=new h4(k4([Z.placeholderMinimumTime]));if(Z.loadingMinimumTime!==null||Z.loadingAfterTime!==null)Z.loadingConfig=new h4(k4([Z.loadingMinimumTime,Z.loadingAfterTime]))}}function R_(J){let Y=new Map;function Z(G){if(Y.has(G.xref))return Y.get(G.xref);let z=new U_;for(let H of G.create){if(!X5(H)||H.localRefs===null)continue;if(!Array.isArray(H.localRefs))throw Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let Q of H.localRefs){if(Q.target!=="")continue;z.targets.set(Q.name,{xref:H.xref,slot:H.handle})}}return Y.set(G.xref,z),z}function $(G,z,H){switch(z.trigger.kind){case i.Idle:case i.Never:case i.Immediate:case i.Timer:return;case i.Hover:case i.Interaction:case i.Viewport:if(z.trigger.targetName===null){if(H===null)throw Error("defer on trigger with no target name must have a placeholder block");let _=J.views.get(H);if(_==null)throw Error("AssertionError: could not find placeholder view for defer on trigger");for(let X of _.create)if(b4(X)&&(X5(X)||X.kind===W.Projection)){z.trigger.targetXref=X.xref,z.trigger.targetView=H,z.trigger.targetSlotViewSteps=-1,z.trigger.targetSlot=X.handle;return}return}let Q=H!==null?J.views.get(H):G,K=H!==null?-1:0;while(Q!==null){let _=Z(Q);if(_.targets.has(z.trigger.targetName)){let{xref:X,slot:L}=_.targets.get(z.trigger.targetName);z.trigger.targetXref=X,z.trigger.targetView=Q.xref,z.trigger.targetSlotViewSteps=K,z.trigger.targetSlot=L;return}Q=Q.parent!==null?J.views.get(Q.parent):null,K++}break;default:throw Error(`Trigger kind ${z.trigger.kind} not handled`)}}for(let G of J.units){let z=new Map;for(let H of G.create)switch(H.kind){case W.Defer:z.set(H.xref,H);break;case W.DeferOn:let Q=z.get(H.defer);$(G,H,H.modifier==="hydrate"?Q.mainView:Q.placeholderView);break}}}var U_=class{targets=new Map},F_=new Map([[W.ElementEnd,[W.ElementStart,W.Element]],[W.ContainerEnd,[W.ContainerStart,W.Container]],[W.I18nEnd,[W.I18nStart,W.I18n]]]),q_=new Set([W.Pipe]);function V_(J){for(let Y of J.units)for(let Z of Y.create){let $=F_.get(Z.kind);if($===void 0)continue;let[G,z]=$,H=Z.prev;while(H!==null&&q_.has(H.kind))H=H.prev;if(H!==null&&H.kind===G)H.kind=z,V.remove(Z)}}function D_(J){for(let Y of J.units)for(let Z of Y.ops())Y0(Z,($)=>C_($,{job:J}),v.None),Y0(Z,T_,v.None)}function l0(J){if(J instanceof z5)return l0(J.expr);else if(J instanceof b)return l0(J.lhs)||l0(J.rhs);else if(J instanceof V1){if(J.falseCase&&l0(J.falseCase))return!0;return l0(J.condition)||l0(J.trueCase)}else if(J instanceof D4)return l0(J.condition);else if(J instanceof h1)return l0(J.expr);else if(J instanceof b0)return l0(J.receiver);else if(J instanceof M1)return l0(J.receiver)||l0(J.index);else if(J instanceof z1)return l0(J.expr);return J instanceof h0||J instanceof D1||J instanceof H1||J instanceof m5||J instanceof p5}function w_(J){let Y=new Set;return j(J,(Z)=>{if(Z instanceof h1)Y.add(Z.xref);return Z},v.None),Y}function E_(J,Y,Z){return j(J,($)=>{if($ instanceof h1&&Y.has($.xref)){let G=new K5($.xref);return new h1(G,G.xref)}return $},v.None),J}function r5(J,Y,Z){let $;if(l0(J)){let G=Z.job.allocateXrefId();$=[new h1(J,G),new K5(G)]}else $=[J,J.clone()],E_($[1],w_($[0]));return new P4($[0],Y($[1]))}function A_(J){return J instanceof N4||J instanceof M4||J instanceof m5}function I_(J){return J instanceof b0||J instanceof M1||J instanceof h0}function N$(J){return A_(J)||I_(J)}function j_(J){if(N$(J)&&J.receiver instanceof P4){let Y=J.receiver;while(Y.expr instanceof P4)Y=Y.expr;return Y}return null}function C_(J,Y){if(!N$(J))return J;let Z=j_(J);if(Z){if(J instanceof h0)return Z.expr=Z.expr.callFn(J.args),J.receiver;if(J instanceof b0)return Z.expr=Z.expr.prop(J.name),J.receiver;if(J instanceof M1)return Z.expr=Z.expr.key(J.index),J.receiver;if(J instanceof m5)return Z.expr=r5(Z.expr,($)=>$.callFn(J.args),Y),J.receiver;if(J instanceof N4)return Z.expr=r5(Z.expr,($)=>$.prop(J.name),Y),J.receiver;if(J instanceof M4)return Z.expr=r5(Z.expr,($)=>$.key(J.index),Y),J.receiver}else{if(J instanceof m5)return r5(J.receiver,($)=>$.callFn(J.args),Y);if(J instanceof N4)return r5(J.receiver,($)=>$.prop(J.name),Y);if(J instanceof M4)return r5(J.receiver,($)=>$.key(J.index),Y)}return J}function T_(J){if(!(J instanceof P4))return J;return new z1(new V1(new b(E.Equals,J.guard,w4),w4,J.expr))}var JY="�",B_="#",O_="*",N_="/",M_=":",P_="[",y_="]",h_="|";function k_(J){let Y=new Map,Z=new Map,$=new Map;for(let z of J.units)for(let H of z.create)switch(H.kind){case W.I18nContext:let Q=x_(J,H);z.create.push(Q),Y.set(H.xref,Q),$.set(H.xref,H);break;case W.I18nStart:Z.set(H.xref,H);break}let G=null;for(let z of J.units)for(let H of z.create)switch(H.kind){case W.IcuStart:G=H,V.remove(H);let Q=$.get(H.context);if(Q.contextKind!==J5.Icu)continue;let K=Z.get(Q.i18nBlock);if(K.context===Q.xref)continue;let _=Z.get(K.root),X=Y.get(_.context);if(X===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let L=Y.get(Q.xref);L.messagePlaceholder=H.messagePlaceholder,X.subMessages.push(L.xref);break;case W.IcuEnd:G=null,V.remove(H);break;case W.IcuPlaceholder:if(G===null||G.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");Y.get(G.context).postprocessingParams.set(H.name,q(v_(H))),V.remove(H);break}}function x_(J,Y,Z){let $=YY(Y.params),G=YY(Y.postprocessingParams),z=[...Y.params.values()].some((H)=>H.length>1);return xQ(J.allocateXrefId(),Y.xref,Y.i18nBlock,Y.message,null,$,G,z)}function v_(J){if(J.strings.length!==J.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${J.strings.length} strings and ${J.expressionPlaceholders.length} expressions`);let Y=J.expressionPlaceholders.map(H4);return J.strings.flatMap((Z,$)=>[Z,Y[$]||""]).join("")}function YY(J){let Y=new Map;for(let[Z,$]of J){let G=S_($);if(G!==null)Y.set(Z,q(G))}return Y}function S_(J){if(J.length===0)return null;let Y=J.map((Z)=>H4(Z));return Y.length===1?Y[0]:`${P_}${Y.join(h_)}${y_}`}function H4(J){if(J.flags&n.ElementTag&&J.flags&n.TemplateTag){if(typeof J.value!=="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let G=H4({...J,value:J.value.element,flags:J.flags&~n.TemplateTag}),z=H4({...J,value:J.value.template,flags:J.flags&~n.ElementTag});if(J.flags&n.OpenTag&&J.flags&n.CloseTag)return`${z}${G}${z}`;return J.flags&n.CloseTag?`${G}${z}`:`${z}${G}`}if(J.flags&n.OpenTag&&J.flags&n.CloseTag)return`${H4({...J,flags:J.flags&~n.CloseTag})}${H4({...J,flags:J.flags&~n.OpenTag})}`;if(J.flags===n.None)return`${J.value}`;let Y="",Z="";if(J.flags&n.ElementTag)Y=B_;else if(J.flags&n.TemplateTag)Y=O_;if(Y!=="")Z=J.flags&n.CloseTag?N_:"";let $=J.subTemplateIndex===null?"":`${M_}${J.subTemplateIndex}`;return`${JY}${Z}${Y}${J.value}${$}${JY}`}function f_(J){for(let Y of J.units){let Z=new Map;for(let G of Y.create){if(!b4(G))continue;else if(G.handle.slot===null)throw Error("AssertionError: expected slots to have been allocated before generating advance() calls");Z.set(G.xref,G.handle.slot)}let $=0;for(let G of Y.update){let z=null;if(O6(G))z=G;else G0(G,(Q)=>{if(z===null&&O6(Q))z=Q});if(z===null)continue;if(!Z.has(z.target))throw Error(`AssertionError: reference to unknown slot for target ${z.target}`);let H=Z.get(z.target);if($!==H){let Q=H-$;if(Q<0)throw Error("AssertionError: slot counter should never need to move backwards");V.insertBefore(UQ(Q,z.sourceSpan),G),$=H}}}}function g_(J){for(let Y of J.units)for(let Z of Y.update){if(Z.kind!==W.StoreLet)continue;let $={kind:R0.Identifier,name:null,identifier:Z.declaredName,local:!0};V.replace(Z,e1(J.allocateXrefId(),$,new T4(Z.target,Z.value,Z.sourceSpan),i0.None))}}function b_(J){let Z=[],$=0;for(let G of J.units)for(let z of G.create)if(z.kind===W.Projection)Z.push(z.selector),z.projectionSlotIndex=$++;if(Z.length>0){let G=null;if(Z.length>1||Z[0]!=="*"){let z=Z.map((H)=>H==="*"?H:U8(H));G=J.pool.getConstLiteral(k4(z),!0)}J.contentSelectors=J.pool.getConstLiteral(k4(Z),!0),J.root.create.prepend([PQ(G)])}}function u_(J){Y6(J.root,null)}function Y6(J,Y){let Z=ZY(J,Y);for(let $ of J.create)switch($.kind){case W.ConditionalCreate:case W.ConditionalBranchCreate:case W.Template:Y6(J.job.views.get($.xref),Z);break;case W.Projection:if($.fallbackView!==null)Y6(J.job.views.get($.fallbackView),Z);break;case W.RepeaterCreate:if(Y6(J.job.views.get($.xref),Z),$.emptyView)Y6(J.job.views.get($.emptyView),Z);if($.trackByOps!==null)$.trackByOps.prepend(Z6(J,Z,!1));break;case W.Animation:case W.AnimationListener:case W.Listener:case W.TwoWayListener:$.handlerOps.prepend(Z6(J,Z,!0));break}J.update.prepend(Z6(J,Z,!1));for(let $ of J.functions)$.ops.prepend(Z6(J,ZY(J,Y),!0))}function ZY(J,Y){let Z={view:J.xref,viewContextVariable:{kind:R0.Context,name:null,view:J.xref},contextVariables:new Map,aliases:J.aliases,references:[],letDeclarations:[],parent:Y};for(let $ of J.contextVariables.keys())Z.contextVariables.set($,{kind:R0.Identifier,name:null,identifier:$,local:!1});for(let $ of J.create)switch($.kind){case W.ElementStart:case W.ConditionalCreate:case W.ConditionalBranchCreate:case W.Template:if(!Array.isArray($.localRefs))throw Error("AssertionError: expected localRefs to be an array");for(let G=0;G<$.localRefs.length;G++)Z.references.push({name:$.localRefs[G].name,targetId:$.xref,targetSlot:$.handle,offset:G,variable:{kind:R0.Identifier,name:null,identifier:$.localRefs[G].name,local:!1}});break;case W.DeclareLet:Z.letDeclarations.push({targetId:$.xref,targetSlot:$.handle,variable:{kind:R0.Identifier,name:null,identifier:$.declaredName,local:!1}});break}return Z}function Z6(J,Y,Z){let $=[];if(Y.view!==J.xref)$.push(e1(J.job.allocateXrefId(),Y.viewContextVariable,new M6,i0.None));let G=J.job.views.get(Y.view);for(let[z,H]of G.contextVariables){let Q=new m1(Y.view),K=H===I$?Q:new b0(Q,H);$.push(e1(J.job.allocateXrefId(),Y.contextVariables.get(z),K,i0.None))}for(let z of G.aliases)$.push(e1(J.job.allocateXrefId(),z,z.expression.clone(),i0.AlwaysInline));for(let z of Y.references)$.push(e1(J.job.allocateXrefId(),z.variable,new N6(z.targetId,z.targetSlot,z.offset),i0.None));if(Y.view!==J.xref||Z)for(let z of Y.letDeclarations)$.push(e1(J.job.allocateXrefId(),z.variable,new B4(z.targetId,z.targetSlot),i0.None));if(Y.parent!==null)$.push(...Z6(J,Y.parent,!1));return $}function m_(J){for(let Y of J.units)for(let Z of Y.ops())Y0(Z,($)=>{if(!($ instanceof h4))return $;return q(J.addConst($.expr))},v.None)}var $Y="style.",GY="class.",l_="style!",zY="class!",HY="!important";function c_(J){for(let Y of J.root.update){if(!(Y.kind===W.Binding&&Y.bindingKind===C.Property))continue;if(Y.name.endsWith(HY))Y.name=Y.name.substring(0,Y.name.length-HY.length);if(Y.name.startsWith($Y)){if(Y.bindingKind=C.StyleProperty,Y.name=Y.name.substring($Y.length),!d_(Y.name))Y.name=p_(Y.name);let{property:Z,suffix:$}=N3(Y.name);Y.name=Z,Y.unit=$}else if(Y.name.startsWith(l_))Y.bindingKind=C.StyleProperty,Y.name="style";else if(Y.name.startsWith(GY))Y.bindingKind=C.ClassName,Y.name=N3(Y.name.substring(GY.length)).property;else if(Y.name.startsWith(zY))Y.bindingKind=C.ClassName,Y.name=N3(Y.name.substring(zY.length)).property}}function d_(J){return J.startsWith("--")}function p_(J){return J.replace(/[a-z][A-Z]/g,(Y)=>{return Y.charAt(0)+"-"+Y.charAt(1)}).toLowerCase()}function N3(J){let Y=J.indexOf("!important");if(Y!==-1)J=Y>0?J.substring(0,Y):"";let Z=null,$=J,G=J.lastIndexOf(".");if(G>0)Z=J.slice(G+1),$=J.substring(0,G);return{property:$,suffix:Z}}function G8(J,Y=!1){return Q1(Object.keys(J).map((Z)=>({key:Z,quoted:Y,value:J[Z]})))}class M${visitText(J){return J.value}visitContainer(J){return J.children.map((Y)=>Y.visit(this)).join("")}visitIcu(J){let Y=Object.keys(J.cases).map(($)=>`${$} {${J.cases[$].visit(this)}}`);return`{${J.expressionPlaceholder}, ${J.type}, ${Y.join(" ")}}`}visitTagPlaceholder(J){return J.isVoid?this.formatPh(J.startName):`${this.formatPh(J.startName)}${J.children.map((Y)=>Y.visit(this)).join("")}${this.formatPh(J.closeName)}`}visitPlaceholder(J){return this.formatPh(J.name)}visitBlockPlaceholder(J){return`${this.formatPh(J.startName)}${J.children.map((Y)=>Y.visit(this)).join("")}${this.formatPh(J.closeName)}`}visitIcuPlaceholder(J,Y){return this.formatPh(J.name)}formatPh(J){return`{${o6(J,!1)}}`}}var i_=new M$;function P$(J){return J.visit(i_)}class U5{sourceSpan;i18n;constructor(J,Y){this.sourceSpan=J,this.i18n=Y}}class u4 extends U5{value;tokens;constructor(J,Y,Z,$){super(Y,$);this.value=J,this.tokens=Z}visit(J,Y){return J.visitText(this,Y)}}class L4 extends U5{switchValue;type;cases;switchValueSourceSpan;constructor(J,Y,Z,$,G,z){super($,z);this.switchValue=J,this.type=Y,this.cases=Z,this.switchValueSourceSpan=G}visit(J,Y){return J.visitExpansion(this,Y)}}class a8{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(J,Y,Z,$,G){this.value=J,this.expression=Y,this.sourceSpan=Z,this.valueSourceSpan=$,this.expSourceSpan=G}visit(J,Y){return J.visitExpansionCase(this,Y)}}class y$ extends U5{name;value;keySpan;valueSpan;valueTokens;constructor(J,Y,Z,$,G,z,H){super(Z,H);this.name=J,this.value=Y,this.keySpan=$,this.valueSpan=G,this.valueTokens=z}visit(J,Y){return J.visitAttribute(this,Y)}}class K1 extends U5{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;isVoid;constructor(J,Y,Z,$,G,z,H,Q=null,K,_){super(z,_);this.name=J,this.attrs=Y,this.directives=Z,this.children=$,this.isSelfClosing=G,this.startSourceSpan=H,this.endSourceSpan=Q,this.isVoid=K}visit(J,Y){return J.visitElement(this,Y)}}class F3{value;sourceSpan;constructor(J,Y){this.value=J,this.sourceSpan=Y}visit(J,Y){return J.visitComment(this,Y)}}class L1 extends U5{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(J,Y,Z,$,G,z,H=null,Q){super($,Q);this.name=J,this.parameters=Y,this.children=Z,this.nameSpan=G,this.startSourceSpan=z,this.endSourceSpan=H}visit(J,Y){return J.visitBlock(this,Y)}}class x0 extends U5{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;constructor(J,Y,Z,$,G,z,H,Q,K,_=null,X){super(Q,X);this.componentName=J,this.tagName=Y,this.fullName=Z,this.attrs=$,this.directives=G,this.children=z,this.isSelfClosing=H,this.startSourceSpan=K,this.endSourceSpan=_}visit(J,Y){return J.visitComponent(this,Y)}}class h${name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(J,Y,Z,$,G=null){this.name=J,this.attrs=Y,this.sourceSpan=Z,this.startSourceSpan=$,this.endSourceSpan=G}visit(J,Y){return J.visitDirective(this,Y)}}class z8{expression;sourceSpan;constructor(J,Y){this.expression=J,this.sourceSpan=Y}visit(J,Y){return J.visitBlockParameter(this,Y)}}class H8{name;value;sourceSpan;nameSpan;valueSpan;constructor(J,Y,Z,$,G){this.name=J,this.value=Y,this.sourceSpan=Z,this.nameSpan=$,this.valueSpan=G}visit(J,Y){return J.visitLetDeclaration(this,Y)}}function e(J,Y,Z=null){let $=[],G=J.visit?(z)=>J.visit(z,Z)||z.visit(J,Z):(z)=>z.visit(J,Z);return Y.forEach((z)=>{let H=G(z);if(H)$.push(H)}),$}var k6={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"\uD835\uDD04",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"\uD835\uDC9C",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",ggg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"\uD835\uDD44",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
21
+ `,Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"\uD835\uDCA9",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",rationals:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",tdot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"\uD835\uDCB5",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"\uD835\uDD1E",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"\uD835\uDCB6",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"\uD835\uDD1F",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"\uD835\uDCB7",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"\uD835\uDD54",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"\uD835\uDCBB",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"\uD835\uDD58",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"\uD835\uDD26",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iquest:"¿",iscr:"\uD835\uDCBE",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"\uD835\uDD29",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"\uD835\uDD5E",mscr:"\uD835\uDCC2",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"\uD835\uDD2B",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"\uD835\uDD5F",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"\uD835\uDCC3",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"\uD835\uDD61",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"\uD835\uDD2F",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"\uD835\uDCC7",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"\uD835\uDD30",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"\uD835\uDCC8",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"\uD835\uDD31",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"\uD835\uDD66",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"\uD835\uDD33",vopf:"\uD835\uDD67",vscr:"\uD835\uDCCB",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wscr:"\uD835\uDCCC",xfr:"\uD835\uDD35",xi:"ξ",xnis:"⋻",xopf:"\uD835\uDD69",xscr:"\uD835\uDCCD",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},k$="";k6.ngsp=k$;class x${tokens;errors;nonNormalizedIcuExpressions;constructor(J,Y,Z){this.tokens=J,this.errors=Y,this.nonNormalizedIcuExpressions=Z}}function s_(J,Y,Z,$={}){let G=new v$(new c8(J,Y),Z,$);return G.tokenize(),new x$($W(G.tokens),G.errors,G.nonNormalizedIcuExpressions)}var o_=/\r\n?/g;function a5(J){return`Unexpected character "${J===V0?"EOF":String.fromCharCode(J)}"`}function QY(J){return`Unknown entity "${J}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function n_(J,Y){return`Unable to parse entity "${Y}" - ${J} character reference entities must end with ";"`}var f7;(function(J){J.HEX="hexadecimal",J.DEC="decimal"})(f7||(f7={}));var r_=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],i4={start:"{{",end:"}}"};class v${_getTagDefinition;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(J,Y,Z){this._getTagDefinition=Y,this._tokenizeIcu=Z.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=Z.leadingTriviaChars&&Z.leadingTriviaChars.map((G)=>G.codePointAt(0)||0);let $=Z.range||{endPos:J.content.length,startPos:0,startLine:0,startCol:0};this._cursor=Z.escapedString?new g7(J,$):new x6(J,$),this._preserveLineEndings=Z.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=Z.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=Z.tokenizeBlocks??!0,this._tokenizeLet=Z.tokenizeLet??!0,this._selectorlessEnabled=Z.selectorlessEnabled??!1;try{this._cursor.init()}catch(G){this.handleError(G)}}_processCarriageReturns(J){if(this._preserveLineEndings)return J;return J.replace(o_,`
22
+ `)}tokenize(){while(this._cursor.peek()!==V0){let J=this._cursor.clone();try{if(this._attemptCharCode(X4))if(this._attemptCharCode(J8))if(this._attemptCharCode(T1))this._consumeCdata(J);else if(this._attemptCharCode(M7))this._consumeComment(J);else this._consumeDocType(J);else if(this._attemptCharCode(t0))this._consumeTagClose(J);else this._consumeTagOpen(J);else if(this._tokenizeLet&&this._cursor.peek()===o5&&!this._inInterpolation&&this._isLetStart())this._consumeLetDeclaration(J);else if(this._tokenizeBlocks&&this._isBlockStart())this._consumeBlockStart(J);else if(this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(M0))this._consumeBlockEnd(J);else if(!(this._tokenizeIcu&&this._tokenizeExpansionForm()))this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(Y){this.handleError(Y)}}this._beginToken(41),this._endToken([])}_getBlockName(){let J=!1,Y=this._cursor.clone();return this._attemptCharCodeUntilFn((Z)=>{if(C6(Z))return!J;if(ZW(Z))return J=!0,!1;return!0}),this._cursor.getChars(Y).trim()}_consumeBlockStart(J){this._requireCharCode(o5),this._beginToken(24,J);let Y=this._endToken([this._getBlockName()]);if(Y.parts[0]==="default never"&&this._attemptCharCode(v0)){this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);return}if(this._cursor.peek()===P0)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(J0),this._attemptCharCode(z0))this._attemptCharCodeUntilFn(J0);else{Y.type=28;return}if(this._attemptCharCode(J1))this._beginToken(25),this._endToken([]);else if(this._isBlockStart()&&(Y.parts[0]==="case"||Y.parts[0]==="default"))this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);else Y.type=28}_consumeBlockEnd(J){this._beginToken(26,J),this._endToken([])}_consumeBlockParameters(){this._attemptCharCodeUntilFn(WY);while(this._cursor.peek()!==z0&&this._cursor.peek()!==V0){this._beginToken(27);let J=this._cursor.clone(),Y=null,Z=0;while(this._cursor.peek()!==v0&&this._cursor.peek()!==V0||Y!==null){let $=this._cursor.peek();if($===N5)this._cursor.advance();else if($===Y)Y=null;else if(Y===null&&_6($))Y=$;else if($===P0&&Y===null)Z++;else if($===z0&&Y===null){if(Z===0)break;else if(Z>0)Z--}this._cursor.advance()}this._endToken([this._cursor.getChars(J)]),this._attemptCharCodeUntilFn(WY)}}_consumeLetDeclaration(J){if(this._requireStr("@let"),this._beginToken(29,J),C6(this._cursor.peek()))this._attemptCharCodeUntilFn(J0);else{let $=this._endToken([this._cursor.getChars(J)]);$.type=32;return}let Y=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(J0),!this._attemptCharCode(F0)){Y.type=32;return}if(this._attemptCharCodeUntilFn(($)=>J0($)&&!P7($)),this._consumeLetDeclarationValue(),this._cursor.peek()===v0)this._beginToken(31),this._endToken([]),this._cursor.advance();else Y.type=32,Y.sourceSpan=this._cursor.getSpan(J)}_getLetDeclarationName(){let J=this._cursor.clone(),Y=!1;return this._attemptCharCodeUntilFn((Z)=>{if(_5(Z)||Z===K3||Z===R5||Y&&e0(Z))return Y=!0,!1;return!0}),this._cursor.getChars(J).trim()}_consumeLetDeclarationValue(){let J=this._cursor.clone();this._beginToken(30,J);while(this._cursor.peek()!==V0){let Y=this._cursor.peek();if(Y===v0)break;if(_6(Y))this._cursor.advance(),this._attemptCharCodeUntilFn((Z)=>{if(Z===N5)return this._cursor.advance(),!1;return Z===Y});this._cursor.advance()}this._endToken([this._cursor.getChars(J)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(JW(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===M0){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(J,Y=this._cursor.clone()){this._currentTokenStart=Y,this._currentTokenType=J}_endToken(J,Y){if(this._currentTokenStart===null)throw new M(this._cursor.getSpan(Y),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new M(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let Z={type:this._currentTokenType,parts:J,sourceSpan:(Y??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(Z),this._currentTokenStart=null,this._currentTokenType=null,Z}_createError(J,Y){if(this._isInExpansionForm())J+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`;let Z=new M(Y,J);return this._currentTokenStart=null,this._currentTokenType=null,Z}handleError(J){if(J instanceof q3)J=this._createError(J.msg,this._cursor.getSpan(J.cursor));if(J instanceof M)this.errors.push(J);else throw J}_attemptCharCode(J){if(this._cursor.peek()===J)return this._cursor.advance(),!0;return!1}_attemptCharCodeCaseInsensitive(J){if(YW(this._cursor.peek(),J))return this._cursor.advance(),!0;return!1}_requireCharCode(J){let Y=this._cursor.clone();if(!this._attemptCharCode(J))throw this._createError(a5(this._cursor.peek()),this._cursor.getSpan(Y))}_attemptStr(J){let Y=J.length;if(this._cursor.charsLeft()<Y)return!1;let Z=this._cursor.clone();for(let $=0;$<Y;$++)if(!this._attemptCharCode(J.charCodeAt($)))return this._cursor=Z,!1;return!0}_attemptStrCaseInsensitive(J){for(let Y=0;Y<J.length;Y++)if(!this._attemptCharCodeCaseInsensitive(J.charCodeAt(Y)))return!1;return!0}_requireStr(J){let Y=this._cursor.clone();if(!this._attemptStr(J))throw this._createError(a5(this._cursor.peek()),this._cursor.getSpan(Y))}_attemptCharCodeUntilFn(J){while(!J(this._cursor.peek()))this._cursor.advance()}_requireCharCodeUntilFn(J,Y){let Z=this._cursor.clone();if(this._attemptCharCodeUntilFn(J),this._cursor.diff(Z)<Y)throw this._createError(a5(this._cursor.peek()),this._cursor.getSpan(Z))}_attemptUntilChar(J){while(this._cursor.peek()!==J)this._cursor.advance()}_readChar(){let J=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),J}_peekStr(J){let Y=J.length;if(this._cursor.charsLeft()<Y)return!1;let Z=this._cursor.clone();for(let $=0;$<Y;$++){if(Z.peek()!==J.charCodeAt($))return!1;Z.advance()}return!0}_isBlockStart(){return this._cursor.peek()===o5&&r_.some((J)=>this._peekStr(J))}_isLetStart(){return this._cursor.peek()===o5&&this._peekStr("@let")}_consumeEntity(J){this._beginToken(9);let Y=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(pZ)){let Z=this._attemptCharCode(eZ)||this._attemptCharCode(LH),$=this._cursor.clone();if(this._attemptCharCodeUntilFn(t_),this._cursor.peek()!=v0){this._cursor.advance();let z=Z?f7.HEX:f7.DEC;throw this._createError(n_(z,this._cursor.getChars(Y)),this._cursor.getSpan())}let G=this._cursor.getChars($);this._cursor.advance();try{let z=parseInt(G,Z?16:10);this._endToken([String.fromCodePoint(z),this._cursor.getChars(Y)])}catch{throw this._createError(QY(this._cursor.getChars(Y)),this._cursor.getSpan())}}else{let Z=this._cursor.clone();if(this._attemptCharCodeUntilFn(e_),this._cursor.peek()!=v0)this._beginToken(J,Y),this._cursor=Z,this._endToken(["&"]);else{let $=this._cursor.getChars(Z);this._cursor.advance();let G=k6.hasOwnProperty($)&&k6[$];if(!G)throw this._createError(QY($),this._cursor.getSpan(Y));this._endToken([G,`&${$};`])}}}_consumeRawText(J,Y){this._beginToken(J?6:7);let Z=[];while(!0){let $=this._cursor.clone(),G=Y();if(this._cursor=$,G)break;if(J&&this._cursor.peek()===N7)this._endToken([this._processCarriageReturns(Z.join(""))]),Z.length=0,this._consumeEntity(6),this._beginToken(6);else Z.push(this._readChar())}this._endToken([this._processCarriageReturns(Z.join(""))])}_consumeComment(J){this._beginToken(10,J),this._requireCharCode(M7),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(J){this._beginToken(12,J),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(J){this._beginToken(18,J);let Y=this._cursor.clone();this._attemptUntilChar(c0);let Z=this._cursor.getChars(Y);this._cursor.advance(),this._endToken([Z])}_consumePrefixAndName(J){let Y=this._cursor.clone(),Z="";while(this._cursor.peek()!==j1&&!a_(this._cursor.peek()))this._cursor.advance();let $;if(this._cursor.peek()===j1)Z=this._cursor.getChars(Y),this._cursor.advance(),$=this._cursor.clone();else $=Y;this._requireCharCodeUntilFn(J,Z===""?0:1);let G=this._cursor.getChars($);return[Z,G]}_consumeTagOpen(J){let Y,Z,$,G;try{if(this._selectorlessEnabled&&Z7(this._cursor.peek())){if(G=this._consumeComponentOpenStart(J),[$,Z,Y]=G.parts,Z)$+=`:${Z}`;if(Y)$+=`:${Y}`;this._attemptCharCodeUntilFn(J0)}else{if(!_5(this._cursor.peek()))throw this._createError(a5(this._cursor.peek()),this._cursor.getSpan(J));G=this._consumeTagOpenStart(J),Z=G.parts[0],Y=$=G.parts[1],this._attemptCharCodeUntilFn(J0)}while(!XY(this._cursor.peek()))if(this._selectorlessEnabled&&this._cursor.peek()===o5){let H=this._cursor.clone(),Q=H.clone();if(Q.advance(),Z7(Q.peek()))this._consumeDirective(H,Q)}else this._consumeAttribute();if(G.type===33)this._consumeComponentOpenEnd();else this._consumeTagOpenEnd()}catch(H){if(H instanceof M){if(G)G.type=G.type===33?37:4;else this._beginToken(5,J),this._endToken(["<"]);return}throw H}let z=this._getTagDefinition(Y).getContentType(Z);if(z===R1.RAW_TEXT)this._consumeRawTextWithTagClose(G,$,!1);else if(z===R1.ESCAPABLE_RAW_TEXT)this._consumeRawTextWithTagClose(G,$,!0)}_consumeRawTextWithTagClose(J,Y,Z){this._consumeRawText(Z,()=>{if(!this._attemptCharCode(X4))return!1;if(!this._attemptCharCode(t0))return!1;if(this._attemptCharCodeUntilFn(J0),!this._attemptStrCaseInsensitive(Y))return!1;return this._attemptCharCodeUntilFn(J0),this._attemptCharCode(c0)}),this._beginToken(J.type===33?36:3),this._requireCharCodeUntilFn(($)=>$===c0,3),this._cursor.advance(),this._endToken(J.parts)}_consumeTagOpenStart(J){this._beginToken(0,J);let Y=this._consumePrefixAndName(w5);return this._endToken(Y)}_consumeComponentOpenStart(J){this._beginToken(33,J);let Y=this._consumeComponentName();return this._endToken(Y)}_consumeComponentName(){let J=this._cursor.clone();while(KY(this._cursor.peek()))this._cursor.advance();let Y=this._cursor.getChars(J),Z="",$="";if(this._cursor.peek()===j1)this._cursor.advance(),[Z,$]=this._consumePrefixAndName(w5);return[Y,Z,$]}_consumeAttribute(){if(this._consumeAttributeName(),this._attemptCharCodeUntilFn(J0),this._attemptCharCode(F0))this._attemptCharCodeUntilFn(J0),this._consumeAttributeValue();this._attemptCharCodeUntilFn(J0)}_consumeAttributeName(){let J=this._cursor.peek();if(J===j6||J===I6)throw this._createError(a5(J),this._cursor.getSpan());this._beginToken(14);let Y;if(this._openDirectiveCount>0){let $=0;Y=(G)=>{if(this._openDirectiveCount>0){if(G===P0)$++;else if(G===z0){if($===0)return!0;$--}}return w5(G)}}else if(J===T1){let $=0;Y=(G)=>{if(G===T1)$++;else if(G===k1)$--;return $<=0?w5(G):P7(G)}}else Y=w5;let Z=this._consumePrefixAndName(Y);this._endToken(Z)}_consumeAttributeValue(){if(this._cursor.peek()===j6||this._cursor.peek()===I6){let J=this._cursor.peek();this._consumeQuote(J);let Y=()=>this._cursor.peek()===J;this._consumeWithInterpolation(16,17,Y,Y),this._consumeQuote(J)}else{let J=()=>w5(this._cursor.peek());this._consumeWithInterpolation(16,17,J,J)}}_consumeQuote(J){this._beginToken(15),this._requireCharCode(J),this._endToken([String.fromCodePoint(J)])}_consumeTagOpenEnd(){let J=this._attemptCharCode(t0)?2:1;this._beginToken(J),this._requireCharCode(c0),this._endToken([])}_consumeComponentOpenEnd(){let J=this._attemptCharCode(t0)?35:34;this._beginToken(J),this._requireCharCode(c0),this._endToken([])}_consumeTagClose(J){if(this._selectorlessEnabled){let Z=J.clone();while(Z.peek()!==c0&&!Z7(Z.peek()))Z.advance();if(Z7(Z.peek())){this._beginToken(36,J);let $=this._consumeComponentName();this._attemptCharCodeUntilFn(J0),this._requireCharCode(c0),this._endToken($);return}}this._beginToken(3,J),this._attemptCharCodeUntilFn(J0);let Y=this._consumePrefixAndName(w5);this._attemptCharCodeUntilFn(J0),this._requireCharCode(c0),this._endToken(Y)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(J1),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let J=this._readUntil(C0),Y=this._processCarriageReturns(J);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([Y]);else{let $=this._endToken([J]);if(Y!==J)this.nonNormalizedIcuExpressions.push($)}this._requireCharCode(C0),this._attemptCharCodeUntilFn(J0),this._beginToken(7);let Z=this._readUntil(C0);this._endToken([Z]),this._requireCharCode(C0),this._attemptCharCodeUntilFn(J0)}_consumeExpansionCaseStart(){this._beginToken(20);let J=this._readUntil(J1).trim();this._endToken([J]),this._attemptCharCodeUntilFn(J0),this._beginToken(21),this._requireCharCode(J1),this._endToken([]),this._attemptCharCodeUntilFn(J0),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(M0),this._endToken([]),this._attemptCharCodeUntilFn(J0),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(M0),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(J,Y,Z,$){this._beginToken(J);let G=[];while(!Z()){let z=this._cursor.clone();if(this._attemptStr(i4.start))this._endToken([this._processCarriageReturns(G.join(""))],z),G.length=0,this._consumeInterpolation(Y,z,$),this._beginToken(J);else if(this._cursor.peek()===N7)this._endToken([this._processCarriageReturns(G.join(""))]),G.length=0,this._consumeEntity(J),this._beginToken(J);else G.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(G.join(""))])}_consumeInterpolation(J,Y,Z){let $=[];this._beginToken(J,Y),$.push(i4.start);let G=this._cursor.clone(),z=null,H=!1;while(this._cursor.peek()!==V0&&(Z===null||!Z())){let Q=this._cursor.clone();if(this._isTagStart()){this._cursor=Q,$.push(this._getProcessedChars(G,Q)),this._endToken($);return}if(z===null){if(this._attemptStr(i4.end)){$.push(this._getProcessedChars(G,Q)),$.push(i4.end),this._endToken($);return}else if(this._attemptStr("//"))H=!0}let K=this._cursor.peek();if(this._cursor.advance(),K===N5)this._cursor.advance();else if(K===z)z=null;else if(!H&&z===null&&_6(K))z=K}$.push(this._getProcessedChars(G,this._cursor)),this._endToken($)}_consumeDirective(J,Y){this._requireCharCode(o5),this._cursor.advance();while(KY(this._cursor.peek()))this._cursor.advance();this._beginToken(38,J);let Z=this._cursor.getChars(Y);if(this._endToken([Z]),this._attemptCharCodeUntilFn(J0),this._cursor.peek()!==P0)return;this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(J0);while(!XY(this._cursor.peek())&&this._cursor.peek()!==z0)this._consumeAttribute();if(this._attemptCharCodeUntilFn(J0),this._openDirectiveCount--,this._cursor.peek()!==z0){if(this._cursor.peek()===c0||this._cursor.peek()===t0)return;throw this._createError(a5(this._cursor.peek()),this._cursor.getSpan(J))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(J0)}_getProcessedChars(J,Y){return this._processCarriageReturns(Y.getChars(J))}_isTextEnd(){if(this._isTagStart()||this._cursor.peek()===V0)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(this._cursor.peek()===M0&&this._isInExpansionCase())return!0}if(this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===M0))return!0;return!1}_isTagStart(){if(this._cursor.peek()===X4){let J=this._cursor.clone();J.advance();let Y=J.peek();if(f5<=Y&&Y<=n6||L5<=Y&&Y<=g4||Y===t0||Y===J8)return!0}return!1}_readUntil(J){let Y=this._cursor.clone();return this._attemptUntilChar(J),this._cursor.getChars(Y)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==J1)return!1;let J=this._cursor.clone(),Y=this._attemptStr(i4.start);return this._cursor=J,!Y}}function J0(J){return!C6(J)||J===V0}function w5(J){return C6(J)||J===c0||J===X4||J===t0||J===j6||J===I6||J===F0||J===V0}function a_(J){return(J<f5||n6<J)&&(J<L5||g4<J)&&(J<m8||J>sZ)}function t_(J){return J===v0||J===V0||!qH(J)}function e_(J){return J===v0||J===V0||!(_5(J)||e0(J))}function JW(J){return J!==M0}function YW(J,Y){return _Y(J)===_Y(Y)}function _Y(J){return J>=f5&&J<=n6?J-f5+L5:J}function ZW(J){return _5(J)||e0(J)||J===R5}function WY(J){return J!==v0&&J0(J)}function Z7(J){return J===R5||J>=L5&&J<=g4}function KY(J){return _5(J)||e0(J)||J===R5}function XY(J){return J===t0||J===c0||J===X4||J===V0}function $W(J){let Y=[],Z=void 0;for(let $=0;$<J.length;$++){let G=J[$];if(Z&&Z.type===5&&G.type===5||Z&&Z.type===16&&G.type===16)Z.parts[0]+=G.parts[0],Z.sourceSpan.end=G.sourceSpan.end;else Z=G,Y.push(Z)}return Y}class x6{state;file;input;end;constructor(J,Y){if(J instanceof x6){this.file=J.file,this.input=J.input,this.end=J.end;let Z=J.state;this.state={peek:Z.peek,offset:Z.offset,line:Z.line,column:Z.column}}else{if(!Y)throw Error("Programming error: the range argument must be provided with a file argument.");this.file=J,this.input=J.content,this.end=Y.endPos,this.state={peek:-1,offset:Y.startPos,line:Y.startLine,column:Y.startCol}}}clone(){return new x6(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(J){return this.state.offset-J.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(J,Y){J=J||this;let Z=J;if(Y)while(this.diff(J)>0&&Y.indexOf(J.peek())!==-1){if(Z===J)J=J.clone();J.advance()}let $=this.locationFromCursor(J),G=this.locationFromCursor(this),z=Z!==J?this.locationFromCursor(Z):$;return new h($,G,z)}getChars(J){return this.input.substring(J.state.offset,this.state.offset)}charAt(J){return this.input.charCodeAt(J)}advanceState(J){if(J.offset>=this.end)throw this.state=J,new q3('Unexpected character "EOF"',this);let Y=this.charAt(J.offset);if(Y===O5)J.line++,J.column=0;else if(!P7(Y))J.column++;J.offset++,this.updatePeek(J)}updatePeek(J){J.peek=J.offset>=this.end?V0:this.charAt(J.offset)}locationFromCursor(J){return new T6(J.file,J.state.offset,J.state.line,J.state.column)}}class g7 extends x6{internalState;constructor(J,Y){if(J instanceof g7){super(J);this.internalState={...J.internalState}}else{super(J,Y);this.internalState=this.state}}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new g7(this)}getChars(J){let Y=J.clone(),Z="";while(Y.internalState.offset<this.internalState.offset)Z+=String.fromCodePoint(Y.peek()),Y.advance();return Z}processEscapeSequence(){let J=()=>this.internalState.peek;if(J()===N5)if(this.internalState={...this.state},this.advanceState(this.internalState),J()===oZ)this.state.peek=O5;else if(J()===nZ)this.state.peek=u8;else if(J()===tZ)this.state.peek=lZ;else if(J()===rZ)this.state.peek=b8;else if(J()===UH)this.state.peek=QH;else if(J()===l8)this.state.peek=cZ;else if(J()===aZ)if(this.advanceState(this.internalState),J()===J1){this.advanceState(this.internalState);let Y=this.clone(),Z=0;while(J()!==M0)this.advanceState(this.internalState),Z++;this.state.peek=this.decodeHexDigits(Y,Z)}else{let Y=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(Y,4)}else if(J()===eZ){this.advanceState(this.internalState);let Y=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(Y,2)}else if(bJ(J())){let Y="",Z=0,$=this.clone();while(bJ(J())&&Z<3)$=this.clone(),Y+=String.fromCodePoint(J()),this.advanceState(this.internalState),Z++;this.state.peek=parseInt(Y,8),this.internalState=$.internalState}else if(P7(this.internalState.peek))this.advanceState(this.internalState),this.state=this.internalState;else this.state.peek=this.internalState.peek}decodeHexDigits(J,Y){let Z=this.input.slice(J.internalState.offset,J.internalState.offset+Y),$=parseInt(Z,16);if(!isNaN($))return $;else throw J.state=J.internalState,new q3("Invalid hexadecimal escape sequence",J)}}class q3 extends Error{msg;cursor;constructor(J,Y){super(J);this.msg=J,this.cursor=Y,Object.setPrototypeOf(this,new.target.prototype)}}class $0 extends M{elementName;static create(J,Y,Z){return new $0(J,Y,Z)}constructor(J,Y,Z){super(Y,Z);this.elementName=J}}class t8{rootNodes;errors;constructor(J,Y){this.rootNodes=J,this.errors=Y}}var GW=class{getTagDefinition;constructor(Y){this.getTagDefinition=Y}parse(Y,Z,$){let G=s_(Y,Z,this.getTagDefinition,$),z=new e8(G.tokens,this.getTagDefinition);return z.build(),new t8(z.rootNodes,[...G.errors,...z.errors])}};class e8{tokens;tagDefinitionResolver;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(J,Y){this.tokens=J,this.tagDefinitionResolver=Y,this._advance()}build(){while(this._peek.type!==41)if(this._peek.type===0||this._peek.type===4)this._consumeElementStartTag(this._advance());else if(this._peek.type===3)this._consumeElementEndTag(this._advance());else if(this._peek.type===12)this._closeVoidElement(),this._consumeCdata(this._advance());else if(this._peek.type===10)this._closeVoidElement(),this._consumeComment(this._advance());else if(this._peek.type===5||this._peek.type===7||this._peek.type===6)this._closeVoidElement(),this._consumeText(this._advance());else if(this._peek.type===19)this._consumeExpansion(this._advance());else if(this._peek.type===24)this._closeVoidElement(),this._consumeBlockOpen(this._advance());else if(this._peek.type===26)this._closeVoidElement(),this._consumeBlockClose(this._advance());else if(this._peek.type===28)this._closeVoidElement(),this._consumeIncompleteBlock(this._advance());else if(this._peek.type===29)this._closeVoidElement(),this._consumeLet(this._advance());else if(this._peek.type===32)this._closeVoidElement(),this._consumeIncompleteLet(this._advance());else if(this._peek.type===33||this._peek.type===37)this._consumeComponentStartTag(this._advance());else if(this._peek.type===36)this._consumeComponentEndTag(this._advance());else this._advance();for(let J of this._containerStack)if(J instanceof L1)this.errors.push($0.create(J.name,J.sourceSpan,`Unclosed block "${J.name}"`))}_advance(){let J=this._peek;if(this._index<this.tokens.length-1)this._index++;return this._peek=this.tokens[this._index],J}_advanceIf(J){if(this._peek.type===J)return this._advance();return null}_consumeCdata(J){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(J){let Y=this._advanceIf(7),Z=this._advanceIf(11),$=Y!=null?Y.parts[0].trim():null,G=Z==null?J.sourceSpan:new h(J.sourceSpan.start,Z.sourceSpan.end,J.sourceSpan.fullStart);this._addToParent(new F3($,G))}_consumeExpansion(J){let Y=this._advance(),Z=this._advance(),$=[];while(this._peek.type===20){let z=this._parseExpansionCase();if(!z)return;$.push(z)}if(this._peek.type!==23){this.errors.push($0.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let G=new h(J.sourceSpan.start,this._peek.sourceSpan.end,J.sourceSpan.fullStart);this._addToParent(new L4(Y.parts[0],Z.parts[0],$,G,Y.sourceSpan)),this._advance()}_parseExpansionCase(){let J=this._advance();if(this._peek.type!==21)return this.errors.push($0.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let Y=this._advance(),Z=this._collectExpansionExpTokens(Y);if(!Z)return null;let $=this._advance();Z.push({type:41,parts:[],sourceSpan:$.sourceSpan});let G=new e8(Z,this.tagDefinitionResolver);if(G.build(),G.errors.length>0)return this.errors=this.errors.concat(G.errors),null;let z=new h(J.sourceSpan.start,$.sourceSpan.end,J.sourceSpan.fullStart),H=new h(Y.sourceSpan.start,$.sourceSpan.end,Y.sourceSpan.fullStart);return new a8(J.parts[0],G.rootNodes,z,J.sourceSpan,H)}_collectExpansionExpTokens(J){let Y=[],Z=[21];while(!0){if(this._peek.type===19||this._peek.type===21)Z.push(this._peek.type);if(this._peek.type===22)if(LY(Z,21)){if(Z.pop(),Z.length===0)return Y}else return this.errors.push($0.create(null,J.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(LY(Z,19))Z.pop();else return this.errors.push($0.create(null,J.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===41)return this.errors.push($0.create(null,J.sourceSpan,"Invalid ICU message. Missing '}'.")),null;Y.push(this._advance())}}_consumeText(J){let Y=[J],Z=J.sourceSpan,$=J.parts[0];if($.length>0&&$[0]===`
23
+ `){let G=this._getContainer();if(G!=null&&G.children.length===0&&this._getTagDefinition(G)?.ignoreFirstLf)$=$.substring(1),Y[0]={type:J.type,sourceSpan:J.sourceSpan,parts:[$]}}while(this._peek.type===8||this._peek.type===5||this._peek.type===9)if(J=this._advance(),Y.push(J),J.type===8)$+=J.parts.join("").replace(/&([^;]+);/g,RY);else if(J.type===9)$+=J.parts[0];else $+=J.parts.join("");if($.length>0){let G=J.sourceSpan;this._addToParent(new u4($,new h(Z.start,G.end,Z.fullStart,Z.details),Y))}}_closeVoidElement(){let J=this._getContainer();if(J!==null&&this._getTagDefinition(J)?.isVoid)this._containerStack.pop()}_consumeElementStartTag(J){let Y=[],Z=[];this._consumeAttributesAndDirectives(Y,Z);let $=this._getElementFullName(J,this._getClosestElementLikeParent()),G=this._getTagDefinition($),z=!1;if(this._peek.type===2){if(this._advance(),z=!0,!(G?.canSelfClose||t3($)!==null||G?.isVoid))this.errors.push($0.create($,J.sourceSpan,`Only void, custom and foreign elements can be self closed "${J.parts[1]}"`))}else if(this._peek.type===1)this._advance(),z=!1;let H=this._peek.sourceSpan.fullStart,Q=new h(J.sourceSpan.start,H,J.sourceSpan.fullStart),K=new h(J.sourceSpan.start,H,J.sourceSpan.fullStart),_=new K1($,Y,Z,[],z,Q,K,void 0,G?.isVoid??!1),X=this._getContainer(),L=X!==null&&!!this._getTagDefinition(X)?.isClosedByChild(_.name);if(this._pushContainer(_,L),z)this._popContainer($,K1,Q);else if(J.type===4)this._popContainer($,K1,null),this.errors.push($0.create($,Q,`Opening tag "${$}" not terminated.`))}_consumeComponentStartTag(J){let Y=J.parts[0],Z=[],$=[];this._consumeAttributesAndDirectives(Z,$);let G=this._getClosestElementLikeParent(),z=this._getComponentTagName(J,G),H=this._getComponentFullName(J,G),Q=this._peek.type===35;this._advance();let K=this._peek.sourceSpan.fullStart,_=new h(J.sourceSpan.start,K,J.sourceSpan.fullStart),X=new h(J.sourceSpan.start,K,J.sourceSpan.fullStart),L=new x0(Y,z,H,Z,$,[],Q,_,X,void 0),F=this._getContainer(),D=F!==null&&L.tagName!==null&&!!this._getTagDefinition(F)?.isClosedByChild(L.tagName);if(this._pushContainer(L,D),Q)this._popContainer(H,x0,_);else if(J.type===37)this._popContainer(H,x0,null),this.errors.push($0.create(H,_,`Opening tag "${H}" not terminated.`))}_consumeAttributesAndDirectives(J,Y){while(this._peek.type===14||this._peek.type===38)if(this._peek.type===38)Y.push(this._consumeDirective(this._peek));else J.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(J){let Y=this._getComponentFullName(J,this._getClosestElementLikeParent());if(!this._popContainer(Y,x0,J.sourceSpan)){let Z=this._containerStack[this._containerStack.length-1],$;if(Z instanceof x0&&Z.componentName===J.parts[0])$=`, did you mean "${Z.fullName}"?`;else $=". It may happen when the tag has already been closed by another tag.";let G=`Unexpected closing tag "${Y}"${$}`;this.errors.push($0.create(Y,J.sourceSpan,G))}}_getTagDefinition(J){if(typeof J==="string")return this.tagDefinitionResolver(J);else if(J instanceof K1)return this.tagDefinitionResolver(J.name);else if(J instanceof x0&&J.tagName!==null)return this.tagDefinitionResolver(J.tagName);else return null}_pushContainer(J,Y){if(Y)this._containerStack.pop();this._addToParent(J),this._containerStack.push(J)}_consumeElementEndTag(J){let Y=this._getElementFullName(J,this._getClosestElementLikeParent());if(this._getTagDefinition(Y)?.isVoid)this.errors.push($0.create(Y,J.sourceSpan,`Void elements do not have end tags "${J.parts[1]}"`));else if(!this._popContainer(Y,K1,J.sourceSpan)){let Z=`Unexpected closing tag "${Y}". 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($0.create(Y,J.sourceSpan,Z))}}_popContainer(J,Y,Z){let $=!1;for(let G=this._containerStack.length-1;G>=0;G--){let z=this._containerStack[G];if(((z instanceof x0?z.fullName:z.name)===J||J===null)&&z instanceof Y)return z.endSourceSpan=Z,z.sourceSpan.end=Z!==null?Z.end:z.sourceSpan.end,this._containerStack.splice(G,this._containerStack.length-G),!$;if(z instanceof L1||!this._getTagDefinition(z)?.closedByParent)$=!0}return!1}_consumeAttr(J){let Y=L7(J.parts[0],J.parts[1]),Z=J.sourceSpan.end;if(this._peek.type===15)this._advance();let $="",G=[],z=void 0,H=void 0;if(this._peek.type===16){z=this._peek.sourceSpan,H=this._peek.sourceSpan.end;while(this._peek.type===16||this._peek.type===17||this._peek.type===9){let _=this._advance();if(G.push(_),_.type===17)$+=_.parts.join("").replace(/&([^;]+);/g,RY);else if(_.type===9)$+=_.parts[0];else $+=_.parts.join("");H=Z=_.sourceSpan.end}}if(this._peek.type===15)Z=this._advance().sourceSpan.end;let K=z&&H&&new h(z.start,H,z.fullStart);return new y$(Y,$,new h(J.sourceSpan.start,Z,J.sourceSpan.fullStart),J.sourceSpan,K,G.length>0?G:void 0,void 0)}_consumeDirective(J){let Y=[],Z=J.sourceSpan.end,$=null;if(this._advance(),this._peek.type===39){Z=this._peek.sourceSpan.end,this._advance();while(this._peek.type===14)Y.push(this._consumeAttr(this._advance()));if(this._peek.type===40)$=this._peek.sourceSpan,this._advance();else this.errors.push($0.create(null,J.sourceSpan,"Unterminated directive definition"))}let G=new h(J.sourceSpan.start,Z,J.sourceSpan.fullStart),z=new h(G.start,$===null?J.sourceSpan.end:$.end,G.fullStart);return new h$(J.parts[0],Y,z,G,$)}_consumeBlockOpen(J){let Y=[];while(this._peek.type===27){let H=this._advance();Y.push(new z8(H.parts[0],H.sourceSpan))}if(this._peek.type===25)this._advance();let Z=this._peek.sourceSpan.fullStart,$=new h(J.sourceSpan.start,Z,J.sourceSpan.fullStart),G=new h(J.sourceSpan.start,Z,J.sourceSpan.fullStart),z=new L1(J.parts[0],Y,[],$,J.sourceSpan,G);this._pushContainer(z,!1)}_consumeBlockClose(J){let Y=this._containerStack.length,Z=this._containerStack[Y-1];if(!this._popContainer(null,L1,J.sourceSpan)){if(this._containerStack.length<Y){let $=Z instanceof x0?Z.fullName:Z.name;this.errors.push($0.create(null,J.sourceSpan,`Unexpected closing block. The block may have been closed earlier. Did you forget to close the <${$}> element? If you meant to write the \`}\` character, you should use the "&#125;" HTML entity instead.`));return}this.errors.push($0.create(null,J.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "&#125;" HTML entity instead.'))}}_consumeIncompleteBlock(J){let Y=[];while(this._peek.type===27){let H=this._advance();Y.push(new z8(H.parts[0],H.sourceSpan))}let Z=this._peek.sourceSpan.fullStart,$=new h(J.sourceSpan.start,Z,J.sourceSpan.fullStart),G=new h(J.sourceSpan.start,Z,J.sourceSpan.fullStart),z=new L1(J.parts[0],Y,[],$,J.sourceSpan,G);this._pushContainer(z,!1),this._popContainer(null,L1,null),this.errors.push($0.create(J.parts[0],$,`Incomplete block "${J.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(J){let Y=J.parts[0],Z,$;if(this._peek.type!==30){this.errors.push($0.create(J.parts[0],J.sourceSpan,`Invalid @let declaration "${Y}". Declaration must have a value.`));return}else Z=this._advance();if(this._peek.type!==31){this.errors.push($0.create(J.parts[0],J.sourceSpan,`Unterminated @let declaration "${Y}". Declaration must be terminated with a semicolon.`));return}else $=this._advance();let G=$.sourceSpan.fullStart,z=new h(J.sourceSpan.start,G,J.sourceSpan.fullStart),H=J.sourceSpan.toString().lastIndexOf(Y),Q=J.sourceSpan.start.moveBy(H),K=new h(Q,J.sourceSpan.end),_=new H8(Y,Z.parts[0],z,K,Z.sourceSpan);this._addToParent(_)}_consumeIncompleteLet(J){let Y=J.parts[0]??"",Z=Y?` "${Y}"`:"";if(Y.length>0){let $=J.sourceSpan.toString().lastIndexOf(Y),G=J.sourceSpan.start.moveBy($),z=new h(G,J.sourceSpan.end),H=new h(J.sourceSpan.start,J.sourceSpan.start.moveBy(0)),Q=new H8(Y,"",J.sourceSpan,z,H);this._addToParent(Q)}this.errors.push($0.create(J.parts[0],J.sourceSpan,`Incomplete @let declaration${Z}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let J=this._containerStack.length-1;J>-1;J--){let Y=this._containerStack[J];if(Y instanceof K1||Y instanceof x0)return Y}return null}_addToParent(J){let Y=this._getContainer();if(Y===null)this.rootNodes.push(J);else Y.children.push(J)}_getElementFullName(J,Y){let Z=this._getPrefix(J,Y);return L7(Z,J.parts[1])}_getComponentFullName(J,Y){let Z=J.parts[0],$=this._getComponentTagName(J,Y);if($===null)return Z;return $.startsWith(":")?Z+$:`${Z}:${$}`}_getComponentTagName(J,Y){let Z=this._getPrefix(J,Y),$=J.parts[2];if(!Z&&!$)return null;else if(!Z&&$)return $;else return L7(Z,$||"ng-component")}_getPrefix(J,Y){let Z,$;if(J.type===33||J.type===37||J.type===36)Z=J.parts[1],$=J.parts[2];else Z=J.parts[0],$=J.parts[1];if(Z=Z||this._getTagDefinition($)?.implicitNamespacePrefix||"",!Z&&Y){let G=Y instanceof K1?Y.name:Y.tagName;if(G!==null){let z=w1(G)[1],H=this._getTagDefinition(z);if(H!==null&&!H.preventNamespaceInheritance)Z=t3(G)}}return Z}}function LY(J,Y){return J.length>0&&J[J.length-1]===Y}function RY(J,Y){if(k6[Y]!==void 0)return k6[Y]||J;if(/^#x[a-f0-9]+$/i.test(Y))return String.fromCodePoint(parseInt(Y.slice(2),16));if(/^#\d+$/.test(Y))return String.fromCodePoint(parseInt(Y.slice(1),10));return J}var S$="ngPreserveWhitespaces",UY=new Set(["pre","template","textarea","script","style"]),f$=` \f
24
+ \r \v ᠎ - \u2028\u2029   \uFEFF`,zW=new RegExp(`[^${f$}]`),HW=new RegExp(`[${f$}]{2,}`,"g");function FY(J){return J.some((Y)=>Y.name===S$)}function g$(J){return J.replace(new RegExp(k$,"g")," ")}class JJ{preserveSignificantWhitespace;originalNodeMap;requireContext;icuExpansionDepth=0;constructor(J,Y,Z=!0){this.preserveSignificantWhitespace=J,this.originalNodeMap=Y,this.requireContext=Z}visitElement(J,Y){if(UY.has(J.name)||FY(J.attrs)){let $=new K1(J.name,E1(this,J.attrs),E1(this,J.directives),J.children,J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.isVoid,J.i18n);return this.originalNodeMap?.set($,J),$}let Z=new K1(J.name,J.attrs,J.directives,E1(this,J.children),J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.isVoid,J.i18n);return this.originalNodeMap?.set(Z,J),Z}visitAttribute(J,Y){return J.name!==S$?J:null}visitText(J,Y){let Z=J.value.match(zW),$=Y&&(Y.prev instanceof L4||Y.next instanceof L4);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return J;if(Z||$){let z=J.tokens.map((_)=>_.type===5?KW(_):_);if(!this.preserveSignificantWhitespace&&z.length>0){let _=z[0];z.splice(0,1,QW(_,Y));let X=z[z.length-1];z.splice(z.length-1,1,_W(X,Y))}let H=u$(J.value),Q=this.preserveSignificantWhitespace?H:WW(H,Y),K=new u4(Q,J.sourceSpan,z,J.i18n);return this.originalNodeMap?.set(K,J),K}return null}visitComment(J,Y){return J}visitExpansion(J,Y){this.icuExpansionDepth++;let Z;try{Z=new L4(J.switchValue,J.type,E1(this,J.cases),J.sourceSpan,J.switchValueSourceSpan,J.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(Z,J),Z}visitExpansionCase(J,Y){let Z=new a8(J.value,E1(this,J.expression),J.sourceSpan,J.valueSourceSpan,J.expSourceSpan);return this.originalNodeMap?.set(Z,J),Z}visitBlock(J,Y){let Z=new L1(J.name,J.parameters,E1(this,J.children),J.sourceSpan,J.nameSpan,J.startSourceSpan,J.endSourceSpan);return this.originalNodeMap?.set(Z,J),Z}visitBlockParameter(J,Y){return J}visitLetDeclaration(J,Y){return J}visitComponent(J,Y){if(J.tagName&&UY.has(J.tagName)||FY(J.attrs)){let $=new x0(J.componentName,J.tagName,J.fullName,E1(this,J.attrs),E1(this,J.directives),J.children,J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n);return this.originalNodeMap?.set($,J),$}let Z=new x0(J.componentName,J.tagName,J.fullName,J.attrs,J.directives,E1(this,J.children),J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n);return this.originalNodeMap?.set(Z,J),Z}visitDirective(J,Y){return J}visit(J,Y){if(this.requireContext&&!Y)throw Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}}function QW(J,Y){if(J.type!==5)return J;if(!!Y?.prev)return J;return b$(J,($)=>$.trimStart())}function _W(J,Y){if(J.type!==5)return J;if(!!Y?.next)return J;return b$(J,($)=>$.trimEnd())}function WW(J,Y){let Z=!Y?.prev,$=!Y?.next,G=Z?J.trimStart():J;return $?G.trimEnd():G}function KW({type:J,parts:Y,sourceSpan:Z}){return{type:J,parts:[u$(Y[0])],sourceSpan:Z}}function b$({type:J,parts:Y,sourceSpan:Z},$){return{type:J,parts:[$(Y[0])],sourceSpan:Z}}function u$(J){return g$(J).replace(HW," ")}function E1(J,Y){let Z=[];return Y.forEach(($,G)=>{let z={prev:Y[G-1],next:Y[G+1]},H=$.visit(J,z);if(H)Z.push(H)}),Z}var P;(function(J){J[J.Character=0]="Character",J[J.Identifier=1]="Identifier",J[J.PrivateIdentifier=2]="PrivateIdentifier",J[J.Keyword=3]="Keyword",J[J.String=4]="String",J[J.Operator=5]="Operator",J[J.Number=6]="Number",J[J.RegExpBody=7]="RegExpBody",J[J.RegExpFlags=8]="RegExpFlags",J[J.Error=9]="Error"})(P||(P={}));var $5;(function(J){J[J.Plain=0]="Plain",J[J.TemplateLiteralPart=1]="TemplateLiteralPart",J[J.TemplateLiteralEnd=2]="TemplateLiteralEnd"})($5||($5={}));var XW=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"];class V3{tokenize(J){return new m$(J).scan()}}class W1{index;end;type;numValue;strValue;constructor(J,Y,Z,$,G){this.index=J,this.end=Y,this.type=Z,this.numValue=$,this.strValue=G}isCharacter(J){return this.type===P.Character&&this.numValue===J}isNumber(){return this.type===P.Number}isString(){return this.type===P.String}isOperator(J){return this.type===P.Operator&&this.strValue===J}isIdentifier(){return this.type===P.Identifier}isPrivateIdentifier(){return this.type===P.PrivateIdentifier}isKeyword(){return this.type===P.Keyword}isKeywordLet(){return this.type===P.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===P.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===P.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===P.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===P.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===P.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===P.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===P.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===P.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===P.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===P.Keyword&&this.strValue==="instanceof"}isError(){return this.type===P.Error}isRegExpBody(){return this.type===P.RegExpBody}isRegExpFlags(){return this.type===P.RegExpFlags}toNumber(){return this.type===P.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===$5.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===$5.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case P.Character:case P.Identifier:case P.Keyword:case P.Operator:case P.PrivateIdentifier:case P.String:case P.Error:case P.RegExpBody:case P.RegExpFlags:return this.strValue;case P.Number:return this.numValue.toString();default:return null}}}class R7 extends W1{kind;constructor(J,Y,Z,$){super(J,Y,P.String,0,Z);this.kind=$}}function s4(J,Y,Z){return new W1(J,Y,P.Character,Z,String.fromCharCode(Z))}function LW(J,Y,Z){return new W1(J,Y,P.Identifier,0,Z)}function RW(J,Y,Z){return new W1(J,Y,P.PrivateIdentifier,0,Z)}function UW(J,Y,Z){return new W1(J,Y,P.Keyword,0,Z)}function i1(J,Y,Z){return new W1(J,Y,P.Operator,0,Z)}function FW(J,Y,Z){return new W1(J,Y,P.Number,Z,"")}function qW(J,Y,Z){return new W1(J,Y,P.Error,0,Z)}function VW(J,Y,Z){return new W1(J,Y,P.RegExpBody,0,Z)}function DW(J,Y,Z){return new W1(J,Y,P.RegExpFlags,0,Z)}var o4=new W1(-1,-1,P.Character,0,"");class m${input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(J){this.input=J,this.length=J.length,this.advance()}scan(){let J=this.scanToken();while(J!==null)this.tokens.push(J),J=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?V0:this.input.charCodeAt(this.index)}scanToken(){let J=this.input,Y=this.length,Z=this.peek,$=this.index;while(Z<=dZ)if(++$>=Y){Z=V0;break}else Z=J.charCodeAt($);if(this.peek=Z,this.index=$,$>=Y)return null;if(qY(Z))return this.scanIdentifier();if(e0(Z))return this.scanNumber($);let G=$;switch(Z){case E5:if(this.advance(),e0(this.peek))return this.scanNumber(G);if(this.peek!==E5)return s4(G,this.index,E5);if(this.advance(),this.peek===E5)return this.advance(),i1(G,this.index,"...");return this.error(`Unexpected character [${String.fromCharCode(Z)}]`,0);case P0:case z0:case T1:case k1:case C0:case j1:case v0:return this.scanCharacter(G,Z);case J1:return this.scanOpenBrace(G,Z);case M0:return this.scanCloseBrace(G,Z);case j6:case I6:return this.scanString();case Y8:return this.advance(),this.scanTemplateLiteralPart(G);case pZ:return this.scanPrivateIdentifier();case iZ:return this.scanComplexOperator(G,"+",F0,"=");case M7:return this.scanComplexOperator(G,"-",F0,"=");case t0:return this.isStartOfRegex()?this.scanRegex($):this.scanComplexOperator(G,"/",F0,"=");case _H:return this.scanComplexOperator(G,"%",F0,"=");case RH:return this.scanOperator(G,"^");case SJ:return this.scanStar(G);case fJ:return this.scanQuestion(G);case X4:case c0:return this.scanComplexOperator(G,String.fromCharCode(Z),F0,"=");case J8:return this.scanComplexOperator(G,"!",F0,"=",F0,"=");case F0:return this.scanEquals(G);case N7:return this.scanComplexOperator(G,"&",N7,"&",F0,"=");case gJ:return this.scanComplexOperator(G,"|",gJ,"|",F0,"=");case J$:while(C6(this.peek))this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(Z)}]`,0)}scanCharacter(J,Y){return this.advance(),s4(J,this.index,Y)}scanOperator(J,Y){return this.advance(),i1(J,this.index,Y)}scanOpenBrace(J,Y){return this.braceStack.push("expression"),this.advance(),s4(J,this.index,Y)}scanCloseBrace(J,Y){if(this.advance(),this.braceStack.pop()==="interpolation")return this.tokens.push(s4(J,this.index,M0)),this.scanTemplateLiteralPart(this.index);return s4(J,this.index,Y)}scanComplexOperator(J,Y,Z,$,G,z){this.advance();let H=Y;if(this.peek==Z)this.advance(),H+=$;if(G!=null&&this.peek==G)this.advance(),H+=z;return i1(J,this.index,H)}scanEquals(J){this.advance();let Y="=";if(this.peek===F0)this.advance(),Y+="=";else if(this.peek===c0)return this.advance(),Y+=">",i1(J,this.index,Y);if(this.peek===F0)this.advance(),Y+="=";return i1(J,this.index,Y)}scanIdentifier(){let J=this.index;this.advance();while(VY(this.peek))this.advance();let Y=this.input.substring(J,this.index);return XW.indexOf(Y)>-1?UW(J,this.index,Y):LW(J,this.index,Y)}scanPrivateIdentifier(){let J=this.index;if(this.advance(),!qY(this.peek))return this.error("Invalid character [#]",-1);while(VY(this.peek))this.advance();let Y=this.input.substring(J,this.index);return RW(J,this.index,Y)}scanNumber(J){let Y=this.index===J,Z=!1;this.advance();while(!0){if(e0(this.peek));else if(this.peek===R5){if(!e0(this.input.charCodeAt(this.index-1))||!e0(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);Z=!0}else if(this.peek===E5)Y=!1;else if(wW(this.peek)){if(this.advance(),EW(this.peek))this.advance();if(!e0(this.peek))return this.error("Invalid exponent",-1);Y=!1}else break;this.advance()}let $=this.input.substring(J,this.index);if(Z)$=$.replace(/_/g,"");let G=Y?IW($):parseFloat($);return FW(J,this.index,G)}scanString(){let J=this.index,Y=this.peek;this.advance();let Z="",$=this.index,G=this.input;while(this.peek!=Y)if(this.peek==N5){let H=this.scanStringBackslash(Z,$);if(typeof H!=="string")return H;Z=H,$=this.index}else if(this.peek==V0)return this.error("Unterminated quote",0);else this.advance();let z=G.substring($,this.index);return this.advance(),new R7(J,this.index,Z+z,$5.Plain)}scanQuestion(J){this.advance();let Y="?";if(this.peek===fJ){if(Y+="?",this.advance(),this.peek===F0)Y+="=",this.advance()}else if(this.peek===E5)Y+=".",this.advance();return i1(J,this.index,Y)}scanTemplateLiteralPart(J){let Y="",Z=this.index;while(this.peek!==Y8)if(this.peek===N5){let G=this.scanStringBackslash(Y,Z);if(typeof G!=="string")return G;Y=G,Z=this.index}else if(this.peek===K3){let G=this.index;if(this.advance(),this.peek===J1)return this.braceStack.push("interpolation"),this.tokens.push(new R7(J,G,Y+this.input.substring(Z,G),$5.TemplateLiteralPart)),this.advance(),i1(G,this.index,this.input.substring(G,this.index))}else if(this.peek===V0)return this.error("Unterminated template literal",0);else this.advance();let $=this.input.substring(Z,this.index);return this.advance(),new R7(J,this.index,Y+$,$5.TemplateLiteralEnd)}error(J,Y){let Z=this.index+Y;return qW(Z,this.index,`Lexer Error: ${J} at column ${Z} in expression [${this.input}]`)}scanStringBackslash(J,Y){J+=this.input.substring(Y,this.index);let Z;if(this.advance(),this.peek===aZ){let $=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test($))Z=parseInt($,16);else return this.error(`Invalid unicode escape [\\u${$}]`,0);for(let G=0;G<5;G++)this.advance()}else Z=AW(this.peek),this.advance();return J+=String.fromCharCode(Z),J}scanStar(J){this.advance();let Y="*";if(this.peek===SJ){if(Y+="*",this.advance(),this.peek===F0)Y+="=",this.advance()}else if(this.peek===F0)Y+="=",this.advance();return i1(J,this.index,Y)}isStartOfRegex(){if(this.tokens.length===0)return!0;let J=this.tokens[this.tokens.length-1];if(J.isOperator("!")){let Y=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return Y===null||Y.type!==P.Identifier&&!Y.isCharacter(z0)&&!Y.isCharacter(k1)}return J.type===P.Operator||J.isCharacter(P0)||J.isCharacter(T1)||J.isCharacter(C0)||J.isCharacter(j1)}scanRegex(J){this.advance();let Y=this.index,Z=!1,$=!1;while(!0){let Q=this.peek;if(Q===V0)return this.error("Unterminated regular expression",0);if(Z)Z=!1;else if(Q===N5)Z=!0;else if(Q===T1)$=!0;else if(Q===k1)$=!1;else if(Q===t0&&!$)break;this.advance()}let G=this.input.substring(Y,this.index);this.advance();let z=VW(J,this.index,G),H=this.scanRegexFlags(this.index);if(H!==null)return this.tokens.push(z),H;return z}scanRegexFlags(J){if(!_5(this.peek))return null;while(_5(this.peek))this.advance();return DW(J,this.index,this.input.substring(J,this.index))}}function qY(J){return f5<=J&&J<=n6||L5<=J&&J<=g4||J==R5||J==K3}function VY(J){return _5(J)||e0(J)||J==R5||J==K3}function wW(J){return J==FH||J==KH}function EW(J){return J==M7||J==iZ}function AW(J){switch(J){case oZ:return O5;case l8:return cZ;case nZ:return u8;case rZ:return b8;case tZ:return lZ;default:return J}}function IW(J){let Y=parseInt(J);if(isNaN(Y))throw Error("Invalid integer literal when parsing "+J);return Y}class l${strings;expressions;offsets;constructor(J,Y,Z){this.strings=J,this.expressions=Y,this.offsets=Z}}class c${templateBindings;warnings;errors;constructor(J,Y,Z){this.templateBindings=J,this.warnings=Y,this.errors=Z}}function a1(J){return J.start.toString()||"(unknown)"}class YJ{_lexer;_supportsDirectPipeReferences;constructor(J,Y=!1){this._lexer=J,this._supportsDirectPipeReferences=Y}parseAction(J,Y,Z){let $=[];this._checkNoInterpolation($,J,Y);let{stripped:G}=this._stripComments(J),z=this._lexer.tokenize(G),H=new Z4(J,Y,Z,z,1,$,0,this._supportsDirectPipeReferences).parseChain();return new p0(H,J,a1(Y),Z,$)}parseBinding(J,Y,Z){let $=[],G=this._parseBindingAst(J,Y,Z,$);return new p0(G,J,a1(Y),Z,$)}checkSimpleExpression(J){let Y=new d$;return J.visit(Y),Y.errors}parseSimpleBinding(J,Y,Z){let $=[],G=this._parseBindingAst(J,Y,Z,$),z=this.checkSimpleExpression(G);if(z.length>0)$.push(_4(`Host binding expression cannot contain ${z.join(" ")}`,J,"",Y));return new p0(G,J,a1(Y),Z,$)}_parseBindingAst(J,Y,Z,$){this._checkNoInterpolation($,J,Y);let{stripped:G}=this._stripComments(J),z=this._lexer.tokenize(G);return new Z4(J,Y,Z,z,0,$,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(J,Y,Z,$,G){let z=this._lexer.tokenize(Y);return new Z4(Y,Z,G,z,0,[],0,this._supportsDirectPipeReferences).parseTemplateBindings({source:J,span:new Z1($,$+J.length)})}parseInterpolation(J,Y,Z,$){let G=[],{strings:z,expressions:H,offsets:Q}=this.splitInterpolation(J,Y,G,$);if(H.length===0)return null;let K=[];for(let _=0;_<H.length;++_){let X=$?.[_*2+1]?.sourceSpan,L=H[_].text,{stripped:F,hasComments:D}=this._stripComments(L),w=this._lexer.tokenize(F);if(D&&F.trim().length===0&&w.length===0){G.push(_4("Interpolation expression cannot only contain a comment",J,`at column ${H[_].start} in`,Y));continue}let T=new Z4(X?L:J,X||Y,Z,w,0,G,Q[_],this._supportsDirectPipeReferences).parseChain();K.push(T)}return this.createInterpolationAst(z.map((_)=>_.text),K,J,a1(Y),Z,G)}parseInterpolationExpression(J,Y,Z){let{stripped:$}=this._stripComments(J),G=this._lexer.tokenize($),z=[],H=new Z4(J,Y,Z,G,0,z,0,this._supportsDirectPipeReferences).parseChain(),Q=["",""];return this.createInterpolationAst(Q,[H],J,a1(Y),Z,z)}createInterpolationAst(J,Y,Z,$,G,z){let H=new E4(0,Z.length),Q=new c6(H,H.toAbsolute(G),J,Y);return new p0(Q,Z,$,G,z)}splitInterpolation(J,Y,Z,$){let G=[],z=[],H=[],Q=$?jW($):null,K=0,_=!1,X=!1,L="{{",F="}}";while(K<J.length)if(!_){let D=K;if(K=J.indexOf(L,K),K===-1)K=J.length;let w=J.substring(D,K);G.push({text:w,start:D,end:K}),_=!0}else{let D=K,w=D+L.length,T=this._getInterpolationEndIndex(J,F,w);if(T===-1){_=!1,X=!0;break}let I=T+F.length,B=J.substring(w,T);if(B.trim().length===0)Z.push(_4("Blank expressions are not allowed in interpolated strings",J,`at column ${K} in`,Y));z.push({text:B,start:D,end:I});let t=(Q?.get(D)??D)+L.length;H.push(t),K=I,_=!1}if(!_)if(X){let D=G[G.length-1];D.text+=J.substring(K),D.end=J.length}else G.push({text:J.substring(K),start:K,end:J.length});return new l$(G,z,H)}wrapLiteralPrimitive(J,Y,Z){let $=new E4(0,J==null?0:J.length);return new p0(new d0($,$.toAbsolute(Z),J),J,typeof Y==="string"?Y:a1(Y),Z,[])}_stripComments(J){let Y=this._commentStart(J);return Y!=null?{stripped:J.substring(0,Y),hasComments:!0}:{stripped:J,hasComments:!1}}_commentStart(J){let Y=null;for(let Z=0;Z<J.length-1;Z++){let $=J.charCodeAt(Z),G=J.charCodeAt(Z+1);if($===t0&&G==t0&&Y==null)return Z;if(Y===$)Y=null;else if(Y==null&&_6($))Y=$}return null}_checkNoInterpolation(J,Y,Z){let $=-1,G=-1;for(let z of this._forEachUnquotedChar(Y,0))if($===-1){if(Y.startsWith("{{"))$=z}else if(G=this._getInterpolationEndIndex(Y,"}}",z),G>-1)break;if($>-1&&G>-1)J.push(_4("Got interpolation ({{}}) where expression was expected",Y,`at column ${$} in`,Z))}_getInterpolationEndIndex(J,Y,Z){for(let $ of this._forEachUnquotedChar(J,Z)){if(J.startsWith(Y,$))return $;if(J.startsWith("//",$))return J.indexOf(Y,$)}return-1}*_forEachUnquotedChar(J,Y){let Z=null,$=0;for(let G=Y;G<J.length;G++){let z=J[G];if(_6(J.charCodeAt(G))&&(Z===null||Z===z)&&$%2===0)Z=Z===null?z:null;else if(Z===null)yield G;$=z==="\\"?$+1:0}}}var Q4;(function(J){J[J.None=0]="None",J[J.Writable=1]="Writable"})(Q4||(Q4={}));var DY=new Set(["d","g","i","m","s","u","v","y"]);class Z4{input;parseSourceSpan;absoluteOffset;tokens;parseFlags;errors;offset;supportsDirectPipeReferences;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=Q4.None;sourceSpanCache=new Map;index=0;constructor(J,Y,Z,$,G,z,H,Q){this.input=J,this.parseSourceSpan=Y,this.absoluteOffset=Z,this.tokens=$,this.parseFlags=G,this.errors=z,this.offset=H,this.supportsDirectPipeReferences=Q}peek(J){let Y=this.index+J;return Y<this.tokens.length?this.tokens[Y]:o4}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){if(this.index>0)return this.peek(-1).end+this.offset;if(this.tokens.length===0)return this.input.length+this.offset;return this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(J,Y){let Z=this.currentEndIndex;if(Y!==void 0&&Y>this.currentEndIndex)Z=Y;if(J>Z){let $=Z;Z=J,J=$}return new E4(J,Z)}sourceSpan(J,Y){let Z=`${J}@${this.inputIndex}:${Y}`;if(!this.sourceSpanCache.has(Z))this.sourceSpanCache.set(Z,this.span(J,Y).toAbsolute(this.absoluteOffset));return this.sourceSpanCache.get(Z)}advance(){this.index++}withContext(J,Y){this.context|=J;let Z=Y();return this.context^=J,Z}consumeOptionalCharacter(J){if(this.next.isCharacter(J))return this.advance(),!0;else return!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(J){if(this.consumeOptionalCharacter(J))return;this.error(`Missing expected ${String.fromCharCode(J)}`)}consumeOptionalOperator(J){if(this.next.isOperator(J))return this.advance(),!0;else return!1}isAssignmentOperator(J){return J.type===P.Operator&&k0.isAssignmentOperation(J.strValue)}expectOperator(J){if(this.consumeOptionalOperator(J))return;this.error(`Missing expected operator ${J}`)}prettyPrintToken(J){return J===o4?"end of input":`token ${J}`}expectIdentifierOrKeyword(){let J=this.next;if(!J.isIdentifier()&&!J.isKeyword()){if(J.isPrivateIdentifier())this._reportErrorForPrivateIdentifier(J,"expected identifier or keyword");else this.error(`Unexpected ${this.prettyPrintToken(J)}, expected identifier or keyword`);return null}return this.advance(),J.toString()}expectIdentifierOrKeywordOrString(){let J=this.next;if(!J.isIdentifier()&&!J.isKeyword()&&!J.isString()){if(J.isPrivateIdentifier())this._reportErrorForPrivateIdentifier(J,"expected identifier, keyword or string");else this.error(`Unexpected ${this.prettyPrintToken(J)}, expected identifier, keyword, or string`);return""}return this.advance(),J.toString()}parseChain(){let J=[],Y=this.inputIndex;while(this.index<this.tokens.length){let Z=this.parsePipe();if(J.push(Z),this.consumeOptionalCharacter(v0)){if(!(this.parseFlags&1))this.error("Binding expression cannot contain chained expression");while(this.consumeOptionalCharacter(v0));}else if(this.index<this.tokens.length){let $=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===$)break}}if(J.length===0){let Z=this.offset,$=this.offset+this.input.length;return new j0(this.span(Z,$),this.sourceSpan(Z,$))}if(J.length==1)return J[0];return new l6(this.span(Y),this.sourceSpan(Y),J)}parsePipe(){let J=this.inputIndex,Y=this.parseExpression();if(this.consumeOptionalOperator("|")){if(this.parseFlags&1)this.error("Cannot have a pipe in an action expression");do{let Z=this.inputIndex,$=this.expectIdentifierOrKeyword(),G,z=void 0;if($!==null)G=this.sourceSpan(Z);else $="",z=this.next.index!==-1?this.next.index:this.input.length+this.offset,G=new E4(z,z).toAbsolute(this.absoluteOffset);let H=[];while(this.consumeOptionalCharacter(j1))H.push(this.parseExpression());let Q;if(this.supportsDirectPipeReferences){let K=$.charCodeAt(0);Q=K===R5||K>=L5&&K<=g4?H6.ReferencedDirectly:H6.ReferencedByName}else Q=H6.ReferencedByName;Y=new I8(this.span(J),this.sourceSpan(J,z),Y,$,H,Q,G)}while(this.consumeOptionalOperator("|"))}return Y}parseExpression(){return this.parseConditional()}parseConditional(){let J=this.inputIndex,Y=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let Z=this.parsePipe(),$;if(!this.consumeOptionalCharacter(j1)){let G=this.inputIndex,z=this.input.substring(J,G);this.error(`Conditional expression ${z} requires all 3 expressions`),$=new j0(this.span(J),this.sourceSpan(J))}else $=this.parsePipe();return new A8(this.span(J),this.sourceSpan(J),Y,Z,$)}else return Y}parseLogicalOr(){let J=this.inputIndex,Y=this.parseLogicalAnd();while(this.consumeOptionalOperator("||")){let Z=this.parseLogicalAnd();Y=new k0(this.span(J),this.sourceSpan(J),"||",Y,Z)}return Y}parseLogicalAnd(){let J=this.inputIndex,Y=this.parseNullishCoalescing();while(this.consumeOptionalOperator("&&")){let Z=this.parseNullishCoalescing();Y=new k0(this.span(J),this.sourceSpan(J),"&&",Y,Z)}return Y}parseNullishCoalescing(){let J=this.inputIndex,Y=this.parseEquality();while(this.consumeOptionalOperator("??")){let Z=this.parseEquality();Y=new k0(this.span(J),this.sourceSpan(J),"??",Y,Z)}return Y}parseEquality(){let J=this.inputIndex,Y=this.parseRelational();while(this.next.type==P.Operator){let Z=this.next.strValue;switch(Z){case"==":case"===":case"!=":case"!==":this.advance();let $=this.parseRelational();Y=new k0(this.span(J),this.sourceSpan(J),Z,Y,$);continue}break}return Y}parseRelational(){let J=this.inputIndex,Y=this.parseAdditive();while(this.next.type==P.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf()){let Z=this.next.strValue;switch(Z){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let $=this.parseAdditive();Y=new k0(this.span(J),this.sourceSpan(J),Z,Y,$);continue}break}return Y}parseAdditive(){let J=this.inputIndex,Y=this.parseMultiplicative();while(this.next.type==P.Operator){let Z=this.next.strValue;switch(Z){case"+":case"-":this.advance();let $=this.parseMultiplicative();Y=new k0(this.span(J),this.sourceSpan(J),Z,Y,$);continue}break}return Y}parseMultiplicative(){let J=this.inputIndex,Y=this.parseExponentiation();while(this.next.type==P.Operator){let Z=this.next.strValue;switch(Z){case"*":case"%":case"/":this.advance();let $=this.parseExponentiation();Y=new k0(this.span(J),this.sourceSpan(J),Z,Y,$);continue}break}return Y}parseExponentiation(){let J=this.inputIndex,Y=this.parsePrefix();while(this.next.type==P.Operator&&this.next.strValue==="**"){if(Y instanceof B5||Y instanceof E7||Y instanceof A7||Y instanceof I7)this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence");this.advance();let Z=this.parseExponentiation();Y=new k0(this.span(J),this.sourceSpan(J),"**",Y,Z)}return Y}parsePrefix(){if(this.next.type==P.Operator){let J=this.inputIndex,Y=this.next.strValue,Z;switch(Y){case"+":return this.advance(),Z=this.parsePrefix(),B5.createPlus(this.span(J),this.sourceSpan(J),Z);case"-":return this.advance(),Z=this.parsePrefix(),B5.createMinus(this.span(J),this.sourceSpan(J),Z);case"!":return this.advance(),Z=this.parsePrefix(),new E7(this.span(J),this.sourceSpan(J),Z)}}else if(this.next.isKeywordTypeof()){let J=this.inputIndex;this.advance();let Y=this.parsePrefix();return new A7(this.span(J),this.sourceSpan(J),Y)}else if(this.next.isKeywordVoid()){let J=this.inputIndex;this.advance();let Y=this.parsePrefix();return new I7(this.span(J),this.sourceSpan(J),Y)}return this.parseCallChain()}parseCallChain(){let J=this.inputIndex,Y=this.parsePrimary();while(!0)if(this.consumeOptionalCharacter(E5))Y=this.parseAccessMember(Y,J,!1);else if(this.consumeOptionalOperator("?."))if(this.consumeOptionalCharacter(P0))Y=this.parseCall(Y,J,!0);else Y=this.consumeOptionalCharacter(T1)?this.parseKeyedReadOrWrite(Y,J,!0):this.parseAccessMember(Y,J,!0);else if(this.consumeOptionalCharacter(T1))Y=this.parseKeyedReadOrWrite(Y,J,!1);else if(this.consumeOptionalCharacter(P0))Y=this.parseCall(Y,J,!1);else if(this.consumeOptionalOperator("!"))Y=new J3(this.span(J),this.sourceSpan(J),Y);else if(this.next.isTemplateLiteralEnd())Y=this.parseNoInterpolationTaggedTemplateLiteral(Y,J);else if(this.next.isTemplateLiteralPart())Y=this.parseTaggedTemplateLiteral(Y,J);else return Y}parsePrimary(){let J=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(J);else if(this.consumeOptionalCharacter(P0)){this.rparensExpected++;let Y=this.parsePipe();if(!this.consumeOptionalCharacter(z0))this.error("Missing closing parentheses"),this.consumeOptionalCharacter(z0);return this.rparensExpected--,new Y3(this.span(J),this.sourceSpan(J),Y)}else if(this.next.isKeywordNull())return this.advance(),new d0(this.span(J),this.sourceSpan(J),null);else if(this.next.isKeywordUndefined())return this.advance(),new d0(this.span(J),this.sourceSpan(J),void 0);else if(this.next.isKeywordTrue())return this.advance(),new d0(this.span(J),this.sourceSpan(J),!0);else if(this.next.isKeywordFalse())return this.advance(),new d0(this.span(J),this.sourceSpan(J),!1);else if(this.next.isKeywordIn())return this.advance(),new d0(this.span(J),this.sourceSpan(J),"in");else if(this.next.isKeywordThis())return this.advance(),new r7(this.span(J),this.sourceSpan(J));else if(this.consumeOptionalCharacter(T1))return this.parseLiteralArray(J);else if(this.next.isCharacter(J1))return this.parseLiteralMap();else if(this.next.isIdentifier())return this.parseAccessMember(new u1(this.span(J),this.sourceSpan(J)),J,!1);else if(this.next.isNumber()){let Y=this.next.toNumber();return this.advance(),new d0(this.span(J),this.sourceSpan(J),Y)}else if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();else if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();else if(this.next.isString()&&this.next.kind===$5.Plain){let Y=this.next.toString();return this.advance(),new d0(this.span(J),this.sourceSpan(J),Y)}else if(this.next.isPrivateIdentifier())return this._reportErrorForPrivateIdentifier(this.next,null),new j0(this.span(J),this.sourceSpan(J));else if(this.next.isRegExpBody())return this.parseRegularExpressionLiteral();else if(this.index>=this.tokens.length)return this.error(`Unexpected end of expression: ${this.input}`),new j0(this.span(J),this.sourceSpan(J));else return this.error(`Unexpected token ${this.next}`),new j0(this.span(J),this.sourceSpan(J))}parseLiteralArray(J){this.rbracketsExpected++;let Y=[];do if(this.next.isOperator("..."))Y.push(this.parseSpreadElement());else if(!this.next.isCharacter(k1))Y.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(C0));return this.rbracketsExpected--,this.expectCharacter(k1),new e7(this.span(J),this.sourceSpan(J),Y)}parseLiteralMap(){let J=[],Y=[],Z=this.inputIndex;if(this.expectCharacter(J1),!this.consumeOptionalCharacter(M0)){this.rbracesExpected++;do{let $=this.inputIndex;if(this.next.isOperator("...")){this.advance(),J.push({kind:"spread",span:this.span($),sourceSpan:this.sourceSpan($)}),Y.push(this.parsePipe());continue}let G=this.next.isString(),z=this.expectIdentifierOrKeywordOrString(),H=this.span($),Q=this.sourceSpan($),K={kind:"property",key:z,quoted:G,span:H,sourceSpan:Q};if(J.push(K),G)this.expectCharacter(j1),Y.push(this.parsePipe());else if(this.consumeOptionalCharacter(j1))Y.push(this.parsePipe());else K.isShorthandInitialized=!0,Y.push(new g1(H,Q,Q,new u1(H,Q),z))}while(this.consumeOptionalCharacter(C0)&&!this.next.isCharacter(M0));this.rbracesExpected--,this.expectCharacter(M0)}return new I4(this.span(Z),this.sourceSpan(Z),J,Y)}parseAccessMember(J,Y,Z){let $=this.inputIndex,G=this.withContext(Q4.Writable,()=>{let H=this.expectIdentifierOrKeyword()??"";if(H.length===0)this.error("Expected identifier for property access",J.span.end);return H}),z=this.sourceSpan($);if(Z)if(this.isAssignmentOperator(this.next))return this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new j0(this.span(Y),this.sourceSpan(Y));else return new a7(this.span(Y),this.sourceSpan(Y),z,J,G);else if(this.isAssignmentOperator(this.next)){let H=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new j0(this.span(Y),this.sourceSpan(Y));let Q=new g1(this.span(Y),this.sourceSpan(Y),z,J,G);this.advance();let K=this.parseConditional();return new k0(this.span(Y),this.sourceSpan(Y),H,Q,K)}else return new g1(this.span(Y),this.sourceSpan(Y),z,J,G)}parseCall(J,Y,Z){let $=this.inputIndex;this.rparensExpected++;let G=this.parseCallArguments(),z=this.span($,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(z0),this.rparensExpected--;let H=this.span(Y),Q=this.sourceSpan(Y);return Z?new C8(H,Q,J,G,z):new d6(H,Q,J,G,z)}parseCallArguments(){if(this.next.isCharacter(z0))return[];let J=[];do J.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(C0));return J}parseSpreadElement(){if(!this.next.isOperator("..."))this.error("Spread element must start with '...' operator");let J=this.inputIndex;this.advance();let Y=this.parsePipe(),Z=this.span(J),$=this.sourceSpan(J);return new j8(Z,$,Y)}expectTemplateBindingKey(){let J="",Y=!1,Z=this.currentAbsoluteOffset;do if(J+=this.expectIdentifierOrKeywordOrString(),Y=this.consumeOptionalOperator("-"),Y)J+="-";while(Y);return{source:J,span:new Z1(Z,Z+J.length)}}parseTemplateBindings(J){let Y=[];Y.push(...this.parseDirectiveKeywordBindings(J));while(this.index<this.tokens.length){let Z=this.parseLetBinding();if(Z)Y.push(Z);else{let $=this.expectTemplateBindingKey(),G=this.parseAsBinding($);if(G)Y.push(G);else $.source=J.source+$.source.charAt(0).toUpperCase()+$.source.substring(1),Y.push(...this.parseDirectiveKeywordBindings($))}this.consumeStatementTerminator()}return new c$(Y,[],this.errors)}parseKeyedReadOrWrite(J,Y,Z){return this.withContext(Q4.Writable,()=>{this.rbracketsExpected++;let $=this.parsePipe();if($ instanceof j0)this.error("Key access cannot be empty");if(this.rbracketsExpected--,this.expectCharacter(k1),this.isAssignmentOperator(this.next)){let G=this.next.strValue;if(Z)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let z=new A4(this.span(Y),this.sourceSpan(Y),J,$);this.advance();let H=this.parseConditional();return new k0(this.span(Y),this.sourceSpan(Y),G,z,H)}}else return Z?new t7(this.span(Y),this.sourceSpan(Y),J,$):new A4(this.span(Y),this.sourceSpan(Y),J,$);return new j0(this.span(Y),this.sourceSpan(Y))})}parseDirectiveKeywordBindings(J){let Y=[];this.consumeOptionalCharacter(j1);let Z=this.getDirectiveBoundTarget(),$=this.currentAbsoluteOffset,G=this.parseAsBinding(J);if(!G)this.consumeStatementTerminator(),$=this.currentAbsoluteOffset;let z=new Z1(J.span.start,$);if(Y.push(new OZ(z,J,Z)),G)Y.push(G);return Y}getDirectiveBoundTarget(){if(this.next===o4||this.peekKeywordAs()||this.peekKeywordLet())return null;let J=this.parsePipe(),{start:Y,end:Z}=J.span,$=this.input.substring(Y,Z);return new p0(J,$,a1(this.parseSourceSpan),this.absoluteOffset+Y,this.errors)}parseAsBinding(J){if(!this.peekKeywordAs())return null;this.advance();let Y=this.expectTemplateBindingKey();this.consumeStatementTerminator();let Z=new Z1(J.span.start,this.currentAbsoluteOffset);return new T7(Z,Y,J)}parseLetBinding(){if(!this.peekKeywordLet())return null;let J=this.currentAbsoluteOffset;this.advance();let Y=this.expectTemplateBindingKey(),Z=null;if(this.consumeOptionalOperator("="))Z=this.expectTemplateBindingKey();this.consumeStatementTerminator();let $=new Z1(J,this.currentAbsoluteOffset);return new T7($,Y,Z)}parseNoInterpolationTaggedTemplateLiteral(J,Y){let Z=this.parseNoInterpolationTemplateLiteral();return new j7(this.span(Y),this.sourceSpan(Y),J,Z)}parseNoInterpolationTemplateLiteral(){let J=this.next.strValue,Y=this.inputIndex;this.advance();let Z=this.span(Y),$=this.sourceSpan(Y);return new C7(Z,$,[new o3(Z,$,J)],[])}parseTaggedTemplateLiteral(J,Y){let Z=this.parseTemplateLiteral();return new j7(this.span(Y),this.sourceSpan(Y),J,Z)}parseTemplateLiteral(){let J=[],Y=[],Z=this.inputIndex;while(this.next!==o4){let $=this.next;if($.isTemplateLiteralPart()||$.isTemplateLiteralEnd()){let G=this.inputIndex;if(this.advance(),J.push(new o3(this.span(G),this.sourceSpan(G),$.strValue)),$.isTemplateLiteralEnd())break}else if($.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let G=this.parsePipe();if(G instanceof j0)this.error("Template literal interpolation cannot be empty");else Y.push(G);this.rbracesExpected--}else this.advance()}return new C7(this.span(Z),this.sourceSpan(Z),J,Y)}parseRegularExpressionLiteral(){let J=this.next;if(this.advance(),!J.isRegExpBody())return new j0(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let Y=null;if(this.next.isRegExpFlags()){Y=this.next,this.advance();let G=new Set;for(let z=0;z<Y.strValue.length;z++){let H=Y.strValue[z];if(!DY.has(H))this.error(`Unsupported regular expression flag "${H}". The supported flags are: `+Array.from(DY,(Q)=>`"${Q}"`).join(", "),Y.index+z);else if(G.has(H))this.error(`Duplicate regular expression flag "${H}"`,Y.index+z);else G.add(H)}}let Z=J.index,$=Y?Y.end:J.end;return new B8(this.span(Z,$),this.sourceSpan(Z,$),J.strValue,Y?Y.strValue:null)}parseArrowFunction(J){let Y;if(this.next.isIdentifier()){let $=this.next;this.advance(),Y=[this.getArrowFunctionIdentifierArg($)]}else if(this.next.isCharacter(P0))this.rparensExpected++,this.advance(),Y=this.parseArrowFunctionParameters(),this.rparensExpected--;else Y=[],this.error(`Unexpected token ${this.next}`);this.expectOperator("=>");let Z;if(this.next.isCharacter(J1))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),Z=new j0(this.span(J),this.sourceSpan(J));else{let $=this.parseFlags;this.parseFlags=1,Z=this.parseExpression(),this.parseFlags=$}return new T8(this.span(J),this.sourceSpan(J),Y,Z)}parseArrowFunctionParameters(){let J=[];if(!this.consumeOptionalCharacter(z0))while(this.next!==o4)if(this.next.isIdentifier()){let Y=this.next;if(this.advance(),J.push(this.getArrowFunctionIdentifierArg(Y)),this.consumeOptionalCharacter(z0))break;else this.expectCharacter(C0)}else{this.error(`Unexpected token ${this.next}`);break}return J}getArrowFunctionIdentifierArg(J){return new BZ(J.strValue,this.span(J.index),this.sourceSpan(J.index))}isArrowFunction(){let J=this.index,Y=this.tokens;if(J>Y.length-2)return!1;if(Y[J].isIdentifier()&&Y[J+1].isOperator("=>"))return!0;if(Y[J].isCharacter(P0)){let Z=J+1;for(Z;Z<Y.length;Z++)if(!Y[Z].isIdentifier()&&!Y[Z].isCharacter(C0))break;return Z<Y.length-1&&Y[Z].isCharacter(z0)&&Y[Z+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(v0)||this.consumeOptionalCharacter(C0)}error(J,Y=this.index){this.errors.push(_4(J,this.input,this.getErrorLocationText(Y),this.parseSourceSpan)),this.skip()}getErrorLocationText(J){return J<this.tokens.length?`at column ${this.tokens[J].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(J,Y){let Z=`Private identifiers are not supported. Unexpected private identifier: ${J}`;if(Y!==null)Z+=`, ${Y}`;this.error(Z)}skip(){let J=this.next;while(this.index<this.tokens.length&&!J.isCharacter(v0)&&!J.isOperator("|")&&(this.rparensExpected<=0||!J.isCharacter(z0))&&(this.rbracesExpected<=0||!J.isCharacter(M0))&&(this.rbracketsExpected<=0||!J.isCharacter(k1))&&(!(this.context&Q4.Writable)||!this.isAssignmentOperator(J))){if(this.next.isError())this.errors.push(_4(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan));this.advance(),J=this.next}}}function _4(J,Y,Z,$){if(Z.length>0)Z=` ${Z} `;let G=a1($),z=`Parser Error: ${J}${Z}[${Y}] in ${G}`;return new M($,z)}class d$ extends p6{errors=[];visitPipe(){this.errors.push("pipes")}}function jW(J){let Y=new Map,Z=0,$=0,G=0;while(G<J.length){let z=J[G];if(z.type===9){let[H,Q]=z.parts;Z+=Q.length,$+=H.length}else{let H=z.parts.reduce((Q,K)=>Q+K.length,0);$+=H,Z+=H}Y.set($,Z),G++}return Y}function CW(J){return J.visit(new p$)}class p${visitUnary(J,Y){return`${J.operator}${J.expr.visit(this,Y)}`}visitBinary(J,Y){return`${J.left.visit(this,Y)} ${J.operation} ${J.right.visit(this,Y)}`}visitChain(J,Y){return J.expressions.map((Z)=>Z.visit(this,Y)).join("; ")}visitConditional(J,Y){return`${J.condition.visit(this,Y)} ? ${J.trueExp.visit(this,Y)} : ${J.falseExp.visit(this,Y)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(J,Y){return BW(J.strings,J.expressions.map((Z)=>Z.visit(this,Y))).join("")}visitKeyedRead(J,Y){return`${J.receiver.visit(this,Y)}[${J.key.visit(this,Y)}]`}visitLiteralArray(J,Y){return`[${J.expressions.map((Z)=>Z.visit(this,Y)).join(", ")}]`}visitLiteralMap(J,Y){return`{${TW(J.keys.map((Z)=>{if(Z.kind==="spread")return"...";return Z.quoted?`'${Z.key}'`:Z.key}),J.values.map((Z)=>Z.visit(this,Y))).map(([Z,$])=>`${Z}: ${$}`).join(", ")}}`}visitLiteralPrimitive(J){if(J.value===null)return"null";switch(typeof J.value){case"number":case"boolean":return J.value.toString();case"undefined":return"undefined";case"string":return`'${J.value.replace(/'/g,"\\'")}'`;default:throw Error(`Unsupported primitive type: ${J.value}`)}}visitPipe(J,Y){return`${J.exp.visit(this,Y)} | ${J.name}`}visitPrefixNot(J,Y){return`!${J.expression.visit(this,Y)}`}visitNonNullAssert(J,Y){return`${J.expression.visit(this,Y)}!`}visitPropertyRead(J,Y){if(J.receiver instanceof u1||J.receiver instanceof r7)return J.name;else return`${J.receiver.visit(this,Y)}.${J.name}`}visitSafePropertyRead(J,Y){return`${J.receiver.visit(this,Y)}?.${J.name}`}visitSafeKeyedRead(J,Y){return`${J.receiver.visit(this,Y)}?.[${J.key.visit(this,Y)}]`}visitCall(J,Y){return`${J.receiver.visit(this,Y)}(${J.args.map((Z)=>Z.visit(this,Y)).join(", ")})`}visitSafeCall(J,Y){return`${J.receiver.visit(this,Y)}?.(${J.args.map((Z)=>Z.visit(this,Y)).join(", ")})`}visitTypeofExpression(J,Y){return`typeof ${J.expression.visit(this,Y)}`}visitVoidExpression(J,Y){return`void ${J.expression.visit(this,Y)}`}visitRegularExpressionLiteral(J,Y){return`/${J.body}/${J.flags||""}`}visitArrowFunction(J,Y){let Z;if(J.parameters.length===1)Z=J.parameters[0].name;else Z=`(${J.parameters.map(($)=>$.name).join(", ")})`;return`${Z} => ${J.body.visit(this,Y)}`}visitASTWithSource(J,Y){return J.ast.visit(this,Y)}visitTemplateLiteral(J,Y){let Z="";for(let $=0;$<J.elements.length;$++){Z+=J.elements[$].visit(this,Y);let G=$<J.expressions.length?J.expressions[$]:null;if(G!==null)Z+="${"+G.visit(this,Y)+"}"}return"`"+Z+"`"}visitTemplateLiteralElement(J,Y){return J.text}visitTaggedTemplateLiteral(J,Y){return J.tag.visit(this,Y)+J.template.visit(this,Y)}visitSpreadElement(J,Y){return`...${J.expression.visit(this,Y)}`}visitParenthesizedExpression(J,Y){return"("+J.expression.visit(this,Y)+")"}}function TW(J,Y){if(J.length!==Y.length)throw Error("Array lengths must match");return J.map((Z,$)=>[Z,Y[$]])}function BW(J,Y){let Z=[];for(let $=0;$<Math.max(J.length,Y.length);$++){if($<J.length)Z.push(J[$]);if($<Y.length)Z.push(Y[$])}return Z}var U7;function wY(){if(!U7)U7={},n4(s.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),n4(s.STYLE,["*|style"]),n4(s.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),n4(s.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),n4(s.ATTRIBUTE_NO_BINDING,["animate|attributeName","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"]);return U7}function n4(J,Y){for(let Z of Y)U7[Z.toLowerCase()]=J}class i${}var OW="boolean",NW="number",MW="string",PW="object",yW=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],s$=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),hW=Array.from(s$).reduce((J,[Y,Z])=>{return J.set(Y,Z),J},new Map);class t6 extends i${_schema=new Map;_eventSchema=new Map;constructor(){super();yW.forEach((J)=>{let Y=new Map,Z=new Set,[$,G]=J.split("|"),z=G.split(","),[H,Q]=$.split("^");H.split(",").forEach((_)=>{this._schema.set(_.toLowerCase(),Y),this._eventSchema.set(_.toLowerCase(),Z)});let K=Q&&this._schema.get(Q.toLowerCase());if(K){for(let[_,X]of K)Y.set(_,X);for(let _ of this._eventSchema.get(Q.toLowerCase()))Z.add(_)}z.forEach((_)=>{if(_.length>0)switch(_[0]){case"*":Z.add(_.substring(1));break;case"!":Y.set(_.substring(1),OW);break;case"#":Y.set(_.substring(1),NW);break;case"%":Y.set(_.substring(1),PW);break;default:Y.set(_,MW)}})})}hasProperty(J,Y,Z){if(Z.some((G)=>G.name===qJ.name))return!0;if(J.indexOf("-")>-1){if(yJ(J)||a3(J))return!1;if(Z.some((G)=>G.name===FJ.name))return!0}return(this._schema.get(J.toLowerCase())||this._schema.get("unknown")).has(Y)}hasElement(J,Y){if(Y.some((Z)=>Z.name===qJ.name))return!0;if(J.indexOf("-")>-1){if(yJ(J)||a3(J))return!0;if(Y.some((Z)=>Z.name===FJ.name))return!0}return this._schema.has(J.toLowerCase())}securityContext(J,Y,Z){if(Z)Y=this.getMappedPropName(Y);J=J.toLowerCase(),Y=Y.toLowerCase();let $=wY()[J+"|"+Y];if($)return $;return $=wY()["*|"+Y],$?$:s.NONE}getMappedPropName(J){return s$.get(J)??J}getDefaultComponentElementName(){return"ng-component"}validateProperty(J){if(J.toLowerCase().startsWith("on"))return{error:!0,msg:`Binding to event property '${J}' is disallowed for security reasons, please use (${J.slice(2)})=...
25
+ If '${J}' is a directive input, make sure the directive is imported by the current module.`};else return{error:!1}}validateAttribute(J){if(J.toLowerCase().startsWith("on"))return{error:!0,msg:`Binding to event attribute '${J}' is disallowed for security reasons, please use (${J.slice(2)})=...`};else return{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(J){let Y=this._schema.get(J.toLowerCase())||this._schema.get("unknown");return Array.from(Y.keys()).map((Z)=>hW.get(Z)??Z)}allKnownEventsOfElement(J){return Array.from(this._eventSchema.get(J.toLowerCase())??[])}normalizeAnimationStyleProperty(J){return Nz(J)}normalizeAnimationStyleValue(J,Y,Z){let $="",G=Z.toString().trim(),z=null;if(kW(J)&&Z!==0&&Z!=="0")if(typeof Z==="number")$="px";else{let H=Z.match(/^[+-]?[\d\.]+([a-z]*)$/);if(H&&H[1].length==0)z=`Please provide a CSS unit value for ${Y}:${Z}`}return{error:z,value:G+$}}}function kW(J){switch(J){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}class f{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:J,implicitNamespacePrefix:Y,contentType:Z=R1.PARSABLE_DATA,closedByParent:$=!1,isVoid:G=!1,ignoreFirstLf:z=!1,preventNamespaceInheritance:H=!1,canSelfClose:Q=!1}={}){if(J&&J.length>0)J.forEach((K)=>this.closedByChildren[K]=!0);this.isVoid=G,this.closedByParent=$||G,this.implicitNamespacePrefix=Y||null,this.contentType=Z,this.ignoreFirstLf=z,this.preventNamespaceInheritance=H,this.canSelfClose=Q??G}isClosedByChild(J){return this.isVoid||J.toLowerCase()in this.closedByChildren}getContentType(J){if(typeof this.contentType==="object")return(J===void 0?void 0:this.contentType[J])??this.contentType.default;return this.contentType}}var EY,t5;function Q8(J){if(!t5)EY=new f({canSelfClose:!0}),t5=Object.assign(Object.create(null),{base:new f({isVoid:!0}),meta:new f({isVoid:!0}),area:new f({isVoid:!0}),embed:new f({isVoid:!0}),link:new f({isVoid:!0}),img:new f({isVoid:!0}),input:new f({isVoid:!0}),param:new f({isVoid:!0}),hr:new f({isVoid:!0}),br:new f({isVoid:!0}),source:new f({isVoid:!0}),track:new f({isVoid:!0}),wbr:new f({isVoid:!0}),p:new f({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 f({closedByChildren:["tbody","tfoot"]}),tbody:new f({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new f({closedByChildren:["tbody"],closedByParent:!0}),tr:new f({closedByChildren:["tr"],closedByParent:!0}),td:new f({closedByChildren:["td","th"],closedByParent:!0}),th:new f({closedByChildren:["td","th"],closedByParent:!0}),col:new f({isVoid:!0}),svg:new f({implicitNamespacePrefix:"svg"}),foreignObject:new f({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new f({implicitNamespacePrefix:"math"}),li:new f({closedByChildren:["li"],closedByParent:!0}),dt:new f({closedByChildren:["dt","dd"]}),dd:new f({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new f({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new f({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new f({closedByChildren:["optgroup"],closedByParent:!0}),option:new f({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new f({ignoreFirstLf:!0}),listing:new f({ignoreFirstLf:!0}),style:new f({contentType:R1.RAW_TEXT}),script:new f({contentType:R1.RAW_TEXT}),title:new f({contentType:{default:R1.ESCAPABLE_RAW_TEXT,svg:R1.PARSABLE_DATA}}),textarea:new f({contentType:R1.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new t6().allKnownElementNames().forEach((Y)=>{if(!t5[Y]&&t3(Y)===null)t5[Y]=new f({canSelfClose:!1})});return t5[J]??t5[J.toLowerCase()]??EY}var AY={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"};class o${_placeHolderNameCounts={};_signatureToName={};getStartTagPlaceholderName(J,Y,Z){let $=this._hashTag(J,Y,Z);if(this._signatureToName[$])return this._signatureToName[$];let G=J.toUpperCase(),z=AY[G]||`TAG_${G}`,H=this._generateUniqueName(Z?z:`START_${z}`);return this._signatureToName[$]=H,H}getCloseTagPlaceholderName(J){let Y=this._hashClosingTag(J);if(this._signatureToName[Y])return this._signatureToName[Y];let Z=J.toUpperCase(),$=AY[Z]||`TAG_${Z}`,G=this._generateUniqueName(`CLOSE_${$}`);return this._signatureToName[Y]=G,G}getPlaceholderName(J,Y){let Z=J.toUpperCase(),$=`PH: ${Z}=${Y}`;if(this._signatureToName[$])return this._signatureToName[$];let G=this._generateUniqueName(Z);return this._signatureToName[$]=G,G}getUniquePlaceholder(J){return this._generateUniqueName(J.toUpperCase())}getStartBlockPlaceholderName(J,Y){let Z=this._hashBlock(J,Y);if(this._signatureToName[Z])return this._signatureToName[Z];let $=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(J)}`);return this._signatureToName[Z]=$,$}getCloseBlockPlaceholderName(J){let Y=this._hashClosingBlock(J);if(this._signatureToName[Y])return this._signatureToName[Y];let Z=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(J)}`);return this._signatureToName[Y]=Z,Z}_hashTag(J,Y,Z){let $=`<${J}`,G=Object.keys(Y).sort().map((H)=>` ${H}=${Y[H]}`).join(""),z=Z?"/>":`></${J}>`;return $+G+z}_hashClosingTag(J){return this._hashTag(`/${J}`,{},!1)}_hashBlock(J,Y){let Z=Y.length===0?"":` (${Y.sort().join("; ")})`;return`@${J}${Z} {}`}_hashClosingBlock(J){return this._hashBlock(`close_${J}`,[])}_toSnakeCase(J){return J.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(J){if(!this._placeHolderNameCounts.hasOwnProperty(J))return this._placeHolderNameCounts[J]=1,J;let Z=this._placeHolderNameCounts[J];return this._placeHolderNameCounts[J]=Z+1,`${J}_${Z}`}}var xW=new YJ(new V3);function vW(J,Y){let Z=new n$(xW,J,Y);return($,G,z,H,Q)=>Z.toI18nMessage($,G,z,H,Q)}function SW(J,Y){return Y}class n${_expressionParser;_retainEmptyTokens;_preserveExpressionWhitespace;constructor(J,Y,Z){this._expressionParser=J,this._retainEmptyTokens=Y,this._preserveExpressionWhitespace=Z}toI18nMessage(J,Y="",Z="",$="",G){let z={isIcu:J.length==1&&J[0]instanceof L4,icuDepth:0,placeholderRegistry:new o$,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:G||SW},H=e(this,J,z);return new f0(H,z.placeholderToContent,z.placeholderToMessage,Y,Z,$)}visitElement(J,Y){return this._visitElementLike(J,Y)}visitComponent(J,Y){return this._visitElementLike(J,Y)}visitDirective(J,Y){throw Error("Unreachable code")}visitAttribute(J,Y){let Z=J.valueTokens===void 0||J.valueTokens.length===1?new d4(J.value,J.valueSpan||J.sourceSpan):this._visitTextWithInterpolation(J.valueTokens,J.valueSpan||J.sourceSpan,Y,J.i18n);return Y.visitNodeFn(J,Z)}visitText(J,Y){let Z=J.tokens.length===1?new d4(J.value,J.sourceSpan):this._visitTextWithInterpolation(J.tokens,J.sourceSpan,Y,J.i18n);return Y.visitNodeFn(J,Z)}visitComment(J,Y){return null}visitExpansion(J,Y){Y.icuDepth++;let Z={},$=new S8(J.switchValue,J.type,Z,J.sourceSpan);if(J.cases.forEach((H)=>{Z[H.value]=new Z5(H.expression.map((Q)=>Q.visit(this,Y)),H.expSourceSpan)}),Y.icuDepth--,Y.isIcu||Y.icuDepth>0){let H=Y.placeholderRegistry.getUniquePlaceholder(`VAR_${J.type}`);return $.expressionPlaceholder=H,Y.placeholderToContent[H]={text:J.switchValue,sourceSpan:J.switchValueSourceSpan},Y.visitNodeFn(J,$)}let G=Y.placeholderRegistry.getPlaceholderName("ICU",J.sourceSpan.toString());Y.placeholderToMessage[G]=this.toI18nMessage([J],"","","",void 0);let z=new A6($,G,J.sourceSpan);return Y.visitNodeFn(J,z)}visitExpansionCase(J,Y){throw Error("Unreachable code")}visitBlock(J,Y){let Z=e(this,J.children,Y);if(J.name==="switch")return new Z5(Z,J.sourceSpan);let $=J.parameters.map((Q)=>Q.expression),G=Y.placeholderRegistry.getStartBlockPlaceholderName(J.name,$),z=Y.placeholderRegistry.getCloseBlockPlaceholderName(J.name);Y.placeholderToContent[G]={text:J.startSourceSpan.toString(),sourceSpan:J.startSourceSpan},Y.placeholderToContent[z]={text:J.endSourceSpan?J.endSourceSpan.toString():"}",sourceSpan:J.endSourceSpan??J.sourceSpan};let H=new S5(J.name,$,G,z,Z,J.sourceSpan,J.startSourceSpan,J.endSourceSpan);return Y.visitNodeFn(J,H)}visitBlockParameter(J,Y){throw Error("Unreachable code")}visitLetDeclaration(J,Y){return null}_visitElementLike(J,Y){let Z=e(this,J.children,Y),$={},G=(X)=>{$[X.name]=X.value},z,H;if(J instanceof K1)z=J.name,H=Q8(J.name).isVoid;else z=J.fullName,H=J.tagName?Q8(J.tagName).isVoid:!1;J.attrs.forEach(G),J.directives.forEach((X)=>X.attrs.forEach(G));let Q=Y.placeholderRegistry.getStartTagPlaceholderName(z,$,H);Y.placeholderToContent[Q]={text:J.startSourceSpan.toString(),sourceSpan:J.startSourceSpan};let K="";if(!H)K=Y.placeholderRegistry.getCloseTagPlaceholderName(z),Y.placeholderToContent[K]={text:`</${z}>`,sourceSpan:J.endSourceSpan??J.sourceSpan};let _=new v5(z,$,Q,K,Z,H,J.sourceSpan,J.startSourceSpan,J.endSourceSpan);return Y.visitNodeFn(J,_)}_visitTextWithInterpolation(J,Y,Z,$){let G=[],z=!1;for(let H of J)switch(H.type){case 8:case 17:z=!0;let[Q,K,_]=H.parts,X=mW(K)||"INTERPOLATION",L=Z.placeholderRegistry.getPlaceholderName(X,K);if(this._preserveExpressionWhitespace)Z.placeholderToContent[L]={text:H.parts.join(""),sourceSpan:H.sourceSpan},G.push(new O7(K,L,H.sourceSpan));else{let F=this.normalizeExpression(H);Z.placeholderToContent[L]={text:`${Q}${F}${_}`,sourceSpan:H.sourceSpan},G.push(new O7(F,L,H.sourceSpan))}break;default:if(H.parts[0].length>0||this._retainEmptyTokens){let F=G[G.length-1];if(F instanceof d4)F.value+=H.parts[0],F.sourceSpan=new h(F.sourceSpan.start,H.sourceSpan.end,F.sourceSpan.fullStart,F.sourceSpan.details);else G.push(new d4(H.parts[0],H.sourceSpan))}else if(this._retainEmptyTokens)G.push(new d4(H.parts[0],H.sourceSpan));break}if(z)return fW(G,$),new Z5(G,Y);else return G[0]}normalizeExpression(J){let Y=J.parts[1],Z=this._expressionParser.parseBinding(Y,J.sourceSpan,J.sourceSpan.start.offset);return CW(Z)}}function fW(J,Y){if(Y instanceof f0)gW(Y),Y=Y.nodes[0];if(Y instanceof Z5){bW(Y.children,J);for(let Z=0;Z<J.length;Z++)J[Z].sourceSpan=Y.children[Z].sourceSpan}}function gW(J){let Y=J.nodes;if(Y.length!==1||!(Y[0]instanceof Z5))throw Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function bW(J,Y){if(J.length!==Y.length)throw Error(`
26
+ The number of i18n message children changed between first and second pass.
27
+
28
+ First pass (${J.length} tokens):
29
+ ${J.map((Z)=>`"${Z.sourceSpan.toString()}"`).join(`
30
+ `)}
31
+
32
+ Second pass (${Y.length} tokens):
33
+ ${Y.map((Z)=>`"${Z.sourceSpan.toString()}"`).join(`
34
+ `)}
35
+ `.trim());if(J.some((Z,$)=>Y[$].constructor!==Z.constructor))throw Error("The types of the i18n message children changed between first and second pass.")}var uW=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function mW(J){return J.split(uW)[2]}var IY=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function jY(J,Y){return J=J.toLowerCase(),Y=Y.toLowerCase(),IY.has(J+"|"+Y)||IY.has("*|"+Y)}var lW=(J)=>{return(Y,Z)=>{let $=J.get(Y)??Y;if($ instanceof U5){if(Z instanceof A6&&$.i18n instanceof f0)Z.previousMessage=$.i18n;$.i18n=Z}return Z}};class _8{keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(J=!1,Y=!1,Z=!0,$=!Z){this.keepI18nAttrs=J,this.enableI18nLegacyMessageIdFormat=Y,this.preserveSignificantWhitespace=Z,this.retainEmptyTokens=$}_generateI18nMessage(J,Y="",Z){let{meaning:$,description:G,customId:z}=this._parseMetadata(Y),Q=vW(this.retainEmptyTokens,this.preserveSignificantWhitespace)(J,$,G,z,Z);return this._setMessageId(Q,Y),this._setLegacyIds(Q,Y),Q}visitAllWithErrors(J){let Y=J.map((Z)=>Z.visit(this,null));return new t8(Y,this._errors)}visitElement(J){return this._visitElementLike(J),J}visitComponent(J,Y){return this._visitElementLike(J),J}visitExpansion(J,Y){let Z,$=J.i18n;if(this.hasI18nMeta=!0,$ instanceof A6){let G=$.name;Z=this._generateI18nMessage([J],$);let z=uZ(Z);if(z.name=G,Y!==null)Y.placeholderToMessage[G]=Z}else Z=this._generateI18nMessage([J],Y||$);return J.i18n=Z,J}visitText(J){return J}visitAttribute(J){return J}visitComment(J){return J}visitExpansionCase(J){return J}visitBlock(J,Y){return e(this,J.children,Y),J}visitBlockParameter(J,Y){return J}visitLetDeclaration(J,Y){return J}visitDirective(J,Y){return J}_visitElementLike(J){let Y=void 0;if(ZH(J)){this.hasI18nMeta=!0;let Z=[],$={};for(let G of J.attrs)if(G.name===gZ){let z=J.i18n||G.value,H=new Map,Q=this.preserveSignificantWhitespace?J.children:E1(new JJ(!1,H),J.children);if(Y=this._generateI18nMessage(Q,z,lW(H)),Y.nodes.length===0)Y=void 0;J.i18n=Y}else if(G.name.startsWith(e3)){let z=G.name.slice(e3.length),H;if(J instanceof x0)H=J.tagName===null?!1:jY(J.tagName,z);else H=jY(J.name,z);if(H)this._reportError(G,`Translating attribute '${z}' is disallowed for security reasons.`);else $[z]=G.value}else Z.push(G);if(Object.keys($).length)for(let G of Z){let z=$[G.name];if(z!==void 0&&G.value)G.i18n=this._generateI18nMessage([G],G.i18n||z)}if(!this.keepI18nAttrs)J.attrs=Z}e(this,J.children,Y)}_parseMetadata(J){return typeof J==="string"?pW(J):J instanceof f0?J:{}}_setMessageId(J,Y){if(!J.id)J.id=Y instanceof f0&&Y.id||Gz(J)}_setLegacyIds(J,Y){if(this.enableI18nLegacyMessageIdFormat)J.legacyIds=[$z(J),FZ(J)];else if(typeof Y!=="string"){let Z=Y instanceof f0?Y:Y instanceof A6?Y.previousMessage:void 0;J.legacyIds=Z?Z.legacyIds:[]}}_reportError(J,Y){this._errors.push(new M(J.sourceSpan,Y))}}var cW="|",dW="@@";function pW(J=""){let Y,Z,$;if(J=J.trim(),J){let G=J.indexOf(dW),z=J.indexOf(cW),H;[H,Y]=G>-1?[J.slice(0,G),J.slice(G+2)]:[J,""],[Z,$]=z>-1?[H.slice(0,z),H.slice(z+1)]:["",H]}return{customId:Y,meaning:Z,description:$}}function iW(J){let Y=[];if(J.description)Y.push({tagName:"desc",text:J.description});else Y.push({tagName:"suppress",text:"{msgDescriptions}"});if(J.meaning)Y.push({tagName:"meaning",text:J.meaning});return wz(Y)}var sW="goog.getMsg";function oW(J,Y,Z,$){let G=rW(Y),z=[q(G)];if(Object.keys($).length)z.push(G8(f8($,!0),!0)),z.push(G8({original_code:Q1(Object.keys($).map((K)=>({key:o6(K),quoted:!0,value:Y.placeholders[K]?q(Y.placeholders[K].sourceSpan.toString()):q(Y.placeholderToMessage[K].nodes.map((_)=>_.sourceSpan.toString()).join(""))})))}));let H=new U0(Z.name,S(sW).callFn(z),q1,D0.Final);H.addLeadingComment(iW(Y));let Q=new I0(J.set(Z));return[H,Q]}class r${formatPh(J){return`{$${o6(J)}}`}visitText(J){return J.value}visitContainer(J){return J.children.map((Y)=>Y.visit(this)).join("")}visitIcu(J){return P$(J)}visitTagPlaceholder(J){return J.isVoid?this.formatPh(J.startName):`${this.formatPh(J.startName)}${J.children.map((Y)=>Y.visit(this)).join("")}${this.formatPh(J.closeName)}`}visitPlaceholder(J){return this.formatPh(J.name)}visitBlockPlaceholder(J){return`${this.formatPh(J.startName)}${J.children.map((Y)=>Y.visit(this)).join("")}${this.formatPh(J.closeName)}`}visitIcuPlaceholder(J,Y){return this.formatPh(J.name)}}var nW=new r$;function rW(J){return J.nodes.map((Y)=>Y.visit(nW,null)).join("")}function aW(J,Y,Z){let{messageParts:$,placeHolders:G}=tW(Y),z=eW(Y),H=G.map((_)=>Z[_.text]),Q=Iz(Y,$,G,H,z),K=J.set(Q);return[new I0(K)]}class a${placeholderToMessage;pieces;constructor(J,Y){this.placeholderToMessage=J,this.pieces=Y}visitText(J){if(this.pieces[this.pieces.length-1]instanceof W4)this.pieces[this.pieces.length-1].text+=J.value;else{let Y=new h(J.sourceSpan.fullStart,J.sourceSpan.end,J.sourceSpan.fullStart,J.sourceSpan.details);this.pieces.push(new W4(J.value,Y))}}visitContainer(J){J.children.forEach((Y)=>Y.visit(this))}visitIcu(J){this.pieces.push(new W4(P$(J),J.sourceSpan))}visitTagPlaceholder(J){if(this.pieces.push(this.createPlaceholderPiece(J.startName,J.startSourceSpan??J.sourceSpan)),!J.isVoid)J.children.forEach((Y)=>Y.visit(this)),this.pieces.push(this.createPlaceholderPiece(J.closeName,J.endSourceSpan??J.sourceSpan))}visitPlaceholder(J){this.pieces.push(this.createPlaceholderPiece(J.name,J.sourceSpan))}visitBlockPlaceholder(J){this.pieces.push(this.createPlaceholderPiece(J.startName,J.startSourceSpan??J.sourceSpan)),J.children.forEach((Y)=>Y.visit(this)),this.pieces.push(this.createPlaceholderPiece(J.closeName,J.endSourceSpan??J.sourceSpan))}visitIcuPlaceholder(J){this.pieces.push(this.createPlaceholderPiece(J.name,J.sourceSpan,this.placeholderToMessage[J.name]))}createPlaceholderPiece(J,Y,Z){return new G6(o6(J,!1),Y,Z)}}function tW(J){let Y=[],Z=new a$(J.placeholderToMessage,Y);return J.nodes.forEach(($)=>$.visit(Z)),JK(Y)}function eW(J){let Y=J.nodes[0],Z=J.nodes[J.nodes.length-1];return new h(Y.sourceSpan.fullStart,Z.sourceSpan.end,Y.sourceSpan.fullStart,Y.sourceSpan.details)}function JK(J){let Y=[],Z=[];if(J[0]instanceof G6)Y.push(M3(J[0].sourceSpan.start));for(let $=0;$<J.length;$++){let G=J[$];if(G instanceof W4)Y.push(G);else if(Z.push(G),J[$-1]instanceof G6)Y.push(M3(J[$-1].sourceSpan.end))}if(J[J.length-1]instanceof G6)Y.push(M3(J[J.length-1].sourceSpan.end));return{messageParts:Y,placeHolders:Z}}function M3(J){return new W4("",new h(J,J))}var CY="ngI18nClosureMode",YK="i18n_",ZK="I18N_EXP_",TY="�",$K="MSG_";function BY(J){return`${$K}${J}`.toUpperCase()}function GK(J){return new U0(J.name,void 0,q1,void 0,J.sourceSpan)}function zK(J){let Y=J.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",Z=new Map,$=new Map,G=new Map,z=new Map;for(let K of J.units)for(let _ of K.ops())if(_.kind===W.ExtractedAttribute&&_.i18nContext!==null){let X=Z.get(_.i18nContext)??[];X.push(_),Z.set(_.i18nContext,X)}else if(_.kind===W.I18nAttributes)$.set(_.target,_);else if(_.kind===W.I18nExpression&&_.usage===b5.I18nAttribute){let X=G.get(_.target)??[];X.push(_),G.set(_.target,X)}else if(_.kind===W.I18nMessage)z.set(_.xref,_);let H=new Map,Q=new Map;for(let K of J.units)for(let _ of K.create)if(_.kind===W.I18nMessage){if(_.messagePlaceholder===null){let{mainVar:X,statements:L}=t$(J,Y,z,_);if(_.i18nBlock!==null){let F=J.addConst(X,L);Q.set(_.i18nBlock,F)}else{J.constsInitializers.push(...L),H.set(_.i18nContext,X);let F=Z.get(_.i18nContext);if(F!==void 0)for(let D of F)D.expression=X.clone()}}V.remove(_)}for(let K of J.units)for(let _ of K.create)if(X5(_)){let X=$.get(_.xref);if(X===void 0)continue;let L=G.get(_.xref);if(L===void 0)throw Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let F=new Set;L=L.filter((w)=>{let T=F.has(w.name);return F.add(w.name),!T});let D=L.flatMap((w)=>{let T=H.get(w.context);if(T===void 0)throw Error("AssertionError: Could not find i18n expression's value");return[q(w.name),T]});X.i18nAttributesConfig=J.addConst(new D1(D))}for(let K of J.units)for(let _ of K.create)if(_.kind===W.I18nStart){let X=Q.get(_.root);if(X===void 0)throw Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");_.messageIndex=X}}function t$(J,Y,Z,$){let G=[],z=new Map;for(let _ of $.subMessages){let X=Z.get(_),{mainVar:L,statements:F}=t$(J,Y,Z,X);G.push(...F);let D=z.get(X.messagePlaceholder)??[];D.push(L),z.set(X.messagePlaceholder,D)}HK($,z),$.params=new Map([...$.params.entries()].sort());let H=S(J.pool.uniqueName(YK)),Q=WK(J.pool,$.message.id,Y,J.i18nUseExternalIds),K=void 0;if($.needsPostprocessing||$.postprocessingParams.size>0){let _=Object.fromEntries([...$.postprocessingParams.entries()].sort()),X=f8(_,!1),L=[];if($.postprocessingParams.size>0)L.push(G8(X,!0));K=(F)=>O(R.i18nPostprocess).callFn([F,...L])}return G.push(...QK($.message,H,Q,$.params,K)),{mainVar:H,statements:G}}function HK(J,Y){for(let[Z,$]of Y)if($.length===1)J.params.set(Z,$[0]);else J.params.set(Z,q(`${TY}${ZK}${Z}${TY}`)),J.postprocessingParams.set(Z,o($))}function QK(J,Y,Z,$,G){let z=Object.fromEntries($),H=[GK(Y),s7(_K(),oW(Y,J,Z,z),aW(Y,J,f8(z,!1)))];if(G)H.push(new I0(Y.set(G(Y))));return H}function _K(){return u6(S(CY)).notIdentical(q("undefined",V8)).and(S(CY))}function WK(J,Y,Z,$){let G,z=Z;if($){let H=BY("EXTERNAL_"),Q=J.uniqueName(z);G=`${H}${I5(Y)}$$${Q}`}else{let H=BY(z);G=J.uniqueName(H)}return S(G)}function KK(J){for(let Y of J.units){let Z=null,$=null,G=new Map,z=new Map,H=new Map;for(let Q of Y.create)switch(Q.kind){case W.I18nStart:if(Q.context===null)throw Error("I18n op should have its context set.");Z=Q;break;case W.I18nEnd:Z=null;break;case W.IcuStart:if(Q.context===null)throw Error("Icu op should have its context set.");$=Q;break;case W.IcuEnd:$=null;break;case W.Text:if(Z!==null)if(G.set(Q.xref,Z),z.set(Q.xref,$),Q.icuPlaceholder!==null){let K=fQ(J.allocateXrefId(),Q.icuPlaceholder,[Q.initialValue]);V.replace(Q,K),H.set(Q.xref,K)}else V.remove(Q);break}for(let Q of Y.update)switch(Q.kind){case W.InterpolateText:if(!G.has(Q.target))continue;let K=G.get(Q.target),_=z.get(Q.target),X=H.get(Q.target),L=_?_.context:K.context,F=_?C4.Postproccessing:C4.Creation,D=[];for(let w=0;w<Q.interpolation.expressions.length;w++){let T=Q.interpolation.expressions[w];D.push(R$(L,K.xref,K.xref,K.handle,T,X?.xref??null,Q.interpolation.i18nPlaceholders[w]??null,F,b5.I18nText,"",T.sourceSpan??Q.sourceSpan))}if(V.replaceWithMany(Q,D),X!==void 0)X.strings=Q.interpolation.strings;break}}}function XK(J){for(let Y of J.units)for(let Z of Y.create)switch(Z.kind){case W.ElementStart:case W.ConditionalCreate:case W.ConditionalBranchCreate:case W.Template:if(!Array.isArray(Z.localRefs))throw Error("AssertionError: expected localRefs to be an array still");if(Z.numSlotsUsed+=Z.localRefs.length,Z.localRefs.length>0){let $=LK(Z.localRefs);Z.localRefs=J.addConst($)}else Z.localRefs=null;break}}function LK(J){let Y=[];for(let Z of J)Y.push(q(Z.name),q(Z.target));return o(Y)}function RK(J){for(let Y of J.units){let Z=E0.HTML;for(let $ of Y.create){if($.kind!==W.ElementStart)continue;if($.namespace!==Z)V.insertBefore(MQ($.namespace),$),Z=$.namespace}}}function UK(J){let Y=[],Z=0,$=0,G=0,z=0,H=0,Q=null;while(Z<J.length)switch(J.charCodeAt(Z++)){case 40:$++;break;case 41:$--;break;case 39:if(G===0)G=39;else if(G===39&&J.charCodeAt(Z-1)!==92)G=0;break;case 34:if(G===0)G=34;else if(G===34&&J.charCodeAt(Z-1)!==92)G=0;break;case 58:if(!Q&&$===0&&G===0)Q=e$(J.substring(H,Z-1).trim()),z=Z;break;case 59:if(Q&&z>0&&$===0&&G===0){let _=J.substring(z,Z-1).trim();Y.push(Q,_),H=Z,z=0,Q=null}break}if(Q&&z){let K=J.slice(z).trim();Y.push(Q,K)}return Y}function e$(J){return J.replace(/[a-z][A-Z]/g,(Y)=>{return Y.charAt(0)+"-"+Y.charAt(1)}).toLowerCase()}function FK(J){let Y=new Map;for(let Z of J.units)for(let $ of Z.create)if(X5($))Y.set($.xref,$);for(let Z of J.units)for(let $ of Z.create)if($.kind===W.ExtractedAttribute&&$.bindingKind===C.Attribute&&U$($.expression)){let G=Y.get($.target);if(G!==void 0&&(G.kind===W.Template||G.kind===W.ConditionalCreate||G.kind===W.ConditionalBranchCreate)&&G.templateKind===y0.Structural)continue;if($.name==="style"){let z=UK($.expression.value);for(let H=0;H<z.length-1;H+=2)V.insertBefore(Y1($.target,C.StyleProperty,null,z[H],q(z[H+1]),null,null,s.STYLE),$);V.remove($)}else if($.name==="class"){let z=$.expression.value.trim().split(/\s+/g);for(let H of z)V.insertBefore(Y1($.target,C.ClassName,null,H,null,null,null,s.NONE),$);V.remove($)}}}function qK(J){$6(J.root,J.componentName,{index:0})}function $6(J,Y,Z){if(J.fnName===null)J.fnName=J.job.pool.uniqueName(I5(`${Y}_${J.job.fnSuffix}`),!1);let $=new Map;for(let G of J.ops())switch(G.kind){case W.Property:case W.DomProperty:if(G.bindingKind===C.LegacyAnimation)G.name="@"+G.name;break;case W.Animation:if(G.handlerFnName===null){let _=G.name.replace(".","");G.handlerFnName=`${J.fnName}_${_}_cb`,G.handlerFnName=I5(G.handlerFnName)}break;case W.AnimationListener:if(G.handlerFnName!==null)break;if(!G.hostListener&&G.targetSlot.slot===null)throw Error("Expected a slot to be assigned");let z=G.name.replace(".","");if(G.hostListener)G.handlerFnName=`${Y}_${z}_HostBindingHandler`;else G.handlerFnName=`${J.fnName}_${G.tag.replace("-","_")}_${z}_${G.targetSlot.slot}_listener`;G.handlerFnName=I5(G.handlerFnName);break;case W.Listener:if(G.handlerFnName!==null)break;if(!G.hostListener&&G.targetSlot.slot===null)throw Error("Expected a slot to be assigned");let H="";if(G.isLegacyAnimationListener)G.name=`@${G.name}.${G.legacyAnimationPhase}`,H="animation";if(G.hostListener)G.handlerFnName=`${Y}_${H}${G.name}_HostBindingHandler`;else G.handlerFnName=`${J.fnName}_${G.tag.replace("-","_")}_${H}${G.name}_${G.targetSlot.slot}_listener`;G.handlerFnName=I5(G.handlerFnName);break;case W.TwoWayListener:if(G.handlerFnName!==null)break;if(G.targetSlot.slot===null)throw Error("Expected a slot to be assigned");G.handlerFnName=I5(`${J.fnName}_${G.tag.replace("-","_")}_${G.name}_${G.targetSlot.slot}_listener`);break;case W.Variable:$.set(G.xref,VK(G.variable,Z));break;case W.RepeaterCreate:if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");if(G.handle.slot===null)throw Error("Expected slot to be assigned");if(G.emptyView!==null){let _=J.job.views.get(G.emptyView);$6(_,`${Y}_${G.functionNameSuffix}Empty_${G.handle.slot+2}`,Z)}$6(J.job.views.get(G.xref),`${Y}_${G.functionNameSuffix}_${G.handle.slot+1}`,Z);break;case W.Projection:if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");if(G.handle.slot===null)throw Error("Expected slot to be assigned");if(G.fallbackView!==null){let _=J.job.views.get(G.fallbackView);$6(_,`${Y}_ProjectionFallback_${G.handle.slot}`,Z)}break;case W.ConditionalCreate:case W.ConditionalBranchCreate:case W.Template:if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");let Q=J.job.views.get(G.xref);if(G.handle.slot===null)throw Error("Expected slot to be assigned");let K=G.functionNameSuffix.length===0?"":`_${G.functionNameSuffix}`;$6(Q,`${Y}${K}_${G.handle.slot}`,Z);break;case W.StyleProp:G.name=OY(DK(G.name));break;case W.ClassProp:G.name=OY(G.name);break}for(let G of J.ops())G0(G,(z)=>{if(!(z instanceof B1)||z.name!==null)return;if(!$.has(z.xref))throw Error(`Variable ${z.xref} not yet named`);z.name=$.get(z.xref)})}function VK(J,Y){if(J.name===null)switch(J.kind){case R0.Context:J.name=`ctx_r${Y.index++}`;break;case R0.Identifier:let Z=J.identifier===n0?"i":"";J.name=`${J.identifier}_${Z}r${++Y.index}`;break;default:J.name=`_r${++Y.index}`;break}return J.name}function DK(J){return J.startsWith("--")?J:e$(J)}function OY(J){let Y=J.indexOf("!important");if(Y>-1)return J.substring(0,Y);return J}function wK(J){for(let Y of J.units){for(let Z of Y.functions)P3(Z.ops);for(let Z of Y.create)if(Z.kind===W.Listener||Z.kind===W.Animation||Z.kind===W.AnimationListener||Z.kind===W.TwoWayListener)P3(Z.handlerOps);P3(Y.update)}}function P3(J){for(let Y of J){if(Y.kind!==W.Statement||!(Y.statement instanceof I0)||!(Y.statement.expr instanceof M6))continue;let Z=Y.statement.expr.steps,$=!0;for(let G=Y.next;G.kind!==W.ListEnd&&$;G=G.next)G0(G,(z,H)=>{if(!y1(z))return z;if(!$)return;if(H&v.InChildOperation)return;switch(z.kind){case N.NextContext:z.steps+=Z,V.remove(Y),$=!1;break;case N.GetCurrentView:case N.Reference:case N.ContextLetReference:$=!1;break}return})}}var EK="ng-container";function AK(J){for(let Y of J.units){let Z=new Set;for(let $ of Y.create){if($.kind===W.ElementStart&&$.tag===EK)$.kind=W.ContainerStart,Z.add($.xref);if($.kind===W.ElementEnd&&Z.has($.xref))$.kind=W.ContainerEnd}}}function IK(J,Y){let Z=J.get(Y);if(Z===void 0)throw Error("All attributes should have an element-like target.");return Z}function jK(J){let Y=new Map;for(let Z of J.units)for(let $ of Z.create){if(!X5($))continue;Y.set($.xref,$)}for(let Z of J.units)for(let $ of Z.create){if(($.kind===W.ElementStart||$.kind===W.ContainerStart)&&$.nonBindable)V.insertAfter(CQ($.xref),$);if(($.kind===W.ElementEnd||$.kind===W.ContainerEnd)&&IK(Y,$.xref).nonBindable)V.insertBefore(TQ($.xref),$)}}function C1(J){return(Y)=>Y.kind===J}function W6(J,Y){return(Z)=>{return Z.kind===J&&Y===Z.expression instanceof Z0}}function CK(J){return J.kind===W.Listener&&!(J.hostListener&&J.isLegacyAnimationListener)||J.kind===W.TwoWayListener||J.kind===W.Animation||J.kind===W.AnimationListener}function TK(J){return(J.kind===W.Property||J.kind===W.TwoWayProperty)&&!(J.expression instanceof Z0)}var BK=[{test:(J)=>J.kind===W.Listener&&J.hostListener&&J.isLegacyAnimationListener},{test:CK}],OK=[{test:C1(W.StyleMap),transform:b7},{test:C1(W.ClassMap),transform:b7},{test:C1(W.StyleProp)},{test:C1(W.ClassProp)},{test:W6(W.Attribute,!0)},{test:W6(W.Property,!0)},{test:TK},{test:W6(W.Attribute,!1)},{test:C1(W.Control)}],NK=[{test:W6(W.DomProperty,!0)},{test:W6(W.DomProperty,!1)},{test:C1(W.Attribute)},{test:C1(W.StyleMap),transform:b7},{test:C1(W.ClassMap),transform:b7},{test:C1(W.StyleProp)},{test:C1(W.ClassProp)}],NY=new Set([W.Listener,W.TwoWayListener,W.AnimationListener,W.StyleMap,W.ClassMap,W.StyleProp,W.ClassProp,W.Property,W.TwoWayProperty,W.DomProperty,W.Attribute,W.Animation,W.Control]);function MK(J){for(let Y of J.units){MY(Y.create,BK);let Z=Y.job.kind===A.Host?NK:OK;MY(Y.update,Z)}}function MY(J,Y){let Z=[],$=null;for(let G of J){let z=O6(G)?G.target:null;if(!NY.has(G.kind)||z!==$&&$!==null&&z!==null)V.insertBefore(PY(Z,Y),G),Z=[],$=null;if(NY.has(G.kind))Z.push(G),V.remove(G),$=z??$}J.push(PY(Z,Y))}function PY(J,Y){let Z=Array.from(Y,()=>[]);for(let $ of J){let G=Y.findIndex((z)=>z.test($));Z[G].push($)}return Z.flatMap(($,G)=>{let z=Y[G].transform;return z?z($):$})}function b7(J){return J.slice(J.length-1)}function PK(J){for(let Y of J.units){let Z=C$(Y);for(let $ of Y.ops())switch($.kind){case W.Binding:let G=hK(Z,$.target);if(yK($.name)&&G.kind===W.Projection)V.remove($);break}}}function yK(J){return J.toLowerCase()==="select"}function hK(J,Y){let Z=J.get(Y);if(Z===void 0)throw Error("All attributes should have an slottable target.");return Z}function kK(J){for(let Y of J.units)xK(Y)}function xK(J){for(let Y of J.update)G0(Y,(Z,$)=>{if(!y1(Z))return;if(Z.kind!==N.PipeBinding)return;if($&v.InChildOperation)throw Error("AssertionError: pipe bindings should not appear in child expressions");if(Y.target==null)throw Error("AssertionError: expected slot handle to be assigned for pipe creation");vK(J,Y.target,Z)})}function vK(J,Y,Z){for(let $=J.create.head.next;$.kind!==W.ListEnd;$=$.next){if(!b4($))continue;if($.xref!==Y)continue;while($.next.kind===W.Pipe)$=$.next;let G=NQ(Z.target,Z.targetSlot,Z.name);V.insertBefore(G,$.next);return}throw Error(`AssertionError: unable to find insertion point for pipe ${Z.name}`)}function SK(J){for(let Y of J.units)for(let Z of Y.update)Y0(Z,($)=>{if(!($ instanceof p5))return $;if($.args.length<=4)return $;return new a6($.target,$.targetSlot,$.name,o($.args),$.args.length)},v.None)}function fK(J){JG(J.root,0)}function JG(J,Y){let Z=null;for(let $ of J.create)switch($.kind){case W.I18nStart:$.subTemplateIndex=Y===0?null:Y,Z=$;break;case W.I18nEnd:if(Z.subTemplateIndex===null)Y=0;Z=null;break;case W.ConditionalCreate:case W.ConditionalBranchCreate:case W.Template:Y=$7(J.job.views.get($.xref),Z,$.i18nPlaceholder,Y);break;case W.RepeaterCreate:let G=J.job.views.get($.xref);if(Y=$7(G,Z,$.i18nPlaceholder,Y),$.emptyView!==null)Y=$7(J.job.views.get($.emptyView),Z,$.emptyI18nPlaceholder,Y);break;case W.Projection:if($.fallbackView!==null)Y=$7(J.job.views.get($.fallbackView),Z,$.fallbackViewI18nPlaceholder,Y);break}return Y}function $7(J,Y,Z,$){if(Z!==void 0){if(Y===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");$++,gK(J,Y)}return JG(J,$)}function gK(J,Y){if(J.create.head.next?.kind!==W.I18nStart){let Z=J.job.allocateXrefId();V.insertAfter(L3(Z,Y.message,Y.root,null),J.create.head),V.insertBefore(R3(Z,null),J.create.tail)}}function bK(J){for(let Y of J.units)for(let Z of Y.ops())G0(Z,($)=>{if(!($ instanceof W5)||$.body===null)return;let G=new YG($.args.length);$.fn=J.pool.getSharedConstant(G,$.body),$.body=null})}class YG extends m6{numArgs;constructor(J){super();this.numArgs=J}keyOf(J){if(J instanceof l1)return`param(${J.index})`;else return super.keyOf(J)}toSharedConstantDeclaration(J,Y){let Z=[];for(let G=0;G<this.numArgs;G++)Z.push(new Q0("a"+G,g0));let $=j(Y,(G)=>{if(!(G instanceof l1))return G;return S("a"+G.index)},v.None);return new U0(J,new l5(Z,$),void 0,D0.Final)}}function uK(J){for(let Y of J.units)for(let Z of Y.update)Y0(Z,($,G)=>{if(G&v.InChildOperation)return $;if($ instanceof D1)return mK($);else if($ instanceof H1)return lK($);return $},v.None)}function mK(J){let Y=[],Z=[];for(let $ of J.entries){if($ instanceof H5){if($.expression.isConstant())Y.push($);else{let G=Z.length;Z.push($.expression),Y.push(new H5(new l1(G)))}continue}if($.isConstant())Y.push($);else{let G=Z.length;Z.push($),Y.push(new l1(G))}}return new W5(o(Y),Z)}function lK(J){let Y=[],Z=[];for(let $ of J.entries){if($ instanceof b1){if($.expression.isConstant())Y.push($);else{let G=Z.length;Z.push($.expression),Y.push(new b1(new l1(G)))}continue}if($.value.isConstant())Y.push($);else{let G=Z.length;Z.push($.value),Y.push(new v4($.key,new l1(G),$.quoted))}}return new W5(new H1(Y),Z)}function cK(J){for(let Y of J.units)for(let Z of Y.ops())Y0(Z,($)=>{if($ instanceof k5&&($.flags===null||!$.flags.includes("g")))return J.pool.getSharedConstant(new ZG,$);return $},v.None)}class ZG extends m6{toSharedConstantDeclaration(J,Y){return new U0(J,Y,void 0,D0.Final)}}function dK(J,Y,Z,$,G){return F5(R.element,J,Y,Z,$,G)}function pK(J,Y,Z,$,G){return F5(R.elementStart,J,Y,Z,$,G)}function F5(J,Y,Z,$,G,z){let H=[q(Y)];if(Z!==null)H.push(q(Z));if(G!==null)H.push(q($),q(G));else if($!==null)H.push(q($));return k(J,H,z)}function $G(J,Y,Z,$,G,z,H,Q,K){let _=[q(Y),Z,q($),q(G),q(z),q(H)];if(Q!==null)_.push(q(Q)),_.push(O(R.templateRefExtractor));while(_[_.length-1].isEquivalent(w4))_.pop();return k(J,_,K)}function ZJ(J,Y,Z,$,G){let z=[q(Y)];if(Z instanceof Z0)z.push(m4(Z,G));else z.push(Z);if($!==null)z.push($);return k(J,z,G)}function iK(J){return k(R.elementEnd,[],J)}function sK(J,Y,Z,$){return F5(R.elementContainerStart,J,null,Y,Z,$)}function oK(J,Y,Z,$){return F5(R.elementContainer,J,null,Y,Z,$)}function nK(){return k(R.elementContainerEnd,[],null)}function rK(J,Y,Z,$,G,z,H,Q){return $G(R.templateCreate,J,Y,Z,$,G,z,H,Q)}function aK(){return k(R.disableBindings,[],null)}function tK(){return k(R.enableBindings,[],null)}function eK(J,Y,Z,$,G){let z=[q(J),Y];if(Z!==null)z.push(O(Z));return k($?R.syntheticHostListener:R.listener,z,G)}function yY(J,Y){return O(R.twoWayBindingSet).callFn([J,Y])}function JX(J,Y,Z){return k(R.twoWayListener,[q(J),Y],Z)}function YX(J,Y){return k(R.pipe,[q(J),q(Y)],null)}function ZX(){return k(R.namespaceHTML,[],null)}function $X(){return k(R.namespaceSVG,[],null)}function GX(){return k(R.namespaceMathML,[],null)}function zX(J,Y){return k(R.advance,J>1?[q(J)]:[],Y)}function HX(J){return O(R.reference).callFn([q(J)])}function QX(J){return O(R.nextContext).callFn(J===1?[]:[q(J)])}function _X(){return O(R.getCurrentView).callFn([])}function WX(J){return O(R.restoreView).callFn([J])}function KX(J){return O(R.resetView).callFn([J])}function XX(J,Y,Z){let $=[q(J,null)];if(Y!=="")$.push(q(Y));return k(R.text,$,Z)}function LX(J,Y,Z,$,G,z,H,Q,K,_,X){let L=[q(J),q(Y),Z??q(null),q($),q(G),q(z),H??q(null),Q??q(null),K?O(R.deferEnableTimerScheduling):q(null),q(X)],F;while((F=L[L.length-1])!==null&&F instanceof w0&&F.value===null)L.pop();return k(R.defer,L,_)}var RX=new Map([[i.Idle,{["none"]:R.deferOnIdle,["prefetch"]:R.deferPrefetchOnIdle,["hydrate"]:R.deferHydrateOnIdle}],[i.Immediate,{["none"]:R.deferOnImmediate,["prefetch"]:R.deferPrefetchOnImmediate,["hydrate"]:R.deferHydrateOnImmediate}],[i.Timer,{["none"]:R.deferOnTimer,["prefetch"]:R.deferPrefetchOnTimer,["hydrate"]:R.deferHydrateOnTimer}],[i.Hover,{["none"]:R.deferOnHover,["prefetch"]:R.deferPrefetchOnHover,["hydrate"]:R.deferHydrateOnHover}],[i.Interaction,{["none"]:R.deferOnInteraction,["prefetch"]:R.deferPrefetchOnInteraction,["hydrate"]:R.deferHydrateOnInteraction}],[i.Viewport,{["none"]:R.deferOnViewport,["prefetch"]:R.deferPrefetchOnViewport,["hydrate"]:R.deferHydrateOnViewport}],[i.Never,{["none"]:R.deferHydrateNever,["prefetch"]:R.deferHydrateNever,["hydrate"]:R.deferHydrateNever}]]);function UX(J,Y,Z,$){let G=RX.get(J)?.[Z];if(G===void 0)throw Error(`Unable to determine instruction for trigger ${J}`);return k(G,Y,$)}function FX(J){return k(R.projectionDef,J?[J]:[],null)}function qX(J,Y,Z,$,G,z,H){let Q=[q(J)];if(Y!==0||Z!==null||$!==null){if(Q.push(q(Y)),Z!==null)Q.push(Z);if($!==null){if(Z===null)Q.push(q(null));Q.push(S($),q(G),q(z))}}return k(R.projection,Q,H)}function VX(J,Y,Z,$){let G=[q(J),q(Y)];if(Z!==null)G.push(q(Z));return k(R.i18nStart,G,$)}function DX(J,Y,Z,$,G,z,H,Q){let K=[q(J),Y,q(Z),q($),q(G),q(z)];if(H!==null)K.push(q(H)),K.push(O(R.templateRefExtractor));while(K[K.length-1].isEquivalent(w4))K.pop();return k(R.conditionalCreate,K,Q)}function wX(J,Y,Z,$,G,z,H,Q){let K=[q(J),Y,q(Z),q($),q(G),q(z)];if(H!==null)K.push(q(H)),K.push(O(R.templateRefExtractor));while(K[K.length-1].isEquivalent(w4))K.pop();return k(R.conditionalBranchCreate,K,Q)}function EX(J,Y,Z,$,G,z,H,Q,K,_,X,L,F,D){let w=[q(J),S(Y),q(Z),q($),q(G),q(z),H];if(Q||K!==null){if(w.push(q(Q)),K!==null){if(w.push(S(K),q(_),q(X)),L!==null||F!==null)w.push(q(L));if(F!==null)w.push(q(F))}}return k(R.repeaterCreate,w,D)}function AX(J,Y){return k(R.repeater,[J],Y)}function IX(J,Y,Z){if(J==="prefetch")return k(R.deferPrefetchWhen,[Y],Z);else if(J==="hydrate")return k(R.deferHydrateWhen,[Y],Z);return k(R.deferWhen,[Y],Z)}function jX(J,Y){return k(R.declareLet,[q(J)],Y)}function CX(J,Y){return O(R.storeLet).callFn([J],Y)}function TX(J){return O(R.readContextLet).callFn([q(J)])}function BX(J,Y,Z,$){let G=[q(J),q(Y)];if(Z)G.push(q(Z));return k(R.i18n,G,$)}function OX(J){return k(R.i18nEnd,[],J)}function NX(J,Y){let Z=[q(J),q(Y)];return k(R.i18nAttributes,Z,null)}function MX(J,Y,Z){return ZJ(R.ariaProperty,J,Y,null,Z)}function PX(J,Y,Z,$){return ZJ(R.property,J,Y,Z,$)}function yX(J){return k(R.control,[],J)}function hX(J){return k(R.controlCreate,[],J)}function kX(J,Y,Z,$){let G=[q(J),Y];if(Z!==null)G.push(Z);return k(R.twoWayProperty,G,$)}function xX(J,Y,Z,$,G){let z=[q(J)];if(Y instanceof Z0)z.push(m4(Y,G));else z.push(Y);if(Z!==null||$!==null)z.push(Z??q(null));if($!==null)z.push(q($));return k(R.attribute,z,null)}function vX(J,Y,Z,$){let G=[q(J)];if(Y instanceof Z0)G.push(m4(Y,$));else G.push(Y);if(Z!==null)G.push(q(Z));return k(R.styleProp,G,$)}function SX(J,Y,Z){return k(R.classProp,[q(J),Y],Z)}function fX(J,Y){let Z=J instanceof Z0?m4(J,Y):J;return k(R.styleMap,[Z],Y)}function gX(J,Y){let Z=J instanceof Z0?m4(J,Y):J;return k(R.classMap,[Z],Y)}function bX(J,Y,Z,$,G){return F5(R.domElement,J,Y,Z,$,G)}function uX(J,Y,Z,$,G){return F5(R.domElementStart,J,Y,Z,$,G)}function mX(J){return k(R.domElementEnd,[],J)}function lX(J,Y,Z,$){return F5(R.domElementContainerStart,J,null,Y,Z,$)}function cX(J,Y,Z,$){return F5(R.domElementContainer,J,null,Y,Z,$)}function dX(){return k(R.domElementContainerEnd,[],null)}function pX(J,Y,Z,$){let G=[q(J),Y];if(Z!==null)G.push(O(Z));return k(R.domListener,G,$)}function iX(J,Y,Z,$,G,z,H,Q){return $G(R.domTemplate,J,Y,Z,$,G,z,H,Q)}var hY=[R.pipeBind1,R.pipeBind2,R.pipeBind3,R.pipeBind4];function sX(J,Y,Z){if(Z.length<1||Z.length>hY.length)throw Error("pipeBind() argument count out of bounds");let $=hY[Z.length-1];return O($).callFn([q(J),q(Y),...Z])}function oX(J,Y,Z){return O(R.pipeBindV).callFn([q(J),q(Y),Z])}function nX(J,Y,Z){let $=GG(J,Y);return KL(QL,[],$,Z)}function rX(J,Y){return k(R.i18nExp,[J],Y)}function aX(J,Y){return k(R.i18nApply,[q(J)],Y)}function tX(J,Y,Z,$){return ZJ(R.domProperty,J,Y,Z,$)}function eX(J,Y,Z,$){let G=[Y];if(Z!==null)G.push(Z);let z=J==="enter"?R.animationEnter:R.animationLeave;return k(z,G,$)}function JL(J,Y,Z,$){let z=[Y instanceof Z0?m4(Y,$):Y];if(Z!==null)z.push(Z);let H=J==="enter"?R.animationEnter:R.animationLeave;return k(H,z,$)}function YL(J,Y,Z,$){let G=[Y],z=J==="enter"?R.animationEnterListener:R.animationLeaveListener;return k(z,G,$)}function ZL(J,Y,Z){return k(R.syntheticHostProperty,[q(J),Y],Z)}function $L(J,Y,Z){return $J(WL,[q(J),Y],Z,null)}function GL(J,Y){return k(R.attachSourceLocations,[q(J),Y],null)}function zL(J,Y,Z){return O(R.arrowFunction).callFn([q(J),Y,Z])}function GG(J,Y){if(J.length<1||Y.length!==J.length-1)throw Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let Z=[];if(Y.length===1&&J[0]===""&&J[1]==="")Z.push(Y[0]);else{let $;for($=0;$<Y.length;$++)Z.push(q(J[$]),Y[$]);Z.push(q(J[$]))}return Z}function m4(J,Y){let Z=GG(J.strings,J.expressions);return $J(_L,[],Z,Y)}function k(J,Y,Z){let $=O(J).callFn(Y,Z);return r0(new I0($,Z))}function HL(J,Y,Z){let $=[J];if(Y!==null)$.push(Y);return k(R.conditional,$,Z)}var QL={constant:[R.textInterpolate,R.textInterpolate1,R.textInterpolate2,R.textInterpolate3,R.textInterpolate4,R.textInterpolate5,R.textInterpolate6,R.textInterpolate7,R.textInterpolate8],variable:R.textInterpolateV,mapping:(J)=>{if(J%2===0)throw Error("Expected odd number of arguments");return(J-1)/2}},_L={constant:[R.interpolate,R.interpolate1,R.interpolate2,R.interpolate3,R.interpolate4,R.interpolate5,R.interpolate6,R.interpolate7,R.interpolate8],variable:R.interpolateV,mapping:(J)=>{if(J%2===0)throw Error("Expected odd number of arguments");return(J-1)/2}},WL={constant:[R.pureFunction0,R.pureFunction1,R.pureFunction2,R.pureFunction3,R.pureFunction4,R.pureFunction5,R.pureFunction6,R.pureFunction7,R.pureFunction8],variable:R.pureFunctionV,mapping:(J)=>J};function $J(J,Y,Z,$){let G=J.mapping(Z.length),z=Z.at(-1);if(Z.length>1&&z instanceof w0&&z.value==="")Z.pop();if(G<J.constant.length)return O(J.constant[G]).callFn([...Y,...Z],$);else if(J.variable!==null)return O(J.variable).callFn([...Y,o(Z)],$);else throw Error("AssertionError: unable to call variadic function")}function KL(J,Y,Z,$){return r0($J(J,Y,Z,$).toStmt())}var XL=new Map([["window",R.resolveWindow],["document",R.resolveDocument],["body",R.resolveBody]]),LL=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function RL(J){for(let Y of J.units)UL(Y,Y.create),D3(Y,Y.update)}function UL(J,Y){for(let Z of Y)switch(Y0(Z,($)=>zG(J,$),v.None),Z.kind){case W.Text:V.replace(Z,XX(Z.handle.slot,Z.initialValue,Z.sourceSpan));break;case W.ElementStart:V.replace(Z,J.job.mode===N0.DomOnly?uX(Z.handle.slot,Z.tag,Z.attributes,Z.localRefs,Z.startSourceSpan):pK(Z.handle.slot,Z.tag,Z.attributes,Z.localRefs,Z.startSourceSpan));break;case W.Element:V.replace(Z,J.job.mode===N0.DomOnly?bX(Z.handle.slot,Z.tag,Z.attributes,Z.localRefs,Z.wholeSourceSpan):dK(Z.handle.slot,Z.tag,Z.attributes,Z.localRefs,Z.wholeSourceSpan));break;case W.ElementEnd:V.replace(Z,J.job.mode===N0.DomOnly?mX(Z.sourceSpan):iK(Z.sourceSpan));break;case W.ContainerStart:V.replace(Z,J.job.mode===N0.DomOnly?lX(Z.handle.slot,Z.attributes,Z.localRefs,Z.startSourceSpan):sK(Z.handle.slot,Z.attributes,Z.localRefs,Z.startSourceSpan));break;case W.Container:V.replace(Z,J.job.mode===N0.DomOnly?cX(Z.handle.slot,Z.attributes,Z.localRefs,Z.wholeSourceSpan):oK(Z.handle.slot,Z.attributes,Z.localRefs,Z.wholeSourceSpan));break;case W.ContainerEnd:V.replace(Z,J.job.mode===N0.DomOnly?dX():nK());break;case W.I18nStart:V.replace(Z,VX(Z.handle.slot,Z.messageIndex,Z.subTemplateIndex,Z.sourceSpan));break;case W.I18nEnd:V.replace(Z,OX(Z.sourceSpan));break;case W.I18n:V.replace(Z,BX(Z.handle.slot,Z.messageIndex,Z.subTemplateIndex,Z.sourceSpan));break;case W.I18nAttributes:if(Z.i18nAttributesConfig===null)throw Error("AssertionError: i18nAttributesConfig was not set");V.replace(Z,NX(Z.handle.slot,Z.i18nAttributesConfig));break;case W.Template:if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");if(Array.isArray(Z.localRefs))throw Error("AssertionError: local refs array should have been extracted into a constant");let $=J.job.views.get(Z.xref);V.replace(Z,Z.templateKind===y0.Block||J.job.mode===N0.DomOnly?iX(Z.handle.slot,S($.fnName),$.decls,$.vars,Z.tag,Z.attributes,Z.localRefs,Z.startSourceSpan):rK(Z.handle.slot,S($.fnName),$.decls,$.vars,Z.tag,Z.attributes,Z.localRefs,Z.startSourceSpan));break;case W.DisableBindings:V.replace(Z,aK());break;case W.EnableBindings:V.replace(Z,tK());break;case W.Pipe:V.replace(Z,YX(Z.handle.slot,Z.name));break;case W.DeclareLet:V.replace(Z,jX(Z.handle.slot,Z.sourceSpan));break;case W.AnimationString:V.replace(Z,JL(Z.animationKind,Z.expression,Z.sanitizer,Z.sourceSpan));break;case W.Animation:let G=G7(J,Z.handlerFnName,Z.handlerOps,!1);V.replace(Z,eX(Z.animationKind,G,Z.sanitizer,Z.sourceSpan));break;case W.AnimationListener:let z=G7(J,Z.handlerFnName,Z.handlerOps,Z.consumesDollarEvent);V.replace(Z,YL(Z.animationKind,z,null,Z.sourceSpan));break;case W.Listener:let H=G7(J,Z.handlerFnName,Z.handlerOps,Z.consumesDollarEvent),Q=Z.eventTarget?XL.get(Z.eventTarget):null;if(Q===void 0)throw Error(`Unexpected global target '${Z.eventTarget}' defined for '${Z.name}' event. Supported list of global targets: window,document,body.`);V.replace(Z,J.job.mode===N0.DomOnly&&!Z.hostListener&&!Z.isLegacyAnimationListener?pX(Z.name,H,Q,Z.sourceSpan):eK(Z.name,H,Q,Z.hostListener&&Z.isLegacyAnimationListener,Z.sourceSpan));break;case W.TwoWayListener:V.replace(Z,JX(Z.name,G7(J,Z.handlerFnName,Z.handlerOps,!0),Z.sourceSpan));break;case W.Variable:if(Z.variable.name===null)throw Error(`AssertionError: unnamed variable ${Z.xref}`);V.replace(Z,r0(new U0(Z.variable.name,Z.initializer,void 0,D0.Final)));break;case W.Namespace:switch(Z.active){case E0.HTML:V.replace(Z,ZX());break;case E0.SVG:V.replace(Z,$X());break;case E0.Math:V.replace(Z,GX());break}break;case W.Defer:let K=!!Z.loadingMinimumTime||!!Z.loadingAfterTime||!!Z.placeholderMinimumTime;V.replace(Z,LX(Z.handle.slot,Z.mainSlot.slot,Z.resolverFn,Z.loadingSlot?.slot??null,Z.placeholderSlot?.slot??null,Z.errorSlot?.slot??null,Z.loadingConfig,Z.placeholderConfig,K,Z.sourceSpan,Z.flags));break;case W.DeferOn:let _=[];switch(Z.trigger.kind){case i.Never:case i.Idle:case i.Immediate:break;case i.Timer:_=[q(Z.trigger.delay)];break;case i.Viewport:if(Z.modifier==="hydrate")_=Z.trigger.options?[Z.trigger.options]:[];else{if(_=[q(Z.trigger.targetSlot?.slot??null)],Z.trigger.targetSlotViewSteps!==0)_.push(q(Z.trigger.targetSlotViewSteps));else if(Z.trigger.options)_.push(q(null));if(Z.trigger.options)_.push(Z.trigger.options)}break;case i.Interaction:case i.Hover:if(Z.modifier==="hydrate")_=[];else if(_=[q(Z.trigger.targetSlot?.slot??null)],Z.trigger.targetSlotViewSteps!==0)_.push(q(Z.trigger.targetSlotViewSteps));break;default:throw Error(`AssertionError: Unsupported reification of defer trigger kind ${Z.trigger.kind}`)}V.replace(Z,UX(Z.trigger.kind,_,Z.modifier,Z.sourceSpan));break;case W.ProjectionDef:V.replace(Z,FX(Z.def));break;case W.Projection:if(Z.handle.slot===null)throw Error("No slot was assigned for project instruction");let X=null,L=null,F=null;if(Z.fallbackView!==null){if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");let l=J.job.views.get(Z.fallbackView);if(l===void 0)throw Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(l.fnName===null||l.decls===null||l.vars===null)throw Error("AssertionError: expected projection fallback view to have been named and counted");X=l.fnName,L=l.decls,F=l.vars}V.replace(Z,qX(Z.handle.slot,Z.projectionSlotIndex,Z.attributes,X,L,F,Z.sourceSpan));break;case W.ConditionalCreate:if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");if(Array.isArray(Z.localRefs))throw Error("AssertionError: local refs array should have been extracted into a constant");let D=J.job.views.get(Z.xref);V.replace(Z,DX(Z.handle.slot,S(D.fnName),D.decls,D.vars,Z.tag,Z.attributes,Z.localRefs,Z.startSourceSpan));break;case W.ConditionalBranchCreate:if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");if(Array.isArray(Z.localRefs))throw Error("AssertionError: local refs array should have been extracted into a constant");let w=J.job.views.get(Z.xref);V.replace(Z,wX(Z.handle.slot,S(w.fnName),w.decls,w.vars,Z.tag,Z.attributes,Z.localRefs,Z.startSourceSpan));break;case W.RepeaterCreate:if(Z.handle.slot===null)throw Error("No slot was assigned for repeater instruction");if(!(J instanceof U1))throw Error("AssertionError: must be compiling a component");let T=J.job.views.get(Z.xref);if(T.fnName===null)throw Error("AssertionError: expected repeater primary view to have been named");let I=null,B=null,d=null;if(Z.emptyView!==null){let l=J.job.views.get(Z.emptyView);if(l===void 0)throw Error("AssertionError: repeater had empty view xref, but empty view was not found");if(l.fnName===null||l.decls===null||l.vars===null)throw Error("AssertionError: expected repeater empty view to have been named and counted");I=l.fnName,B=l.decls,d=l.vars}V.replace(Z,EX(Z.handle.slot,T.fnName,Z.decls,Z.vars,Z.tag,Z.attributes,VL(J,Z),Z.usesComponentInstance,I,B,d,Z.emptyTag,Z.emptyAttributes,Z.wholeSourceSpan));break;case W.SourceLocation:let t=o(Z.locations.map(({targetSlot:l,offset:l4,line:tG,column:eG})=>{if(l.slot===null)throw Error("No slot was assigned for source location");return o([q(l.slot),q(l4),q(tG),q(eG)])}));V.replace(Z,GL(Z.templatePath,t));break;case W.ControlCreate:V.replace(Z,hX(Z.sourceSpan));break;case W.Statement:break;default:throw Error(`AssertionError: Unsupported reification of create op ${W[Z.kind]}`)}}function D3(J,Y){for(let Z of Y)switch(Y0(Z,($)=>zG(J,$),v.None),Z.kind){case W.Advance:V.replace(Z,zX(Z.delta,Z.sourceSpan));break;case W.Property:V.replace(Z,J.job.mode===N0.DomOnly&&Z.bindingKind!==C.LegacyAnimation&&Z.bindingKind!==C.Animation?kY(Z):FL(Z));break;case W.Control:V.replace(Z,qL(Z));break;case W.TwoWayProperty:V.replace(Z,kX(Z.name,Z.expression,Z.sanitizer,Z.sourceSpan));break;case W.StyleProp:V.replace(Z,vX(Z.name,Z.expression,Z.unit,Z.sourceSpan));break;case W.ClassProp:V.replace(Z,SX(Z.name,Z.expression,Z.sourceSpan));break;case W.StyleMap:V.replace(Z,fX(Z.expression,Z.sourceSpan));break;case W.ClassMap:V.replace(Z,gX(Z.expression,Z.sourceSpan));break;case W.I18nExpression:V.replace(Z,rX(Z.expression,Z.sourceSpan));break;case W.I18nApply:V.replace(Z,aX(Z.handle.slot,Z.sourceSpan));break;case W.InterpolateText:V.replace(Z,nX(Z.interpolation.strings,Z.interpolation.expressions,Z.sourceSpan));break;case W.Attribute:V.replace(Z,xX(Z.name,Z.expression,Z.sanitizer,Z.namespace,Z.sourceSpan));break;case W.DomProperty:if(Z.expression instanceof Z0)throw Error("not yet handled");else if(Z.bindingKind===C.LegacyAnimation||Z.bindingKind===C.Animation)V.replace(Z,ZL(Z.name,Z.expression,Z.sourceSpan));else V.replace(Z,kY(Z));break;case W.Variable:if(Z.variable.name===null)throw Error(`AssertionError: unnamed variable ${Z.xref}`);V.replace(Z,r0(new U0(Z.variable.name,Z.initializer,void 0,D0.Final)));break;case W.Conditional:if(Z.processed===null)throw Error("Conditional test was not set.");V.replace(Z,HL(Z.processed,Z.contextValue,Z.sourceSpan));break;case W.Repeater:V.replace(Z,AX(Z.collection,Z.sourceSpan));break;case W.DeferWhen:V.replace(Z,IX(Z.modifier,Z.expr,Z.sourceSpan));break;case W.StoreLet:throw Error(`AssertionError: unexpected storeLet ${Z.declaredName}`);case W.Statement:break;default:throw Error(`AssertionError: Unsupported reification of update op ${W[Z.kind]}`)}}function kY(J){return tX(LL.get(J.name)??J.name,J.expression,J.sanitizer,J.sourceSpan)}function FL(J){return T$(J.name)?MX(J.name,J.expression,J.sourceSpan):PX(J.name,J.expression,J.sanitizer,J.sourceSpan)}function qL(J){return yX(J.sourceSpan)}function zG(J,Y){if(!y1(Y))return Y;switch(Y.kind){case N.NextContext:return QX(Y.steps);case N.Reference:return HX(Y.targetSlot.slot+1+Y.offset);case N.LexicalRead:throw Error(`AssertionError: unresolved LexicalRead of ${Y.name}`);case N.TwoWayBindingSet:throw Error("AssertionError: unresolved TwoWayBindingSet");case N.RestoreView:if(typeof Y.view==="number")throw Error("AssertionError: unresolved RestoreView");return WX(Y.view);case N.ResetView:return KX(Y.expr);case N.GetCurrentView:return _X();case N.ReadVariable:if(Y.name===null)throw Error(`Read of unnamed variable ${Y.xref}`);return S(Y.name);case N.ReadTemporaryExpr:if(Y.name===null)throw Error(`Read of unnamed temporary ${Y.xref}`);return S(Y.name);case N.AssignTemporaryExpr:if(Y.name===null)throw Error(`Assign of unnamed temporary ${Y.xref}`);return S(Y.name).set(Y.expr);case N.PureFunctionExpr:if(Y.fn===null)throw Error("AssertionError: expected PureFunctions to have been extracted");return $L(Y.varOffset,Y.fn,Y.args);case N.PureFunctionParameterExpr:throw Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case N.PipeBinding:return sX(Y.targetSlot.slot,Y.varOffset,Y.args);case N.PipeBindingVariadic:return oX(Y.targetSlot.slot,Y.varOffset,Y.args);case N.SlotLiteralExpr:return q(Y.slot.slot);case N.ContextLetReference:return TX(Y.targetSlot.slot);case N.StoreLet:return CX(Y.value,Y.sourceSpan);case N.TrackContext:return S("this");case N.ArrowFunction:if(Y.varOffset===null)throw Error("AssertionError: variable offset was not assigned to arrow function");return zL(Y.varOffset,J.job.pool.getSharedFunctionReference(DL(J,Y),"arrowFn"),S(n0));default:throw Error(`AssertionError: Unsupported reification of ir.Expression kind: ${N[Y.kind]}`)}}function G7(J,Y,Z,$){D3(J,Z);let G=[];for(let H of Z){if(H.kind!==W.Statement)throw Error(`AssertionError: expected reified statements, but found op ${W[H.kind]}`);G.push(H.statement)}let z=[];if($)z.push(new Q0("$event",g0));return Q5(z,G,void 0,void 0,Y)}function VL(J,Y){if(Y.trackByFn!==null)return Y.trackByFn;let Z=[new Q0("$index",y5),new Q0("$item",g0)],$;if(Y.trackByOps===null)$=Y.usesComponentInstance?Q5(Z,[new _0(Y.track)]):o0(Z,Y.track);else{D3(J,Y.trackByOps);let G=[];for(let z of Y.trackByOps){if(z.kind!==W.Statement)throw Error(`AssertionError: expected reified statements, but found op ${W[z.kind]}`);G.push(z.statement)}$=Y.usesComponentInstance||G.length!==1||!(G[0]instanceof _0)?Q5(Z,G):o0(Z,G[0].value)}return Y.trackByFn=J.job.pool.getSharedFunctionReference($,"_forTrack"),Y.trackByFn}function DL(J,Y){D3(J,Y.ops);let Z=[];for(let G of Y.ops){if(G.kind!==W.Statement)throw Error(`AssertionError: expected reified statements, but found op ${W[G.kind]}`);Z.push(G.statement)}let $=Z.length===1&&Z[0]instanceof _0?Z[0].value:Z;return o0([new Q0(Y.contextName,g0),new Q0(Y.currentViewName,g0)],o0(Y.parameters,$))}function wL(J){for(let Y of J.units)for(let Z of Y.update)switch(Z.kind){case W.Attribute:case W.Binding:case W.ClassProp:case W.ClassMap:case W.Property:case W.StyleProp:case W.StyleMap:if(Z.expression instanceof y4)V.remove(Z);break}}function EL(J){for(let Y of J.units)for(let Z of Y.create)switch(Z.kind){case W.I18nContext:V.remove(Z);break;case W.I18nStart:Z.context=null;break}}function AL(J){for(let Y of J.units)for(let Z of Y.update){if(Z.kind!==W.Variable||Z.variable.kind!==R0.Identifier||!(Z.initializer instanceof T4))continue;let $=Z.variable.identifier,G=Z;while(G&&G.kind!==W.ListEnd)Y0(G,(z)=>z instanceof q0&&z.name===$?q(void 0):z,v.None),G=G.prev}}function IL(J){for(let Y of J.units){let Z=new Set;for(let $ of Y.update)switch($.kind){case W.I18nExpression:Z.add($.i18nOwner)}for(let $ of Y.create)switch($.kind){case W.I18nAttributes:if(Z.has($.xref))continue;V.remove($)}}}function jL(J){for(let Y of J.units){for(let Z of Y.functions)K6(Y,Z.ops);K6(Y,Y.create),K6(Y,Y.update)}}function K6(J,Y){let Z=new Map;Z.set(J.xref,S(n0));for(let $ of Y)switch($.kind){case W.Variable:switch($.variable.kind){case R0.Context:Z.set($.variable.view,new B1($.xref));break}break;case W.Animation:case W.AnimationListener:case W.Listener:case W.TwoWayListener:K6(J,$.handlerOps);break;case W.RepeaterCreate:if($.trackByOps!==null)K6(J,$.trackByOps);break}if(J===J.job.root)Z.set(J.xref,S(n0));for(let $ of Y)Y0($,(G)=>{if(G instanceof m1){if(!Z.has(G.view))throw Error(`No context found for reference to view ${G.view} from view ${J.xref}`);return Z.get(G.view)}else return G},v.None)}function CL(J){for(let Y of J.units)for(let Z of Y.create)if(Z.kind===W.Defer){if(Z.resolverFn!==null)continue;if(Z.ownResolverFn!==null){if(Z.handle.slot===null)throw Error("AssertionError: slot must be assigned before extracting defer deps functions");let $=Y.fnName?.replace("_Template","");Z.resolverFn=J.pool.getSharedFunctionReference(Z.ownResolverFn,`${$}_Defer_${Z.handle.slot}_DepsFn`,!1)}}}function TL(J){for(let Y of J.units)xY(Y.create),xY(Y.update)}function xY(J){for(let Y of J)if(Y.kind===W.Listener||Y.kind===W.TwoWayListener||Y.kind===W.AnimationListener)Y0(Y,(Z)=>{if(Z instanceof q0&&Z.name==="$event"){if(Y.kind===W.Listener||Y.kind===W.AnimationListener)Y.consumesDollarEvent=!0;return new G1(Z.name)}return Z},v.InChildOperation)}function BL(J){let Y=new Map,Z=new Map;for(let $ of J.units)for(let G of $.create)switch(G.kind){case W.I18nContext:Y.set(G.xref,G);break;case W.ElementStart:Z.set(G.xref,G);break}A1(J,J.root,Y,Z)}function A1(J,Y,Z,$,G){let z=null,H=new Map;for(let Q of Y.create)switch(Q.kind){case W.I18nStart:if(!Q.context)throw Error("Could not find i18n context for i18n op");z={i18nBlock:Q,i18nContext:Z.get(Q.context)};break;case W.I18nEnd:z=null;break;case W.ElementStart:if(Q.i18nPlaceholder!==void 0){if(z===null)throw Error("i18n tag placeholder should only occur inside an i18n block");if(vY(Q,z.i18nContext,z.i18nBlock,G),G&&Q.i18nPlaceholder.closeName)H.set(Q.xref,G);G=void 0}break;case W.ElementEnd:let K=$.get(Q.xref);if(K&&K.i18nPlaceholder!==void 0){if(z===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");SY(K,z.i18nContext,z.i18nBlock,H.get(Q.xref)),H.delete(Q.xref)}break;case W.Projection:if(Q.i18nPlaceholder!==void 0){if(z===null)throw Error("i18n tag placeholder should only occur inside an i18n block");vY(Q,z.i18nContext,z.i18nBlock,G),SY(Q,z.i18nContext,z.i18nBlock,G),G=void 0}if(Q.fallbackView!==null){let F=J.views.get(Q.fallbackView);if(Q.fallbackViewI18nPlaceholder===void 0)A1(J,F,Z,$);else{if(z===null)throw Error("i18n tag placeholder should only occur inside an i18n block");z7(J,F,Q.handle.slot,Q.fallbackViewI18nPlaceholder,z.i18nContext,z.i18nBlock,G),A1(J,F,Z,$),H7(J,F,Q.handle.slot,Q.fallbackViewI18nPlaceholder,z.i18nContext,z.i18nBlock,G),G=void 0}}break;case W.ConditionalCreate:case W.ConditionalBranchCreate:case W.Template:let _=J.views.get(Q.xref);if(Q.i18nPlaceholder===void 0)A1(J,_,Z,$);else{if(z===null)throw Error("i18n tag placeholder should only occur inside an i18n block");if(Q.templateKind===y0.Structural)A1(J,_,Z,$,Q);else z7(J,_,Q.handle.slot,Q.i18nPlaceholder,z.i18nContext,z.i18nBlock,G),A1(J,_,Z,$),H7(J,_,Q.handle.slot,Q.i18nPlaceholder,z.i18nContext,z.i18nBlock,G),G=void 0}break;case W.RepeaterCreate:if(G!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let X=Q.handle.slot+1,L=J.views.get(Q.xref);if(Q.i18nPlaceholder===void 0)A1(J,L,Z,$);else{if(z===null)throw Error("i18n tag placeholder should only occur inside an i18n block");z7(J,L,X,Q.i18nPlaceholder,z.i18nContext,z.i18nBlock,G),A1(J,L,Z,$),H7(J,L,X,Q.i18nPlaceholder,z.i18nContext,z.i18nBlock,G),G=void 0}if(Q.emptyView!==null){let F=Q.handle.slot+2,D=J.views.get(Q.emptyView);if(Q.emptyI18nPlaceholder===void 0)A1(J,D,Z,$);else{if(z===null)throw Error("i18n tag placeholder should only occur inside an i18n block");z7(J,D,F,Q.emptyI18nPlaceholder,z.i18nContext,z.i18nBlock,G),A1(J,D,Z,$),H7(J,D,F,Q.emptyI18nPlaceholder,z.i18nContext,z.i18nBlock,G),G=void 0}}break}}function vY(J,Y,Z,$){let{startName:G,closeName:z}=J.i18nPlaceholder,H=n.ElementTag|n.OpenTag,Q=J.handle.slot;if($!==void 0)H|=n.TemplateTag,Q={element:Q,template:$.handle.slot};if(!z)H|=n.CloseTag;x4(Y.params,G,Q,Z.subTemplateIndex,H)}function SY(J,Y,Z,$){let{closeName:G}=J.i18nPlaceholder;if(G){let z=n.ElementTag|n.CloseTag,H=J.handle.slot;if($!==void 0)z|=n.TemplateTag,H={element:H,template:$.handle.slot};x4(Y.params,G,H,Z.subTemplateIndex,z)}}function z7(J,Y,Z,$,G,z,H){let{startName:Q,closeName:K}=$,_=n.TemplateTag|n.OpenTag;if(!K)_|=n.CloseTag;if(H!==void 0)x4(G.params,Q,H.handle.slot,z.subTemplateIndex,_);x4(G.params,Q,Z,HG(J,z,Y),_)}function H7(J,Y,Z,$,G,z,H){let{closeName:Q}=$,K=n.TemplateTag|n.CloseTag;if(Q){if(x4(G.params,Q,Z,HG(J,z,Y),K),H!==void 0)x4(G.params,Q,H.handle.slot,z.subTemplateIndex,K)}}function HG(J,Y,Z){for(let $ of Z.create)if($.kind===W.I18nStart)return $.subTemplateIndex;return Y.subTemplateIndex}function x4(J,Y,Z,$,G){let z=J.get(Y)??[];z.push({value:Z,subTemplateIndex:$,flags:G}),J.set(Y,z)}function OL(J){let Y=new Map,Z=new Map,$=new Map;for(let H of J.units)for(let Q of H.create)switch(Q.kind){case W.I18nStart:Y.set(Q.xref,Q.subTemplateIndex);break;case W.I18nContext:Z.set(Q.xref,Q);break;case W.IcuPlaceholder:$.set(Q.xref,Q);break}let G=new Map,z=(H)=>H.usage===b5.I18nText?H.i18nOwner:H.context;for(let H of J.units)for(let Q of H.update)if(Q.kind===W.I18nExpression){let K=G.get(z(Q))||0,_=Y.get(Q.i18nOwner)??null,X={value:K,subTemplateIndex:_,flags:n.ExpressionIndex};NL(Q,X,Z,$),G.set(z(Q),K+1)}}function NL(J,Y,Z,$){if(J.i18nPlaceholder!==null){let G=Z.get(J.context),z=J.resolutionTime===C4.Creation?G.params:G.postprocessingParams,H=z.get(J.i18nPlaceholder)||[];H.push(Y),z.set(J.i18nPlaceholder,H)}if(J.icuPlaceholder!==null)$.get(J.icuPlaceholder)?.expressionPlaceholders.push(Y)}function ML(J){for(let Y of J.units){for(let Z of Y.functions)X6(Y,Z.ops,null);X6(Y,Y.create,null),X6(Y,Y.update,null)}}function X6(J,Y,Z){let $=new Map,G=new Map;for(let z of Y)switch(z.kind){case W.Variable:switch(z.variable.kind){case R0.Identifier:if(z.variable.local){if(G.has(z.variable.identifier))continue;G.set(z.variable.identifier,z.xref)}else if($.has(z.variable.identifier))continue;$.set(z.variable.identifier,z.xref);break;case R0.Alias:if($.has(z.variable.identifier))continue;$.set(z.variable.identifier,z.xref);break;case R0.SavedView:Z={view:z.variable.view,variable:z.xref};break}break;case W.Animation:case W.AnimationListener:case W.Listener:case W.TwoWayListener:X6(J,z.handlerOps,Z);break;case W.RepeaterCreate:if(z.trackByOps!==null)X6(J,z.trackByOps,Z);break}for(let z of Y){if(z.kind===W.Listener||z.kind===W.TwoWayListener||z.kind===W.Animation||z.kind===W.AnimationListener)continue;Y0(z,(H)=>{if(H instanceof q0)if(G.has(H.name))return new B1(G.get(H.name));else if($.has(H.name))return new B1($.get(H.name));else return new b0(new m1(J.job.root.xref),H.name);else if(H instanceof O4&&typeof H.view==="number"){if(Z===null||Z.view!==H.view)throw Error(`AssertionError: no saved view ${H.view} from view ${J.xref}`);return H.view=new B1(Z.variable),H}else return H},v.None)}for(let z of Y)G0(z,(H)=>{if(H instanceof q0)throw Error(`AssertionError: no lexical reads should remain, but found read of ${H.name}`)})}var PL=new Map([[s.HTML,R.sanitizeHtml],[s.RESOURCE_URL,R.sanitizeResourceUrl],[s.SCRIPT,R.sanitizeScript],[s.STYLE,R.sanitizeStyle],[s.URL,R.sanitizeUrl],[s.ATTRIBUTE_NO_BINDING,R.validateAttribute]]),yL=new Map([[s.HTML,R.trustConstantHtml],[s.RESOURCE_URL,R.trustConstantResourceUrl]]);function hL(J){for(let Y of J.units){if(J.kind!==A.Host){for(let Z of Y.create)if(Z.kind===W.ExtractedAttribute){let $=yL.get(fY(Z.securityContext))??null;Z.trustedValueFn=$!==null?O($):null}}for(let Z of Y.update)switch(Z.kind){case W.Property:case W.Attribute:case W.DomProperty:let $=null;if(Array.isArray(Z.securityContext)&&Z.securityContext.length===2&&Z.securityContext.includes(s.URL)&&Z.securityContext.includes(s.RESOURCE_URL))$=R.sanitizeUrlOrResourceUrl;else $=PL.get(fY(Z.securityContext))??null;Z.sanitizer=$!==null?O($):null;break}}}function fY(J){if(Array.isArray(J)){if(J.length>1)throw Error("AssertionError: Ambiguous security context");return J[0]||s.NONE}return J}function kL(J){for(let Y of J.units){for(let Z of Y.functions)if(gY(J,Y,Z.ops))bY(Y,Z.ops,S(Z.currentViewName));Y.create.prepend([e1(Y.job.allocateXrefId(),{kind:R0.SavedView,name:null,view:Y.xref},new x7,i0.None)]);for(let Z of Y.create)if(Z.kind===W.Listener||Z.kind===W.TwoWayListener||Z.kind===W.Animation||Z.kind===W.AnimationListener){if(gY(J,Y,Z.handlerOps))bY(Y,Z.handlerOps,Y.xref)}}}function gY(J,Y,Z){let $=Y!==J.root;if(!$)for(let G of Z)G0(G,(z)=>{if(z instanceof N6||z instanceof B4)$=!0});return $}function bY(J,Y,Z){Y.prepend([e1(J.job.allocateXrefId(),{kind:R0.Context,name:null,view:J.xref},new O4(Z),i0.None)]);for(let $ of Y)if($.kind===W.Statement&&$.statement instanceof _0)$.statement.value=new P6($.statement.value)}function xL(J){let Y=new Map;for(let Z of J.units){let $=0;for(let G of Z.create){if(!b4(G))continue;G.handle.slot=$,Y.set(G.xref,G.handle.slot),$+=G.numSlotsUsed}Z.decls=$}for(let Z of J.units)for(let $ of Z.ops())if($.kind===W.Template||$.kind===W.ConditionalCreate||$.kind===W.ConditionalBranchCreate||$.kind===W.RepeaterCreate){let G=J.views.get($.xref);$.decls=G.decls}}function vL(J){let Y=new Set,Z=new Map;for(let $ of J.units)for(let G of $.ops()){if(G.kind===W.DeclareLet)Z.set(G.xref,G);G0(G,(z)=>{if(z instanceof B4)Y.add(z.target)})}for(let $ of J.units)for(let G of $.update)Y0(G,(z)=>{if(z instanceof T4&&!Y.has(z.target)){if(!SL(z))V.remove(Z.get(z.target));return z.value}return z},v.None)}function SL(J){let Y=!1;return j(J,(Z)=>{if(Z instanceof p5||Z instanceof a6)Y=!0;return Z},v.None),Y}function fL(J){let Y=new Set;for(let Z of J.units)for(let $ of Z.ops())G0($,(G)=>{if(G instanceof b)switch(G.operator){case E.Exponentiation:gL(G,Y);break;case E.NullishCoalesce:bL(G,Y);break;case E.And:case E.Or:uL(G,Y)}});for(let Z of J.units)for(let $ of Z.ops())Y0($,(G)=>{if(G instanceof z1)return Y.has(G)?G:G.expr;return G},v.None)}function gL(J,Y){if(J.lhs instanceof z1&&J.lhs.expr instanceof z5)Y.add(J.lhs)}function bL(J,Y){if(J.lhs instanceof z1&&(uY(J.lhs.expr)||J.lhs.expr instanceof V1))Y.add(J.lhs);if(J.rhs instanceof z1&&(uY(J.rhs.expr)||J.rhs.expr instanceof V1))Y.add(J.rhs)}function uL(J,Y){if(J.lhs instanceof z1&&J.lhs.expr instanceof b&&J.lhs.expr.operator===E.NullishCoalesce)Y.add(J.lhs)}function uY(J){return J instanceof b&&(J.operator===E.And||J.operator===E.Or)}function mL(J){for(let Y of J.units)for(let Z of Y.update){if(Z.kind!==W.Binding)continue;switch(Z.bindingKind){case C.ClassName:if(Z.expression instanceof Z0)throw Error("Unexpected interpolation in ClassName binding");V.replace(Z,XQ(Z.target,Z.name,Z.expression,Z.sourceSpan));break;case C.StyleProperty:V.replace(Z,KQ(Z.target,Z.name,Z.expression,Z.unit,Z.sourceSpan));break;case C.Property:case C.Template:if(Z.name==="style")V.replace(Z,LQ(Z.target,Z.expression,Z.sourceSpan));else if(Z.name==="class")V.replace(Z,RQ(Z.target,Z.expression,Z.sourceSpan));break}}}function lL(J){for(let Y of J.units){Y.create.prepend(L6(Y.create)),Y.update.prepend(L6(Y.update));for(let Z of Y.functions)Z.ops.prepend(L6(Z.ops))}}function L6(J){let Y=0,Z=[];for(let $ of J){let G=new Map;G0($,(_,X)=>{if(X&v.InChildOperation)return;if(_ instanceof K5)G.set(_.xref,_)});let z=0,H=new Set,Q=new Set,K=new Map;if(G0($,(_,X)=>{if(X&v.InChildOperation)return;if(_ instanceof h1){if(!H.has(_.xref))H.add(_.xref),K.set(_.xref,`tmp_${Y}_${z++}`);mY(K,_)}else if(_ instanceof K5){if(G.get(_.xref)===_)Q.add(_.xref),z--;mY(K,_)}}),Z.push(...Array.from(new Set(K.values())).map((_)=>r0(new U0(_)))),Y++,$.kind===W.Listener||$.kind===W.Animation||$.kind===W.AnimationListener||$.kind===W.TwoWayListener)$.handlerOps.prepend(L6($.handlerOps));else if($.kind===W.RepeaterCreate&&$.trackByOps!==null)$.trackByOps.prepend(L6($.trackByOps))}return Z}function mY(J,Y){let Z=J.get(Y.xref);if(Z===void 0)throw Error(`Found xref with unassigned name: ${Y.xref}`);Y.name=Z}function cL(J){for(let Y of J.units)for(let Z of Y.create){if(Z.kind!==W.RepeaterCreate)continue;if(Z.track instanceof G1&&Z.track.name==="$index")Z.trackByFn=O(R.repeaterTrackByIndex);else if(Z.track instanceof G1&&Z.track.name==="$item")Z.trackByFn=O(R.repeaterTrackByIdentity);else if(dL(J.root.xref,Z.track))if(Z.usesComponentInstance=!0,Z.track.receiver.receiver.view===Y.xref)Z.trackByFn=Z.track.receiver;else Z.trackByFn=O(R.componentInstance).callFn([]).prop(Z.track.receiver.name),Z.track=Z.trackByFn;else{Z.track=j(Z.track,(G)=>{if(G instanceof p5||G instanceof a6)throw Error("Illegal State: Pipes are not allowed in this context");else if(G instanceof m1)return Z.usesComponentInstance=!0,new k7(G.view);return G},v.None);let $=new V;$.push(r0(new _0(Z.track,Z.track.sourceSpan))),Z.trackByOps=$}}}function dL(J,Y){if(!(Y instanceof h0)||Y.args.length===0||Y.args.length>2)return!1;if(!(Y.receiver instanceof b0&&Y.receiver.receiver instanceof m1)||Y.receiver.receiver.view!==J)return!1;let[Z,$]=Y.args;if(!(Z instanceof G1)||Z.name!=="$index")return!1;else if(Y.args.length===1)return!0;if(!($ instanceof G1)||$.name!=="$item")return!1;return!0}function pL(J){for(let Y of J.units)for(let Z of Y.create){if(Z.kind!==W.RepeaterCreate)continue;Z.track=j(Z.track,($)=>{if($ instanceof q0){if(Z.varNames.$index.has($.name))return S("$index");else if($.name===Z.varNames.$implicit)return S("$item")}return $},v.None)}}function iL(J){for(let Y of J.units)for(let Z of Y.create)if(Z.kind===W.TwoWayListener)Y0(Z,($)=>{if(!($ instanceof X3))return $;let{target:G,value:z}=$;if(G instanceof b0||G instanceof M1)return yY(G,z).or(G.set(z));if(G instanceof B1)return yY(G,z);throw Error("Unsupported expression in two-way action binding.")},v.InChildOperation)}function sL(J){for(let Y of J.units){let Z=0;for(let z of Y.ops())if(T3(z))Z+=oL(z);let $=(z)=>{if(!y1(z))return;if(z instanceof W5)return;if(sJ(z))z.varOffset=Z;if(T3(z))Z+=lY(z)},G=(z)=>{if(!y1(z)||!(z instanceof W5))return;if(sJ(z))z.varOffset=Z;if(T3(z))Z+=lY(z)};for(let z of Y.create)G0(z,$);for(let z of Y.update)G0(z,$);for(let z of Y.create)G0(z,G);for(let z of Y.update)G0(z,G);Y.vars=Z}if(J instanceof U3)for(let Y of J.units)for(let Z of Y.create){if(Z.kind!==W.Template&&Z.kind!==W.RepeaterCreate&&Z.kind!==W.ConditionalCreate&&Z.kind!==W.ConditionalBranchCreate)continue;let $=J.views.get(Z.xref);Z.vars=$.vars}}function oL(J){let Y;switch(J.kind){case W.Attribute:if(Y=1,J.expression instanceof Z0&&!nL(J.expression))Y+=J.expression.expressions.length;return Y;case W.Property:case W.DomProperty:if(Y=1,J.expression instanceof Z0)Y+=J.expression.expressions.length;return Y;case W.Control:return 2;case W.TwoWayProperty:return 1;case W.StyleProp:case W.ClassProp:case W.StyleMap:case W.ClassMap:if(Y=2,J.expression instanceof Z0)Y+=J.expression.expressions.length;return Y;case W.InterpolateText:return J.interpolation.expressions.length;case W.I18nExpression:case W.Conditional:case W.DeferWhen:case W.StoreLet:return 1;case W.RepeaterCreate:return J.emptyView?1:0;default:throw Error(`Unhandled op: ${W[J.kind]}`)}}function lY(J){switch(J.kind){case N.PureFunctionExpr:return 1+J.args.length;case N.PipeBinding:return 1+J.args.length;case N.PipeBindingVariadic:return 1+J.numArgs;case N.StoreLet:case N.ArrowFunction:return 1;default:throw Error(`AssertionError: unhandled ConsumesVarsTrait expression ${J.constructor.name}`)}}function nL(J){if(J.expressions.length!==1||J.strings.length!==2)return!1;if(J.strings[0]!==""||J.strings[1]!=="")return!1;return!0}function rL(J){for(let Y of J.units){for(let Z of Y.functions)r4(Z.ops);r4(Y.create),r4(Y.update);for(let Z of Y.create)if(Z.kind===W.Listener||Z.kind===W.Animation||Z.kind===W.AnimationListener||Z.kind===W.TwoWayListener)r4(Z.handlerOps);else if(Z.kind===W.RepeaterCreate&&Z.trackByOps!==null)r4(Z.trackByOps);for(let Z of Y.functions)a4(Z.ops,null),cY(Z.ops);for(let Z of Y.create)if(Z.kind===W.Listener||Z.kind===W.Animation||Z.kind===W.AnimationListener||Z.kind===W.TwoWayListener)a4(Z.handlerOps,Q7),cY(Z.handlerOps);else if(Z.kind===W.RepeaterCreate&&Z.trackByOps!==null)a4(Z.trackByOps,Q7);a4(Y.create,Q7),a4(Y.update,Q7)}}var H0;(function(J){J[J.None=0]="None",J[J.ViewContextRead=1]="ViewContextRead",J[J.ViewContextWrite=2]="ViewContextWrite",J[J.SideEffectful=4]="SideEffectful"})(H0||(H0={}));function Q7(J){return!(J&v.InArrowFunctionOperation)}function r4(J){let Y=new Map;for(let Z of J){if(Z.kind===W.Variable&&Z.flags&i0.AlwaysInline)G0(Z,($)=>{if(y1($)&&GJ($)!==H0.None)throw Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),Y.set(Z.xref,Z);Y0(Z,($)=>{if($ instanceof B1&&Y.has($.xref))return Y.get($.xref).initializer.clone();return $},v.None)}for(let Z of Y.values())V.remove(Z)}function a4(J,Y){let Z=new Map,$=new Map,G=new Set,z=new Map;for(let _ of J){if(_.kind===W.Variable){if(Z.has(_.xref)||$.has(_.xref))throw Error(`Should not see two declarations of the same variable: ${_.xref}`);Z.set(_.xref,_),$.set(_.xref,0)}z.set(_,aL(_,Y)),tL(_,$,G,Y)}let H=!1;for(let _ of J.reversed()){let X=z.get(_);if(_.kind===W.Variable&&$.get(_.xref)===0){if(H&&X.fences&H0.ViewContextWrite||X.fences&H0.SideEffectful){let L=r0(_.initializer.toStmt());z.set(L,X),V.replace(_,L)}else eL(_,$),V.remove(_);z.delete(_),Z.delete(_.xref),$.delete(_.xref);continue}if(X.fences&H0.ViewContextRead)H=!0}let Q=[];for(let[_,X]of $){let F=!!(Z.get(_).flags&i0.AlwaysInline);if(X!==1||F)continue;if(G.has(_))continue;Q.push(_)}let K;while(K=Q.pop()){let _=Z.get(K),X=z.get(_);if(!!(_.flags&i0.AlwaysInline))throw Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let F=_.next;F.kind!==W.ListEnd;F=F.next){let D=z.get(F);if(D.variablesUsed.has(K)){if(!YR(_,F))break;if(JR(K,_.initializer,F,X.fences)){D.variablesUsed.delete(K);for(let w of X.variablesUsed)D.variablesUsed.add(w);D.fences|=X.fences,Z.delete(K),$.delete(K),z.delete(_),V.remove(_)}break}if(!QG(D.fences,X.fences))break}}}function GJ(J){switch(J.kind){case N.NextContext:return H0.ViewContextRead|H0.ViewContextWrite;case N.RestoreView:return H0.ViewContextRead|H0.ViewContextWrite|H0.SideEffectful;case N.StoreLet:return H0.SideEffectful;case N.Reference:case N.ContextLetReference:return H0.ViewContextRead;default:return H0.None}}function aL(J,Y){let Z=H0.None,$=new Set;return G0(J,(G,z)=>{if(!y1(G)||Y!==null&&!Y(z))return;if(G.kind===N.ReadVariable)$.add(G.xref);else Z|=GJ(G)}),{fences:Z,variablesUsed:$}}function tL(J,Y,Z,$){G0(J,(G,z)=>{if(!y1(G)||$!==null&&!$(z))return;if(G.kind!==N.ReadVariable)return;let H=Y.get(G.xref);if(H===void 0)return;if(Y.set(G.xref,H+1),z&v.InChildOperation)Z.add(G.xref)})}function eL(J,Y){G0(J,(Z)=>{if(!y1(Z))return;if(Z.kind!==N.ReadVariable)return;let $=Y.get(Z.xref);if($===void 0)return;else if($===0)throw Error(`Inaccurate variable count: ${Z.xref} - found another read but count is already 0`);Y.set(Z.xref,$-1)})}function QG(J,Y){if(J&H0.ViewContextWrite){if(Y&H0.ViewContextRead)return!1}else if(J&H0.ViewContextRead){if(Y&H0.ViewContextWrite)return!1}return!0}function JR(J,Y,Z,$){let G=!1,z=!0;return Y0(Z,(H,Q)=>{if(!y1(H))return H;if(G||!z)return H;else if(Q&v.InChildOperation&&$&H0.ViewContextRead)return H;switch(H.kind){case N.ReadVariable:if(H.xref===J)return G=!0,Y;break;default:let K=GJ(H);z=z&&QG(K,$);break}return H},v.None),G}function YR(J,Y){switch(J.variable.kind){case R0.Identifier:if(J.initializer instanceof G1&&J.initializer.name===n0)return!0;return!1;case R0.Context:return Y.kind===W.Variable;default:return!0}}function cY(J){let Y=J.head.next,Z=J.tail.prev;if(Y!==null&&Z!==null&&Y.next===Z&&Y.kind===W.Statement&&Y.statement instanceof I0&&Y.statement.expr instanceof O4&&Z.kind===W.Statement&&Z.statement instanceof _0&&Z.statement.value instanceof P6)V.remove(Y),Z.statement.value=Z.statement.value.expr}function ZR(J){for(let Y of J.units){let Z=null,$=null;for(let G of Y.create)switch(G.kind){case W.I18nStart:Z=G;break;case W.I18nEnd:Z=null;break;case W.IcuStart:if(Z===null)$=J.allocateXrefId(),V.insertBefore(L3($,G.message,void 0,null),G);break;case W.IcuEnd:if($!==null)V.insertAfter(R3($,null),G),$=null;break}}}function $R(J){for(let Y of J.units){for(let Z of Y.create)if(Z.kind!==W.Animation&&Z.kind!==W.AnimationListener&&Z.kind!==W.Listener&&Z.kind!==W.TwoWayListener)dY(Y,Z);for(let Z of Y.update)dY(Y,Z)}}function dY(J,Y){Y0(Y,(Z,$)=>{if(!(Z instanceof l5)||$&v.InChildOperation)return Z;if(Array.isArray(Z.body))throw Error("AssertionError: unexpected multi-line arrow function");let G=new v7(Z.params,Z.body);return J.functions.add(G),G},v.None)}var GR=new Set(["formField"]);function zR(J){for(let Y of J.units)HR(Y)}function HR(J){for(let Y of J.update){if(Y.kind!==W.Property)continue;if(GR.has(Y.name))KR(J,Y)}}var QR=new Set([W.Container,W.ContainerStart,W.ContainerEnd,W.Element,W.ElementStart,W.ElementEnd,W.Template]);function _R(J){return QR.has(J.kind)}function WR(J,Y){let Z=null;for(let $ of J.create){if(!_R($)||$.xref!==Y)continue;Z=$}return Z}function KR(J,Y){let Z=WR(J,Y.target);if(Z===null)throw Error(`No create instruction found for control target ${Y.target}`);let $=bQ(Y.sourceSpan);V.insertAfter($,Z),V.insertAfter(wQ(Y.target,Y.sourceSpan),Y)}var XR=[{kind:A.Tmpl,fn:PK},{kind:A.Both,fn:cK},{kind:A.Host,fn:c_},{kind:A.Tmpl,fn:RK},{kind:A.Tmpl,fn:fK},{kind:A.Tmpl,fn:ZR},{kind:A.Both,fn:X_},{kind:A.Both,fn:mL},{kind:A.Both,fn:rQ},{kind:A.Tmpl,fn:zR},{kind:A.Both,fn:Q_},{kind:A.Both,fn:sQ},{kind:A.Tmpl,fn:K_},{kind:A.Both,fn:FK},{kind:A.Tmpl,fn:wL},{kind:A.Both,fn:eQ},{kind:A.Both,fn:MK},{kind:A.Tmpl,fn:J_},{kind:A.Tmpl,fn:kK},{kind:A.Tmpl,fn:L_},{kind:A.Tmpl,fn:SK},{kind:A.Both,fn:$R},{kind:A.Both,fn:uK},{kind:A.Tmpl,fn:b_},{kind:A.Tmpl,fn:g_},{kind:A.Tmpl,fn:u_},{kind:A.Tmpl,fn:kL},{kind:A.Both,fn:mQ},{kind:A.Both,fn:TL},{kind:A.Tmpl,fn:pL},{kind:A.Tmpl,fn:AL},{kind:A.Both,fn:ML},{kind:A.Tmpl,fn:R_},{kind:A.Tmpl,fn:iL},{kind:A.Tmpl,fn:cL},{kind:A.Both,fn:jL},{kind:A.Both,fn:hL},{kind:A.Tmpl,fn:XK},{kind:A.Both,fn:D_},{kind:A.Both,fn:fL},{kind:A.Both,fn:lL},{kind:A.Both,fn:rL},{kind:A.Both,fn:vL},{kind:A.Tmpl,fn:KK},{kind:A.Tmpl,fn:W_},{kind:A.Tmpl,fn:IL},{kind:A.Tmpl,fn:pQ},{kind:A.Tmpl,fn:cQ},{kind:A.Tmpl,fn:xL},{kind:A.Tmpl,fn:BL},{kind:A.Tmpl,fn:OL},{kind:A.Tmpl,fn:k_},{kind:A.Tmpl,fn:zK},{kind:A.Tmpl,fn:m_},{kind:A.Both,fn:G_},{kind:A.Tmpl,fn:EL},{kind:A.Both,fn:sL},{kind:A.Tmpl,fn:f_},{kind:A.Both,fn:qK},{kind:A.Tmpl,fn:CL},{kind:A.Tmpl,fn:wK},{kind:A.Tmpl,fn:AK},{kind:A.Tmpl,fn:V_},{kind:A.Tmpl,fn:iQ},{kind:A.Tmpl,fn:jK},{kind:A.Both,fn:bK},{kind:A.Both,fn:RL},{kind:A.Both,fn:tQ}];function _G(J,Y){for(let Z of XR)if(Z.kind===Y||Z.kind===A.Both)Z.fn(J)}function LR(J,Y){let Z=KG(J.root);return WG(J.root,Y),Z}function WG(J,Y){for(let Z of J.job.units){if(Z.parent!==J.xref)continue;WG(Z,Y);let $=KG(Z);Y.statements.push($.toDeclStmt($.name))}}function KG(J){if(J.fnName===null)throw Error(`AssertionError: view ${J.xref} is unnamed`);let Y=[];for(let z of J.create){if(z.kind!==W.Statement)throw Error(`AssertionError: expected all create ops to have been compiled, but got ${W[z.kind]}`);Y.push(z.statement)}let Z=[];for(let z of J.update){if(z.kind!==W.Statement)throw Error(`AssertionError: expected all update ops to have been compiled, but got ${W[z.kind]}`);Z.push(z.statement)}let $=u7(1,Y),G=u7(2,Z);return Q5([new Q0(f4,y5),new Q0(n0,g0)],[...$,...G],void 0,void 0,J.fnName)}function u7(J,Y){if(Y.length===0)return[];return[s7(new b(E.BitwiseAnd,S(f4),q(J)),Y)]}function RR(J){if(J.root.fnName===null)throw Error("AssertionError: host binding function is unnamed");let Y=[];for(let z of J.root.create){if(z.kind!==W.Statement)throw Error(`AssertionError: expected all create ops to have been compiled, but got ${W[z.kind]}`);Y.push(z.statement)}let Z=[];for(let z of J.root.update){if(z.kind!==W.Statement)throw Error(`AssertionError: expected all update ops to have been compiled, but got ${W[z.kind]}`);Z.push(z.statement)}if(Y.length===0&&Z.length===0)return null;let $=u7(1,Y),G=u7(2,Z);return Q5([new Q0(f4,y5),new Q0(n0,g0)],[...$,...G],void 0,void 0,J.root.fnName)}var M5=new t6,P5="ng-template",UR="animate.";function F7(J){return J instanceof f0}function FR(J){return F7(J)&&J.nodes.length===1&&J.nodes[0]instanceof S8}function qR(J,Y,Z,$,G,z,H,Q,K,_){let X=new U3(J,Z,$,G,z,H,Q,K,_);return c1(X.root,Y),X}function VR(J,Y,Z){let $=new r8(J.componentName,Z,N0.DomOnly);for(let G of J.properties??[]){let z=C.Property;if(G.name.startsWith("attr."))G.name=G.name.substring(5),z=C.Attribute;if(G.isLegacyAnimation)z=C.LegacyAnimation;if(G.isAnimation)z=C.Animation;let H=Y.calcPossibleSecurityContexts(J.componentSelector,G.name,z===C.Attribute).filter((Q)=>Q!==s.NONE);DR($,G,z,H)}for(let[G,z]of Object.entries(J.attributes)??[]){let H=Y.calcPossibleSecurityContexts(J.componentSelector,G,!0).filter((Q)=>Q!==s.NONE);wR($,G,z,H)}for(let G of J.events??[])ER($,G);return $}function DR(J,Y,Z,$){let G,z=Y.expression.ast;if(z instanceof c6)G=new Z0(z.strings,z.expressions.map((H)=>x(H,J,Y.sourceSpan)),[]);else G=x(z,J,Y.sourceSpan);J.root.update.push(u5(J.root.xref,Z,Y.name,G,null,$,!1,!1,null,null,Y.sourceSpan))}function wR(J,Y,Z,$){let G=u5(J.root.xref,C.Attribute,Y,Z,null,$,!0,!1,null,null,Z.sourceSpan);J.root.update.push(G)}function ER(J,Y){let Z;if(Y.type===B0.Animation)Z=w$(J.root.xref,new O0,Y.name,null,v6(J.root,Y.handler,Y.handlerSpan),Y.name.endsWith("enter")?"enter":"leave",Y.targetOrPhase,!0,Y.sourceSpan);else{let[$,G]=Y.type!==B0.LegacyAnimation?[null,Y.targetOrPhase]:[Y.targetOrPhase,null];Z=s8(J.root.xref,new O0,Y.name,null,v6(J.root,Y.handler,Y.handlerSpan),$,G,!0,Y.sourceSpan)}J.root.create.push(Z)}function c1(J,Y){for(let Z of Y)if(Z instanceof P1)AR(J,Z);else if(Z instanceof $1)IR(J,Z);else if(Z instanceof s6)jR(J,Z);else if(Z instanceof T5)XG(J,Z,null);else if(Z instanceof w6)LG(J,Z,null);else if(Z instanceof k8)CR(J,Z);else if(Z instanceof h8)TR(J,Z);else if(Z instanceof j4)BR(J,Z);else if(Z instanceof SZ)NR(J,Z);else if(Z instanceof i6)MR(J,Z);else if(Z instanceof v8)yR(J,Z);else if(Z instanceof Q6);else throw Error(`Unsupported template node: ${Z.constructor.name}`)}function AR(J,Y){if(Y.i18n!==void 0&&!(Y.i18n instanceof f0||Y.i18n instanceof v5))throw Error(`Unhandled i18n metadata type for element: ${Y.i18n.constructor.name}`);let Z=J.job.allocateXrefId(),[$,G]=w1(Y.name),z=AQ(G,Z,B$($),Y.i18n instanceof v5?Y.i18n:void 0,Y.startSourceSpan,Y.sourceSpan);J.create.push(z),kR(J,z,Y),FG(z,Y);let H=null;if(Y.i18n instanceof f0)H=J.job.allocateXrefId(),J.create.push(L3(H,Y.i18n,void 0,Y.startSourceSpan));c1(J,Y.children);let Q=jQ(Z,Y.endSourceSpan??Y.startSourceSpan);if(J.create.push(Q),H!==null)V.insertBefore(R3(H,Y.endSourceSpan??Y.startSourceSpan),Q)}function IR(J,Y){if(Y.i18n!==void 0&&!(Y.i18n instanceof f0||Y.i18n instanceof v5))throw Error(`Unhandled i18n metadata type for template: ${Y.i18n.constructor.name}`);let Z=J.job.allocateView(J.xref),$=Y.tagName,G="";if(Y.tagName)[G,$]=w1(Y.tagName);let z=Y.i18n instanceof v5?Y.i18n:void 0,H=B$(G),Q=$===null?"":$_($,H),K=hR(Y)?y0.NgTemplate:y0.Structural,_=F$(Z.xref,K,$,Q,H,z,Y.startSourceSpan,Y.sourceSpan);J.create.push(_),xR(J,_,Y,K),FG(_,Y),c1(Z,Y.children);for(let{name:X,value:L}of Y.variables)Z.contextVariables.set(X,L!==""?L:"$implicit");if(K===y0.NgTemplate&&Y.i18n instanceof f0){let X=J.job.allocateXrefId();V.insertAfter(L3(X,Y.i18n,void 0,Y.startSourceSpan),Z.create.head),V.insertBefore(R3(X,Y.endSourceSpan??Y.startSourceSpan),Z.create.tail)}}function jR(J,Y){if(Y.i18n!==void 0&&!(Y.i18n instanceof v5))throw Error(`Unhandled i18n metadata type for element: ${Y.i18n.constructor.name}`);let Z=null;if(Y.children.some((z)=>!(z instanceof Z3)&&(!(z instanceof T5)||z.value.trim().length>0)))Z=J.job.allocateView(J.xref),c1(Z,Y.children);let $=J.job.allocateXrefId(),G=yQ($,Y.selector,Y.i18n,Z?.xref??null,Y.sourceSpan);for(let z of Y.attributes){let H=M5.securityContext(Y.name,z.name,!0);J.update.push(u5(G.xref,C.Attribute,z.name,q(z.value),null,H,!0,!1,null,S1(z.i18n),z.sourceSpan))}J.create.push(G)}function XG(J,Y,Z){J.create.push(D$(J.job.allocateXrefId(),Y.value,Z,Y.sourceSpan))}function LG(J,Y,Z){let $=Y.value;if($ instanceof p0)$=$.ast;if(!($ instanceof c6))throw Error(`AssertionError: expected Interpolation for BoundText node, got ${$.constructor.name}`);if(Y.i18n!==void 0&&!(Y.i18n instanceof Z5))throw Error(`Unhandled i18n metadata type for text interpolation: ${Y.i18n?.constructor.name}`);let G=Y.i18n instanceof Z5?Y.i18n.children.filter((H)=>H instanceof O7).map((H)=>H.name):[];if(G.length>0&&G.length!==$.expressions.length)throw Error(`Unexpected number of i18n placeholders (${$.expressions.length}) for BoundText with ${$.expressions.length} expressions`);let z=J.job.allocateXrefId();J.create.push(D$(z,"",Z,Y.sourceSpan)),J.update.push(QQ(z,new Z0($.strings,$.expressions.map((H)=>x(H,J.job,null)),G),Y.sourceSpan))}function CR(J,Y){let Z=null,$=[];for(let G=0;G<Y.branches.length;G++){let z=Y.branches[G],H=J.job.allocateView(J.xref),Q=m7(J,H.xref,z);if(z.expressionAlias!==null)H.contextVariables.set(z.expressionAlias.name,I$);let K=void 0;if(z.i18n!==void 0){if(!(z.i18n instanceof S5))throw Error(`Unhandled i18n metadata type for if block: ${z.i18n?.constructor.name}`);K=z.i18n}let X=(G===0?q$:V$)(H.xref,y0.Block,Q,"Conditional",E0.HTML,K,z.startSourceSpan,z.sourceSpan);if(J.create.push(X),Z===null)Z=H.xref;let L=z.expression?x(z.expression,J.job,null):null,F=new h6(L,X.xref,X.handle,z.expressionAlias);$.push(F),c1(H,z.children)}J.update.push(L$(Z,null,$,Y.sourceSpan))}function TR(J,Y){if(Y.groups.length===0)return;let Z=null,$=[];for(let G=0;G<Y.groups.length;G++){let z=Y.groups[G],H=J.job.allocateView(J.xref),Q=m7(J,H.xref,z),K=void 0;if(z.i18n!==void 0){if(!(z.i18n instanceof S5))throw Error(`Unhandled i18n metadata type for switch block: ${z.i18n?.constructor.name}`);K=z.i18n}let X=(G===0?q$:V$)(H.xref,y0.Block,Q,"Case",E0.HTML,K,z.startSourceSpan,z.sourceSpan);if(J.create.push(X),Z===null)Z=H.xref;for(let L of z.cases){let F=L.expression?x(L.expression,J.job,Y.startSourceSpan):null,D=new h6(F,X.xref,X.handle);$.push(D)}c1(H,z.children)}J.update.push(L$(Z,x(Y.expression,J.job,null),$,Y.sourceSpan))}function _7(J,Y,Z,$,G){if(Z!==void 0&&!(Z instanceof S5))throw Error("Unhandled i18n metadata type for defer block");if($===void 0)return null;let z=J.job.allocateView(J.xref);c1(z,$);let H=F$(z.xref,y0.Block,null,`Defer${Y}`,E0.HTML,Z,G,G);return J.create.push(H),H}function BR(J,Y){let Z=null;if(J.job.deferMeta.mode===0){if(!J.job.deferMeta.blocks.has(Y))throw Error("AssertionError: unable to find a dependency function for this deferred block");Z=J.job.deferMeta.blocks.get(Y)??null}let $=_7(J,"",Y.i18n,Y.children,Y.sourceSpan),G=_7(J,"Loading",Y.loading?.i18n,Y.loading?.children,Y.loading?.sourceSpan),z=_7(J,"Placeholder",Y.placeholder?.i18n,Y.placeholder?.children,Y.placeholder?.sourceSpan),H=_7(J,"Error",Y.error?.i18n,Y.error?.children,Y.error?.sourceSpan),Q=J.job.allocateXrefId(),K=hQ(Q,$.xref,$.handle,Z,J.job.allDeferrableDepsFn,Y.sourceSpan);K.placeholderView=z?.xref??null,K.placeholderSlot=z?.handle??null,K.loadingSlot=G?.handle??null,K.errorSlot=H?.handle??null,K.placeholderMinimumTime=Y.placeholder?.minimumTime??null,K.loadingMinimumTime=Y.loading?.minimumTime??null,K.loadingAfterTime=Y.loading?.afterTime??null,K.flags=OR(Y),J.create.push(K);let _=[],X=[];if(y3("hydrate",Y.hydrateTriggers,_,X,J,Q),y3("none",Y.triggers,_,X,J,Q),y3("prefetch",Y.prefetchTriggers,_,X,J,Q),!(_.some((F)=>F.modifier==="none")||X.some((F)=>F.modifier==="none")))_.push(n1(Q,{kind:i.Idle},"none",null));J.create.push(_),J.update.push(X)}function OR(J){if(Object.keys(J.hydrateTriggers).length>0)return 1;return null}function y3(J,Y,Z,$,G,z){if(Y.idle!==void 0){let H=n1(z,{kind:i.Idle},J,Y.idle.sourceSpan);Z.push(H)}if(Y.immediate!==void 0){let H=n1(z,{kind:i.Immediate},J,Y.immediate.sourceSpan);Z.push(H)}if(Y.timer!==void 0){let H=n1(z,{kind:i.Timer,delay:Y.timer.delay},J,Y.timer.sourceSpan);Z.push(H)}if(Y.hover!==void 0){let H=n1(z,{kind:i.Hover,targetName:Y.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},J,Y.hover.sourceSpan);Z.push(H)}if(Y.interaction!==void 0){let H=n1(z,{kind:i.Interaction,targetName:Y.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},J,Y.interaction.sourceSpan);Z.push(H)}if(Y.viewport!==void 0){let H=n1(z,{kind:i.Viewport,targetName:Y.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:Y.viewport.options?x(Y.viewport.options,G.job,Y.viewport.sourceSpan):null},J,Y.viewport.sourceSpan);Z.push(H)}if(Y.never!==void 0){let H=n1(z,{kind:i.Never},J,Y.never.sourceSpan);Z.push(H)}if(Y.when!==void 0){if(Y.when.value instanceof c6)throw Error("Unexpected interpolation in defer block when trigger");let H=qQ(z,x(Y.when.value,G.job,Y.when.sourceSpan),J,Y.when.sourceSpan);$.push(H)}}function NR(J,Y){if(Y.i18n instanceof f0&&FR(Y.i18n)){let Z=J.job.allocateXrefId();J.create.push(vQ(Z,Y.i18n,uZ(Y.i18n).name,null));for(let[$,G]of Object.entries({...Y.vars,...Y.placeholders}))if(G instanceof w6)LG(J,G,$);else XG(J,G,$);J.create.push(SQ(Z))}else throw Error(`Unhandled i18n metadata type for ICU: ${Y.i18n?.constructor.name}`)}function MR(J,Y){let Z=J.job.allocateView(J.xref),$=`ɵ$index_${Z.xref}`,G=`ɵ$count_${Z.xref}`,z=new Set;Z.contextVariables.set(Y.item.name,Y.item.value);for(let B of Y.contextVariables){if(B.value==="$index")z.add(B.name);if(B.name==="$index")Z.contextVariables.set("$index",B.value).set($,B.value);else if(B.name==="$count")Z.contextVariables.set("$count",B.value).set(G,B.value);else Z.aliases.add({kind:R0.Alias,name:null,identifier:B.name,expression:PR(B,$,G)})}let H=X0(Y.trackBy.span,Y.sourceSpan),Q=x(Y.trackBy,J.job,H);c1(Z,Y.children);let K=null,_=null;if(Y.empty!==null)K=J.job.allocateView(J.xref),c1(K,Y.empty.children),_=m7(J,K.xref,Y.empty);let X={$index:z,$implicit:Y.item.name};if(Y.i18n!==void 0&&!(Y.i18n instanceof S5))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(Y.empty?.i18n!==void 0&&!(Y.empty.i18n instanceof S5))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let L=Y.i18n,F=Y.empty?.i18n,D=m7(J,Z.xref,Y),w=IQ(Z.xref,K?.xref??null,D,Q,X,_,L,F,Y.startSourceSpan,Y.sourceSpan);J.create.push(w);let T=x(Y.expression,J.job,X0(Y.expression.span,Y.sourceSpan)),I=FQ(w.xref,w.handle,T,Y.sourceSpan);J.update.push(I)}function PR(J,Y,Z){switch(J.value){case"$index":return new q0(Y);case"$count":return new q0(Z);case"$first":return new q0(Y).identical(q(0));case"$last":return new q0(Y).identical(new q0(Z).minus(q(1)));case"$even":return new q0(Y).modulo(q(2)).identical(q(0));case"$odd":return new q0(Y).modulo(q(2)).notIdentical(q(0));default:throw Error(`AssertionError: unknown @for loop variable ${J.value}`)}}function yR(J,Y){let Z=J.job.allocateXrefId();J.create.push(kQ(Z,Y.name,Y.sourceSpan)),J.update.push(DQ(Z,Y.name,x(Y.value,J.job,Y.valueSpan),Y.sourceSpan))}function x(J,Y,Z){if(J instanceof p0)return x(J.ast,Y,Z);else if(J instanceof g1)if(J.receiver instanceof u1)return new q0(J.name);else return new b0(x(J.receiver,Y,Z),J.name,null,X0(J.span,Z));else if(J instanceof d6)if(J.receiver instanceof u1)throw Error("Unexpected ImplicitReceiver");else return new h0(x(J.receiver,Y,Z),J.args.map(($)=>x($,Y,Z)),void 0,X0(J.span,Z));else if(J instanceof d0)return q(J.value,void 0,X0(J.span,Z));else if(J instanceof B5)switch(J.operator){case"+":return new z5(U4.Plus,x(J.expr,Y,Z),void 0,X0(J.span,Z));case"-":return new z5(U4.Minus,x(J.expr,Y,Z),void 0,X0(J.span,Z));default:throw Error(`AssertionError: unknown unary operator ${J.operator}`)}else if(J instanceof k0){let $=Y_.get(J.operation);if($===void 0)throw Error(`AssertionError: unknown binary operator ${J.operation}`);return new b($,x(J.left,Y,Z),x(J.right,Y,Z),void 0,X0(J.span,Z))}else if(J instanceof r7)return new m1(Y.root.xref);else if(J instanceof A4)return new M1(x(J.receiver,Y,Z),x(J.key,Y,Z),void 0,X0(J.span,Z));else if(J instanceof l6)throw Error("AssertionError: Chain in unknown context");else if(J instanceof I4){let $=J.keys.map((G,z)=>{let H=x(J.values[z],Y,Z);return G.kind==="spread"?new b1(H):new v4(G.key,H,G.quoted)});return new H1($,void 0,X0(J.span,Z))}else if(J instanceof e7)return new D1(J.expressions.map(($)=>x($,Y,Z)));else if(J instanceof A8)return new V1(x(J.condition,Y,Z),x(J.trueExp,Y,Z),x(J.falseExp,Y,Z),void 0,X0(J.span,Z));else if(J instanceof J3)return x(J.expression,Y,Z);else if(J instanceof I8)return new p5(Y.allocateXrefId(),new O0,J.name,[x(J.exp,Y,Z),...J.args.map(($)=>x($,Y,Z))]);else if(J instanceof t7)return new M4(x(J.receiver,Y,Z),x(J.key,Y,Z),X0(J.span,Z));else if(J instanceof a7)return new N4(x(J.receiver,Y,Z),J.name);else if(J instanceof C8)return new m5(x(J.receiver,Y,Z),J.args.map(($)=>x($,Y,Z)));else if(J instanceof j0)return new y4(X0(J.span,Z));else if(J instanceof E7)return Ez(x(J.expression,Y,Z),X0(J.span,Z));else if(J instanceof A7)return u6(x(J.expression,Y,Z));else if(J instanceof I7)return new F6(x(J.expression,Y,Z),void 0,X0(J.span,Z));else if(J instanceof C7)return pY(J,Y,Z);else if(J instanceof j7)return new F4(x(J.tag,Y,Z),pY(J.template,Y,Z),void 0,X0(J.span,Z));else if(J instanceof Y3)return new z1(x(J.expression,Y,Z),void 0,X0(J.span,Z));else if(J instanceof B8)return new k5(J.body,J.flags,Z);else if(J instanceof j8)return new H5(x(J.expression,Y,Z));else if(J instanceof T8)return SR(o0(J.parameters.map(($)=>new Q0($.name,g0)),x(J.body,Y,Z)));else throw Error(`Unhandled expression type "${J.constructor.name}" in file "${Z?.start.file.url}"`)}function pY(J,Y,Z){return new V4(J.elements.map(($)=>{return new q6($.text,X0($.span,Z))}),J.expressions.map(($)=>x($,Y,Z)),X0(J.span,Z))}function W8(J,Y,Z,$){let G;if(Y instanceof c6)G=new Z0(Y.strings,Y.expressions.map((z)=>x(z,J,null)),Object.keys(S1(Z)?.placeholders??{}));else if(Y instanceof a)G=x(Y,J,null);else G=q(Y);return G}var RG=new Map([[u.Property,C.Property],[u.TwoWay,C.TwoWayProperty],[u.Attribute,C.Attribute],[u.Class,C.ClassName],[u.Style,C.StyleProperty],[u.LegacyAnimation,C.LegacyAnimation],[u.Animation,C.Animation]]);function hR(J){return w1(J.tagName??"")[1]===P5}function S1(J){if(J==null)return null;if(!(J instanceof f0))throw Error(`Expected i18n meta to be a Message, but got: ${J.constructor.name}`);return J}function kR(J,Y,Z){let $=[],G=new Set;for(let z of Z.attributes){let H=M5.securityContext(Z.name,z.name,!0);if($.push(u5(Y.xref,C.Attribute,z.name,W8(J.job,z.value,z.i18n),null,H,!0,!1,null,S1(z.i18n),z.sourceSpan)),z.i18n)G.add(z.name)}for(let z of Z.inputs){if(G.has(z.name))console.error(`On component ${J.job.componentName}, the binding ${z.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`);$.push(u5(Y.xref,RG.get(z.type),z.name,W8(J.job,S6(z.value),z.i18n),z.unit,z.securityContext,!1,!1,null,S1(z.i18n)??null,z.sourceSpan))}J.create.push($.filter((z)=>z?.kind===W.ExtractedAttribute)),J.update.push($.filter((z)=>z?.kind===W.Binding));for(let z of Z.outputs){if(z.type===B0.LegacyAnimation&&z.phase===null)throw Error("Animation listener should have a phase");if(z.type===B0.TwoWay)J.create.push(E$(Y.xref,Y.handle,z.name,Y.tag,UG(J,z.handler,z.handlerSpan),z.sourceSpan));else if(z.type===B0.Animation)J.create.push(w$(Y.xref,Y.handle,z.name,Y.tag,v6(J,z.handler,z.handlerSpan),z.name.endsWith("enter")?"enter":"leave",z.target,!1,z.sourceSpan));else J.create.push(s8(Y.xref,Y.handle,z.name,Y.tag,v6(J,z.handler,z.handlerSpan),z.phase,z.target,!1,z.sourceSpan))}if($.some((z)=>z?.i18nMessage)!==null)J.create.push(A$(J.job.allocateXrefId(),new O0,Y.xref))}function xR(J,Y,Z,$){let G=[];for(let z of Z.templateAttrs)if(z instanceof E6){let H=M5.securityContext(P5,z.name,!0);G.push(W7(J,Y.xref,u.Attribute,z.name,z.value,null,H,!0,$,S1(z.i18n),z.sourceSpan))}else G.push(W7(J,Y.xref,z.type,z.name,S6(z.value),z.unit,z.securityContext,!0,$,S1(z.i18n),z.sourceSpan));for(let z of Z.attributes){let H=M5.securityContext(P5,z.name,!0);G.push(W7(J,Y.xref,u.Attribute,z.name,z.value,null,H,!1,$,S1(z.i18n),z.sourceSpan))}for(let z of Z.inputs)G.push(W7(J,Y.xref,z.type,z.name,S6(z.value),z.unit,z.securityContext,!1,$,S1(z.i18n),z.sourceSpan));J.create.push(G.filter((z)=>z?.kind===W.ExtractedAttribute)),J.update.push(G.filter((z)=>z?.kind===W.Binding));for(let z of Z.outputs){if(z.type===B0.LegacyAnimation&&z.phase===null)throw Error("Animation listener should have a phase");if($===y0.NgTemplate)if(z.type===B0.TwoWay)J.create.push(E$(Y.xref,Y.handle,z.name,Y.tag,UG(J,z.handler,z.handlerSpan),z.sourceSpan));else J.create.push(s8(Y.xref,Y.handle,z.name,Y.tag,v6(J,z.handler,z.handlerSpan),z.phase,z.target,!1,z.sourceSpan));if($===y0.Structural&&z.type!==B0.LegacyAnimation){let H=M5.securityContext(P5,z.name,!1);J.create.push(Y1(Y.xref,C.Property,null,z.name,null,null,null,H))}}if(G.some((z)=>z?.i18nMessage)!==null)J.create.push(A$(J.job.allocateXrefId(),new O0,Y.xref))}function W7(J,Y,Z,$,G,z,H,Q,K,_,X){let L=typeof G==="string";if(K===y0.Structural){if(!Q)switch(Z){case u.Property:case u.Class:case u.Style:return Y1(Y,C.Property,null,$,null,null,_,H);case u.TwoWay:return Y1(Y,C.TwoWayProperty,null,$,null,null,_,H)}if(!L&&(Z===u.Attribute||Z===u.LegacyAnimation||Z===u.Animation))return null}let F=RG.get(Z);if(K===y0.NgTemplate){if(Z===u.Class||Z===u.Style||Z===u.Attribute&&!L)F=C.Property}return u5(Y,F,$,W8(J.job,G,_),z,H,L,Q,K,_,X)}function v6(J,Y,Z){Y=S6(Y);let $=[],G=Y instanceof l6?Y.expressions:[Y];if(G.length===0)throw Error("Expected listener to have non-empty expression list.");let z=G.map((Q)=>x(Q,J.job,Z)),H=z.pop();return $.push(...z.map((Q)=>r0(new I0(Q,Q.sourceSpan)))),$.push(r0(new _0(H,H.sourceSpan))),$}function UG(J,Y,Z){Y=S6(Y);let $=[];if(Y instanceof l6)if(Y.expressions.length===1)Y=Y.expressions[0];else throw Error("Expected two-way listener to have a single expression.");let G=x(Y,J.job,Z),z=new q0("$event"),H=new X3(G,z);return $.push(r0(new I0(H))),$.push(r0(new _0(z))),$}function S6(J){return J instanceof p0?J.ast:J}function FG(J,Y){vR(J.localRefs);for(let{name:Z,value:$}of Y.references)J.localRefs.push({name:Z,target:$})}function vR(J){if(!Array.isArray(J))throw Error("AssertionError: expected an array")}function X0(J,Y){if(Y===null)return null;let Z=Y.start.moveBy(J.start),$=Y.start.moveBy(J.end),G=Y.fullStart.moveBy(J.start);return new h(Z,$,G)}function m7(J,Y,Z){let $=null;for(let G of Z.children){if(G instanceof Z3||G instanceof v8)continue;if($!==null)return null;if(G instanceof P1||G instanceof $1&&G.tagName!==null)$=G;else return null}if($!==null){for(let z of $.attributes)if(!z.name.startsWith(UR)){let H=M5.securityContext(P5,z.name,!0);J.update.push(u5(Y,C.Attribute,z.name,q(z.value),null,H,!0,!1,null,S1(z.i18n),z.sourceSpan))}for(let z of $.inputs)if(z.type!==u.LegacyAnimation&&z.type!==u.Animation&&z.type!==u.Attribute){let H=M5.securityContext(P5,z.name,!0);J.create.push(Y1(Y,C.Property,null,z.name,null,null,null,H))}let G=$ instanceof P1?$.name:$.tagName;return G===P5?null:G}return null}function SR(J){let Y=new Set(J.params.map((Z)=>Z.name));return j(J,(Z)=>{if(Z instanceof l5)for(let $ of Z.params)Y.add($.name);else if(Z instanceof q0&&Y.has(Z.name))return S(Z.name);return Z},v.None)}var fR=!1;function gR(){return fR}function l7(J,Y){return s7(S(f4).bitwiseAnd(q(J),null),Y)}function bR(J){return(J.descendants?1:0)|(J.static?2:0)|(J.emitDistinctChangesOnly?4:0)}function uR(J,Y){if(Array.isArray(J.predicate)){let Z=[];return J.predicate.forEach(($)=>{let G=$.split(",").map((z)=>q(z.trim()));Z.push(...G)}),Y.getConstLiteral(o(Z),!0)}else switch(J.predicate.forwardRef){case 0:case 2:return J.predicate.expression;case 1:return O(R.resolveForwardRef).callFn([J.predicate.expression])}}function qG(J,Y,Z){let $=[];if(Z!==void 0)$.push(...Z);if(J.isSignal)$.push(new b0(S(n0),J.propertyName));if($.push(uR(J,Y),q(bR(J))),J.read)$.push(J.read);return $}var zJ=Symbol("queryAdvancePlaceholder");function VG(J){let Y=[],Z=0,$=()=>{if(Z>0)Y.unshift(O(R.queryAdvance).callFn(Z===1?[]:[q(Z)]).toStmt()),Z=0};for(let G=J.length-1;G>=0;G--){let z=J[G];if(z===zJ)Z++;else $(),Y.unshift(z)}return $(),Y}function mR(J,Y,Z){let $=[],G=[],z=mZ((_)=>G.push(_),g8),H=null,Q=null;if(J.forEach((_)=>{let X=qG(_,Y);if(_.isSignal)H??=O(R.viewQuerySignal),H=H.callFn(X);else Q??=O(R.viewQuery),Q=Q.callFn(X);if(_.isSignal){G.push(zJ);return}let L=z(),F=O(R.loadQuery).callFn([]),D=O(R.queryRefresh).callFn([L.set(F)]),w=S(n0).prop(_.propertyName).set(_.first?L.prop("first"):L);G.push(D.and(w).toStmt())}),H!==null)$.push(new I0(H));if(Q!==null)$.push(new I0(Q));let K=Z?`${Z}_Query`:null;return Q5([new Q0(f4,y5),new Q0(n0,g0)],[l7(1,$),l7(2,VG(G))],q1,null,K)}function lR(J,Y,Z){let $=[],G=[],z=mZ((_)=>G.push(_),g8),H=null,Q=null;for(let _ of J){let X=qG(_,Y,[S("dirIndex")]);if(_.isSignal)H??=O(R.contentQuerySignal),H=H.callFn(X);else Q??=O(R.contentQuery),Q=Q.callFn(X);if(_.isSignal){G.push(zJ);continue}let L=z(),F=O(R.loadQuery).callFn([]),D=O(R.queryRefresh).callFn([L.set(F)]),w=S(n0).prop(_.propertyName).set(_.first?L.prop("first"):L);G.push(D.and(w).toStmt())}if(H!==null)$.push(new I0(H));if(Q!==null)$.push(new I0(Q));let K=Z?`${Z}_ContentQueries`:null;return Q5([new Q0(f4,y5),new Q0(n0,g0),new Q0("dirIndex",y5)],[l7(1,$),l7(2,VG(G))],q1,null,K)}class DG extends GW{constructor(){super(Q8)}parse(J,Y,Z){return super.parse(J,Y,Z)}}var K7=".",cR="attr",h3="animate",dR="class",pR="style",iR="*",k3="animate-";class wG{_exprParser;_schemaRegistry;errors;constructor(J,Y,Z){this._exprParser=J,this._schemaRegistry=Y,this.errors=Z}createBoundHostProperties(J,Y){let Z=[];for(let $ of Object.keys(J)){let G=J[$];if(typeof G==="string")this.parsePropertyBinding($,G,!0,!1,Y,Y.start.offset,void 0,[],Z,Y);else this._reportError(`Value of the host property binding "${$}" needs to be a string representing an expression but got "${G}" (${typeof G})`,Y)}return Z}createDirectiveHostEventAsts(J,Y){let Z=[];for(let $ of Object.keys(J)){let G=J[$];if(typeof G==="string")this.parseEvent($,G,!1,Y,Y,[],Z,Y);else this._reportError(`Value of the host listener "${$}" needs to be a string representing an expression but got "${G}" (${typeof G})`,Y)}return Z}parseInterpolation(J,Y,Z){let $=Y.fullStart.offset;try{let G=this._exprParser.parseInterpolation(J,Y,$,Z);if(G)this.errors.push(...G.errors);return G}catch(G){return this._reportError(`${G}`,Y),this._exprParser.wrapLiteralPrimitive("ERROR",Y,$)}}parseInterpolationExpression(J,Y){let Z=Y.start.offset;try{let $=this._exprParser.parseInterpolationExpression(J,Y,Z);if($)this.errors.push(...$.errors);return $}catch($){return this._reportError(`${$}`,Y),this._exprParser.wrapLiteralPrimitive("ERROR",Y,Z)}}parseInlineTemplateBinding(J,Y,Z,$,G,z,H,Q){let K=Z.start.offset+iR.length,_=this._parseTemplateBindings(J,Y,Z,K,$);for(let X of _){let L=s1(Z,X.sourceSpan),F=X.key.source,D=s1(Z,X.key.span);if(X instanceof T7){let w=X.value?X.value.source:"$implicit",T=X.value?s1(Z,X.value.span):void 0;H.push(new NZ(F,w,L,D,T))}else if(X.value){let w=Q?L:Z,T=s1(Z,X.value.ast.sourceSpan);this._parsePropertyAst(F,X.value,!1,w,D,T,G,z)}else G.push([F,""]),this.parseLiteralAttr(F,null,D,$,void 0,G,z,D)}}_parseTemplateBindings(J,Y,Z,$,G){try{let z=this._exprParser.parseTemplateBindings(J,Y,Z,$,G);return z.errors.forEach((H)=>this.errors.push(H)),z.warnings.forEach((H)=>{this._reportError(H,Z,x1.WARNING)}),z.templateBindings}catch(z){return this._reportError(`${z}`,Z),[]}}parseLiteralAttr(J,Y,Z,$,G,z,H,Q){if(x3(J)){if(J=J.substring(1),Q!==void 0)Q=s1(Q,new Z1(Q.start.offset+1,Q.end.offset));if(Y)this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',Z,x1.ERROR);this._parseLegacyAnimation(J,Y,Z,$,Q,G,z,H)}else H.push(new J6(J,this._exprParser.wrapLiteralPrimitive(Y,"",$),X1.LITERAL_ATTR,Z,Q,G))}parsePropertyBinding(J,Y,Z,$,G,z,H,Q,K,_){if(J.length===0)this._reportError("Property name is missing in binding",G);let X=!1;if(J.startsWith(k3)){if(X=!0,J=J.substring(k3.length),_!==void 0)_=s1(_,new Z1(_.start.offset+k3.length,_.end.offset))}else if(x3(J)){if(X=!0,J=J.substring(1),_!==void 0)_=s1(_,new Z1(_.start.offset+1,_.end.offset))}if(X)this._parseLegacyAnimation(J,Y,G,z,_,H,Q,K);else if(J.startsWith(`${h3}${K7}`))this._parseAnimation(J,this.parseBinding(Y,Z,H||G,z),G,_,H,Q,K);else this._parsePropertyAst(J,this.parseBinding(Y,Z,H||G,z),$,G,_,H,Q,K)}parsePropertyInterpolation(J,Y,Z,$,G,z,H,Q){let K=this.parseInterpolation(Y,$||Z,Q);if(K)return this._parsePropertyAst(J,K,!1,Z,H,$,G,z),!0;return!1}_parsePropertyAst(J,Y,Z,$,G,z,H,Q){H.push([J,Y.source]),Q.push(new J6(J,Y,Z?X1.TWO_WAY:X1.DEFAULT,$,G,z))}_parseAnimation(J,Y,Z,$,G,z,H){z.push([J,Y.source]),H.push(new J6(J,Y,X1.ANIMATION,Z,$,G))}_parseLegacyAnimation(J,Y,Z,$,G,z,H,Q){if(J.length===0)this._reportError("Animation trigger is missing",Z);let K=this.parseBinding(Y||"undefined",!1,z||Z,$);H.push([J,K.source]),Q.push(new J6(J,K,X1.LEGACY_ANIMATION,Z,G,z))}parseBinding(J,Y,Z,$){try{let G=Y?this._exprParser.parseSimpleBinding(J,Z,$):this._exprParser.parseBinding(J,Z,$);if(G)this.errors.push(...G.errors);return G}catch(G){return this._reportError(`${G}`,Z),this._exprParser.wrapLiteralPrimitive("ERROR",Z,$)}}createBoundElementProperty(J,Y,Z=!1,$=!0){if(Y.isLegacyAnimation)return new r3(Y.name,u.LegacyAnimation,s.NONE,Y.expression,null,Y.sourceSpan,Y.keySpan,Y.valueSpan);let G=null,z=void 0,H=null,Q=Y.name.split(K7),K=void 0;if(Q.length>1){if(Q[0]==cR){if(H=Q.slice(1).join(K7),!Z)this._validatePropertyOrAttributeName(H,Y.sourceSpan,!0);K=v3(this._schemaRegistry,J,H,!0);let _=H.indexOf(":");if(_>-1){let X=H.substring(0,_),L=H.substring(_+1);H=L7(X,L)}z=u.Attribute}else if(Q[0]==dR)H=Q[1],z=u.Class,K=[s.NONE];else if(Q[0]==pR)G=Q.length>2?Q[2]:null,H=Q[1],z=u.Style,K=[s.STYLE];else if(Q[0]==h3)H=Y.name,z=u.Animation,K=[s.NONE]}if(H===null){let _=this._schemaRegistry.getMappedPropName(Y.name);if(H=$?_:Y.name,K=v3(this._schemaRegistry,J,_,!1),z=Y.type===X1.TWO_WAY?u.TwoWay:u.Property,!Z)this._validatePropertyOrAttributeName(_,Y.sourceSpan,!1)}return new r3(H,z,K[0],Y.expression,G,Y.sourceSpan,Y.keySpan,Y.valueSpan)}parseEvent(J,Y,Z,$,G,z,H,Q){if(J.length===0)this._reportError("Event name is missing in binding",$);if(x3(J)){if(J=J.slice(1),Q!==void 0)Q=s1(Q,new Z1(Q.start.offset+1,Q.end.offset));this._parseLegacyAnimationEvent(J,Y,$,G,H,Q)}else this._parseRegularEvent(J,Y,Z,$,G,z,H,Q)}calcPossibleSecurityContexts(J,Y,Z){let $=this._schemaRegistry.getMappedPropName(Y);return v3(this._schemaRegistry,J,$,Z)}parseEventListenerName(J){let[Y,Z]=Mz(J,[null,J]);return{eventName:Z,target:Y}}parseLegacyAnimationEventName(J){let Y=Pz(J,[J,null]);return{eventName:Y[0],phase:Y[1]===null?null:Y[1].toLowerCase()}}_parseLegacyAnimationEvent(J,Y,Z,$,G,z){let{eventName:H,phase:Q}=this.parseLegacyAnimationEventName(J),K=this._parseAction(Y,$);if(G.push(new n3(H,Q,B0.LegacyAnimation,K,Z,$,z)),H.length===0)this._reportError("Animation event name is missing in binding",Z);if(Q){if(Q!=="start"&&Q!=="done")this._reportError(`The provided animation output phase value "${Q}" for "@${H}" is not supported (use start or done)`,Z)}else this._reportError(`The animation trigger output event (@${H}) is missing its phase value name (start or done are currently supported)`,Z)}_parseRegularEvent(J,Y,Z,$,G,z,H,Q){let{eventName:K,target:_}=this.parseEventListenerName(J),X=this.errors.length,L=this._parseAction(Y,G),F=this.errors.length===X;if(z.push([J,L.source]),Z&&F&&!this._isAllowedAssignmentEvent(L))this._reportError("Unsupported expression in a two-way binding",$);let D=B0.Regular;if(Z)D=B0.TwoWay;if(J.startsWith(`${h3}${K7}`))D=B0.Animation;H.push(new n3(K,_,D,L,$,G,Q))}_parseAction(J,Y){let Z=Y&&Y.start?Y.start.offset:0;try{let $=this._exprParser.parseAction(J,Y,Z);if($)this.errors.push(...$.errors);if(!$||$.ast instanceof j0)return this._reportError("Empty expressions are not allowed",Y),this._exprParser.wrapLiteralPrimitive("ERROR",Y,Z);return $}catch($){return this._reportError(`${$}`,Y),this._exprParser.wrapLiteralPrimitive("ERROR",Y,Z)}}_reportError(J,Y,Z=x1.ERROR){this.errors.push(new M(Y,J,Z))}_validatePropertyOrAttributeName(J,Y,Z){let $=Z?this._schemaRegistry.validateAttribute(J):this._schemaRegistry.validateProperty(J);if($.error)this._reportError($.msg,Y,x1.ERROR)}_isAllowedAssignmentEvent(J){if(J instanceof p0)return this._isAllowedAssignmentEvent(J.ast);if(J instanceof J3)return this._isAllowedAssignmentEvent(J.expression);if(J instanceof d6&&J.args.length===1&&J.receiver instanceof g1&&J.receiver.name==="$any"&&J.receiver.receiver instanceof u1)return this._isAllowedAssignmentEvent(J.args[0]);if(J instanceof g1||J instanceof A4){if(!K8(J))return!0}return!1}}function K8(J){if(J instanceof a7||J instanceof t7)return!0;if(J instanceof Y3)return K8(J.expression);if(J instanceof g1||J instanceof A4||J instanceof d6)return K8(J.receiver);return!1}function x3(J){return J[0]=="@"}function v3(J,Y,Z,$){let G,z=(H)=>J.securityContext(H,Z,$);if(Y===null)G=J.allKnownElementNames().map(z);else G=[],Y5.parse(Y).forEach((H)=>{let Q=H.element?[H.element]:J.allKnownElementNames(),K=new Set(H.notSelectors.filter((X)=>X.isElementSelector()).map((X)=>X.element)),_=Q.filter((X)=>!K.has(X));G.push(..._.map(z))});return G.length===0?[s.NONE]:Array.from(new Set(G)).sort()}function s1(J,Y){let Z=Y.start-J.start.offset,$=Y.end-J.end.offset;return new h(J.start.moveBy(Z),J.end.moveBy($),J.fullStart.moveBy(Z),J.details)}function sR(J){if(J==null||J.length===0||J[0]=="/")return!1;let Y=J.match(oR);return Y===null||Y[1]=="package"||Y[1]=="asset"}var oR=/^([^:/?#]+):/,nR="select",rR="link",aR="rel",tR="href",eR="stylesheet",JU="style",YU="script",ZU="ngNonBindable",$U="ngProjectAs";function EG(J){let Y=null,Z=null,$=null,G=!1,z="";J.attrs.forEach((K)=>{let _=K.name.toLowerCase();if(_==nR)Y=K.value;else if(_==tR)Z=K.value;else if(_==aR)$=K.value;else if(K.name==ZU)G=!0;else if(K.name==$U){if(K.value.length>0)z=K.value}}),Y=GU(Y);let H=J.name.toLowerCase(),Q=S0.OTHER;if(a3(H))Q=S0.NG_CONTENT;else if(H==JU)Q=S0.STYLE;else if(H==YU)Q=S0.SCRIPT;else if(H==rR&&$==eR)Q=S0.STYLESHEET;return new AG(Q,Y,Z,G,z)}var S0;(function(J){J[J.NG_CONTENT=0]="NG_CONTENT",J[J.STYLE=1]="STYLE",J[J.STYLESHEET=2]="STYLESHEET",J[J.SCRIPT=3]="SCRIPT",J[J.OTHER=4]="OTHER"})(S0||(S0={}));class AG{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(J,Y,Z,$,G){this.type=J,this.selectAttr=Y,this.hrefAttr=Z,this.nonBindable=$,this.projectAs=G}}function GU(J){if(J===null||J.length===0)return"*";return J}var zU=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,HU=/^track\s+([\S\s]*)/,QU=/^(as\s+)(.*)/,w3=/^else[^\S\r\n]+if/,_U=/^let\s+([\S\s]*)/,WU=/^[$A-Z_][0-9A-Z_$]*$/i,iY=/(\s*)(\S+)(\s*)/,R6=new Set(["$index","$first","$last","$even","$odd","$count"]);function sY(J){return J==="empty"}function oY(J){return J==="else"||w3.test(J)}function KU(J,Y,Z,$){let G=qU(Y),z=[],H=nY(J,G,$);if(H!==null)z.push(new K4(H.expression,e(Z,J.children,J.children),H.expressionAlias,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.nameSpan,J.i18n));for(let L of Y)if(w3.test(L.name)){let F=nY(L,G,$);if(F!==null){let D=e(Z,L.children,L.children);z.push(new K4(F.expression,D,F.expressionAlias,L.sourceSpan,L.startSourceSpan,L.endSourceSpan,L.nameSpan,L.i18n))}}else if(L.name==="else"){let F=e(Z,L.children,L.children);z.push(new K4(null,F,null,L.sourceSpan,L.startSourceSpan,L.endSourceSpan,L.nameSpan,L.i18n))}let Q=z.length>0?z[0].startSourceSpan:J.startSourceSpan,K=z.length>0?z[z.length-1].endSourceSpan:J.endSourceSpan,_=J.sourceSpan,X=z[z.length-1];if(X!==void 0)_=new h(Q.start,X.sourceSpan.end);return{node:new k8(z,_,J.startSourceSpan,K,J.nameSpan),errors:G}}function XU(J,Y,Z,$){let G=[],z=RU(J,G,$),H=null,Q=null;for(let K of Y)if(K.name==="empty")if(Q!==null)G.push(new M(K.sourceSpan,"@for loop can only have one @empty block"));else if(K.parameters.length>0)G.push(new M(K.sourceSpan,"@empty block cannot have parameters"));else Q=new _3(e(Z,K.children,K.children),K.sourceSpan,K.startSourceSpan,K.endSourceSpan,K.nameSpan,K.i18n);else G.push(new M(K.sourceSpan,`Unrecognized @for loop block "${K.name}"`));if(z!==null)if(z.trackBy===null)G.push(new M(J.startSourceSpan,'@for loop must have a "track" expression'));else{let K=Q?.endSourceSpan??J.endSourceSpan,_=new h(J.sourceSpan.start,K?.end??J.sourceSpan.end);UU(z.trackBy.expression,z.trackBy.keywordSpan,G),H=new i6(z.itemName,z.expression,z.trackBy.expression,z.trackBy.keywordSpan,z.context,e(Z,J.children,J.children),Q,_,J.sourceSpan,J.startSourceSpan,K,J.nameSpan,J.i18n)}return{node:H,errors:G}}function LU(J,Y,Z){let $=VU(J),G=J.parameters.length>0?f6(J.parameters[0],Z):Z.parseBinding("",!1,J.sourceSpan,0),z=[],H=[],Q=[],K=null,_=null;for(let L of J.children){if(!(L instanceof L1))continue;if((L.name!=="case"||L.parameters.length===0)&&L.name!=="default"&&L.name!=="default never"){H.push(new x8(L.name,L.sourceSpan,L.nameSpan));continue}if(_!==null)$.push(new M(L.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let F=L.name==="case",D=null;if(F)D=f6(L.parameters[0],Z);else if(L.name==="default never"){if(L.children.length>0||L.endSourceSpan!==null&&L.endSourceSpan.start.offset!==L.endSourceSpan.end.offset)$.push(new M(L.sourceSpan,'@default block with "never" parameter cannot have a body'));if(Q.length>0)$.push(new M(L.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter'));_=new xZ(L.sourceSpan,L.startSourceSpan,L.endSourceSpan,L.nameSpan);continue}let w=new kZ(D,L.sourceSpan,L.startSourceSpan,L.endSourceSpan,L.nameSpan);if(Q.push(w),L.children.length===0&&L.endSourceSpan!==null&&L.endSourceSpan.start.offset===L.endSourceSpan.end.offset){if(K===null)K=L.sourceSpan;continue}let{sourceSpan:I,startSourceSpan:B}=L;if(K!==null)I=new h(K.start,L.sourceSpan.end),B=new h(K.start,L.startSourceSpan.end),K=null;let d=new Q3(Q,e(Y,L.children,L.children),I,B,L.endSourceSpan,L.nameSpan,L.i18n);z.push(d),Q=[]}return{node:new h8(G,z,H,_,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.nameSpan),errors:$}}function RU(J,Y,Z){if(J.parameters.length===0)return Y.push(new M(J.startSourceSpan,"@for loop does not have an expression")),null;let[$,...G]=J.parameters,z=DU($,Y)?.match(zU);if(!z||z[2].trim().length===0)return Y.push(new M($.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,H,Q]=z;if(R6.has(H))Y.push(new M($.sourceSpan,`@for loop item name cannot be one of ${Array.from(R6).join(", ")}.`));let K=$.expression.split(" ")[0],_=new h($.sourceSpan.start,$.sourceSpan.start.moveBy(K.length)),X={itemName:new x5(H,"$implicit",_,_),trackBy:null,expression:f6($,Z,Q),context:Array.from(R6,(L)=>{let F=new h(J.startSourceSpan.end,J.startSourceSpan.end);return new x5(L,L,F,F)})};for(let L of G){let F=L.expression.match(_U);if(F!==null){let w=new h(L.sourceSpan.start.moveBy(F[0].length-F[1].length),L.sourceSpan.end);FU(L.sourceSpan,F[1],w,H,X.context,Y);continue}let D=L.expression.match(HU);if(D!==null){if(X.trackBy!==null)Y.push(new M(L.sourceSpan,'@for loop can only have one "track" expression'));else{let w=f6(L,Z,D[1]);if(w.ast instanceof j0)Y.push(new M(J.startSourceSpan,'@for loop must have a "track" expression'));let T=new h(L.sourceSpan.start,L.sourceSpan.start.moveBy(5));X.trackBy={expression:w,keywordSpan:T}}continue}Y.push(new M(L.sourceSpan,`Unrecognized @for loop parameter "${L.expression}"`))}return X}function UU(J,Y,Z){let $=new IG;if(J.ast.visit($),$.hasPipe)Z.push(new M(Y,"Cannot use pipes in track expressions"))}function FU(J,Y,Z,$,G,z){let H=Y.split(","),Q=Z.start;for(let K of H){let _=K.split("="),X=_.length===2?_[0].trim():"",L=_.length===2?_[1].trim():"";if(X.length===0||L.length===0)z.push(new M(J,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!R6.has(L))z.push(new M(J,`Unknown "let" parameter variable "${L}". The allowed variables are: ${Array.from(R6).join(", ")}`));else if(X===$)z.push(new M(J,`Invalid @for loop "let" parameter. Variable cannot be called "${$}"`));else if(G.some((F)=>F.name===X))z.push(new M(J,`Duplicate "let" parameter variable "${L}"`));else{let[,F,D]=_[0].match(iY)??[],w=F!==void 0&&_.length===2?new h(Q.moveBy(F.length),Q.moveBy(F.length+D.length)):Z,T=void 0;if(_.length===2){let[,B,d]=_[1].match(iY)??[];T=B!==void 0?new h(Q.moveBy(_[0].length+1+B.length),Q.moveBy(_[0].length+1+B.length+d.length)):void 0}let I=new h(w.start,T?.end??w.end);G.push(new x5(X,L,I,w,T))}Q=Q.moveBy(K.length+1)}}function qU(J){let Y=[],Z=!1;for(let $=0;$<J.length;$++){let G=J[$];if(G.name==="else"){if(Z)Y.push(new M(G.startSourceSpan,"Conditional can only have one @else block"));else if(J.length>1&&$<J.length-1)Y.push(new M(G.startSourceSpan,"@else block must be last inside the conditional"));else if(G.parameters.length>0)Y.push(new M(G.startSourceSpan,"@else block cannot have parameters"));Z=!0}else if(!w3.test(G.name))Y.push(new M(G.startSourceSpan,`Unrecognized conditional block @${G.name}`))}return Y}function VU(J){let Y=[],Z=!1;if(J.parameters.length!==1)return Y.push(new M(J.startSourceSpan,"@switch block must have exactly one parameter")),Y;for(let $ of J.children){if($ instanceof F3||$ instanceof u4&&$.value.trim().length===0)continue;if(!($ instanceof L1)||$.name!=="case"&&$.name!=="default"&&$.name!=="default never"){Y.push(new M($.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}if($.name==="default never"){if(Z)Y.push(new M($.startSourceSpan,"@switch block can only have one @default block"));Z=!0}else if($.name==="default"){if(Z)Y.push(new M($.startSourceSpan,"@switch block can only have one @default block"));else if($.parameters.length>0)Y.push(new M($.startSourceSpan,"@default block cannot have parameters"));Z=!0}else if($.name==="case"&&$.parameters.length!==1)Y.push(new M($.startSourceSpan,"@case block must have exactly one parameter"))}return Y}function f6(J,Y,Z){let $,G;if(typeof Z==="string")$=Math.max(0,J.expression.lastIndexOf(Z)),G=$+Z.length;else $=0,G=J.expression.length;return Y.parseBinding(J.expression.slice($,G),!1,J.sourceSpan,J.sourceSpan.start.offset+$)}function nY(J,Y,Z){if(J.parameters.length===0)return Y.push(new M(J.startSourceSpan,"Conditional block does not have an expression")),null;let $=f6(J.parameters[0],Z),G=null;for(let z=1;z<J.parameters.length;z++){let H=J.parameters[z],Q=H.expression.match(QU);if(Q===null)Y.push(new M(H.sourceSpan,`Unrecognized conditional parameter "${H.expression}"`));else if(J.name!=="if"&&!w3.test(J.name))Y.push(new M(H.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(G!==null)Y.push(new M(H.sourceSpan,'Conditional can only have one "as" expression'));else{let K=Q[2].trim();if(WU.test(K)){let _=H.sourceSpan.start.moveBy(Q[1].length),X=new h(_,_.moveBy(K.length));G=new x5(K,K,X,X)}else Y.push(new M(H.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:$,expressionAlias:G}}function DU(J,Y){let Z=J.expression,$=/^\s$/,G=0,z=0,H=Z.length-1;for(let Q=0;Q<Z.length;Q++){let K=Z[Q];if(K==="(")z=Q+1,G++;else if($.test(K))continue;else break}if(G===0)return Z;for(let Q=Z.length-1;Q>-1;Q--){let K=Z[Q];if(K===")"){if(H=Q,G--,G===0)break}else if($.test(K))continue;else break}if(G!==0)return Y.push(new M(J.sourceSpan,"Unclosed parentheses in expression")),null;return Z.slice(z,H)}class IG extends p6{hasPipe=!1;visitPipe(){this.hasPipe=!0}}var wU=/^\d+\.?\d*(ms|s)?$/,EU=/^\s$/,rY=new Map([[J1,M0],[T1,k1],[P0,z0]]),T0;(function(J){J.IDLE="idle",J.TIMER="timer",J.INTERACTION="interaction",J.IMMEDIATE="immediate",J.HOVER="hover",J.VIEWPORT="viewport",J.NEVER="never"})(T0||(T0={}));function AU({expression:J,sourceSpan:Y},Z,$){let G=J.indexOf("never"),z=new h(Y.start.moveBy(G),Y.start.moveBy(G+5)),H=HJ(J,Y),Q=QJ(J,Y);if(G===-1)$.push(new M(Y,'Could not find "never" keyword in expression'));else _J("never",Z,$,new MZ(z,Y,H,null,Q))}function S3({expression:J,sourceSpan:Y},Z,$,G){let z=J.indexOf("when"),H=new h(Y.start.moveBy(z),Y.start.moveBy(z+4)),Q=HJ(J,Y),K=QJ(J,Y);if(z===-1)G.push(new M(Y,'Could not find "when" keyword in expression'));else{let _=g6(J,z+1),X=Z.parseBinding(J.slice(_),!1,Y,Y.start.offset+_);_J("when",$,G,new M8(X,Y,Q,H,K))}}function f3({expression:J,sourceSpan:Y},Z,$,G,z){let H=J.indexOf("on"),Q=new h(Y.start.moveBy(H),Y.start.moveBy(H+2)),K=HJ(J,Y),_=QJ(J,Y);if(H===-1)G.push(new M(Y,'Could not find "on" keyword in expression'));else{let X=g6(J,H+1),L=J.startsWith("hydrate");new jG(J,Z,X,Y,$,G,L?MU:NU,L,K,Q,_).parse()}}function HJ(J,Y){if(!J.startsWith("prefetch"))return null;return new h(Y.start,Y.start.moveBy(8))}function QJ(J,Y){if(!J.startsWith("hydrate"))return null;return new h(Y.start,Y.start.moveBy(7))}class jG{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(J,Y,Z,$,G,z,H,Q,K,_,X){this.expression=J,this.bindingParser=Y,this.start=Z,this.span=$,this.triggers=G,this.errors=z,this.validator=H,this.isHydrationTrigger=Q,this.prefetchSpan=K,this.onSourceSpan=_,this.hydrateSpan=X,this.tokens=new V3().tokenize(J.slice(Z))}parse(){while(this.tokens.length>0&&this.index<this.tokens.length){let J=this.token();if(!J.isIdentifier()){this.unexpectedToken(J);break}if(this.isFollowedByOrLast(C0))this.consumeTrigger(J,[]),this.advance();else if(this.isFollowedByOrLast(P0)){this.advance();let Y=this.errors.length,Z=this.consumeParameters();if(this.errors.length!==Y)break;this.consumeTrigger(J,Z),this.advance()}else if(this.index<this.tokens.length-1)this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(J){if(this.index===this.tokens.length-1)return!0;return this.tokens[this.index+1].isCharacter(J)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(J,Y){let Z=this.span.start.moveBy(this.start+J.index-this.tokens[0].index),$=new h(Z,Z.moveBy(J.strValue.length)),G=Z.moveBy(this.token().end-J.index),z=J.index===0,H=z?this.onSourceSpan:null,Q=z?this.prefetchSpan:null,K=z?this.hydrateSpan:null,_=new h(z?this.span.start:Z,G);try{switch(J.toString()){case T0.IDLE:this.trackTrigger("idle",IU(Y,$,_,Q,H,K));break;case T0.TIMER:this.trackTrigger("timer",jU(Y,$,_,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case T0.INTERACTION:this.trackTrigger("interaction",BU(Y,$,_,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case T0.IMMEDIATE:this.trackTrigger("immediate",CU(Y,$,_,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case T0.HOVER:this.trackTrigger("hover",TU(Y,$,_,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case T0.VIEWPORT:this.trackTrigger("viewport",OU(this.start,this.isHydrationTrigger,this.bindingParser,Y,$,_,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;default:throw Error(`Unrecognized trigger type "${J}"`)}}catch(X){this.error(J,X.message)}}consumeParameters(){let J=[];if(!this.token().isCharacter(P0))return this.unexpectedToken(this.token()),J;this.advance();let Y=[],Z=[];while(this.index<this.tokens.length){let $=this.token();if($.isCharacter(z0)&&Y.length===0){if(Z.length)J.push({expression:this.tokenRangeText(Z),start:Z[0].index});break}if($.type===P.Character&&rY.has($.numValue))Y.push(rY.get($.numValue));if(Y.length>0&&$.isCharacter(Y[Y.length-1]))Y.pop();if(Y.length===0&&$.isCharacter(C0)&&Z.length>0){J.push({expression:this.tokenRangeText(Z),start:Z[0].index}),this.advance(),Z=[];continue}Z.push($),this.advance()}if(!this.token().isCharacter(z0)||Y.length>0)this.error(this.token(),"Unexpected end of expression");if(this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(C0))this.unexpectedToken(this.tokens[this.index+1]);return J}tokenRangeText(J){if(J.length===0)return"";return this.expression.slice(this.start+J[0].index,this.start+J[J.length-1].end)}trackTrigger(J,Y){_J(J,this.triggers,this.errors,Y)}error(J,Y){let Z=this.span.start.moveBy(this.start+J.index),$=Z.moveBy(J.end-J.index);this.errors.push(new M(new h(Z,$),Y))}unexpectedToken(J){this.error(J,`Unexpected token "${J}"`)}}function _J(J,Y,Z,$){if(Y[J])Z.push(new M($.sourceSpan,`Duplicate "${J}" trigger is not allowed`));else Y[J]=$}function IU(J,Y,Z,$,G,z){if(J.length>0)throw Error(`"${T0.IDLE}" trigger cannot have parameters`);return new PZ(Y,Z,$,G,z)}function jU(J,Y,Z,$,G,z){if(J.length!==1)throw Error(`"${T0.TIMER}" trigger must have exactly one parameter`);let H=c7(J[0].expression);if(H===null)throw Error(`Could not parse time value of trigger "${T0.TIMER}"`);return new hZ(H,Y,Z,$,G,z)}function CU(J,Y,Z,$,G,z){if(J.length>0)throw Error(`"${T0.IMMEDIATE}" trigger cannot have parameters`);return new yZ(Y,Z,$,G,z)}function TU(J,Y,Z,$,G,z,H){return H(T0.HOVER,J),new P8(J[0]?.expression??null,Y,Z,$,G,z)}function BU(J,Y,Z,$,G,z,H){return H(T0.INTERACTION,J),new y8(J[0]?.expression??null,Y,Z,$,G,z)}function OU(J,Y,Z,$,G,z,H,Q,K,_){_(T0.VIEWPORT,$);let X,L;if($.length===0)X=L=null;else if(!$[0].expression.startsWith("{"))X=$[0].expression,L=null;else{let F=Z.parseBinding($[0].expression,!1,z,z.start.offset+J+$[0].start);if(!(F.ast instanceof I4))throw Error('Options parameter of the "viewport" trigger must be an object literal');else if(F.ast.keys.some((w)=>w.kind==="spread"))throw Error("Spread operator are not allowed in this context");else if(F.ast.keys.some((w)=>w.kind==="property"&&w.key==="root"))throw Error('The "root" option is not supported in the options parameter of the "viewport" trigger');let D=F.ast.keys.findIndex((w)=>w.kind==="property"&&w.key==="trigger");if(D===-1)X=null,L=F.ast;else{let w=F.ast.values[D],T=(I,B)=>B!==D;if(!(w instanceof g1)||!(w.receiver instanceof u1))throw Error('"trigger" option of the "viewport" trigger must be an identifier');X=w.name,L=new I4(F.ast.span,F.ast.sourceSpan,F.ast.keys.filter(T),F.ast.values.filter(T))}}if(Y&&X!==null)throw Error('"viewport" hydration trigger cannot have a "trigger"');else if(L){let F=WJ.findDynamicNode(L);if(F!==null)throw Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${F.constructor.name}" was found`)}return new $3(X,L,G,z,H,Q,K)}function NU(J,Y){if(Y.length>1)throw Error(`"${J}" trigger can only have zero or one parameters`)}function MU(J,Y){if(J===T0.VIEWPORT){if(Y.length>1)throw Error(`Hydration trigger "${J}" cannot have more than one parameter`);return}if(Y.length>0)throw Error(`Hydration trigger "${J}" cannot have parameters`)}function g6(J,Y=0){let Z=!1;for(let $=Y;$<J.length;$++)if(EU.test(J[$]))Z=!0;else if(Z)return $;return-1}function c7(J){let Y=J.match(wU);if(!Y)return null;let[Z,$]=Y;return parseFloat(Z)*($==="s"?1000:1)}class WJ extends p6{dynamicNode=null;static findDynamicNode(J){let Y=new WJ;return Y.visit(J),Y.dynamicNode}visit(J){if(!(J instanceof p0)&&!(J instanceof d0)&&!(J instanceof e7)&&!(J instanceof I4))this.dynamicNode=J;else super.visit(J)}}var PU=/^prefetch\s+when\s/,yU=/^prefetch\s+on\s/,hU=/^hydrate\s+when\s/,kU=/^hydrate\s+on\s/,xU=/^hydrate\s+never(\s*)$/,CG=/^minimum\s/,vU=/^after\s/,SU=/^when\s/,fU=/^on\s/;function X8(J){return J==="placeholder"||J==="loading"||J==="error"}function gU(J,Y,Z,$){let G=[],{placeholder:z,loading:H,error:Q}=bU(Y,G,Z),{triggers:K,prefetchTriggers:_,hydrateTriggers:X}=cU(J,$,G),L=J.endSourceSpan,F=J.sourceSpan.end;if(Y.length>0){let T=Y[Y.length-1];L=T.endSourceSpan,F=T.sourceSpan.end}let D=new h(J.sourceSpan.start,F);return{node:new j4(e(Z,J.children,J.children),K,_,X,z,H,Q,J.nameSpan,D,J.sourceSpan,J.startSourceSpan,L,J.i18n),errors:G}}function bU(J,Y,Z){let $=null,G=null,z=null;for(let H of J)try{if(!X8(H.name)){Y.push(new M(H.startSourceSpan,`Unrecognized block "@${H.name}"`));break}switch(H.name){case"placeholder":if($!==null)Y.push(new M(H.startSourceSpan,"@defer block can only have one @placeholder block"));else $=uU(H,Z);break;case"loading":if(G!==null)Y.push(new M(H.startSourceSpan,"@defer block can only have one @loading block"));else G=mU(H,Z);break;case"error":if(z!==null)Y.push(new M(H.startSourceSpan,"@defer block can only have one @error block"));else z=lU(H,Z);break}}catch(Q){Y.push(new M(H.startSourceSpan,Q.message))}return{placeholder:$,loading:G,error:z}}function uU(J,Y){let Z=null;for(let $ of J.parameters)if(CG.test($.expression)){if(Z!=null)throw Error('@placeholder block can only have one "minimum" parameter');let G=c7($.expression.slice(g6($.expression)));if(G===null)throw Error('Could not parse time value of parameter "minimum"');Z=G}else throw Error(`Unrecognized parameter in @placeholder block: "${$.expression}"`);return new G3(e(Y,J.children,J.children),Z,J.nameSpan,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n)}function mU(J,Y){let Z=null,$=null;for(let G of J.parameters)if(vU.test(G.expression)){if(Z!=null)throw Error('@loading block can only have one "after" parameter');let z=c7(G.expression.slice(g6(G.expression)));if(z===null)throw Error('Could not parse time value of parameter "after"');Z=z}else if(CG.test(G.expression)){if($!=null)throw Error('@loading block can only have one "minimum" parameter');let z=c7(G.expression.slice(g6(G.expression)));if(z===null)throw Error('Could not parse time value of parameter "minimum"');$=z}else throw Error(`Unrecognized parameter in @loading block: "${G.expression}"`);return new z3(e(Y,J.children,J.children),Z,$,J.nameSpan,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n)}function lU(J,Y){if(J.parameters.length>0)throw Error("@error block cannot have parameters");return new H3(e(Y,J.children,J.children),J.nameSpan,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n)}function cU(J,Y,Z,$){let G={},z={},H={};for(let Q of J.parameters)if(SU.test(Q.expression))S3(Q,Y,G,Z);else if(fU.test(Q.expression))f3(Q,Y,G,Z);else if(PU.test(Q.expression))S3(Q,Y,z,Z);else if(yU.test(Q.expression))f3(Q,Y,z,Z);else if(hU.test(Q.expression))S3(Q,Y,H,Z);else if(kU.test(Q.expression))f3(Q,Y,H,Z);else if(xU.test(Q.expression))AU(Q,H,Z);else Z.push(new M(Q.sourceSpan,"Unrecognized trigger"));if(H.never&&Object.keys(H).length>1)Z.push(new M(J.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present"));return{triggers:G,prefetchTriggers:z,hydrateTriggers:H}}var dU=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,aY=1,tY=2,eY=3,JZ=4,YZ=5,pU=6,t4=7,o1={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},g3="*",iU=new Set(["link","style","script","ng-template","ng-container","ng-content"]),sU=new Set(["ngProjectAs","ngNonBindable"]);function oU(J,Y,Z){let $=new TG(Y,Z),G=e($,J,J),z=Y.errors.concat($.errors),H={nodes:G,errors:z,styleUrls:$.styleUrls,styles:$.styles,ngContentSelectors:$.ngContentSelectors};if(Z.collectCommentNodes)H.commentNodes=$.commentNodes;return H}class TG{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(J,Y){this.bindingParser=J,this.options=Y}visitElement(J){let Y=F7(J.i18n);if(Y){if(this.inI18nBlock)this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",J.sourceSpan);this.inI18nBlock=!0}let Z=EG(J);if(Z.type===S0.SCRIPT)return null;else if(Z.type===S0.STYLE){let I=nU(J);if(I!==null)this.styles.push(I);return null}else if(Z.type===S0.STYLESHEET&&sR(Z.hrefAttr))return this.styleUrls.push(Z.hrefAttr),null;let $=az(J.name),{attributes:G,boundEvents:z,references:H,variables:Q,templateVariables:K,elementHasInlineTemplate:_,parsedProperties:X,templateParsedProperties:L,i18nAttrsMeta:F}=this.prepareAttributes(J.attrs,$),D=this.extractDirectives(J),w;if(Z.nonBindable)w=e(ZZ,J.children).flat(1/0);else w=e(this,J.children,J.children);let T;if(Z.type===S0.NG_CONTENT){let I=Z.selectAttr,B=J.attrs.map((d)=>this.visitAttribute(d));T=new s6(I,B,w,J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n),this.ngContentSelectors.push(I)}else if($){let I=this.categorizePropertyAttributes(J.name,X,F);T=new $1(J.name,G,I.bound,z,D,[],w,H,Q,J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n)}else{let I=this.categorizePropertyAttributes(J.name,X,F);if(J.name==="ng-container"){for(let B of I.bound)if(B.type===u.Attribute)this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",B.sourceSpan)}T=new P1(J.name,G,I.bound,z,D,w,H,J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.isVoid,J.i18n)}if(_)T=this.wrapInTemplate(T,L,K,F,$,Y);if(Y)this.inI18nBlock=!1;return T}visitAttribute(J){return new E6(J.name,J.value,J.sourceSpan,J.keySpan,J.valueSpan,J.i18n)}visitText(J){return this.processedNodes.has(J)?null:this._visitTextWithInterpolation(J.value,J.sourceSpan,J.tokens,J.i18n)}visitExpansion(J){if(!J.i18n)return null;if(!F7(J.i18n))throw Error(`Invalid type "${J.i18n.constructor}" for "i18n" property of ${J.sourceSpan.toString()}. Expected a "Message"`);let Y=J.i18n,Z={},$={};return Object.keys(Y.placeholders).forEach((G)=>{let z=Y.placeholders[G];if(G.startsWith(YH)){let H=G.trim(),Q=this.bindingParser.parseInterpolationExpression(z.text,z.sourceSpan);Z[H]=new w6(Q,z.sourceSpan)}else $[G]=this._visitTextWithInterpolation(z.text,z.sourceSpan,null)}),new SZ(Z,$,J.sourceSpan,Y)}visitExpansionCase(J){return null}visitComment(J){if(this.options.collectCommentNodes)this.commentNodes.push(new Z3(J.value||"",J.sourceSpan));return null}visitLetDeclaration(J,Y){let Z=this.bindingParser.parseBinding(J.value,!1,J.valueSpan,J.valueSpan.start.offset);if(Z.errors.length===0&&Z.ast instanceof j0)this.reportError("@let declaration value cannot be empty",J.valueSpan);return new v8(J.name,Z,J.sourceSpan,J.nameSpan,J.valueSpan)}visitComponent(J){let Y=F7(J.i18n);if(Y){if(this.inI18nBlock)this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",J.sourceSpan);this.inI18nBlock=!0}if(J.tagName!==null&&iU.has(J.tagName))return this.reportError(`Tag name "${J.tagName}" cannot be used as a component tag`,J.startSourceSpan),null;let{attributes:Z,boundEvents:$,references:G,templateVariables:z,elementHasInlineTemplate:H,parsedProperties:Q,templateParsedProperties:K,i18nAttrsMeta:_}=this.prepareAttributes(J.attrs,!1);this.validateSelectorlessReferences(G);let X=this.extractDirectives(J),L;if(J.attrs.find((w)=>w.name==="ngNonBindable"))L=e(ZZ,J.children).flat(1/0);else L=e(this,J.children,J.children);let F=this.categorizePropertyAttributes(J.tagName,Q,_),D=new Q6(J.componentName,J.tagName,J.fullName,Z,F.bound,$,X,L,G,J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.i18n);if(H)D=this.wrapInTemplate(D,K,z,_,!1,Y);if(Y)this.inI18nBlock=!1;return D}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(J,Y){let Z=Array.isArray(Y)?Y.indexOf(J):-1;if(Z===-1)throw Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(J))return null;let $=null;switch(J.name){case"defer":$=gU(J,this.findConnectedBlocks(Z,Y,X8),this,this.bindingParser);break;case"switch":$=LU(J,this,this.bindingParser);break;case"for":$=XU(J,this.findConnectedBlocks(Z,Y,sY),this,this.bindingParser);break;case"if":$=KU(J,this.findConnectedBlocks(Z,Y,oY),this,this.bindingParser);break;default:let G;if(X8(J.name))G=`@${J.name} block can only be used after an @defer block.`,this.processedNodes.add(J);else if(sY(J.name))G=`@${J.name} block can only be used after an @for block.`,this.processedNodes.add(J);else if(oY(J.name))G=`@${J.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(J);else G=`Unrecognized block @${J.name}.`;$={node:new x8(J.name,J.sourceSpan,J.nameSpan),errors:[new M(J.sourceSpan,G)]};break}return this.errors.push(...$.errors),$.node}findConnectedBlocks(J,Y,Z){let $=[];for(let G=J+1;G<Y.length;G++){let z=Y[G];if(z instanceof F3)continue;if(z instanceof u4&&z.value.trim().length===0){this.processedNodes.add(z);continue}if(!(z instanceof L1)||!Z(z.name))break;$.push(z),this.processedNodes.add(z)}return $}categorizePropertyAttributes(J,Y,Z){let $=[],G=[];return Y.forEach((z)=>{let H=Z[z.name];if(z.isLiteral)G.push(new E6(z.name,z.expression.source||"",z.sourceSpan,z.keySpan,z.valueSpan,H));else{let Q=this.bindingParser.createBoundElementProperty(J,z,!0,!1);$.push(O8.fromBoundElementProperty(Q,H))}}),{bound:$,literal:G}}prepareAttributes(J,Y){let Z=[],$=[],G=[],z=[],H=[],Q={},K=[],_=[],X=!1;for(let L of J){let F=!1,D=$Z(L.name),w=!1;if(L.i18n)Q[L.name]=L.i18n;if(D.startsWith(g3)){if(X)this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",L.sourceSpan);w=!0,X=!0;let T=L.value,I=D.substring(g3.length),B=[],d=L.valueSpan?L.valueSpan.fullStart.offset:L.sourceSpan.fullStart.offset+L.name.length;this.bindingParser.parseInlineTemplateBinding(I,T,L.sourceSpan,d,[],K,B,!0),_.push(...B.map((t)=>new x5(t.name,t.value,t.sourceSpan,t.keySpan,t.valueSpan)))}else F=this.parseAttribute(Y,L,[],Z,$,G,z);if(!F&&!w)H.push(this.visitAttribute(L))}return{attributes:H,boundEvents:$,references:z,variables:G,templateVariables:_,elementHasInlineTemplate:X,parsedProperties:Z,templateParsedProperties:K,i18nAttrsMeta:Q}}parseAttribute(J,Y,Z,$,G,z,H){let Q=$Z(Y.name),K=Y.value,_=Y.sourceSpan,X=Y.valueSpan?Y.valueSpan.fullStart.offset:_.fullStart.offset;function L(I,B,d){let t=Y.name.length-Q.length,l=I.start.moveBy(B.length+t),l4=l.moveBy(d.length);return new h(l,l4,l,d)}let F=Q.match(dU);if(F){if(F[aY]!=null){let I=F[t4],B=L(_,F[aY],I);this.bindingParser.parsePropertyBinding(I,K,!1,!1,_,X,Y.valueSpan,Z,$,B)}else if(F[tY])if(J){let I=F[t4],B=L(_,F[tY],I);this.parseVariable(I,K,_,B,Y.valueSpan,z)}else this.reportError('"let-" is only supported on ng-template elements.',_);else if(F[eY]){let I=F[t4],B=L(_,F[eY],I);this.parseReference(I,K,_,B,Y.valueSpan,H)}else if(F[JZ]){let I=[],B=F[t4],d=L(_,F[JZ],B);this.bindingParser.parseEvent(B,K,!1,_,Y.valueSpan||_,Z,I,d),b3(I,G)}else if(F[YZ]){let I=F[t4],B=L(_,F[YZ],I);this.bindingParser.parsePropertyBinding(I,K,!1,!0,_,X,Y.valueSpan,Z,$,B),this.parseAssignmentEvent(I,K,_,Y.valueSpan,Z,G,B,X)}else if(F[pU]){let I=L(_,"",Q);this.bindingParser.parseLiteralAttr(Q,K,_,X,Y.valueSpan,Z,$,I)}return!0}let D=null;if(Q.startsWith(o1.BANANA_BOX.start))D=o1.BANANA_BOX;else if(Q.startsWith(o1.PROPERTY.start))D=o1.PROPERTY;else if(Q.startsWith(o1.EVENT.start))D=o1.EVENT;if(D!==null&&Q.endsWith(D.end)&&Q.length>D.start.length+D.end.length){let I=Q.substring(D.start.length,Q.length-D.end.length),B=L(_,D.start,I);if(D.start===o1.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(I,K,!1,!0,_,X,Y.valueSpan,Z,$,B),this.parseAssignmentEvent(I,K,_,Y.valueSpan,Z,G,B,X);else if(D.start===o1.PROPERTY.start)this.bindingParser.parsePropertyBinding(I,K,!1,!1,_,X,Y.valueSpan,Z,$,B);else{let d=[];this.bindingParser.parseEvent(I,K,!1,_,Y.valueSpan||_,Z,d,B),b3(d,G)}return!0}let w=L(_,"",Q);return this.bindingParser.parsePropertyInterpolation(Q,K,_,Y.valueSpan,Z,$,w,Y.valueTokens??null)}extractDirectives(J){let Y=J instanceof x0?J.tagName:J.name,Z=[],$=new Set;for(let G of J.directives){let z=!1;for(let F of G.attrs)if(F.name.startsWith(g3))z=!0,this.reportError(`Shorthand template syntax "${F.name}" is not supported inside a directive context`,F.sourceSpan);else if(sU.has(F.name))z=!0,this.reportError(`Attribute "${F.name}" is not supported in a directive context`,F.sourceSpan);if(!z&&$.has(G.name))z=!0,this.reportError(`Cannot apply directive "${G.name}" multiple times on the same element`,G.sourceSpan);if(z)continue;let{attributes:H,parsedProperties:Q,boundEvents:K,references:_,i18nAttrsMeta:X}=this.prepareAttributes(G.attrs,!1);this.validateSelectorlessReferences(_);let{bound:L}=this.categorizePropertyAttributes(Y,Q,X);for(let F of L)if(F.type!==u.Property&&F.type!==u.TwoWay)z=!0,this.reportError("Binding is not supported in a directive context",F.sourceSpan);if(z)continue;$.add(G.name),Z.push(new vZ(G.name,H,L,K,_,G.sourceSpan,G.startSourceSpan,G.endSourceSpan,void 0))}return Z}filterAnimationAttributes(J){return J.filter((Y)=>!Y.name.startsWith("animate."))}filterAnimationInputs(J){return J.filter((Y)=>Y.type!==u.Animation)}wrapInTemplate(J,Y,Z,$,G,z){let H=this.categorizePropertyAttributes("ng-template",Y,$),Q=[];H.literal.forEach((L)=>Q.push(L)),H.bound.forEach((L)=>Q.push(L));let K={attributes:[],inputs:[],outputs:[]};if(J instanceof P1||J instanceof Q6)K.attributes.push(...this.filterAnimationAttributes(J.attributes)),K.inputs.push(...this.filterAnimationInputs(J.inputs)),K.outputs.push(...J.outputs);let _=G&&z?void 0:J.i18n,X;if(J instanceof Q6)X=J.tagName;else if(J instanceof $1)X=null;else X=J.name;return new $1(X,K.attributes,K.inputs,K.outputs,[],Q,[J],[],Z,!1,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,_)}_visitTextWithInterpolation(J,Y,Z,$){let G=g$(J),z=this.bindingParser.parseInterpolation(G,Y,Z);return z?new w6(z,Y,$):new T5(G,Y)}parseVariable(J,Y,Z,$,G,z){if(J.indexOf("-")>-1)this.reportError('"-" is not allowed in variable names',Z);else if(J.length===0)this.reportError("Variable does not have a name",Z);z.push(new x5(J,Y,Z,$,G))}parseReference(J,Y,Z,$,G,z){if(J.indexOf("-")>-1)this.reportError('"-" is not allowed in reference names',Z);else if(J.length===0)this.reportError("Reference does not have a name",Z);else if(z.some((H)=>H.name===J))this.reportError(`Reference "#${J}" is defined more than once`,Z);z.push(new B7(J,Y,Z,$,G))}parseAssignmentEvent(J,Y,Z,$,G,z,H,Q){let K=[];this.bindingParser.parseEvent(`${J}Change`,Y,!0,Z,$||Z,G,K,H),b3(K,z)}validateSelectorlessReferences(J){if(J.length===0)return;let Y=new Set;for(let Z of J)if(Z.value.length>0)this.reportError("Cannot specify a value for a local reference in this context",Z.valueSpan||Z.sourceSpan);else if(Y.has(Z.name))this.reportError("Duplicate reference names are not allowed",Z.sourceSpan);else Y.add(Z.name)}reportError(J,Y,Z=x1.ERROR){this.errors.push(new M(Y,J,Z))}}class BG{visitElement(J){let Y=EG(J);if(Y.type===S0.SCRIPT||Y.type===S0.STYLE||Y.type===S0.STYLESHEET)return null;let Z=e(this,J.children,null);return new P1(J.name,e(this,J.attrs),[],[],[],Z,[],J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,J.isVoid)}visitComment(J){return null}visitAttribute(J){return new E6(J.name,J.value,J.sourceSpan,J.keySpan,J.valueSpan,J.i18n)}visitText(J){return new T5(J.value,J.sourceSpan)}visitExpansion(J){return null}visitExpansionCase(J){return null}visitBlock(J,Y){let Z=[new T5(J.startSourceSpan.toString(),J.startSourceSpan),...e(this,J.children)];if(J.endSourceSpan!==null)Z.push(new T5(J.endSourceSpan.toString(),J.endSourceSpan));return Z}visitBlockParameter(J,Y){return null}visitLetDeclaration(J,Y){return new T5(`@let ${J.name} = ${J.value};`,J.sourceSpan)}visitComponent(J,Y){let Z=e(this,J.children,null);return new P1(J.fullName,e(this,J.attrs),[],[],[],Z,[],J.isSelfClosing,J.sourceSpan,J.startSourceSpan,J.endSourceSpan,!1)}visitDirective(J,Y){return null}}var ZZ=new BG;function $Z(J){return/^data-/i.test(J)?J.substring(5):J}function b3(J,Y){Y.push(...J.map((Z)=>N8.fromParsedEvent(Z)))}function nU(J){if(J.children.length!==1||!(J.children[0]instanceof u4))return null;else return J.children[0].value}var rU=[" ",`
36
+ `,"\r","\t"];function aU(J,Y,Z={}){let{preserveWhitespaces:$,enableI18nLegacyMessageIdFormat:G}=Z,z=Z.enableSelectorless??!1,H=d7(z),K=new DG().parse(J,Y,{leadingTriviaChars:rU,...Z,tokenizeExpansionForms:!0,tokenizeBlocks:Z.enableBlockSyntax??!0,tokenizeLet:Z.enableLetSyntax??!0,selectorlessEnabled:z});if(!Z.alwaysAttemptHtmlToR3AstConversion&&K.errors&&K.errors.length>0){let l={preserveWhitespaces:$,errors:K.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};if(Z.collectCommentNodes)l.commentNodes=[];return l}let _=K.rootNodes,X=!(Z.preserveSignificantWhitespace??!0),L=new _8(!$,G,Z.preserveSignificantWhitespace,X),F=L.visitAllWithErrors(_);if(!Z.alwaysAttemptHtmlToR3AstConversion&&F.errors&&F.errors.length>0){let l={preserveWhitespaces:$,errors:F.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};if(Z.collectCommentNodes)l.commentNodes=[];return l}if(_=F.rootNodes,!$){if(_=e(new JJ(!0,void 0,!1),_),L.hasI18nMeta)_=e(new _8(!1,void 0,!0,X),_)}let{nodes:D,errors:w,styleUrls:T,styles:I,ngContentSelectors:B,commentNodes:d}=oU(_,H,{collectCommentNodes:!!Z.collectCommentNodes});w.push(...K.errors,...F.errors);let t={preserveWhitespaces:$,errors:w.length>0?w:null,nodes:D,styleUrls:T,styles:I,ngContentSelectors:B};if(Z.collectCommentNodes)t.commentNodes=d;return t}var tU=new t6;function d7(J=!1){return new wG(new YJ(new V3,J),tU,[])}var OG="%COMP%",eU=`_nghost-${OG}`,JF=`_ngcontent-${OG}`;function NG(J,Y,Z){let $=new c5,G=U8(J.selector);if($.set("type",J.type.value),G.length>0)$.set("selectors",G4(G));if(J.queries.length>0)$.set("contentQueries",lR(J.queries,Y,J.name));if(J.viewQueries.length)$.set("viewQuery",mR(J.viewQueries,Y,J.name));if($.set("hostBindings",_F(J.host,J.typeSourceSpan,Z,Y,J.selector||"",J.name,$)),$.set("inputs",hJ(J.inputs,!0)),$.set("outputs",hJ(J.outputs)),J.exportAs!==null)$.set("exportAs",o(J.exportAs.map((z)=>q(z))));if(J.isStandalone===!1)$.set("standalone",q(!1));if(J.isSignal)$.set("signals",q(!0));return $}function MG(J,Y){let Z=[],$=Y.providers,G=Y.viewProviders;if($||G){let z=[$||new D1([])];if(G)z.push(G);Z.push(O(R.ProvidersFeature).callFn(z))}if(Y.hostDirectives?.length)Z.push(O(R.HostDirectivesFeature).callFn([RF(Y.hostDirectives)]));if(Y.usesInheritance)Z.push(O(R.InheritDefinitionFeature));if(Y.lifecycle.usesOnChanges)Z.push(O(R.NgOnChangesFeature));if(Y.controlCreate!==null)Z.push(O(R.ControlFeature).callFn([q(Y.controlCreate.passThroughInput)]));if("externalStyles"in Y&&Y.externalStyles?.length){let z=Y.externalStyles.map((H)=>q(H));Z.push(O(R.ExternalStylesFeature).callFn([o(z)]))}if(Z.length)J.set("features",o(Z))}function YF(J,Y,Z){let $=NG(J,Y,Z);MG($,J);let G=O(R.defineDirective).callFn([$.toLiteralMap()],void 0,!0),z=QF(J);return{expression:G,type:z,statements:[]}}function ZF(J,Y,Z){let $=NG(J,Y,Z);MG($,J);let G=J.selector&&Y5.parse(J.selector),z=G&&G[0];if(z){let w=z.getAttrs();if(w.length)$.set("attrs",Y.getConstLiteral(o(w.map((T)=>T!=null?q(T):q(void 0))),!0))}let H=J.name,Q=null;if(J.defer.mode===1&&J.defer.dependenciesFn!==null){let w=`${H}_DeferFn`;Y.statements.push(new U0(w,J.defer.dependenciesFn,void 0,D0.Final)),Q=S(w)}let K=J.isStandalone&&!J.hasDirectiveDependencies?N0.DomOnly:N0.Full,_=qR(J.name,J.template.nodes,Y,K,J.relativeContextFilePath,J.i18nUseExternalIds,J.defer,Q,J.relativeTemplatePath,gR());_G(_,A.Tmpl);let X=LR(_,Y);if(_.contentSelectors!==null)$.set("ngContentSelectors",_.contentSelectors);if($.set("decls",q(_.root.decls)),$.set("vars",q(_.root.vars)),_.consts.length>0)if(_.constsInitializers.length>0)$.set("consts",o0([],[..._.constsInitializers,new _0(o(_.consts))]));else $.set("consts",o(_.consts));if($.set("template",X),J.declarationListEmitMode!==3&&J.declarations.length>0)$.set("dependencies",GF(o(J.declarations.map((w)=>w.type)),J.declarationListEmitMode));else if(J.declarationListEmitMode===3){let w=[J.type.value];if(J.rawImports)w.push(J.rawImports);$.set("dependencies",O(R.getComponentDepsFactory).callFn(w))}if(J.encapsulation===null)J.encapsulation=t1.Emulated;let L=!!J.externalStyles?.length;if(J.styles&&J.styles.length){let T=(J.encapsulation==t1.Emulated?LF(J.styles,JF,eU):J.styles).reduce((I,B)=>{if(B.trim().length>0)I.push(Y.getConstLiteral(q(B)));return I},[]);if(T.length>0)L=!0,$.set("styles",o(T))}if(!L&&J.encapsulation===t1.Emulated)J.encapsulation=t1.None;if(J.encapsulation!==t1.Emulated)$.set("encapsulation",q(J.encapsulation));if(J.animations!==null)$.set("data",Q1([{key:"animation",value:J.animations,quoted:!1}]));if(J.changeDetection!==null){if(typeof J.changeDetection==="number"&&J.changeDetection!==q7.Default)$.set("changeDetection",q(J.changeDetection));else if(typeof J.changeDetection==="object")$.set("changeDetection",J.changeDetection)}let F=O(R.defineComponent).callFn([$.toLiteralMap()],void 0,!0),D=$F(J);return{expression:F,type:D,statements:[]}}function $F(J){let Y=PG(J);if(Y.push(R8(J.template.ngContentSelectors)),Y.push(A0(q(J.isStandalone))),Y.push(yG(J)),J.isSignal)Y.push(A0(q(J.isSignal)));return A0(O(R.ComponentDeclaration,Y))}function GF(J,Y){switch(Y){case 0:return J;case 1:return o0([],J);case 2:let Z=J.prop("map").callFn([O(R.resolveForwardRef)]);return o0([],Z);case 3:throw Error("Unsupported with an array of pre-resolved dependencies")}}function zF(J){return A0(q(J))}function L8(J){let Y=Object.keys(J).map((Z)=>{let $=Array.isArray(J[Z])?J[Z][0]:J[Z];return{key:Z,value:q($),quoted:!0}});return Q1(Y)}function R8(J){return J.length>0?A0(o(J.map((Y)=>q(Y)))):N1}function PG(J){let Y=J.selector!==null?J.selector.replace(/\n/g,""):null;return[o7(J.type.type,J.typeArgumentCount),Y!==null?zF(Y):N1,J.exportAs!==null?R8(J.exportAs):N1,A0(HF(J)),A0(L8(J.outputs)),R8(J.queries.map((Z)=>Z.propertyName))]}function HF(J){return Q1(Object.keys(J.inputs).map((Y)=>{let Z=J.inputs[Y],$=[{key:"alias",value:q(Z.bindingPropertyName),quoted:!0},{key:"required",value:q(Z.required),quoted:!0}];if(Z.isSignal)$.push({key:"isSignal",value:q(Z.isSignal),quoted:!0});return{key:Y,value:Q1($),quoted:!0}}))}function QF(J){let Y=PG(J);if(Y.push(N1),Y.push(A0(q(J.isStandalone))),Y.push(yG(J)),J.isSignal)Y.push(A0(q(J.isSignal)));return A0(O(R.DirectiveDeclaration,Y))}function _F(J,Y,Z,$,G,z,H){let Q=Z.createBoundHostProperties(J.properties,Y),K=Z.createDirectiveHostEventAsts(J.listeners,Y);if(J.specialAttributes.styleAttr)J.attributes.style=q(J.specialAttributes.styleAttr);if(J.specialAttributes.classAttr)J.attributes.class=q(J.specialAttributes.classAttr);let _=VR({componentName:z,componentSelector:G,properties:Q,events:K,attributes:J.attributes},Z,$);_G(_,A.Host),H.set("hostAttrs",_.root.attributes);let X=_.root.vars;if(X!==null&&X>0)H.set("hostVars",q(X));return RR(_)}var WF=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function KF(J){let Y={},Z={},$={},G={};for(let z of Object.keys(J)){let H=J[z],Q=z.match(WF);if(Q===null)switch(z){case"class":if(typeof H!=="string")throw Error("Class binding must be string");G.classAttr=H;break;case"style":if(typeof H!=="string")throw Error("Style binding must be string");G.styleAttr=H;break;default:if(typeof H==="string")Y[z]=q(H);else Y[z]=H}else if(Q[1]!=null){if(typeof H!=="string")throw Error("Property binding must be string");$[Q[1]]=H}else if(Q[2]!=null){if(typeof H!=="string")throw Error("Event binding must be string");Z[Q[2]]=H}}return{attributes:Y,listeners:Z,properties:$,specialAttributes:G}}function XF(J,Y){let Z=d7();return Z.createDirectiveHostEventAsts(J.listeners,Y),Z.createBoundHostProperties(J.properties,Y),Z.errors}function LF(J,Y,Z){let $=new z$;return J.map((G)=>{return $.shimCssText(G,Y,Z)})}function yG(J){if(!J.hostDirectives?.length)return N1;return A0(o(J.hostDirectives.map((Y)=>Q1([{key:"directive",value:u6(Y.directive.type),quoted:!1},{key:"inputs",value:L8(Y.inputs||{}),quoted:!1},{key:"outputs",value:L8(Y.outputs||{}),quoted:!1}]))))}function RF(J){let Y=[],Z=!1;for(let $ of J){if(!$.inputs&&!$.outputs)Y.push($.directive.type);else{let G=[{key:"directive",value:$.directive.type,quoted:!1}];if($.inputs){let z=GZ($.inputs);if(z)G.push({key:"inputs",value:z,quoted:!1})}if($.outputs){let z=GZ($.outputs);if(z)G.push({key:"outputs",value:z,quoted:!1})}Y.push(Q1(G))}if($.isForwardReference)Z=!0}return Z?new f1([],[new _0(o(Y))]):o(Y)}function GZ(J){let Y=[];for(let Z in J)if(J.hasOwnProperty(Z))Y.push(q(Z),q(J[Z]));return Y.length>0?o(Y):null}class hG extends p6{visit(J){if(J instanceof p0)this.visit(J.ast);else J.visit(this)}visitElement(J){this.visitAllTemplateNodes(J.attributes),this.visitAllTemplateNodes(J.inputs),this.visitAllTemplateNodes(J.outputs),this.visitAllTemplateNodes(J.directives),this.visitAllTemplateNodes(J.references),this.visitAllTemplateNodes(J.children)}visitTemplate(J){this.visitAllTemplateNodes(J.attributes),this.visitAllTemplateNodes(J.inputs),this.visitAllTemplateNodes(J.outputs),this.visitAllTemplateNodes(J.directives),this.visitAllTemplateNodes(J.templateAttrs),this.visitAllTemplateNodes(J.variables),this.visitAllTemplateNodes(J.references),this.visitAllTemplateNodes(J.children)}visitContent(J){this.visitAllTemplateNodes(J.children)}visitBoundAttribute(J){this.visit(J.value)}visitBoundEvent(J){this.visit(J.handler)}visitBoundText(J){this.visit(J.value)}visitIcu(J){Object.keys(J.vars).forEach((Y)=>this.visit(J.vars[Y])),Object.keys(J.placeholders).forEach((Y)=>this.visit(J.placeholders[Y]))}visitDeferredBlock(J){J.visitAll(this)}visitDeferredTrigger(J){if(J instanceof M8)this.visit(J.value);else if(J instanceof $3&&J.options!==null)this.visit(J.options)}visitDeferredBlockPlaceholder(J){this.visitAllTemplateNodes(J.children)}visitDeferredBlockError(J){this.visitAllTemplateNodes(J.children)}visitDeferredBlockLoading(J){this.visitAllTemplateNodes(J.children)}visitSwitchBlock(J){this.visit(J.expression),this.visitAllTemplateNodes(J.groups)}visitSwitchBlockCase(J){J.expression&&this.visit(J.expression)}visitSwitchBlockCaseGroup(J){this.visitAllTemplateNodes(J.cases),this.visitAllTemplateNodes(J.children)}visitSwitchExhaustiveCheck(J){}visitForLoopBlock(J){J.item.visit(this),this.visitAllTemplateNodes(J.contextVariables),this.visit(J.expression),this.visitAllTemplateNodes(J.children),J.empty?.visit(this)}visitForLoopBlockEmpty(J){this.visitAllTemplateNodes(J.children)}visitIfBlock(J){this.visitAllTemplateNodes(J.branches)}visitIfBlockBranch(J){J.expression&&this.visit(J.expression),J.expressionAlias?.visit(this),this.visitAllTemplateNodes(J.children)}visitLetDeclaration(J){this.visit(J.value)}visitComponent(J){this.visitAllTemplateNodes(J.attributes),this.visitAllTemplateNodes(J.inputs),this.visitAllTemplateNodes(J.outputs),this.visitAllTemplateNodes(J.directives),this.visitAllTemplateNodes(J.references),this.visitAllTemplateNodes(J.children)}visitDirective(J){this.visitAllTemplateNodes(J.attributes),this.visitAllTemplateNodes(J.inputs),this.visitAllTemplateNodes(J.outputs),this.visitAllTemplateNodes(J.references)}visitVariable(J){}visitReference(J){}visitTextAttribute(J){}visitText(J){}visitUnknownBlock(J){}visitAllTemplateNodes(J){for(let Y of J)this.visit(Y)}}class kG{directiveMatcher;constructor(J){this.directiveMatcher=J}bind(J){if(!J.template&&!J.host)throw Error("Empty bound targets are not supported");let Y=new Map,Z=[],$=new Set,G=new Map,z=new Map,H=new Map,Q=new Map,K=new Map,_=new Map,X=new Set,L=new Set,F=[];if(J.template){let D=R4.apply(J.template);UF(D,H),KJ.apply(J.template,this.directiveMatcher,Y,Z,$,G,z),b6.applyWithScope(J.template,D,Q,K,_,X,L,F)}if(J.host)Y.set(J.host.node,J.host.directives),b6.applyWithScope(J.host.node,R4.apply(J.host.node),Q,K,_,X,L,F);return new xG(J,Y,Z,$,G,z,Q,K,_,H,X,L,F)}}class R4{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(J,Y){this.parentScope=J,this.rootNode=Y,this.isDeferred=J!==null&&J.isDeferred?!0:Y instanceof j4}static newRootScope(){return new R4(null,null)}static apply(J){let Y=R4.newRootScope();return Y.ingest(J),Y}ingest(J){if(J instanceof $1)J.variables.forEach((Y)=>this.visitVariable(Y)),J.children.forEach((Y)=>Y.visit(this));else if(J instanceof K4){if(J.expressionAlias!==null)this.visitVariable(J.expressionAlias);J.children.forEach((Y)=>Y.visit(this))}else if(J instanceof i6)this.visitVariable(J.item),J.contextVariables.forEach((Y)=>this.visitVariable(Y)),J.children.forEach((Y)=>Y.visit(this));else if(J instanceof Q3||J instanceof _3||J instanceof j4||J instanceof H3||J instanceof G3||J instanceof z3||J instanceof s6)J.children.forEach((Y)=>Y.visit(this));else if(!(J instanceof W3))J.forEach((Y)=>Y.visit(this))}visitElement(J){this.visitElementLike(J)}visitTemplate(J){J.directives.forEach((Y)=>Y.visit(this)),J.references.forEach((Y)=>this.visitReference(Y)),this.ingestScopedNode(J)}visitVariable(J){this.maybeDeclare(J)}visitReference(J){this.maybeDeclare(J)}visitDeferredBlock(J){this.ingestScopedNode(J),J.placeholder?.visit(this),J.loading?.visit(this),J.error?.visit(this)}visitDeferredBlockPlaceholder(J){this.ingestScopedNode(J)}visitDeferredBlockError(J){this.ingestScopedNode(J)}visitDeferredBlockLoading(J){this.ingestScopedNode(J)}visitSwitchBlock(J){J.groups.forEach((Y)=>Y.visit(this))}visitSwitchBlockCase(J){}visitSwitchBlockCaseGroup(J){this.ingestScopedNode(J)}visitSwitchExhaustiveCheck(J){}visitForLoopBlock(J){this.ingestScopedNode(J),J.empty?.visit(this)}visitForLoopBlockEmpty(J){this.ingestScopedNode(J)}visitIfBlock(J){J.branches.forEach((Y)=>Y.visit(this))}visitIfBlockBranch(J){this.ingestScopedNode(J)}visitContent(J){this.ingestScopedNode(J)}visitLetDeclaration(J){this.maybeDeclare(J)}visitComponent(J){this.visitElementLike(J)}visitDirective(J){J.references.forEach((Y)=>this.visitReference(Y))}visitBoundAttribute(J){}visitBoundEvent(J){}visitBoundText(J){}visitText(J){}visitTextAttribute(J){}visitIcu(J){}visitDeferredTrigger(J){}visitUnknownBlock(J){}visitElementLike(J){J.directives.forEach((Y)=>Y.visit(this)),J.references.forEach((Y)=>this.visitReference(Y)),J.children.forEach((Y)=>Y.visit(this)),this.elementLikeInScope.add(J)}maybeDeclare(J){if(!this.namedEntities.has(J.name))this.namedEntities.set(J.name,J)}lookup(J){if(this.namedEntities.has(J))return this.namedEntities.get(J);else if(this.parentScope!==null)return this.parentScope.lookup(J);else return null}getChildScope(J){let Y=this.childScopes.get(J);if(Y===void 0)throw Error(`Assertion error: child scope for ${J} not found`);return Y}ingestScopedNode(J){let Y=new R4(this,J);Y.ingest(J),this.childScopes.set(J,Y)}}class KJ{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(J,Y,Z,$,G,z){this.directiveMatcher=J,this.directives=Y,this.eagerDirectives=Z,this.missingDirectives=$,this.bindings=G,this.references=z}static apply(J,Y,Z,$,G,z,H){new KJ(Y,Z,$,G,z,H).ingest(J)}ingest(J){J.forEach((Y)=>Y.visit(this))}visitElement(J){this.visitElementOrTemplate(J)}visitTemplate(J){this.visitElementOrTemplate(J)}visitDeferredBlock(J){let Y=this.isInDeferBlock;this.isInDeferBlock=!0,J.children.forEach((Z)=>Z.visit(this)),this.isInDeferBlock=Y,J.placeholder?.visit(this),J.loading?.visit(this),J.error?.visit(this)}visitDeferredBlockPlaceholder(J){J.children.forEach((Y)=>Y.visit(this))}visitDeferredBlockError(J){J.children.forEach((Y)=>Y.visit(this))}visitDeferredBlockLoading(J){J.children.forEach((Y)=>Y.visit(this))}visitSwitchBlock(J){J.groups.forEach((Y)=>Y.visit(this))}visitSwitchBlockCase(J){}visitSwitchBlockCaseGroup(J){J.children.forEach((Y)=>Y.visit(this))}visitSwitchExhaustiveCheck(J){}visitForLoopBlock(J){J.item.visit(this),J.contextVariables.forEach((Y)=>Y.visit(this)),J.children.forEach((Y)=>Y.visit(this)),J.empty?.visit(this)}visitForLoopBlockEmpty(J){J.children.forEach((Y)=>Y.visit(this))}visitIfBlock(J){J.branches.forEach((Y)=>Y.visit(this))}visitIfBlockBranch(J){J.expressionAlias?.visit(this),J.children.forEach((Y)=>Y.visit(this))}visitContent(J){J.children.forEach((Y)=>Y.visit(this))}visitComponent(J){if(this.directiveMatcher instanceof l3){let Y=this.directiveMatcher.match(J.componentName);if(Y.length>0)this.trackSelectorlessMatchesAndDirectives(J,Y);else this.missingDirectives.add(J.componentName)}J.directives.forEach((Y)=>Y.visit(this)),J.children.forEach((Y)=>Y.visit(this))}visitDirective(J){if(this.directiveMatcher instanceof l3){let Y=this.directiveMatcher.match(J.name);if(Y.length>0)this.trackSelectorlessMatchesAndDirectives(J,Y);else this.missingDirectives.add(J.name)}}visitElementOrTemplate(J){if(this.directiveMatcher instanceof U6){let Y=[],Z=GH(J);this.directiveMatcher.match(Z,($,G)=>Y.push(...G)),this.trackSelectorBasedBindingsAndDirectives(J,Y)}else J.references.forEach((Y)=>{if(Y.value.trim()==="")this.references.set(Y,J)});J.directives.forEach((Y)=>Y.visit(this)),J.children.forEach((Y)=>Y.visit(this))}trackMatchedDirectives(J,Y){if(Y.length>0){if(this.directives.set(J,Y),!this.isInDeferBlock)this.eagerDirectives.push(...Y)}}trackSelectorlessMatchesAndDirectives(J,Y){if(Y.length===0)return;this.trackMatchedDirectives(J,Y);let Z=($,G,z)=>{if($[z].hasBindingPropertyName(G.name))this.bindings.set(G,$)};for(let $ of Y)J.inputs.forEach((G)=>Z($,G,"inputs")),J.attributes.forEach((G)=>Z($,G,"inputs")),J.outputs.forEach((G)=>Z($,G,"outputs"));J.references.forEach(($)=>this.references.set($,{directive:Y[0],node:J}))}trackSelectorBasedBindingsAndDirectives(J,Y){this.trackMatchedDirectives(J,Y),J.references.forEach(($)=>{let G=null;if($.value.trim()==="")G=Y.find((z)=>z.isComponent)||null;else if(G=Y.find((z)=>z.exportAs!==null&&z.exportAs.some((H)=>H===$.value))||null,G===null)return;if(G!==null)this.references.set($,{directive:G,node:J});else this.references.set($,J)});let Z=($,G)=>{let z=Y.find((Q)=>Q[G].hasBindingPropertyName($.name)),H=z!==void 0?z:J;this.bindings.set($,H)};if(J.inputs.forEach(($)=>Z($,"inputs")),J.attributes.forEach(($)=>Z($,"inputs")),J instanceof $1)J.templateAttrs.forEach(($)=>Z($,"inputs"));J.outputs.forEach(($)=>Z($,"outputs"))}visitVariable(J){}visitReference(J){}visitTextAttribute(J){}visitBoundAttribute(J){}visitBoundEvent(J){}visitBoundAttributeOrEvent(J){}visitText(J){}visitBoundText(J){}visitIcu(J){}visitDeferredTrigger(J){}visitUnknownBlock(J){}visitLetDeclaration(J){}}class b6 extends hG{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=(J)=>J.visit(this);constructor(J,Y,Z,$,G,z,H,Q,K){super();this.bindings=J,this.symbols=Y,this.usedPipes=Z,this.eagerPipes=$,this.deferBlocks=G,this.nestingLevel=z,this.scope=H,this.rootNode=Q,this.level=K}static applyWithScope(J,Y,Z,$,G,z,H,Q){let K=J instanceof $1?J:null;new b6(Z,$,z,H,Q,G,Y,K,0).ingest(J)}ingest(J){if(J instanceof $1)J.variables.forEach(this.visitNode),J.children.forEach(this.visitNode),this.nestingLevel.set(J,this.level);else if(J instanceof K4){if(J.expressionAlias!==null)this.visitNode(J.expressionAlias);J.children.forEach(this.visitNode),this.nestingLevel.set(J,this.level)}else if(J instanceof i6)this.visitNode(J.item),J.contextVariables.forEach((Y)=>this.visitNode(Y)),J.trackBy.visit(this),J.children.forEach(this.visitNode),this.nestingLevel.set(J,this.level);else if(J instanceof j4){if(this.scope.rootNode!==J)throw Error(`Assertion error: resolved incorrect scope for deferred block ${J}`);this.deferBlocks.push([J,this.scope]),J.children.forEach((Y)=>Y.visit(this)),this.nestingLevel.set(J,this.level)}else if(J instanceof Q3||J instanceof _3||J instanceof H3||J instanceof G3||J instanceof z3||J instanceof s6)J.children.forEach((Y)=>Y.visit(this)),this.nestingLevel.set(J,this.level);else if(J instanceof W3)this.nestingLevel.set(J,0);else J.forEach(this.visitNode)}visitTemplate(J){J.inputs.forEach(this.visitNode),J.outputs.forEach(this.visitNode),J.directives.forEach(this.visitNode),J.templateAttrs.forEach(this.visitNode),J.references.forEach(this.visitNode),this.ingestScopedNode(J)}visitVariable(J){if(this.rootNode!==null)this.symbols.set(J,this.rootNode)}visitReference(J){if(this.rootNode!==null)this.symbols.set(J,this.rootNode)}visitDeferredBlock(J){this.ingestScopedNode(J),J.triggers.when?.value.visit(this),J.prefetchTriggers.when?.value.visit(this),J.hydrateTriggers.when?.value.visit(this),J.hydrateTriggers.never?.visit(this),J.placeholder&&this.visitNode(J.placeholder),J.loading&&this.visitNode(J.loading),J.error&&this.visitNode(J.error)}visitDeferredBlockPlaceholder(J){this.ingestScopedNode(J)}visitDeferredBlockError(J){this.ingestScopedNode(J)}visitDeferredBlockLoading(J){this.ingestScopedNode(J)}visitSwitchBlockCase(J){J.expression?.visit(this)}visitSwitchBlockCaseGroup(J){J.cases.forEach((Y)=>Y.visit(this)),this.ingestScopedNode(J)}visitSwitchExhaustiveCheck(J){}visitForLoopBlock(J){J.expression.visit(this),this.ingestScopedNode(J),J.empty?.visit(this)}visitForLoopBlockEmpty(J){this.ingestScopedNode(J)}visitIfBlockBranch(J){J.expression?.visit(this),this.ingestScopedNode(J)}visitContent(J){this.ingestScopedNode(J)}visitLetDeclaration(J){if(super.visitLetDeclaration(J),this.rootNode!==null)this.symbols.set(J,this.rootNode)}visitPipe(J,Y){if(this.usedPipes.add(J.name),!this.scope.isDeferred)this.eagerPipes.add(J.name);return super.visitPipe(J,Y)}visitPropertyRead(J,Y){return this.maybeMap(J,J.name),super.visitPropertyRead(J,Y)}visitSafePropertyRead(J,Y){return this.maybeMap(J,J.name),super.visitSafePropertyRead(J,Y)}ingestScopedNode(J){let Y=this.scope.getChildScope(J);new b6(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,Y,J,this.level+1).ingest(J)}maybeMap(J,Y){if(!(J.receiver instanceof u1))return;let Z=this.scope.lookup(Y);if(Z!==null)this.bindings.set(J,Z)}}class xG{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(J,Y,Z,$,G,z,H,Q,K,_,X,L,F){this.target=J,this.directives=Y,this.eagerDirectives=Z,this.missingDirectives=$,this.bindings=G,this.references=z,this.exprTargets=H,this.symbols=Q,this.nestingLevel=K,this.scopedNodeEntities=_,this.usedPipes=X,this.eagerPipes=L,this.deferredBlocks=F.map((D)=>D[0]),this.deferredScopes=new Map(F)}getEntitiesInScope(J){return this.scopedNodeEntities.get(J)??new Set}getDirectivesOfNode(J){return this.directives.get(J)||null}getReferenceTarget(J){return this.references.get(J)||null}getConsumerOfBinding(J){return this.bindings.get(J)||null}getExpressionTarget(J){return this.exprTargets.get(J)||null}getDefinitionNodeOfSymbol(J){return this.symbols.get(J)||null}getNestingLevel(J){return this.nestingLevel.get(J)||0}getUsedDirectives(){let J=new Set;return this.directives.forEach((Y)=>Y.forEach((Z)=>J.add(Z))),Array.from(J.values())}getEagerlyUsedDirectives(){let J=new Set(this.eagerDirectives);return Array.from(J.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(J,Y){if(!(Y instanceof y8)&&!(Y instanceof $3)&&!(Y instanceof P8))return null;let Z=Y.reference;if(Z===null){let G=null;if(J.placeholder!==null)for(let z of J.placeholder.children){if(z instanceof Z3)continue;if(G!==null)return null;if(z instanceof P1)G=z}return G}let $=this.findEntityInScope(J,Z);if($ instanceof B7&&this.getDefinitionNodeOfSymbol($)!==J){let G=this.getReferenceTarget($);if(G!==null)return this.referenceTargetToElement(G)}if(J.placeholder!==null){let G=this.findEntityInScope(J.placeholder,Z),z=G instanceof B7?this.getReferenceTarget(G):null;if(z!==null)return this.referenceTargetToElement(z)}return null}isDeferred(J){for(let Y of this.deferredBlocks){if(!this.deferredScopes.has(Y))continue;let Z=[this.deferredScopes.get(Y)];while(Z.length>0){let $=Z.pop();if($.elementLikeInScope.has(J))return!0;Z.push(...$.childScopes.values())}}return!1}referencedDirectiveExists(J){return!this.missingDirectives.has(J)}findEntityInScope(J,Y){let Z=this.getEntitiesInScope(J);for(let $ of Z)if($.name===Y)return $;return null}referenceTargetToElement(J){if(J instanceof P1)return J;if(J instanceof $1||J.node instanceof Q6||J.node instanceof vZ||J.node instanceof W3)return null;return this.referenceTargetToElement(J.node)}}function UF(J,Y){let Z=new Map;function $(z){if(Z.has(z.rootNode))return Z.get(z.rootNode);let H=z.namedEntities,Q;if(z.parentScope!==null)Q=new Map([...$(z.parentScope),...H]);else Q=new Map(H);return Z.set(z.rootNode,Q),Q}let G=[J];while(G.length>0){let z=G.pop();for(let H of z.childScopes.values())G.push(H);$(z)}for(let[z,H]of Z)Y.set(z,new Set(H.values()))}class vG{}class SG{jitEvaluator;FactoryTarget=I1;ResourceLoader=vG;elementSchemaRegistry=new t6;constructor(J=new Z$){this.jitEvaluator=J}compilePipe(J,Y,Z){let $={name:Z.name,type:L0(Z.type),typeArgumentCount:0,pipeName:Z.pipeName,pure:Z.pure,isStandalone:Z.isStandalone},G=cJ($);return this.jitExpression(G.expression,J,Y,[])}compilePipeDeclaration(J,Y,Z){let $=yF(Z),G=cJ($);return this.jitExpression(G.expression,J,Y,[])}compileInjectable(J,Y,Z){let{expression:$,statements:G}=kJ({name:Z.name,type:L0(Z.type),typeArgumentCount:Z.typeArgumentCount,providedIn:KZ(Z.providedIn),useClass:e5(Z,"useClass"),useFactory:WZ(Z,"useFactory"),useValue:e5(Z,"useValue"),useExisting:e5(Z,"useExisting"),deps:Z.deps?.map(uG)},!0);return this.jitExpression($,J,Y,G)}compileInjectableDeclaration(J,Y,Z){let{expression:$,statements:G}=kJ({name:Z.type.name,type:L0(Z.type),typeArgumentCount:0,providedIn:KZ(Z.providedIn),useClass:e5(Z,"useClass"),useFactory:WZ(Z,"useFactory"),useValue:e5(Z,"useValue"),useExisting:e5(Z,"useExisting"),deps:Z.deps?.map(XZ)},!0);return this.jitExpression($,J,Y,G)}compileInjector(J,Y,Z){let $={type:L0(Z.type),providers:Z.providers&&Z.providers.length>0?new g(Z.providers):null,imports:Z.imports.map((z)=>new g(z))},G=lJ($);return this.jitExpression(G.expression,J,Y,[])}compileInjectorDeclaration(J,Y,Z){let $=hF(Z),G=lJ($);return this.jitExpression(G.expression,J,Y,[])}compileNgModule(J,Y,Z){let $={kind:v1.Global,type:L0(Z.type),bootstrap:Z.bootstrap.map(L0),declarations:Z.declarations.map(L0),publicDeclarationTypes:null,imports:Z.imports.map(L0),includeImportTypes:!0,exports:Z.exports.map(L0),selectorScopeMode:B6.Inline,containsForwardDecls:!1,schemas:Z.schemas?Z.schemas.map(L0):null,id:Z.id?new g(Z.id):null},G=CH($);return this.jitExpression(G.expression,J,Y,[])}compileNgModuleDeclaration(J,Y,Z){let $=TH(Z);return this.jitExpression($,J,Y,[])}compileDirective(J,Y,Z){let $=QZ(Z);return this.compileDirectiveFromMeta(J,Y,$)}compileDirectiveDeclaration(J,Y,Z){let $=this.createParseSourceSpan("Directive",Z.type.name,Y),G=gG(Z,$);return this.compileDirectiveFromMeta(J,Y,G)}compileDirectiveFromMeta(J,Y,Z){let $=new p3,G=d7(),z=YF(Z,$,G);return this.jitExpression(z.expression,J,Y,$.statements)}compileComponent(J,Y,Z){let{template:$,defer:G}=bG(Z.template,Z.name,Y,Z.preserveWhitespaces,void 0),z={...Z,...QZ(Z),selector:Z.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:$,declarations:Z.declarations.map(DF),declarationListEmitMode:0,defer:G,styles:[...Z.styles,...$.styles],encapsulation:Z.encapsulation,changeDetection:Z.changeDetection??null,animations:Z.animations!=null?new g(Z.animations):null,viewProviders:Z.viewProviders!=null?new g(Z.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null},H=`ng:///${Z.name}.js`;return this.compileComponentFromMeta(J,H,z)}compileComponentDeclaration(J,Y,Z){let $=this.createParseSourceSpan("Component",Z.type.name,Y),G=VF(Z,$,Y);return this.compileComponentFromMeta(J,Y,G)}compileComponentFromMeta(J,Y,Z){let $=new p3,G=d7(),z=ZF(Z,$,G);return this.jitExpression(z.expression,J,Y,$.statements)}compileFactory(J,Y,Z){let $=A5({name:Z.name,type:L0(Z.type),typeArgumentCount:Z.typeArgumentCount,deps:AF(Z.deps),target:Z.target});return this.jitExpression($.expression,J,Y,$.statements)}compileFactoryDeclaration(J,Y,Z){let $=A5({name:Z.type.name,type:L0(Z.type),typeArgumentCount:0,deps:Array.isArray(Z.deps)?Z.deps.map(XZ):Z.deps,target:Z.target});return this.jitExpression($.expression,J,Y,$.statements)}createParseSourceSpan(J,Y,Z){return VH(J,Y,Z)}jitExpression(J,Y,Z,$){let G=[...$,new U0("$def",J,void 0,D0.Exported)];return this.jitEvaluator.evaluateStatements(Z,G,new G$(Y),!0).$def}}function zZ(J){return{...J,isSignal:J.isSignal,predicate:fG(J.predicate),read:J.read?new g(J.read):null,static:J.static,emitDistinctChangesOnly:J.emitDistinctChangesOnly}}function HZ(J){return{propertyName:J.propertyName,first:J.first??!1,predicate:fG(J.predicate),descendants:J.descendants??!1,read:J.read?new g(J.read):null,static:J.static??!1,emitDistinctChangesOnly:J.emitDistinctChangesOnly??!0,isSignal:!!J.isSignal}}function fG(J){return Array.isArray(J)?J:E8(new g(J),1)}function QZ(J){let Y=PF(J.inputs||[]),Z=m3(J.outputs||[]),$=J.propMetadata,G={},z={};for(let Q in $)if($.hasOwnProperty(Q))$[Q].forEach((K)=>{if(BF(K))G[Q]={bindingPropertyName:K.alias||Q,classPropertyName:Q,required:K.required||!1,isSignal:!!K.isSignal,transformFunction:K.transform!=null?new g(K.transform):null};else if(OF(K))z[Q]=K.alias||Q});let H=J.hostDirectives?.length?J.hostDirectives.map((Q)=>{return typeof Q==="function"?{directive:L0(Q),inputs:null,outputs:null,isForwardReference:!1}:{directive:L0(Q.directive),isForwardReference:!1,inputs:Q.inputs?m3(Q.inputs):null,outputs:Q.outputs?m3(Q.outputs):null}}):null;return{...J,typeArgumentCount:0,typeSourceSpan:J.typeSourceSpan,type:L0(J.type),deps:null,host:{...jF(J.propMetadata,J.typeSourceSpan,J.host)},inputs:{...Y,...G},outputs:{...Z,...z},queries:J.queries.map(zZ),providers:J.providers!=null?new g(J.providers):null,viewQueries:J.viewQueries.map(zZ),hostDirectives:H}}function gG(J,Y){let Z=J.hostDirectives?.length?J.hostDirectives.map(($)=>({directive:L0($.directive),isForwardReference:!1,inputs:$.inputs?_Z($.inputs):null,outputs:$.outputs?_Z($.outputs):null})):null;return{name:J.type.name,type:L0(J.type),typeSourceSpan:Y,selector:J.selector??null,inputs:J.inputs?NF(J.inputs):{},outputs:J.outputs??{},host:FF(J.host),queries:(J.queries??[]).map(HZ),viewQueries:(J.viewQueries??[]).map(HZ),providers:J.providers!==void 0?new g(J.providers):null,exportAs:J.exportAs??null,usesInheritance:J.usesInheritance??!1,controlCreate:J.controlCreate??null,lifecycle:{usesOnChanges:J.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:J.isStandalone??jZ(J.version),isSignal:J.isSignal??!1,hostDirectives:Z}}function FF(J={}){return{attributes:qF(J.attributes??{}),listeners:J.listeners??{},properties:J.properties??{},specialAttributes:{classAttr:J.classAttribute,styleAttr:J.styleAttribute}}}function _Z(J){let Y=null;for(let Z=1;Z<J.length;Z+=2)Y=Y||{},Y[J[Z-1]]=J[Z];return Y}function qF(J){let Y={};for(let Z of Object.keys(J))Y[Z]=new g(J[Z]);return Y}function VF(J,Y,Z){let{template:$,defer:G}=bG(J.template,J.type.name,Z,J.preserveWhitespaces??!1,J.deferBlockDependencies),z=[];if(J.dependencies)for(let Q of J.dependencies)switch(Q.kind){case"directive":case"component":z.push(u3(Q));break;case"pipe":z.push(EF(Q));break}else if(J.components||J.directives||J.pipes)J.components&&z.push(...J.components.map((Q)=>u3(Q,!0))),J.directives&&z.push(...J.directives.map((Q)=>u3(Q))),J.pipes&&z.push(...wF(J.pipes));let H=z.some(({kind:Q})=>Q===g5.Directive||Q===g5.NgModule);return{...gG(J,Y),template:$,styles:J.styles??[],declarations:z,viewProviders:J.viewProviders!==void 0?new g(J.viewProviders):null,animations:J.animations!==void 0?new g(J.animations):null,defer:G,changeDetection:J.changeDetection??q7.Default,encapsulation:J.encapsulation??t1.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:H}}function DF(J){return{...J,type:new g(J.type)}}function u3(J,Y=null){return{kind:g5.Directive,isComponent:Y||J.kind==="component",selector:J.selector,type:new g(J.type),inputs:J.inputs??[],outputs:J.outputs??[],exportAs:J.exportAs??null}}function wF(J){if(!J)return[];return Object.keys(J).map((Y)=>{return{kind:g5.Pipe,name:Y,type:new g(J[Y])}})}function EF(J){return{kind:g5.Pipe,name:J.name,type:new g(J.type)}}function bG(J,Y,Z,$,G){let z=aU(J,Z,{preserveWhitespaces:$});if(z.errors!==null){let K=z.errors.map((_)=>_.toString()).join(", ");throw Error(`Errors during JIT compilation of template for ${Y}: ${K}`)}let Q=new kG(null).bind({template:z.nodes});return{template:z,defer:IF(Q,G)}}function e5(J,Y){if(J.hasOwnProperty(Y))return E8(new g(J[Y]),0);else return}function WZ(J,Y){if(J.hasOwnProperty(Y))return new g(J[Y]);else return}function KZ(J){let Y=typeof J==="function"?new g(J):new w0(J??null);return E8(Y,0)}function AF(J){return J==null?null:J.map(uG)}function uG(J){let Y=J.attribute!=null,Z=J.token===null?null:new g(J.token),$=Y?new g(J.attribute):Z;return mG($,Y,J.host,J.optional,J.self,J.skipSelf)}function XZ(J){let Y=J.attribute??!1,Z=J.token===null?null:new g(J.token);return mG(Z,Y,J.host??!1,J.optional??!1,J.self??!1,J.skipSelf??!1)}function mG(J,Y,Z,$,G,z){let H=Y?q("unknown"):null;return{token:J,attributeNameType:H,host:Z,optional:$,self:G,skipSelf:z}}function IF(J,Y){let Z=J.getDeferBlocks(),$=new Map;for(let G=0;G<Z.length;G++){let z=Y?.[G];$.set(Z[G],z?new g(z):null)}return{mode:0,blocks:$}}function jF(J,Y,Z){let $=KF(Z||{}),G=XF($,Y);if(G.length)throw Error(G.map((z)=>z.msg).join(`
37
+ `));for(let z in J)if(J.hasOwnProperty(z))J[z].forEach((H)=>{if(CF(H))$.properties[H.hostPropertyName||z]=uz("this",z);else if(TF(H))$.listeners[H.eventName||z]=`${z}(${(H.args||[]).join(",")})`});return $}function CF(J){return J.ngMetadataName==="HostBinding"}function TF(J){return J.ngMetadataName==="HostListener"}function BF(J){return J.ngMetadataName==="Input"}function OF(J){return J.ngMetadataName==="Output"}function NF(J){return Object.keys(J).reduce((Y,Z)=>{let $=J[Z];if(typeof $==="string"||Array.isArray($))Y[Z]=MF($);else Y[Z]={bindingPropertyName:$.publicName,classPropertyName:Z,transformFunction:$.transformFunction!==null?new g($.transformFunction):null,required:$.isRequired,isSignal:$.isSignal};return Y},{})}function MF(J){if(typeof J==="string")return{bindingPropertyName:J,classPropertyName:J,transformFunction:null,required:!1,isSignal:!1};return{bindingPropertyName:J[0],classPropertyName:J[1],transformFunction:J[2]?new g(J[2]):null,required:!1,isSignal:!1}}function PF(J){return J.reduce((Y,Z)=>{if(typeof Z==="string"){let[$,G]=lG(Z);Y[G]={bindingPropertyName:$,classPropertyName:G,required:!1,isSignal:!1,transformFunction:null}}else Y[Z.name]={bindingPropertyName:Z.alias||Z.name,classPropertyName:Z.name,required:Z.required||!1,isSignal:!1,transformFunction:Z.transform!=null?new g(Z.transform):null};return Y},{})}function m3(J){return J.reduce((Y,Z)=>{let[$,G]=lG(Z);return Y[G]=$,Y},{})}function lG(J){let[Y,Z]=J.split(":",2).map(($)=>$.trim());return[Z??Y,Y]}function yF(J){return{name:J.type.name,type:L0(J.type),typeArgumentCount:0,pipeName:J.name,deps:null,pure:J.pure??!0,isStandalone:J.isStandalone??jZ(J.version)}}function hF(J){return{name:J.type.name,type:L0(J.type),providers:J.providers!==void 0&&J.providers.length>0?new g(J.providers):null,imports:J.imports!==void 0?J.imports.map((Y)=>new g(Y)):[]}}function kF(J){let Y=J.ng||(J.ng={});Y.ɵcompilerFacade=new SG}var LZ;(function(J){J[J.Extract=0]="Extract",J[J.Merge=1]="Merge"})(LZ||(LZ={}));class cG{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(J){return!1}isClosedByChild(J){return!1}getContentType(){return R1.PARSABLE_DATA}}var Hq=new cG;var Qq=new IZ("21.2.6");kF(z6);import{bootstrapApplication as pF}from"@angular/platform-browser";import{provideClientHydration as iF}from"@angular/platform-browser";import{withHttpTransferCacheOptions as sF}from"@angular/platform-browser";import{enableProdMode as oF,provideZonelessChangeDetection as nF,REQUEST_CONTEXT as rF}from"@angular/core";var LJ={};lF(LJ,{default:()=>RJ,__ABSOLUTE_PAGE_ISLANDS__:()=>dF,__ABSOLUTE_PAGE_HAS_ISLANDS__:()=>XJ,AngularExampleComponent:()=>i5});import{Component as cF}from"@angular/core";import{CommonModule as oG}from"@angular/common";import{inject as xF,REQUEST_CONTEXT as vF}from"@angular/core";var dG=()=>xF(vF);import{Component as SF}from"@angular/core";import{CommonModule as pG}from"@angular/common";import*as c from"@angular/core";class q5{constructor(){this.isOpen=!1}static{this.ɵfac=function(Y){return new(Y||q5)}}static{this.ɵcmp=c.ɵɵdefineComponent({type:q5,selectors:[["app-dropdown"]],decls:16,vars:1,consts:[[1,"dropdown",3,"mouseenter","mouseleave"],[1,"menu"],["href","/"],["href","/react"],["href","/svelte"],["href","/vue"],["href","/angular"],["href","/htmx"]],template:function(Y,Z){if(Y&1)c.ɵɵelementStart(0,"details",0),c.ɵɵlistener("mouseenter",function(){return Z.isOpen=!0})("mouseleave",function(){return Z.isOpen=!1}),c.ɵɵelementStart(1,"summary"),c.ɵɵtext(2,"Pages"),c.ɵɵelementEnd(),c.ɵɵelementStart(3,"nav",1)(4,"a",2),c.ɵɵtext(5,"HTML"),c.ɵɵelementEnd(),c.ɵɵelementStart(6,"a",3),c.ɵɵtext(7,"React"),c.ɵɵelementEnd(),c.ɵɵelementStart(8,"a",4),c.ɵɵtext(9,"Svelte"),c.ɵɵelementEnd(),c.ɵɵelementStart(10,"a",5),c.ɵɵtext(11,"Vue"),c.ɵɵelementEnd(),c.ɵɵelementStart(12,"a",6),c.ɵɵtext(13,"Angular"),c.ɵɵelementEnd(),c.ɵɵelementStart(14,"a",7),c.ɵɵtext(15,"HTMX"),c.ɵɵelementEnd()()();if(Y&2)c.ɵɵattribute("open",Z.isOpen?"":null)},dependencies:[pG],encapsulation:2})}}(()=>{(typeof ngDevMode>"u"||ngDevMode)&&c.ɵsetClassMetadata(q5,[{type:SF,args:[{imports:[pG],selector:"app-dropdown",standalone:!0,template:`<details
38
+ class="dropdown"
39
+ [attr.open]="isOpen ? '' : null"
40
+ (mouseenter)="isOpen = true"
41
+ (mouseleave)="isOpen = false"
42
+ >
43
+ <summary>Pages</summary>
44
+ <nav class="menu">
45
+ <a href="/">HTML</a>
46
+ <a href="/react">React</a>
47
+ <a href="/svelte">Svelte</a>
48
+ <a href="/vue">Vue</a>
49
+ <a href="/angular">Angular</a>
50
+ <a href="/htmx">HTMX</a>
51
+ </nav>
52
+ </details>
53
+ `}]}],null,null)})();(()=>{(typeof ngDevMode>"u"||ngDevMode)&&c.ɵsetClassDebugInfo(q5,{className:"DropdownComponent",filePath:"example/angular/components/dropdown.component.ts",lineNumber:26})})();import{Component as bF,Input as uF,ViewEncapsulation as mF}from"@angular/core";import{CommonModule as sG}from"@angular/common";import{Component as fF,Input as gF}from"@angular/core";import{CommonModule as iG}from"@angular/common";import*as W0 from"@angular/core";class V5{constructor(){this.initialCount=0,this.count=0}ngOnInit(){this.count=this.initialCount}increment(){this.count++}static{this.ɵfac=function(Y){return new(Y||V5)}}static{this.ɵcmp=W0.ɵɵdefineComponent({type:V5,selectors:[["app-counter"]],inputs:{initialCount:"initialCount"},decls:4,vars:1,consts:[[3,"click"],[1,"counter-value"]],template:function(Y,Z){if(Y&1)W0.ɵɵelementStart(0,"button",0),W0.ɵɵlistener("click",function(){return Z.increment()}),W0.ɵɵtext(1," count is "),W0.ɵɵelementStart(2,"span",1),W0.ɵɵtext(3),W0.ɵɵelementEnd()();if(Y&2)W0.ɵɵadvance(3),W0.ɵɵtextInterpolate(Z.count)},dependencies:[iG],styles:[`button[_ngcontent-%COMP%] {
54
+ background-color: #1a1a1a;
55
+ border: 1px solid transparent;
56
+ border-radius: 0.5rem;
57
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
58
+ cursor: pointer;
59
+ font-family: inherit;
60
+ font-size: 1.1rem;
61
+ font-weight: 500;
62
+ margin: 2rem 0;
63
+ padding: 0.6rem 1.2rem;
64
+ transition: border-color 0.25s;
65
+ }
66
+ button[_ngcontent-%COMP%]:hover {
67
+ border-color: #dd0031;
68
+ }
69
+ button[_ngcontent-%COMP%]:focus,
70
+ button[_ngcontent-%COMP%]:focus-visible {
71
+ outline: 4px auto -webkit-focus-ring-color;
72
+ }
73
+
74
+ @media (prefers-color-scheme: light) {
75
+ button[_ngcontent-%COMP%] {
76
+ background-color: #ffffff;
77
+ }
78
+ }`]})}}(()=>{(typeof ngDevMode>"u"||ngDevMode)&&W0.ɵsetClassMetadata(V5,[{type:fF,args:[{imports:[iG],selector:"app-counter",standalone:!0,template:`<button (click)="increment()">
79
+ count is <span class="counter-value">{{ count }}</span>
80
+ </button>
81
+ `,styles:[`button {
82
+ background-color: #1a1a1a;
83
+ border: 1px solid transparent;
84
+ border-radius: 0.5rem;
85
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
86
+ cursor: pointer;
87
+ font-family: inherit;
88
+ font-size: 1.1rem;
89
+ font-weight: 500;
90
+ margin: 2rem 0;
91
+ padding: 0.6rem 1.2rem;
92
+ transition: border-color 0.25s;
93
+ }
94
+ button:hover {
95
+ border-color: #dd0031;
96
+ }
97
+ button:focus,
98
+ button:focus-visible {
99
+ outline: 4px auto -webkit-focus-ring-color;
100
+ }
101
+
102
+ @media (prefers-color-scheme: light) {
103
+ button {
104
+ background-color: #ffffff;
105
+ }
106
+ }
107
+ `]}]}],null,{initialCount:[{type:gF}]})})();(()=>{(typeof ngDevMode>"u"||ngDevMode)&&W0.ɵsetClassDebugInfo(V5,{className:"CounterComponent",filePath:"example/angular/components/counter.component.ts",lineNumber:40})})();import*as m from"@angular/core";class D5{constructor(){this.initialCount=0}static{this.ɵfac=function(Y){return new(Y||D5)}}static{this.ɵcmp=m.ɵɵdefineComponent({type:D5,selectors:[["app-root"]],inputs:{initialCount:"initialCount"},decls:18,vars:1,consts:[["href","https://absolutejs.com","target","_blank"],["src","/assets/png/absolutejs-temp.png","alt","AbsoluteJS Logo",1,"logo"],["href","https://angular.dev/"],["src","/assets/svg/angular.svg","alt","Angular Logo",1,"logo","angular"],[3,"initialCount"],[2,"margin-top","2rem"],[2,"color","#777","font-size","1rem","margin-top","2rem"]],template:function(Y,Z){if(Y&1)m.ɵɵelementStart(0,"main")(1,"nav")(2,"a",0),m.ɵɵelement(3,"img",1),m.ɵɵelementEnd(),m.ɵɵelementStart(4,"a",2),m.ɵɵelement(5,"img",3),m.ɵɵelementEnd()(),m.ɵɵelementStart(6,"h1"),m.ɵɵtext(7,"AbsoluteJS + Angular"),m.ɵɵelementEnd(),m.ɵɵelement(8,"app-counter",4),m.ɵɵelementStart(9,"p"),m.ɵɵtext(10," Edit "),m.ɵɵelementStart(11,"code"),m.ɵɵtext(12,"example/angular/pages/angular-example.ts"),m.ɵɵelementEnd(),m.ɵɵtext(13," and save to test HMR. "),m.ɵɵelementEnd(),m.ɵɵelementStart(14,"p",5),m.ɵɵtext(15," Explore the other pages to see how AbsoluteJS seamlessly unifies multiple frameworks on a single server. "),m.ɵɵelementEnd(),m.ɵɵelementStart(16,"p",6),m.ɵɵtext(17," Click on the AbsoluteJS and Angular logos to learn more. "),m.ɵɵelementEnd()();if(Y&2)m.ɵɵadvance(8),m.ɵɵproperty("initialCount",Z.initialCount)},dependencies:[sG,V5],styles:[`code {
108
+ background-color: #1a1a1a;
109
+ padding: 0.2rem 0.4rem;
110
+ border-radius: 0.25rem;
111
+ font-size: 0.9em;
112
+ }
113
+
114
+ @media (prefers-color-scheme: light) {
115
+ code {
116
+ background-color: #f0f0f0;
117
+ }
118
+ }
119
+ `],encapsulation:2})}}(()=>{(typeof ngDevMode>"u"||ngDevMode)&&m.ɵsetClassMetadata(D5,[{type:bF,args:[{encapsulation:mF.None,imports:[sG,V5],selector:"app-root",standalone:!0,template:`<main>
120
+ <nav>
121
+ <a href="https://absolutejs.com" target="_blank">
122
+ <img
123
+ class="logo"
124
+ src="/assets/png/absolutejs-temp.png"
125
+ alt="AbsoluteJS Logo"
126
+ />
127
+ </a>
128
+ <a href="https://angular.dev/">
129
+ <img
130
+ class="logo angular"
131
+ src="/assets/svg/angular.svg"
132
+ alt="Angular Logo"
133
+ />
134
+ </a>
135
+ </nav>
136
+ <h1>AbsoluteJS + Angular</h1>
137
+ <app-counter [initialCount]="initialCount"></app-counter>
138
+ <p>
139
+ Edit <code>example/angular/pages/angular-example.ts</code> and save to
140
+ test HMR.
141
+ </p>
142
+ <p style="margin-top: 2rem">
143
+ Explore the other pages to see how AbsoluteJS seamlessly unifies
144
+ multiple frameworks on a single server.
145
+ </p>
146
+ <p style="color: #777; font-size: 1rem; margin-top: 2rem">
147
+ Click on the AbsoluteJS and Angular logos to learn more.
148
+ </p>
149
+ </main>
150
+ `,styles:[`code {
151
+ background-color: #1a1a1a;
152
+ padding: 0.2rem 0.4rem;
153
+ border-radius: 0.25rem;
154
+ font-size: 0.9em;
155
+ }
156
+
157
+ @media (prefers-color-scheme: light) {
158
+ code {
159
+ background-color: #f0f0f0;
160
+ }
161
+ }
162
+ `]}]}],null,{initialCount:[{type:uF}]})})();(()=>{(typeof ngDevMode>"u"||ngDevMode)&&m.ɵsetClassDebugInfo(D5,{className:"AppComponent",filePath:"example/angular/components/app.component.ts",lineNumber:56})})();import*as K0 from"@angular/core";class i5{constructor(){this.ctx=dG(),this.initialCount=this.ctx.initialCount}static{this.ɵfac=function(Y){return new(Y||i5)}}static{this.ɵcmp=K0.ɵɵdefineComponent({type:i5,selectors:[["angular-page"]],decls:5,vars:1,consts:[["href","/"],[3,"initialCount"]],template:function(Y,Z){if(Y&1)K0.ɵɵelementStart(0,"header")(1,"a",0),K0.ɵɵtext(2,"AbsoluteJS"),K0.ɵɵelementEnd(),K0.ɵɵelement(3,"app-dropdown"),K0.ɵɵelementEnd(),K0.ɵɵelement(4,"app-root",1);if(Y&2)K0.ɵɵadvance(4),K0.ɵɵproperty("initialCount",Z.initialCount)},dependencies:[oG,q5,D5],encapsulation:2})}}(()=>{(typeof ngDevMode>"u"||ngDevMode)&&K0.ɵsetClassMetadata(i5,[{type:cF,args:[{imports:[oG,q5,D5],selector:"angular-page",standalone:!0,template:`<header>
163
+ <a href="/">AbsoluteJS</a>
164
+ <app-dropdown></app-dropdown>
165
+ </header>
166
+ <app-root [initialCount]="initialCount"></app-root>
167
+ `}]}],null,null)})();(()=>{(typeof ngDevMode>"u"||ngDevMode)&&K0.ɵsetClassDebugInfo(i5,{className:"AngularExampleComponent",filePath:"example/angular/pages/angular-example.ts",lineNumber:22})})();var dF=[],XJ=!1,RJ=i5;var aF=RJ,tF=Object.prototype.hasOwnProperty.call(window,"__ABS_ANGULAR_REQUEST_CONTEXT__")?window.__ABS_ANGULAR_REQUEST_CONTEXT__:null,eF=Boolean(XJ)||Boolean(document.querySelector('[data-island="true"]')),rG=Boolean(document.querySelector('[data-absolute-raw-slot="true"]')),hq=Boolean(document.querySelector('[data-absolute-slot="true"]')),Jq=[{provide:rF,useValue:tF}],nG=Reflect.get(LJ,"providers"),Yq=Array.isArray(nG)?nG:[],Zq={includePostRequests:!1,includeRequestsWithAuthHeaders:!1,filter:function(J){return!J.headers.has("x-skip-transfer-cache")}};oF();var aG=[nF()].concat(Yq).concat(Jq);if(!eF)aG.unshift(iF(sF(Zq)));window.__ABS_SLOT_HYDRATION_PENDING__=rG;if(rG){if(window.__ABS_SLOT_HYDRATION_PENDING__=!1,typeof window.__ABS_SLOT_FLUSH__==="function")requestAnimationFrame(function(){window.__ABS_SLOT_FLUSH__()})}else pF(aF,{providers:aG}).then(function(J){if(window.__ANGULAR_APP__=J,window.__ABS_SLOT_HYDRATION_PENDING__=!1,typeof window.__ABS_SLOT_FLUSH__==="function")requestAnimationFrame(function(){window.__ABS_SLOT_FLUSH__()})});