File "compiler.min.11d72842cbc8.js"

Full Path: /home/lacostenacom/public_html/wp/wp./wp-content/plugins/imunify-security/assets/ui-app/assets/static/shared-dependencies/compiler.min.11d72842cbc8.js
File size: 369.08 KB
MIME-type: text/plain
Charset: utf-8

System.register([],(function(e){"use strict";return{execute:function(){e({compileClassMetadata:function(e){const t=st(_t.setClassMetadata).callFn([e.type,e.decorators,e.ctorParameters??pt(null),e.propDecorators??pt(null)]);return lt([],[Kt(t).toStmt()]).callFn([])},compileComponentFromMetadata:Vu,compileDeclareClassMetadata:function(e){const t=new $n;return t.set("minVersion",pt(xh)),t.set("version",pt("16.2.12")),t.set("ngImport",st(_t.core)),t.set("type",e.type),t.set("decorators",e.decorators),t.set("ctorParameters",e.ctorParameters),t.set("propDecorators",e.propDecorators),st(_t.declareClassMetadata).callFn([t.toLiteralMap()])},compileDeclareComponentFromMetadata:function(e,t,s){const n=function(e,t,s){const n=Ch(e);n.set("template",function(e,t){if(null!==t.inlineTemplateLiteralExpression)return t.inlineTemplateLiteralExpression;if(t.isInline)return pt(t.content,null,null);const s=t.content,n=new Nr(s,t.sourceUrl),r=new Pr(n,0,0,0),i=function(e,t){const s=t.length;let n=0,r=0,i=0;do{n=t.indexOf("\n",r),-1!==n&&(r=n+1,i++)}while(-1!==n);return new Pr(e,s,i,s-r)}(n,s),a=new Ar(r,i);return pt(s,null,a)}(0,s)),s.isInline&&n.set("isInline",pt(!0));n.set("styles",wh(e.styles,pt)),n.set("dependencies",function(e){const t=0!==e.declarationListEmitMode?Zt:e=>e;return wh(e.declarations,(e=>{switch(e.kind){case Gr.Directive:const s=new $n;return s.set("kind",pt(e.isComponent?"component":"directive")),s.set("type",t(e.type)),s.set("selector",pt(e.selector)),s.set("inputs",wh(e.inputs,pt)),s.set("outputs",wh(e.outputs,pt)),s.set("exportAs",wh(e.exportAs,pt)),s.toLiteralMap();case Gr.Pipe:const n=new $n;return n.set("kind",pt("pipe")),n.set("type",t(e.type)),n.set("name",pt(e.name)),n.toLiteralMap();case Gr.NgModule:const r=new $n;return r.set("kind",pt("ngmodule")),r.set("type",t(e.type)),r.toLiteralMap()}}))}(e)),n.set("viewProviders",e.viewProviders),n.set("animations",e.animations),void 0!==e.changeDetection&&n.set("changeDetection",st(_t.ChangeDetectionStrategy).prop(l[e.changeDetection]));e.encapsulation!==o.Emulated&&n.set("encapsulation",st(_t.ViewEncapsulation).prop(o[e.encapsulation]));e.interpolation!==Kn&&n.set("interpolation",it([pt(e.interpolation.start),pt(e.interpolation.end)]));!0===t.preserveWhitespaces&&n.set("preserveWhitespaces",pt(!0));return n}(e,t,s),r=st(_t.declareComponent).callFn([n.toLiteralMap()]),i=Uu(e);return{expression:r,type:i,statements:[]}},compileDeclareDirectiveFromMetadata:function(e){const t=Ch(e),s=st(_t.declareDirective).callFn([t.toLiteralMap()]),n=Yu(e);return{expression:s,type:n,statements:[]}},compileDeclareFactoryFunction:function(e){const t=new $n;return t.set("minVersion",pt(Th)),t.set("version",pt("16.2.12")),t.set("ngImport",st(_t.core)),t.set("type",e.type.value),t.set("deps",Eh(e.deps)),t.set("target",st(_t.FactoryTarget).prop(ts[e.target])),{expression:st(_t.declareFactory).callFn([t.toLiteralMap()]),statements:[],type:ns(e)}},compileDeclareInjectableFromMetadata:function(e){const t=function(e){const t=new $n;if(t.set("minVersion",pt(kh)),t.set("version",pt("16.2.12")),t.set("ngImport",st(_t.core)),t.set("type",e.type.value),void 0!==e.providedIn){const s=Jt(e.providedIn);null!==s.value&&t.set("providedIn",s)}void 0!==e.useClass&&t.set("useClass",Jt(e.useClass));void 0!==e.useExisting&&t.set("useExisting",Jt(e.useExisting));void 0!==e.useValue&&t.set("useValue",Jt(e.useValue));void 0!==e.useFactory&&t.set("useFactory",e.useFactory);void 0!==e.deps&&t.set("deps",it(e.deps.map(_h)));return t}(e),s=st(_t.declareInjectable).callFn([t.toLiteralMap()]),n=Un(e);return{expression:s,type:n,statements:[]}},compileDeclareInjectorFromMetadata:function(e){const t=function(e){const t=new $n;t.set("minVersion",pt(Ph)),t.set("version",pt("16.2.12")),t.set("ngImport",st(_t.core)),t.set("type",e.type.value),t.set("providers",e.providers),e.imports.length>0&&t.set("imports",it(e.imports));return t}(e),s=st(_t.declareInjector).callFn([t.toLiteralMap()]),n=jr(e);return{expression:s,type:n,statements:[]}},compileDeclareNgModuleFromMetadata:function(e){const t=function(e){const t=new $n;if(e.kind===Kr.Local)throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");t.set("minVersion",pt(Nh)),t.set("version",pt("16.2.12")),t.set("ngImport",st(_t.core)),t.set("type",e.type.value),e.bootstrap.length>0&&t.set("bootstrap",Qt(e.bootstrap,e.containsForwardDecls));e.declarations.length>0&&t.set("declarations",Qt(e.declarations,e.containsForwardDecls));e.imports.length>0&&t.set("imports",Qt(e.imports,e.containsForwardDecls));e.exports.length>0&&t.set("exports",Qt(e.exports,e.containsForwardDecls));null!==e.schemas&&e.schemas.length>0&&t.set("schemas",it(e.schemas.map((e=>e.value))));null!==e.id&&t.set("id",e.id);return t}(e),s=st(_t.declareNgModule).callFn([t.toLiteralMap()]),n=Jr(e);return{expression:s,type:n,statements:[]}},compileDeclarePipeFromMetadata:function(e){const t=function(e){const t=new $n;t.set("minVersion",pt(Ah)),t.set("version",pt("16.2.12")),t.set("ngImport",st(_t.core)),t.set("type",e.type.value),e.isStandalone&&t.set("isStandalone",pt(e.isStandalone));t.set("name",pt(e.pipeName)),!1===e.pure&&t.set("pure",pt(e.pure));return t}(e),s=st(_t.declarePipe).callFn([t.toLiteralMap()]),n=si(e);return{expression:s,type:n,statements:[]}},compileDirectiveFromMetadata:qu,compileFactoryFunction:ss,compileInjectable:Vn,compileInjector:Hr,compileNgModule:Xr,compilePipeFromMetadata:ti,computeMsgId:P,createInjectableType:Un,createMayBeForwardRefExpression:Xt,devOnlyGuardedExpression:Kt,getHtmlTagDefinition:dl,getNsPrefix:io,getSafePropertyAccessString:Wt,identifierName:Dr,isIdentifier:function(e){if(0==e.length)return!1;const t=new Oo(e);if(!$o(t.peek))return!1;t.advance();for(;t.peek!==Gn;){if(!Fo(t.peek))return!1;t.advance()}return!0},isNgContainer:so,isNgContent:no,isNgTemplate:ro,jsDocComment:et,leadingComment:Ze,literalMap:at,makeBindingParser:Iu,mergeNsAndName:ao,parseHostBindings:ep,parseTemplate:bu,preserveWhitespacesDefault:Lp,publishFacade:Ap,r3JitTypeSourceSpan:Rr,sanitizeIdentifier:Or,splitNsName:to,verifyHostBindings:tp,visitAll:rl});const t=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class s{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){const n=[],r=(e,t)=>{t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)};let i,a=new s,o=a,l=!1;for(t.lastIndex=0;i=t.exec(e);){if(i[1]){if(l)throw new Error("Nesting :not in a selector is not allowed");l=!0,o=new s,a.notSelectors.push(o)}const e=i[2];if(e){const t=i[3];"#"===t?o.addAttribute("id",e.slice(1)):"."===t?o.addClassName(e.slice(1)):o.setElement(e)}const t=i[4];if(t&&o.addAttribute(o.unescapeAttribute(t),i[6]),i[7]&&(l=!1,o=a),i[8]){if(l)throw new Error("Multiple selectors in :not are not supported");r(n,a),a=o=new s}}return r(n,a),n}unescapeAttribute(e){let t="",s=!1;for(let n=0;n<e.length;n++){const r=e.charAt(n);if("\\"!==r){if("$"===r&&!s)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);s=!1,t+=r}else s=!0}return t}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}hasElementSelector(){return!!this.element}setElement(e=null){this.element=e}getAttrs(){const e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach((t=>e+=`.${t}`)),this.attrs)for(let t=0;t<this.attrs.length;t+=2){const s=this.escapeAttribute(this.attrs[t]),n=this.attrs[t+1];e+=`[${s}${n?"="+n:""}]`}return this.notSelectors.forEach((t=>e+=`:not(${t})`)),e}}e("CssSelector",s);class n{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){const t=new n;return t.addSelectables(e,null),t}addSelectables(e,t){let s=null;e.length>1&&(s=new r(e),this._listContexts.push(s));for(let n=0;n<e.length;n++)this._addSelectable(e[n],t,s)}_addSelectable(e,t,s){let n=this;const r=e.element,a=e.classNames,o=e.attrs,l=new i(e,t,s);if(r){0===o.length&&0===a.length?this._addTerminal(n._elementMap,r,l):n=this._addPartial(n._elementPartialMap,r)}if(a)for(let e=0;e<a.length;e++){const t=0===o.length&&e===a.length-1,s=a[e];t?this._addTerminal(n._classMap,s,l):n=this._addPartial(n._classPartialMap,s)}if(o)for(let e=0;e<o.length;e+=2){const t=e===o.length-2,s=o[e],r=o[e+1];if(t){const e=n._attrValueMap;let t=e.get(s);t||(t=new Map,e.set(s,t)),this._addTerminal(t,r,l)}else{const e=n._attrValuePartialMap;let t=e.get(s);t||(t=new Map,e.set(s,t)),n=this._addPartial(t,r)}}}_addTerminal(e,t,s){let n=e.get(t);n||(n=[],e.set(t,n)),n.push(s)}_addPartial(e,t){let s=e.get(t);return s||(s=new n,e.set(t,s)),s}match(e,t){let s=!1;const n=e.element,r=e.classNames,i=e.attrs;for(let e=0;e<this._listContexts.length;e++)this._listContexts[e].alreadyMatched=!1;if(s=this._matchTerminal(this._elementMap,n,e,t)||s,s=this._matchPartial(this._elementPartialMap,n,e,t)||s,r)for(let n=0;n<r.length;n++){const i=r[n];s=this._matchTerminal(this._classMap,i,e,t)||s,s=this._matchPartial(this._classPartialMap,i,e,t)||s}if(i)for(let n=0;n<i.length;n+=2){const r=i[n],a=i[n+1],o=this._attrValueMap.get(r);a&&(s=this._matchTerminal(o,"",e,t)||s),s=this._matchTerminal(o,a,e,t)||s;const l=this._attrValuePartialMap.get(r);a&&(s=this._matchPartial(l,"",e,t)||s),s=this._matchPartial(l,a,e,t)||s}return s}_matchTerminal(e,t,s,n){if(!e||"string"!=typeof t)return!1;let r=e.get(t)||[];const i=e.get("*");if(i&&(r=r.concat(i)),0===r.length)return!1;let a,o=!1;for(let e=0;e<r.length;e++)a=r[e],o=a.finalize(s,n)||o;return o}_matchPartial(e,t,s,n){if(!e||"string"!=typeof t)return!1;const r=e.get(t);return!!r&&r.match(s,n)}}e("SelectorMatcher",n);class r{constructor(e){this.selectors=e,this.alreadyMatched=!1}}e("SelectorListContext",r);class i{constructor(e,t,s){this.selector=e,this.cbContext=t,this.listContext=s,this.notSelectors=e.notSelectors}finalize(e,t){let s=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){s=!n.createNotMatcher(this.notSelectors).match(e,null)}return!s||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),s}}e("SelectorContext",i);const a=e("emitDistinctChangesOnlyDefaultValue",!0);var o,l;e("ViewEncapsulation",o),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(o||e("ViewEncapsulation",o={})),e("ChangeDetectionStrategy",l),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(l||e("ChangeDetectionStrategy",l={}));const c=e("CUSTOM_ELEMENTS_SCHEMA",{name:"custom-elements"}),u=e("NO_ERRORS_SCHEMA",{name:"no-errors-schema"}),p=Function;var h,d;function m(e){const t=function(e){const t=e.classNames&&e.classNames.length?[8,...e.classNames]:[];return[e.element&&"*"!==e.element?e.element:"",...e.attrs,...t]}(e),s=e.notSelectors&&e.notSelectors.length?e.notSelectors.map((e=>function(e){const t=e.classNames&&e.classNames.length?[8,...e.classNames]:[];return e.element?[5,e.element,...e.attrs,...t]:e.attrs.length?[3,...e.attrs,...t]:e.classNames&&e.classNames.length?[9,...e.classNames]:[]}(e))):[];return t.concat(...s)}function g(e){return e?s.parse(e).map(m):[]}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(h||(h={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(d||(d={}));e("core",Object.freeze({__proto__:null,emitDistinctChangesOnlyDefaultValue:a,get ViewEncapsulation(){return o},get ChangeDetectionStrategy(){return l},CUSTOM_ELEMENTS_SCHEMA:c,NO_ERRORS_SCHEMA:u,Type:p,get SecurityContext(){return h},get MissingTranslationStrategy(){return d},parseSelectorToR3Selector:g}));class f{static zero(){return new f([0])}static one(){return new f([1])}constructor(e){this.digits=e}clone(){return new f(this.digits.slice())}add(e){const t=this.clone();return t.addToSelf(e),t}addToSelf(e){const t=Math.max(this.digits.length,e.digits.length);let s=0;for(let n=0;n<t;n++){let t=s;n<this.digits.length&&(t+=this.digits[n]),n<e.digits.length&&(t+=e.digits[n]),t>=10?(this.digits[n]=t-10,s=1):(this.digits[n]=t,s=0)}s>0&&(this.digits[t]=1)}toString(){let e="";for(let t=this.digits.length-1;t>=0;t--)e+=this.digits[t];return e}}class v{constructor(e){this.powerOfTwos=[e]}getValue(){return this.powerOfTwos[0]}multiplyBy(e){const t=f.zero();return this.multiplyByAndAddTo(e,t),t}multiplyByAndAddTo(e,t){for(let s=0;0!==e;e>>>=1,s++)if(1&e){const e=this.getMultipliedByPowerOfTwo(s);t.addToSelf(e)}}getMultipliedByPowerOfTwo(e){for(let t=this.powerOfTwos.length;t<=e;t++){const e=this.powerOfTwos[t-1];this.powerOfTwos[t]=e.add(e)}return this.powerOfTwos[e]}}let y;function x(e){return e.id||w(e)}function w(e){return function(e){y??=new TextEncoder;const t=[...y.encode(e)],s=function(e,t){const s=e.length+3>>>2,n=[];for(let r=0;r<s;r++)n[r]=O(e,4*r,t);return n}(t,L.Big),n=8*t.length,r=new Uint32Array(80);let i=1732584193,a=4023233417,o=2562383102,l=271733878,c=3285377520;s[n>>5]|=128<<24-n%32,s[15+(n+64>>9<<4)]=n;for(let e=0;e<s.length;e+=16){const t=i,n=a,u=o,p=l,h=c;for(let t=0;t<80;t++){r[t]=t<16?s[e+t]:B(r[t-3]^r[t-8]^r[t-14]^r[t-16],1);const n=T(t,a,o,l),u=n[0],p=n[1],h=[B(i,5),u,c,p,r[t]].reduce(M);c=l,l=o,o=B(a,30),a=i,i=h}i=M(i,t),a=M(a,n),o=M(o,u),l=M(l,p),c=M(c,h)}return I(i)+I(a)+I(o)+I(l)+I(c)}((t=e.nodes,t.map((e=>e.visit(b,null)))).join("")+`[${e.meaning}]`);var t}function S(e){return e.id||E(e)}function E(e){const t=new C;return P(e.nodes.map((e=>e.visit(t,null))).join(""),e.meaning)}class _{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map((e=>e.visit(this))).join(", ")}]`}visitIcu(e,t){const s=Object.keys(e.cases).map((t=>`${t} {${e.cases[t].visit(this)}}`));return`{${e.expression}, ${e.type}, ${s.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?`<ph tag name="${e.startName}"/>`:`<ph tag name="${e.startName}">${e.children.map((e=>e.visit(this))).join(", ")}</ph name="${e.closeName}">`}visitPlaceholder(e,t){return e.value?`<ph name="${e.name}">${e.value}</ph>`:`<ph name="${e.name}"/>`}visitIcuPlaceholder(e,t){return`<ph icu name="${e.name}">${e.value.visit(this)}</ph>`}}const b=new _;class C extends _{visitIcu(e,t){let s=Object.keys(e.cases).map((t=>`${t} {${e.cases[t].visit(this)}}`));return`{${e.type}, ${s.join(", ")}}`}}function I(e){return(e>>>0).toString(16).padStart(8,"0")}function T(e,t,s,n){return e<20?[t&s|~t&n,1518500249]:e<40?[t^s^n,1859775393]:e<60?[t&s|t&n|s&n,2400959708]:[t^s^n,3395469782]}function k(e){y??=new TextEncoder;const t=y.encode(e),s=new DataView(t.buffer,t.byteOffset,t.byteLength);let n=N(s,t.length,0),r=N(s,t.length,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function P(e,t=""){let s=k(e);if(t){const e=k(t);s=function(e,t){const s=e[0],n=e[1],r=t[0],i=t[1],a=R(n,i),o=a[0],l=a[1];return[M(M(s,r),o),l]}(function(e,t){const s=e[0],n=e[1],r=s<<t|n>>>32-t,i=n<<t|s>>>32-t;return[r,i]}(s,1),e)}return function(e,t){const s=$.toThePowerOf(0).multiplyBy(t);return $.toThePowerOf(4).multiplyByAndAddTo(e,s),s.toString()}(2147483647&s[0],s[1])}function N(e,t,s){let n=2654435769,r=2654435769,i=0;const a=t-12;for(;i<=a;i+=12){n+=e.getUint32(i,!0),r+=e.getUint32(i+4,!0);const t=A(n,r,s+=e.getUint32(i+8,!0));n=t[0],r=t[1],s=t[2]}const o=t-i;return s+=t,o>=4?(n+=e.getUint32(i,!0),i+=4,o>=8?(r+=e.getUint32(i,!0),i+=4,o>=9&&(s+=e.getUint8(i++)<<8),o>=10&&(s+=e.getUint8(i++)<<16),11===o&&(s+=e.getUint8(i++)<<24)):(o>=5&&(r+=e.getUint8(i++)),o>=6&&(r+=e.getUint8(i++)<<8),7===o&&(r+=e.getUint8(i++)<<16))):(o>=1&&(n+=e.getUint8(i++)),o>=2&&(n+=e.getUint8(i++)<<8),3===o&&(n+=e.getUint8(i++)<<16)),A(n,r,s)[2]}function A(e,t,s){return e-=t,e-=s,t-=s,t-=e^=s>>>13,s-=e,s-=t^=e<<8,e-=t,e-=s^=t>>>13,t-=s,t-=e^=s>>>12,s-=e,s-=t^=e<<16,e-=t,e-=s^=t>>>5,t-=s,t-=e^=s>>>3,s-=e,s-=t^=e<<10,[e,t,s^=t>>>15]}var L;function M(e,t){return R(e,t)[1]}function R(e,t){const s=(65535&e)+(65535&t),n=(e>>>16)+(t>>>16)+(s>>>16);return[n>>>16,n<<16|65535&s]}function B(e,t){return e<<t|e>>>32-t}function D(e,t){return t>=e.length?0:e[t]}function O(e,t,s){let n=0;if(s===L.Big)for(let s=0;s<4;s++)n+=D(e,t+s)<<24-8*s;else for(let s=0;s<4;s++)n+=D(e,t+s)<<8*s;return n}!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(L||(L={}));const $=new class{constructor(e){this.base=e,this.exponents=[new v(f.one())]}toThePowerOf(e){for(let t=this.exponents.length;t<=e;t++){const e=this.exponents[t-1].multiplyBy(this.base);this.exponents[t]=new v(e)}return this.exponents[e]}}(256);var F,q;e("TypeModifier",F),function(e){e[e.None=0]="None",e[e.Const=1]="Const"}(F||e("TypeModifier",F={}));class V{constructor(e=F.None){this.modifiers=e}hasModifier(e){return 0!=(this.modifiers&e)}}e("Type",V),e("BuiltinTypeName",q),function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(q||e("BuiltinTypeName",q={}));class U extends V{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}}e("BuiltinType",U);class H extends V{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}}e("ExpressionType",H);class j extends V{constructor(e,t){super(t),this.of=e}visitType(e,t){return e.visitArrayType(this,t)}}e("ArrayType",j);class W extends V{constructor(e,t){super(t),this.valueType=e||null}visitType(e,t){return e.visitMapType(this,t)}}e("MapType",W);class z extends V{constructor(e,t){super(t),this.type=e}visitType(e,t){return e.visitTransplantedType(this,t)}}e("TransplantedType",z);const K=e("DYNAMIC_TYPE",new U(q.Dynamic)),G=new U(q.Inferred),Y=new U(q.Bool),Q=new U(q.Int),X=new U(q.Number),J=e("STRING_TYPE",new U(q.String)),Z=new U(q.Function),ee=e("NONE_TYPE",new U(q.None));var te,se;function ne(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function re(e,t,s){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(!s(e[r],t[r]))return!1;return!0}function ie(e,t){return re(e,t,((e,t)=>e.isEquivalent(t)))}e("UnaryOperator",te),function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"}(te||e("UnaryOperator",te={})),e("BinaryOperator",se),function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals",e[e.NullishCoalesce=16]="NullishCoalesce"}(se||e("BinaryOperator",se={}));class ae{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new De(this,e,null,t)}key(e,t,s){return new Oe(this,e,t,s)}callFn(e,t,s){return new de(this,e,null,t,s)}instantiate(e,t,s){return new ge(this,e,t,s)}conditional(e,t=null,s){return new Pe(this,e,t,null,s)}equals(e,t){return new Be(se.Equals,this,e,null,t)}notEquals(e,t){return new Be(se.NotEquals,this,e,null,t)}identical(e,t){return new Be(se.Identical,this,e,null,t)}notIdentical(e,t){return new Be(se.NotIdentical,this,e,null,t)}minus(e,t){return new Be(se.Minus,this,e,null,t)}plus(e,t){return new Be(se.Plus,this,e,null,t)}divide(e,t){return new Be(se.Divide,this,e,null,t)}multiply(e,t){return new Be(se.Multiply,this,e,null,t)}modulo(e,t){return new Be(se.Modulo,this,e,null,t)}and(e,t){return new Be(se.And,this,e,null,t)}bitwiseAnd(e,t,s=!0){return new Be(se.BitwiseAnd,this,e,null,t,s)}or(e,t){return new Be(se.Or,this,e,null,t)}lower(e,t){return new Be(se.Lower,this,e,null,t)}lowerEquals(e,t){return new Be(se.LowerEquals,this,e,null,t)}bigger(e,t){return new Be(se.Bigger,this,e,null,t)}biggerEquals(e,t){return new Be(se.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(He,e)}nullishCoalesce(e,t){return new Be(se.NullishCoalesce,this,e,null,t)}toStmt(){return new Qe(this,null)}}e("Expression",ae);class oe extends ae{constructor(e,t,s){super(t,s),this.name=e}isEquivalent(e){return e instanceof oe&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new oe(this.name,this.type,this.sourceSpan)}set(e){return new ue(this.name,e,null,this.sourceSpan)}}e("ReadVarExpr",oe);class le extends ae{constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof le&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new le(this.expr.clone())}}e("TypeofExpr",le);class ce extends ae{constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof ce&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}clone(){return new ce(this.node,this.type,this.sourceSpan)}}e("WrappedNodeExpr",ce);class ue extends ae{constructor(e,t,s,n){super(s||t.type,n),this.name=e,this.value=t}isEquivalent(e){return e instanceof ue&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new ue(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new Ge(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(G,je.Final)}}e("WriteVarExpr",ue);class pe extends ae{constructor(e,t,s,n,r){super(n||s.type,r),this.receiver=e,this.index=t,this.value=s}isEquivalent(e){return e instanceof pe&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new pe(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}}e("WriteKeyExpr",pe);class he extends ae{constructor(e,t,s,n,r){super(n||s.type,r),this.receiver=e,this.name=t,this.value=s}isEquivalent(e){return e instanceof he&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new he(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}}e("WritePropExpr",he);class de extends ae{constructor(e,t,s,n,r=!1){super(s,n),this.fn=e,this.args=t,this.pure=r}get receiver(){return this.fn}isEquivalent(e){return e instanceof de&&this.fn.isEquivalent(e.fn)&&ie(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new de(this.fn.clone(),this.args.map((e=>e.clone())),this.type,this.sourceSpan,this.pure)}}e("InvokeFunctionExpr",de);class me extends ae{constructor(e,t,s,n){super(s,n),this.tag=e,this.template=t}isEquivalent(e){return e instanceof me&&this.tag.isEquivalent(e.tag)&&re(this.template.elements,e.template.elements,((e,t)=>e.text===t.text))&&ie(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}clone(){return new me(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}}e("TaggedTemplateExpr",me);class ge extends ae{constructor(e,t,s,n){super(s,n),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof ge&&this.classExpr.isEquivalent(e.classExpr)&&ie(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new ge(this.classExpr.clone(),this.args.map((e=>e.clone())),this.type,this.sourceSpan)}}e("InstantiateExpr",ge);class fe extends ae{constructor(e,t,s){super(t,s),this.value=e}isEquivalent(e){return e instanceof fe&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new fe(this.value,this.type,this.sourceSpan)}}e("LiteralExpr",fe);class ve{constructor(e,t){this.elements=e,this.expressions=t}clone(){return new ve(this.elements.map((e=>e.clone())),this.expressions.map((e=>e.clone())))}}e("TemplateLiteral",ve);class ye{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??Ce(Ee(e))}clone(){return new ye(this.text,this.sourceSpan,this.rawText)}}e("TemplateLiteralElement",ye);class xe{constructor(e,t){this.text=e,this.sourceSpan=t}}class we{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}}class Se extends ae{constructor(e,t,s,n,r){super(J,r),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=s,this.expressions=n}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}clone(){return new Se(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map((e=>e.clone())),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}|${e}`),this.metaBlock.customId&&(e=`${e}@@${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach((t=>{e=`${e}\u241f${t}`})),Ie(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){const t=this.placeHolderNames[e-1],s=this.messageParts[e];let n=t.text;return 0===t.associatedMessage?.legacyIds.length&&(n+=`@@${P(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),Ie(n,s.text,this.getMessagePartSourceSpan(e))}}e("LocalizedString",Se);const Ee=e=>e.replace(/\\/g,"\\\\"),_e=e=>e.replace(/^:/,"\\:"),be=e=>e.replace(/:/g,"\\:"),Ce=e=>e.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Ie(e,t,s){return""===e?{cooked:t,raw:Ce(_e(Ee(t))),range:s}:{cooked:`:${e}:${t}`,raw:Ce(`:${be(Ee(e))}:${Ee(t)}`),range:s}}class Te extends ae{constructor(e,t,s=null,n){super(t,n),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof Te&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new Te(this.value,this.type,this.typeParams,this.sourceSpan)}}e("ExternalExpr",Te);class ke{constructor(e,t,s){this.moduleName=e,this.name=t,this.runtime=s}}e("ExternalReference",ke);class Pe extends ae{constructor(e,t,s=null,n,r){super(n||t.type,r),this.condition=e,this.falseCase=s,this.trueCase=t}isEquivalent(e){return e instanceof Pe&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&ne(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){return new Pe(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}}e("ConditionalExpr",Pe);class Ne extends ae{constructor(e,t){super(null,t),this.url=e}isEquivalent(e){return e instanceof Ne&&this.url===e.url}isConstant(){return!1}visitExpression(e,t){return e.visitDynamicImportExpr(this,t)}clone(){return new Ne(this.url,this.sourceSpan)}}e("DynamicImportExpr",Ne);class Ae extends ae{constructor(e,t){super(Y,t),this.condition=e}isEquivalent(e){return e instanceof Ae&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}clone(){return new Ae(this.condition.clone(),this.sourceSpan)}}e("NotExpr",Ae);class Le{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}clone(){return new Le(this.name,this.type)}}class Me extends ae{constructor(e,t,s,n,r){super(s,n),this.params=e,this.statements=t,this.name=r}isEquivalent(e){return e instanceof Me&&ie(this.params,e.params)&&ie(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new Ye(e,this.params,this.statements,this.type,t,this.sourceSpan)}clone(){return new Me(this.params.map((e=>e.clone())),this.statements,this.type,this.sourceSpan,this.name)}}e("FunctionExpr",Me);class Re extends ae{constructor(e,t,s,n,r=!0){super(s||X,n),this.operator=e,this.expr=t,this.parens=r}isEquivalent(e){return e instanceof Re&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}clone(){return new Re(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}}e("UnaryOperatorExpr",Re);class Be extends ae{constructor(e,t,s,n,r,i=!0){super(n||t.type,r),this.operator=e,this.rhs=s,this.parens=i,this.lhs=t}isEquivalent(e){return e instanceof Be&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new Be(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}}e("BinaryOperatorExpr",Be);class De extends ae{constructor(e,t,s,n){super(s,n),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(e){return e instanceof De&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new he(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new De(this.receiver.clone(),this.name,this.type,this.sourceSpan)}}e("ReadPropExpr",De);class Oe extends ae{constructor(e,t,s,n){super(s,n),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof Oe&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new pe(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new Oe(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}}e("ReadKeyExpr",Oe);class $e extends ae{constructor(e,t,s){super(t,s),this.entries=e}isConstant(){return this.entries.every((e=>e.isConstant()))}isEquivalent(e){return e instanceof $e&&ie(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new $e(this.entries.map((e=>e.clone())),this.type,this.sourceSpan)}}e("LiteralArrayExpr",$e);class Fe{constructor(e,t,s){this.key=e,this.value=t,this.quoted=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new Fe(this.key,this.value.clone(),this.quoted)}}class qe extends ae{constructor(e,t,s){super(t,s),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof qe&&ie(this.entries,e.entries)}isConstant(){return this.entries.every((e=>e.value.isConstant()))}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){const e=this.entries.map((e=>e.clone()));return new qe(e,this.type,this.sourceSpan)}}e("LiteralMapExpr",qe);class Ve extends ae{constructor(e,t){super(e[e.length-1].type,t),this.parts=e}isEquivalent(e){return e instanceof Ve&&ie(this.parts,e.parts)}isConstant(){return!1}visitExpression(e,t){return e.visitCommaExpr(this,t)}clone(){return new Ve(this.parts.map((e=>e.clone())))}}e("CommaExpr",Ve);const Ue=new fe(null,null,null),He=new fe(null,G,null);var je;e("StmtModifier",je),function(e){e[e.None=0]="None",e[e.Final=1]="Final",e[e.Private=2]="Private",e[e.Exported=4]="Exported",e[e.Static=8]="Static"}(je||e("StmtModifier",je={}));class We{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}}e("LeadingComment",We);class ze extends We{constructor(e){super("",!0,!0),this.tags=e}toString(){return function(e){if(0===e.length)return"";if(1===e.length&&e[0].tagName&&!e[0].text)return`*${mt(e[0])} `;let t="*\n";for(const s of e)t+=" *",t+=mt(s).replace(/\n/g,"\n * "),t+="\n";return t+=" ",t}(this.tags)}}e("JSDocComment",ze);class Ke{constructor(e=je.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return 0!=(this.modifiers&e)}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}}e("Statement",Ke);class Ge extends Ke{constructor(e,t,s,n,r,i){super(n,r,i),this.name=e,this.value=t,this.type=s||t&&t.type||null}isEquivalent(e){return e instanceof Ge&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}}e("DeclareVarStmt",Ge);class Ye extends Ke{constructor(e,t,s,n,r,i,a){super(r,i,a),this.name=e,this.params=t,this.statements=s,this.type=n||null}isEquivalent(e){return e instanceof Ye&&ie(this.params,e.params)&&ie(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}}e("DeclareFunctionStmt",Ye);class Qe extends Ke{constructor(e,t,s){super(je.None,t,s),this.expr=e}isEquivalent(e){return e instanceof Qe&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}}e("ExpressionStatement",Qe);class Xe extends Ke{constructor(e,t=null,s){super(je.None,t,s),this.value=e}isEquivalent(e){return e instanceof Xe&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}}e("ReturnStatement",Xe);class Je extends Ke{constructor(e,t,s=[],n,r){super(je.None,n,r),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof Je&&this.condition.isEquivalent(e.condition)&&ie(this.trueCase,e.trueCase)&&ie(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}}e("IfStmt",Je);function Ze(e,t=!1,s=!0){return new We(e,t,s)}function et(e=[]){return new ze(e)}function tt(e,t,s){return new oe(e,t,s)}function st(e,t=null,s){return new Te(e,null,t,s)}function nt(e,t,s){return new H(e,t,s)}function rt(e){return new le(e)}function it(e,t,s){return new $e(e,t,s)}function at(e,t=null){return new qe(e.map((e=>new Fe(e.key,e.value,e.quoted))),t,null)}function ot(e,t){return new Ae(e,t)}function lt(e,t,s,n,r){return new Me(e,t,s,n,r)}function ct(e,t,s,n,r){return new Je(e,t,s,n,r)}function ut(e,t,s,n){return new me(e,t,s,n)}function pt(e,t,s){return new fe(e,t,s)}function ht(e,t,s,n,r){return new Se(e,t,s,n,r)}function dt(e){return e instanceof fe&&null===e.value}function mt(e){let t="";if(e.tagName&&(t+=` @${e.tagName}`),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}e("outputAst",Object.freeze({__proto__:null,get TypeModifier(){return F},Type:V,get BuiltinTypeName(){return q},BuiltinType:U,ExpressionType:H,ArrayType:j,MapType:W,TransplantedType:z,DYNAMIC_TYPE:K,INFERRED_TYPE:G,BOOL_TYPE:Y,INT_TYPE:Q,NUMBER_TYPE:X,STRING_TYPE:J,FUNCTION_TYPE:Z,NONE_TYPE:ee,get UnaryOperator(){return te},get BinaryOperator(){return se},nullSafeIsEquivalent:ne,areAllEquivalent:ie,Expression:ae,ReadVarExpr:oe,TypeofExpr:le,WrappedNodeExpr:ce,WriteVarExpr:ue,WriteKeyExpr:pe,WritePropExpr:he,InvokeFunctionExpr:de,TaggedTemplateExpr:me,InstantiateExpr:ge,LiteralExpr:fe,TemplateLiteral:ve,TemplateLiteralElement:ye,LiteralPiece:xe,PlaceholderPiece:we,LocalizedString:Se,ExternalExpr:Te,ExternalReference:ke,ConditionalExpr:Pe,DynamicImportExpr:Ne,NotExpr:Ae,FnParam:Le,FunctionExpr:Me,UnaryOperatorExpr:Re,BinaryOperatorExpr:Be,ReadPropExpr:De,ReadKeyExpr:Oe,LiteralArrayExpr:$e,LiteralMapEntry:Fe,LiteralMapExpr:qe,CommaExpr:Ve,NULL_EXPR:Ue,TYPED_NULL_EXPR:He,get StmtModifier(){return je},LeadingComment:We,JSDocComment:ze,Statement:Ke,DeclareVarStmt:Ge,DeclareFunctionStmt:Ye,ExpressionStatement:Qe,ReturnStatement:Xe,IfStmt:Je,RecursiveAstVisitor:class{visitType(e,t){return e}visitExpression(e,t){return e.type&&e.type.visitType(this,t),e}visitBuiltinType(e,t){return this.visitType(e,t)}visitExpressionType(e,t){return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach((e=>this.visitType(e,t))),this.visitType(e,t)}visitArrayType(e,t){return this.visitType(e,t)}visitMapType(e,t){return this.visitType(e,t)}visitTransplantedType(e,t){return e}visitWrappedNodeExpr(e,t){return e}visitTypeofExpr(e,t){return this.visitExpression(e,t)}visitReadVarExpr(e,t){return this.visitExpression(e,t)}visitWriteVarExpr(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)}visitWriteKeyExpr(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)}visitWritePropExpr(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)}visitDynamicImportExpr(e,t){return this.visitExpression(e,t)}visitInvokeFunctionExpr(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)}visitTaggedTemplateExpr(e,t){return e.tag.visitExpression(this,t),this.visitAllExpressions(e.template.expressions,t),this.visitExpression(e,t)}visitInstantiateExpr(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)}visitLiteralExpr(e,t){return this.visitExpression(e,t)}visitLocalizedString(e,t){return this.visitExpression(e,t)}visitExternalExpr(e,t){return e.typeParams&&e.typeParams.forEach((e=>e.visitType(this,t))),this.visitExpression(e,t)}visitConditionalExpr(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)}visitNotExpr(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)}visitFunctionExpr(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)}visitUnaryOperatorExpr(e,t){return e.expr.visitExpression(this,t),this.visitExpression(e,t)}visitBinaryOperatorExpr(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)}visitReadPropExpr(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)}visitLiteralArrayExpr(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)}visitLiteralMapExpr(e,t){return e.entries.forEach((e=>e.value.visitExpression(this,t))),this.visitExpression(e,t)}visitCommaExpr(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)}visitAllExpressions(e,t){e.forEach((e=>e.visitExpression(this,t)))}visitDeclareVarStmt(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e}visitDeclareFunctionStmt(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e}visitExpressionStmt(e,t){return e.expr.visitExpression(this,t),e}visitReturnStmt(e,t){return e.value.visitExpression(this,t),e}visitIfStmt(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e}visitAllStatements(e,t){e.forEach((e=>e.visitStatement(this,t)))}},leadingComment:Ze,jsDocComment:et,variable:tt,importExpr:st,importType:function(e,t,s){return null!=e?nt(st(e,t,null),s):null},expressionType:nt,transplantedType:function(e,t){return new z(e,t)},typeofExpr:rt,literalArr:it,literalMap:at,unary:function(e,t,s,n){return new Re(e,t,s,n)},not:ot,fn:lt,ifStmt:ct,taggedTemplate:ut,literal:pt,localizedString:ht,isNull:dt}));const gt=tt("<unknown>"),ft={};class vt extends ae{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,t){return t===ft?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof vt&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}}class yt{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.sharedConstants=new Map,this.nextNameIndex=0}getConstLiteral(e,t){if(e instanceof fe&&!St(e)||e instanceof vt)return e;const s=xt.INSTANCE.keyOf(e);let n=this.literals.get(s),r=!1;if(n||(n=new vt(e),this.literals.set(s,n),r=!0),!r&&!n.shared||r&&t){const t=this.freshName();let s,r;this.isClosureCompilerEnabled&&St(e)?(s=tt(t).set(new Me([],[new Xe(e)])),r=tt(t).callFn([])):(s=tt(t).set(e),r=tt(t)),this.statements.push(s.toDeclStmt(G,je.Final)),n.fixup(r)}return n}getSharedConstant(e,t){const s=e.keyOf(t);if(!this.sharedConstants.has(s)){const n=this.freshName();this.sharedConstants.set(s,tt(n)),this.statements.push(e.toSharedConstantDeclaration(n,t))}return this.sharedConstants.get(s)}getLiteralFactory(e){if(e instanceof $e){const t=e.entries.map((e=>e.isConstant()?e:gt)),s=xt.INSTANCE.keyOf(it(t));return this._getLiteralFactory(s,e.entries,(e=>it(e)))}{const t=at(e.entries.map((e=>({key:e.key,value:e.value.isConstant()?e.value:gt,quoted:e.quoted})))),s=xt.INSTANCE.keyOf(t);return this._getLiteralFactory(s,e.entries.map((e=>e.value)),(t=>at(t.map(((t,s)=>({key:e.entries[s].key,value:t,quoted:e.entries[s].quoted}))))))}}_getLiteralFactory(e,t,s){let n=this.literalFactories.get(e);const r=t.filter((e=>!e.isConstant()));if(!n){const r=t.map(((e,t)=>e.isConstant()?this.getConstLiteral(e,!0):tt(`a${t}`))),i=lt(r.filter(wt).map((e=>new Le(e.name,K))),[new Xe(s(r))],G),a=this.freshName();this.statements.push(tt(a).set(i).toDeclStmt(G,je.Final)),n=tt(a),this.literalFactories.set(e,n)}return{literalFactory:n,literalFactoryArguments:r}}uniqueName(e){return`${e}${this.nextNameIndex++}`}freshName(){return this.uniqueName("_c")}}e("ConstantPool",yt);class xt{static{this.INSTANCE=new xt}keyOf(e){if(e instanceof fe&&"string"==typeof e.value)return`"${e.value}"`;if(e instanceof fe)return String(e.value);if(e instanceof $e){const t=[];for(const s of e.entries)t.push(this.keyOf(s));return`[${t.join(",")}]`}if(e instanceof qe){const t=[];for(const s of e.entries){let e=s.key;s.quoted&&(e=`"${e}"`),t.push(e+":"+this.keyOf(s.value))}return`{${t.join(",")}}`}if(e instanceof Te)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof oe)return`read(${e.name})`;if(e instanceof le)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}function wt(e){return e instanceof oe}function St(e){return e instanceof fe&&"string"==typeof e.value&&e.value.length>=50}const Et="@angular/core";class _t{static{this.NEW_METHOD="factory"}static{this.TRANSFORM_METHOD="transform"}static{this.PATCH_DEPS="patchedDeps"}static{this.core={name:null,moduleName:Et}}static{this.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:Et}}static{this.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:Et}}static{this.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:Et}}static{this.element={name:"\u0275\u0275element",moduleName:Et}}static{this.elementStart={name:"\u0275\u0275elementStart",moduleName:Et}}static{this.elementEnd={name:"\u0275\u0275elementEnd",moduleName:Et}}static{this.advance={name:"\u0275\u0275advance",moduleName:Et}}static{this.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:Et}}static{this.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:Et}}static{this.attribute={name:"\u0275\u0275attribute",moduleName:Et}}static{this.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:Et}}static{this.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:Et}}static{this.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:Et}}static{this.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:Et}}static{this.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:Et}}static{this.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:Et}}static{this.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:Et}}static{this.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:Et}}static{this.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:Et}}static{this.classProp={name:"\u0275\u0275classProp",moduleName:Et}}static{this.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:Et}}static{this.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:Et}}static{this.elementContainer={name:"\u0275\u0275elementContainer",moduleName:Et}}static{this.styleMap={name:"\u0275\u0275styleMap",moduleName:Et}}static{this.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:Et}}static{this.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:Et}}static{this.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:Et}}static{this.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:Et}}static{this.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:Et}}static{this.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:Et}}static{this.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:Et}}static{this.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:Et}}static{this.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:Et}}static{this.classMap={name:"\u0275\u0275classMap",moduleName:Et}}static{this.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:Et}}static{this.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:Et}}static{this.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:Et}}static{this.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:Et}}static{this.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:Et}}static{this.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:Et}}static{this.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:Et}}static{this.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:Et}}static{this.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:Et}}static{this.styleProp={name:"\u0275\u0275styleProp",moduleName:Et}}static{this.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:Et}}static{this.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:Et}}static{this.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:Et}}static{this.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:Et}}static{this.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:Et}}static{this.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:Et}}static{this.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:Et}}static{this.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:Et}}static{this.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:Et}}static{this.nextContext={name:"\u0275\u0275nextContext",moduleName:Et}}static{this.resetView={name:"\u0275\u0275resetView",moduleName:Et}}static{this.templateCreate={name:"\u0275\u0275template",moduleName:Et}}static{this.defer={name:"\u0275\u0275defer",moduleName:Et}}static{this.text={name:"\u0275\u0275text",moduleName:Et}}static{this.enableBindings={name:"\u0275\u0275enableBindings",moduleName:Et}}static{this.disableBindings={name:"\u0275\u0275disableBindings",moduleName:Et}}static{this.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:Et}}static{this.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:Et}}static{this.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:Et}}static{this.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:Et}}static{this.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:Et}}static{this.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:Et}}static{this.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:Et}}static{this.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:Et}}static{this.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:Et}}static{this.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:Et}}static{this.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:Et}}static{this.restoreView={name:"\u0275\u0275restoreView",moduleName:Et}}static{this.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:Et}}static{this.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:Et}}static{this.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:Et}}static{this.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:Et}}static{this.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:Et}}static{this.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:Et}}static{this.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:Et}}static{this.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:Et}}static{this.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:Et}}static{this.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:Et}}static{this.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:Et}}static{this.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:Et}}static{this.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:Et}}static{this.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:Et}}static{this.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:Et}}static{this.hostProperty={name:"\u0275\u0275hostProperty",moduleName:Et}}static{this.property={name:"\u0275\u0275property",moduleName:Et}}static{this.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:Et}}static{this.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:Et}}static{this.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:Et}}static{this.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:Et}}static{this.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:Et}}static{this.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:Et}}static{this.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:Et}}static{this.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:Et}}static{this.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:Et}}static{this.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:Et}}static{this.i18n={name:"\u0275\u0275i18n",moduleName:Et}}static{this.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:Et}}static{this.i18nExp={name:"\u0275\u0275i18nExp",moduleName:Et}}static{this.i18nStart={name:"\u0275\u0275i18nStart",moduleName:Et}}static{this.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:Et}}static{this.i18nApply={name:"\u0275\u0275i18nApply",moduleName:Et}}static{this.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:Et}}static{this.pipe={name:"\u0275\u0275pipe",moduleName:Et}}static{this.projection={name:"\u0275\u0275projection",moduleName:Et}}static{this.projectionDef={name:"\u0275\u0275projectionDef",moduleName:Et}}static{this.reference={name:"\u0275\u0275reference",moduleName:Et}}static{this.inject={name:"\u0275\u0275inject",moduleName:Et}}static{this.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:Et}}static{this.directiveInject={name:"\u0275\u0275directiveInject",moduleName:Et}}static{this.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:Et}}static{this.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:Et}}static{this.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:Et}}static{this.forwardRef={name:"forwardRef",moduleName:Et}}static{this.resolveForwardRef={name:"resolveForwardRef",moduleName:Et}}static{this.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:Et}}static{this.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:Et}}static{this.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:Et}}static{this.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:Et}}static{this.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:Et}}static{this.resolveBody={name:"\u0275\u0275resolveBody",moduleName:Et}}static{this.defineComponent={name:"\u0275\u0275defineComponent",moduleName:Et}}static{this.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:Et}}static{this.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:Et}}static{this.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Et}}static{this.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Et}}static{this.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:Et}}static{this.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:Et}}static{this.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:Et}}static{this.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:Et}}static{this.defineDirective={name:"\u0275\u0275defineDirective",moduleName:Et}}static{this.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:Et}}static{this.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:Et}}static{this.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:Et}}static{this.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:Et}}static{this.defineInjector={name:"\u0275\u0275defineInjector",moduleName:Et}}static{this.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:Et}}static{this.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:Et}}static{this.ModuleWithProviders={name:"ModuleWithProviders",moduleName:Et}}static{this.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:Et}}static{this.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:Et}}static{this.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:Et}}static{this.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:Et}}static{this.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:Et}}static{this.definePipe={name:"\u0275\u0275definePipe",moduleName:Et}}static{this.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:Et}}static{this.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:Et}}static{this.setClassMetadata={name:"\u0275setClassMetadata",moduleName:Et}}static{this.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:Et}}static{this.viewQuery={name:"\u0275\u0275viewQuery",moduleName:Et}}static{this.loadQuery={name:"\u0275\u0275loadQuery",moduleName:Et}}static{this.contentQuery={name:"\u0275\u0275contentQuery",moduleName:Et}}static{this.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:Et}}static{this.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:Et}}static{this.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:Et}}static{this.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:Et}}static{this.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:Et}}static{this.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:Et}}static{this.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:Et}}static{this.listener={name:"\u0275\u0275listener",moduleName:Et}}static{this.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:Et}}static{this.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:Et}}static{this.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:Et}}static{this.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:Et}}static{this.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:Et}}static{this.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:Et}}static{this.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:Et}}static{this.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:Et}}static{this.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:Et}}static{this.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:Et}}}e("R3Identifiers",_t);const bt=/-+([a-z0-9])/g;function Ct(e,t,s){const n=e.indexOf(t);return-1==n?s:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function It(e){throw new Error(`Internal Error: ${e}`)}function Tt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Tt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;if(!e.toString)return"object";const t=e.toString();if(null==t)return""+t;const s=t.indexOf("\n");return-1===s?t:t.substring(0,s)}class kt{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}e("Version",kt);const Pt=globalThis;class Nt{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,s,n){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(null==e)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(null==s||null==n))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:s,sourceCol0:n}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;const e=new Map,t=[],s=[];Array.from(this.sourcesContent.keys()).forEach(((n,r)=>{e.set(n,r),t.push(n),s.push(this.sourcesContent.get(n)||null)}));let n="",r=0,i=0,a=0,o=0;return this.lines.forEach((t=>{r=0,n+=t.map((t=>{let s=At(t.col0-r);return r=t.col0,null!=t.sourceUrl&&(s+=At(e.get(t.sourceUrl)-i),i=e.get(t.sourceUrl),s+=At(t.sourceLine0-a),a=t.sourceLine0,s+=At(t.sourceCol0-o),o=t.sourceCol0),s})).join(","),n+=";"})),n=n.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:t,sourcesContent:s,mappings:n}}toJsComment(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(e){let t="";const s=function(e){let t=[];for(let s=0;s<e.length;s++){let n=e.charCodeAt(s);if(n>=55296&&n<=56319&&e.length>s+1){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(s++,n=(n-55296<<10)+t-56320+65536)}n<=127?t.push(n):n<=2047?t.push(n>>6&31|192,63&n|128):n<=65535?t.push(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&t.push(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128)}return t}(e);for(let e=0;e<s.length;){const n=s[e++],r=e<s.length?s[e++]:null,i=e<s.length?s[e++]:null;t+=Mt(n>>2),t+=Mt((3&n)<<4|(null===r?0:r>>4)),t+=null===r?"=":Mt((15&r)<<2|(null===i?0:i>>6)),t+=null===r||null===i?"=":Mt(63&i)}return t}(JSON.stringify(this,null,0)):""}}function At(e){e=e<0?1+(-e<<1):e<<1;let t="";do{let s=31&e;(e>>=5)>0&&(s|=32),t+=Mt(s)}while(e>0);return t}const Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Mt(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return Lt[e]}const Rt=/'|\\|\n|\r|\$/g,Bt=/^[$A-Z_][0-9A-Z_$]*$/i,Dt="  ";class Ot{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}class $t{static createRoot(){return new $t(0)}constructor(e){this._indent=e,this._lines=[new Ot(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return 0===this._currentLine.parts.length}lineLength(){return 2*this._currentLine.indent+this._currentLine.partsLength}print(e,t,s=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),s&&this._lines.push(new Ot(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map((e=>e.parts.length>0?Vt(e.indent)+e.parts.join(""):"")).join("\n")}toSourceMapGenerator(e,t=0){const s=new Nt(e);let n=!1;const r=()=>{n||(s.addSource(e," ").addMapping(0,e,0,0),n=!0)};for(let e=0;e<t;e++)s.addLine(),r();return this.sourceLines.forEach(((e,t)=>{s.addLine();const i=e.srcSpans,a=e.parts;let o=2*e.indent,l=0;for(;l<i.length&&!i[l];)o+=a[l].length,l++;for(l<i.length&&0===t&&0===o?n=!0:r();l<i.length;){const e=i[l],t=e.start.file,n=e.start.line,r=e.start.col;for(s.addSource(t.url,t.content).addMapping(o,t.url,n,r),o+=a[l].length,l++;l<i.length&&(e===i[l]||!i[l]);)o+=a[l].length,l++}})),s}spanOf(e,t){const s=this._lines[e];if(s){let e=t-Vt(s.indent).length;for(let t=0;t<s.parts.length;t++){const n=s.parts[t];if(n.length>e)return s.srcSpans[t];e-=n.length}}return null}get sourceLines(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}e("EmitterVisitorContext",$t);class Ft{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(void 0!==e.leadingComments)for(const s of e.leadingComments)s instanceof ze?t.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?t.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split("\n").forEach((s=>{t.println(e,`// ${s}`)}))}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");const s=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!s?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),s&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitWriteVarExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),t.print(e,`${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWriteKeyExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWritePropExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,`.${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitInvokeFunctionExpr(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateExpr(e,t){e.tag.visitExpression(this,t),t.print(e,"`"+e.template.elements[0].rawText);for(let s=1;s<e.template.elements.length;s++)t.print(e,"${"),e.template.expressions[s-1].visitExpression(this,t),t.print(e,`}${e.template.elements[s].rawText}`);return t.print(e,"`"),null}visitWrappedNodeExpr(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)}visitReadVarExpr(e,t){return t.print(e,e.name),null}visitInstantiateExpr(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitLiteralExpr(e,t){const s=e.value;return"string"==typeof s?t.print(e,qt(s,this._escapeDollarInStrings)):t.print(e,`${s}`),null}visitLocalizedString(e,t){const s=e.serializeI18nHead();t.print(e,"$localize `"+s.raw);for(let s=1;s<e.messageParts.length;s++)t.print(e,"${"),e.expressions[s-1].visitExpression(this,t),t.print(e,`}${e.serializeI18nTemplatePart(s).raw}`);return t.print(e,"`"),null}visitConditionalExpr(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null}visitDynamicImportExpr(e,t){t.print(e,`import(${e.url})`)}visitNotExpr(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null}visitUnaryOperatorExpr(e,t){let s;switch(e.operator){case te.Plus:s="+";break;case te.Minus:s="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&t.print(e,"("),t.print(e,s),e.expr.visitExpression(this,t),e.parens&&t.print(e,")"),null}visitBinaryOperatorExpr(e,t){let s;switch(e.operator){case se.Equals:s="==";break;case se.Identical:s="===";break;case se.NotEquals:s="!=";break;case se.NotIdentical:s="!==";break;case se.And:s="&&";break;case se.BitwiseAnd:s="&";break;case se.Or:s="||";break;case se.Plus:s="+";break;case se.Minus:s="-";break;case se.Divide:s="/";break;case se.Multiply:s="*";break;case se.Modulo:s="%";break;case se.Lower:s="<";break;case se.LowerEquals:s="<=";break;case se.Bigger:s=">";break;case se.BiggerEquals:s=">=";break;case se.NullishCoalesce:s="??";break;default:throw new Error(`Unknown operator ${e.operator}`)}return e.parens&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e,` ${s} `),e.rhs.visitExpression(this,t),e.parens&&t.print(e,")"),null}visitReadPropExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null}visitReadKeyExpr(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null}visitLiteralArrayExpr(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null}visitLiteralMapExpr(e,t){return t.print(e,"{"),this.visitAllObjects((s=>{t.print(e,`${qt(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.value.visitExpression(this,t)}),e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitAllExpressions(e,t,s){this.visitAllObjects((e=>e.visitExpression(this,t)),e,t,s)}visitAllObjects(e,t,s,n){let r=!1;for(let i=0;i<t.length;i++)i>0&&(s.lineLength()>80?(s.print(null,n,!0),r||(s.incIndent(),s.incIndent(),r=!0)):s.print(null,n,!1)),e(t[i]);r&&(s.decIndent(),s.decIndent())}visitAllStatements(e,t){e.forEach((e=>e.visitStatement(this,t)))}}function qt(e,t,s=!0){if(null==e)return null;const n=e.replace(Rt,((...e)=>"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":`\\${e[0]}`));return s||!Bt.test(n)?`'${n}'`:n}function Vt(e){let t="";for(let s=0;s<e;s++)t+=Dt;return t}function Ut(e,t){if(0===t)return nt(e);const s=[];for(let e=0;e<t;e++)s.push(K);return nt(e,void 0,s)}const Ht="@";function jt(e){return`${Ht}${e}`}function Wt(e,t){const s=qt(t,!1,!1);return s!==t?`${e}[${s}]`:`${e}.${t}`}function zt(e,t){return`animation_${e}_${t}`}function Kt(e){return Gt("ngDevMode",e)}function Gt(e,t){const s=new Te({name:e,moduleName:null}),n=new Be(se.Identical,new le(s),pt("undefined")),r=new Be(se.Or,n,s,void 0,void 0,!0);return new Be(se.And,r,t)}function Yt(e){const t=new ce(e);return{value:t,type:t}}function Qt(e,t){const s=it(e.map((e=>e.value)));return t?lt([],[new Xe(s)]):s}function Xt(e,t){return{expression:e,forwardRef:t}}function Jt({expression:e,forwardRef:t}){switch(t){case 0:case 1:return e;case 2:return Zt(e)}}function Zt(e){return st(_t.forwardRef).callFn([lt([],[new Xe(e)])])}var es,ts;function ss(e){const t=tt("t");let s=null;const n=is(e)?t:new Be(se.Or,t,e.type.value);let r=null;null!==e.deps?"invalid"!==e.deps&&(r=new ge(n,rs(e.deps,e.target))):(s=tt(`\u0275${e.name}_BaseFactory`),r=s.callFn([n]));const i=[];let a=null;function o(e){const s=tt("r");i.push(s.set(Ue).toDeclStmt());const n=null!==r?s.set(r).toStmt():st(_t.invalidFactory).callFn([]).toStmt();return i.push(ct(t,[n],[s.set(e).toStmt()])),s}if(is(e)){const t=rs(e.delegateDeps,e.target);a=o(new(e.delegateType===es.Class?ge:de)(e.delegate,t))}else a=function(e){return void 0!==e.expression}(e)?o(e.expression):r;if(null===a)i.push(st(_t.invalidFactory).callFn([]).toStmt());else if(null!==s){const t=st(_t.getInheritedFactory).callFn([e.type.value]),r=new Be(se.Or,s,s.set(t));i.push(new Xe(r.callFn([n])))}else i.push(new Xe(a));let l=lt([new Le("t",K)],i,G,void 0,`${e.name}_Factory`);return null!==s&&(l=lt([],[new Ge(s.name),new Xe(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:ns(e)}}function ns(e){const t=null!==e.deps&&"invalid"!==e.deps?function(e){let t=!1;const s=e.map((e=>{const s=function(e){const t=[];null!==e.attributeNameType&&t.push({key:"attribute",value:e.attributeNameType,quoted:!1});e.optional&&t.push({key:"optional",value:pt(!0),quoted:!1});e.host&&t.push({key:"host",value:pt(!0),quoted:!1});e.self&&t.push({key:"self",value:pt(!0),quoted:!1});e.skipSelf&&t.push({key:"skipSelf",value:pt(!0),quoted:!1});return t.length>0?at(t):null}(e);return null!==s?(t=!0,s):pt(null)}));return t?nt(it(s)):ee}(e.deps):ee;return nt(st(_t.FactoryDeclaration,[Ut(e.type.type,e.typeArgumentCount),t]))}function rs(e,t){return e.map(((e,s)=>function(e,t,s){if(null===e.token)return st(_t.invalidFactoryDep).callFn([pt(s)]);if(null===e.attributeNameType){const s=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0)|(t===ts.Pipe?16:0);let n=0!==s||e.optional?pt(s):null;const r=[e.token];n&&r.push(n);const i=function(e){switch(e){case ts.Component:case ts.Directive:case ts.Pipe:return _t.directiveInject;case ts.NgModule:case ts.Injectable:default:return _t.inject}}(t);return st(i).callFn(r)}return st(_t.injectAttribute).callFn([e.token])}(e,t,s)))}function is(e){return void 0!==e.delegateType}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function"}(es||(es={})),e("FactoryTarget",ts),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(ts||e("FactoryTarget",ts={}));class as{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}}class os{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}}e("TmplAstText",os);class ls{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s}visit(e){return e.visitBoundText(this)}}e("TmplAstBoundText",ls);class cs{constructor(e,t,s,n,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r,this.i18n=i}visit(e){return e.visitTextAttribute(this)}}e("TmplAstTextAttribute",cs);class us{constructor(e,t,s,n,r,i,a,o,l){this.name=e,this.type=t,this.securityContext=s,this.value=n,this.unit=r,this.sourceSpan=i,this.keySpan=a,this.valueSpan=o,this.i18n=l}static fromBoundElementProperty(e,t){if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new us(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}}e("TmplAstBoundAttribute",us);class ps{constructor(e,t,s,n,r,i,a,o){this.name=e,this.type=t,this.handler=s,this.target=n,this.phase=r,this.sourceSpan=i,this.handlerSpan=a,this.keySpan=o}static fromParsedEvent(e){const t=0===e.type?e.targetOrPhase:null,s=1===e.type?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new ps(e.name,e.type,e.handler,t,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}}e("TmplAstBoundEvent",ps);class hs{constructor(e,t,s,n,r,i,a,o,l,c){this.name=e,this.attributes=t,this.inputs=s,this.outputs=n,this.children=r,this.references=i,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l,this.i18n=c}visit(e){return e.visitElement(this)}}e("TmplAstElement",hs);class ds{constructor(e){this.sourceSpan=e}visit(e){return e.visitDeferredTrigger(this)}}e("TmplAstDeferredTrigger",ds);class ms extends ds{constructor(e,t){super(t),this.value=e}}e("TmplAstBoundDeferredTrigger",ms);class gs extends ds{}e("TmplAstIdleDeferredTrigger",gs);class fs extends ds{}e("TmplAstImmediateDeferredTrigger",fs);class vs extends ds{}e("TmplAstHoverDeferredTrigger",vs);class ys extends ds{constructor(e,t){super(t),this.delay=e}}e("TmplAstTimerDeferredTrigger",ys);class xs extends ds{constructor(e,t){super(t),this.reference=e}}e("TmplAstInteractionDeferredTrigger",xs);class ws extends ds{constructor(e,t){super(t),this.reference=e}}e("TmplAstViewportDeferredTrigger",ws);class Ss{constructor(e,t,s,n,r){this.children=e,this.minimumTime=t,this.sourceSpan=s,this.startSourceSpan=n,this.endSourceSpan=r}visit(e){return e.visitDeferredBlockPlaceholder(this)}}e("TmplAstDeferredBlockPlaceholder",Ss);class Es{constructor(e,t,s,n,r,i){this.children=e,this.afterTime=t,this.minimumTime=s,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=i}visit(e){return e.visitDeferredBlockLoading(this)}}e("TmplAstDeferredBlockLoading",Es);class _s{constructor(e,t,s,n){this.children=e,this.sourceSpan=t,this.startSourceSpan=s,this.endSourceSpan=n}visit(e){return e.visitDeferredBlockError(this)}}e("TmplAstDeferredBlockError",_s);class bs{constructor(e,t,s,n,r,i,a,o,l){this.children=e,this.triggers=t,this.prefetchTriggers=s,this.placeholder=n,this.loading=r,this.error=i,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l}visit(e){return e.visitDeferredBlock(this)}}e("TmplAstDeferredBlock",bs);class Cs{constructor(e,t,s,n,r,i,a,o,l,c,u,p){this.tagName=e,this.attributes=t,this.inputs=s,this.outputs=n,this.templateAttrs=r,this.children=i,this.references=a,this.variables=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=u,this.i18n=p}visit(e){return e.visitTemplate(this)}}e("TmplAstTemplate",Cs);class Is{constructor(e,t,s,n){this.selector=e,this.attributes=t,this.sourceSpan=s,this.i18n=n,this.name="ng-content"}visit(e){return e.visitContent(this)}}e("TmplAstContent",Is);class Ts{constructor(e,t,s,n,r){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r}visit(e){return e.visitVariable(this)}}e("TmplAstVariable",Ts);class ks{constructor(e,t,s,n,r){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r}visit(e){return e.visitReference(this)}}e("TmplAstReference",ks);class Ps{constructor(e,t,s,n){this.vars=e,this.placeholders=t,this.sourceSpan=s,this.i18n=n}visit(e){return e.visitIcu(this)}}e("TmplAstIcu",Ps);function Ns(e,t){const s=[];if(e.visit)for(const s of t)e.visit(s)||s.visit(e);else for(const n of t){const t=n.visit(e);t&&s.push(t)}return s}e("TmplAstRecursiveVisitor",class{visitElement(e){Ns(this,e.attributes),Ns(this,e.inputs),Ns(this,e.outputs),Ns(this,e.children),Ns(this,e.references)}visitTemplate(e){Ns(this,e.attributes),Ns(this,e.inputs),Ns(this,e.outputs),Ns(this,e.children),Ns(this,e.references),Ns(this,e.variables)}visitDeferredBlock(e){Ns(this,e.triggers),Ns(this,e.prefetchTriggers),Ns(this,e.children),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){Ns(this,e.children)}visitDeferredBlockError(e){Ns(this,e.children)}visitDeferredBlockLoading(e){Ns(this,e.children)}visitContent(e){}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}});class As{constructor(e,t,s,n,r,i){this.nodes=e,this.placeholders=t,this.placeholderToMessage=s,this.meaning=n,this.description=r,this.customId=i,this.legacyIds=[],this.id=this.customId,this.messageString=function(e){const t=new qs;return e.map((e=>e.visit(t))).join("")}(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}}class Ls{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}}class Ms{constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}}class Rs{constructor(e,t,s,n,r){this.expression=e,this.type=t,this.cases=s,this.sourceSpan=n,this.expressionPlaceholder=r}visit(e,t){return e.visitIcu(this,t)}}class Bs{constructor(e,t,s,n,r,i,a,o,l){this.tag=e,this.attrs=t,this.startName=s,this.closeName=n,this.children=r,this.isVoid=i,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l}visit(e,t){return e.visitTagPlaceholder(this,t)}}class Ds{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitPlaceholder(this,t)}}class Os{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitIcuPlaceholder(this,t)}}class $s{visitText(e,t){return new Ls(e.value,e.sourceSpan)}visitContainer(e,t){const s=e.children.map((e=>e.visit(this,t)));return new Ms(s,e.sourceSpan)}visitIcu(e,t){const s={};Object.keys(e.cases).forEach((n=>s[n]=e.cases[n].visit(this,t)));return new Rs(e.expression,e.type,s,e.sourceSpan,e.expressionPlaceholder)}visitTagPlaceholder(e,t){const s=e.children.map((e=>e.visit(this,t)));return new Bs(e.tag,e.attrs,e.startName,e.closeName,s,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Ds(e.value,e.name,e.sourceSpan)}visitIcuPlaceholder(e,t){return new Os(e.value,e.name,e.sourceSpan)}}class Fs{visitText(e,t){}visitContainer(e,t){e.children.forEach((e=>e.visit(this)))}visitIcu(e,t){Object.keys(e.cases).forEach((t=>{e.cases[t].visit(this)}))}visitTagPlaceholder(e,t){e.children.forEach((e=>e.visit(this)))}visitPlaceholder(e,t){}visitIcuPlaceholder(e,t){}}class qs{visitText(e){return e.value}visitContainer(e){return e.children.map((e=>e.visit(this))).join("")}visitIcu(e){const t=Object.keys(e.cases).map((t=>`${t} {${e.cases[t].visit(this)}}`));return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){const t=e.children.map((e=>e.visit(this))).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}}class Vs{createNameMapper(e){return null}}e("Serializer",Vs);class Us extends Fs{constructor(e,t){super(),this.mapName=t,this.internalToPublic={},this.publicToNextId={},this.publicToInternal={},e.nodes.forEach((e=>e.visit(this)))}toPublicName(e){return this.internalToPublic.hasOwnProperty(e)?this.internalToPublic[e]:null}toInternalName(e){return this.publicToInternal.hasOwnProperty(e)?this.publicToInternal[e]:null}visitText(e,t){return null}visitTagPlaceholder(e,t){this.visitPlaceholderName(e.startName),super.visitTagPlaceholder(e,t),this.visitPlaceholderName(e.closeName)}visitPlaceholder(e,t){this.visitPlaceholderName(e.name)}visitIcuPlaceholder(e,t){this.visitPlaceholderName(e.name)}visitPlaceholderName(e){if(!e||this.internalToPublic.hasOwnProperty(e))return;let t=this.mapName(e);if(this.publicToInternal.hasOwnProperty(t)){const e=this.publicToNextId[t];this.publicToNextId[t]=e+1,t=`${t}_${e}`}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}}const Hs=new class{visitTag(e){const t=this._serializeAttributes(e.attrs);if(0==e.children.length)return`<${e.name}${t}/>`;const s=e.children.map((e=>e.visit(this)));return`<${e.name}${t}>${s.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){const t=Object.keys(e).map((t=>`${t}="${e[t]}"`)).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [\n${e.dtd}\n]>`}};function js(e){return e.map((e=>e.visit(Hs))).join("")}class Ws{constructor(e){this.attrs={},Object.keys(e).forEach((t=>{this.attrs[t]=Xs(e[t])}))}visit(e){return e.visitDeclaration(this)}}class zs{constructor(e,t){this.rootTag=e,this.dtd=t}visit(e){return e.visitDoctype(this)}}class Ks{constructor(e,t={},s=[]){this.name=e,this.children=s,this.attrs={},Object.keys(t).forEach((e=>{this.attrs[e]=Xs(t[e])}))}visit(e){return e.visitTag(this)}}class Gs{constructor(e){this.value=Xs(e)}visit(e){return e.visitText(this)}}class Ys extends Gs{constructor(e=0){super(`\n${new Array(e+1).join(" ")}`)}}const Qs=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Xs(e){return Qs.reduce(((e,t)=>e.replace(t[0],t[1])),e)}const Js="messagebundle",Zs="ph",en="ex";class tn extends Vs{write(e,t){const s=new rn,n=new sn;let r=new Ks(Js);return e.forEach((e=>{const t={id:e.id};e.description&&(t.desc=e.description),e.meaning&&(t.meaning=e.meaning);let s=[];e.sources.forEach((e=>{s.push(new Ks("source",{},[new Gs(`${e.filePath}:${e.startLine}${e.endLine!==e.startLine?","+e.endLine:""}`)]))})),r.children.push(new Ys(2),new Ks("msg",t,[...s,...n.serialize(e.nodes)]))})),r.children.push(new Ys),js([new Ws({version:"1.0",encoding:"UTF-8"}),new Ys,new zs(Js,'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new Ys,s.addDefaultExamples(r),new Ys])}load(e,t){throw new Error("Unsupported")}digest(e){return nn(e)}createNameMapper(e){return new Us(e,an)}}e("Xmb",tn);class sn{visitText(e,t){return[new Gs(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach((e=>s.push(...e.visit(this)))),s}visitIcu(e,t){const s=[new Gs(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach((t=>{s.push(new Gs(`${t} {`),...e.cases[t].visit(this),new Gs("} "))})),s.push(new Gs("}")),s}visitTagPlaceholder(e,t){const s=new Gs(`<${e.tag}>`),n=new Ks(en,{},[s]),r=new Ks(Zs,{name:e.startName},[n,s]);if(e.isVoid)return[r];const i=new Gs(`</${e.tag}>`),a=new Ks(en,{},[i]),o=new Ks(Zs,{name:e.closeName},[a,i]);return[r,...this.serialize(e.children),o]}visitPlaceholder(e,t){const s=new Gs(`{{${e.value}}}`),n=new Ks(en,{},[s]);return[new Ks(Zs,{name:e.name},[n,s])]}visitIcuPlaceholder(e,t){const s=e.value.expression,n=e.value.type,r=Object.keys(e.value.cases).map((e=>e+" {...}")).join(" "),i=new Gs(`{${s}, ${n}, ${r}}`),a=new Ks(en,{},[i]);return[new Ks(Zs,{name:e.name},[a,i])]}serialize(e){return[].concat(...e.map((e=>e.visit(this))))}}function nn(e){return S(e)}class rn{addDefaultExamples(e){return e.visit(this),e}visitTag(e){if(e.name===Zs){if(!e.children||0==e.children.length){const t=new Gs(e.attrs.name||"...");e.children=[new Ks(en,{},[t])]}}else e.children&&e.children.forEach((e=>e.visit(this)))}visitText(e){}visitDeclaration(e){}visitDoctype(e){}}function an(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}const on="i18n",ln="i18n-",cn="\ufffd";function un(e){return e===on||e.startsWith(ln)}function pn(e){return e instanceof As}function hn(e){return pn(e)&&1===e.nodes.length&&e.nodes[0]instanceof Rs}function dn(e){return!!e.i18n}function mn(e){return e.nodes[0]}function gn(e,t=0){return`${cn}${e}${t>0?`:${t}`:""}${cn}`}function fn(e=0){let t=e;return()=>t++}function vn(e){const t={};return e.forEach(((e,s)=>{t[s]=pt(e.length>1?`[${e.join("|")}]`:e[0])})),t}function yn(e,t,...s){const n=e.get(t)||[];n.push(...s),e.set(t,n)}function xn(e,t=0,s=0){const n=t,r=new Map,i=e instanceof As?e.nodes.find((e=>e instanceof Ms)):e;return i&&i.children.filter((e=>e instanceof Ds)).forEach(((e,t)=>{const i=gn(n+t,s);yn(r,e.name,i)})),r}function wn(e={},t){const s={};return e&&Object.keys(e).length&&Object.keys(e).forEach((n=>s[Sn(n,t)]=e[n])),s}function Sn(e,t=!0){const s=an(e);if(!t)return s;const n=s.split("_");if(1===n.length)return e.toLowerCase();let r;/^\d+$/.test(n[n.length-1])&&(r=n.pop());let i=n.shift().toLowerCase();return n.length&&(i+=n.map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join("")),r?`${i}_${r}`:i}function En(e){return`MSG_${e}`.toUpperCase()}function _n(e){return new Ge(e.name,void 0,G,void 0,e.sourceSpan)}const bn=/[-.]/,Cn="_t",In="ctx",Tn="rf",kn="restoredCtx",Pn=500,Nn=new Set([_t.element,_t.elementStart,_t.elementEnd,_t.elementContainer,_t.elementContainerStart,_t.elementContainerEnd,_t.i18nExp,_t.listener,_t.classProp,_t.syntheticHostListener,_t.hostProperty,_t.syntheticHostProperty,_t.property,_t.propertyInterpolate1,_t.propertyInterpolate2,_t.propertyInterpolate3,_t.propertyInterpolate4,_t.propertyInterpolate5,_t.propertyInterpolate6,_t.propertyInterpolate7,_t.propertyInterpolate8,_t.propertyInterpolateV,_t.attribute,_t.attributeInterpolate1,_t.attributeInterpolate2,_t.attributeInterpolate3,_t.attributeInterpolate4,_t.attributeInterpolate5,_t.attributeInterpolate6,_t.attributeInterpolate7,_t.attributeInterpolate8,_t.attributeInterpolateV,_t.styleProp,_t.stylePropInterpolate1,_t.stylePropInterpolate2,_t.stylePropInterpolate3,_t.stylePropInterpolate4,_t.stylePropInterpolate5,_t.stylePropInterpolate6,_t.stylePropInterpolate7,_t.stylePropInterpolate8,_t.stylePropInterpolateV,_t.textInterpolate,_t.textInterpolate1,_t.textInterpolate2,_t.textInterpolate3,_t.textInterpolate4,_t.textInterpolate5,_t.textInterpolate6,_t.textInterpolate7,_t.textInterpolate8,_t.textInterpolateV]);function An(e,t,s){return st(t,null,e).callFn(s,e)}function Ln(e,t){let s=null;return()=>(s||(e.push(new Ge(Cn,void 0,K)),s=tt(t)),s)}function Mn(e){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${e.constructor.name}`)}function Rn(e){return Array.isArray(e)?it(e.map(Rn)):pt(e,G)}function Bn(e,t){const s=Object.getOwnPropertyNames(e);return 0===s.length?null:at(s.map((s=>{const n=e[s];let r,i,a,o;if("string"==typeof n)r=s,a=s,i=n,o=Rn(i);else if(a=s,r=n.classPropertyName,i=n.bindingPropertyName,!t||i===r&&null==n.transformFunction)o=Rn(i);else{const e=[Rn(i),Rn(r)];null!=n.transformFunction&&e.push(n.transformFunction),o=it(e)}return{key:a,quoted:bn.test(a),value:o}})))}function Dn(e){for(;dt(e[e.length-1]);)e.pop();return e}function On(e,t){if(Array.isArray(e.predicate)){let s=[];return e.predicate.forEach((e=>{const t=e.split(",").map((e=>pt(e.trim())));s.push(...t)})),t.getConstLiteral(it(s),!0)}switch(e.predicate.forwardRef){case 0:case 2:return e.predicate.expression;case 1:return st(_t.resolveForwardRef).callFn([e.predicate.expression])}}class $n{constructor(){this.values=[]}set(e,t){t&&this.values.push({key:e,value:t,quoted:!1})}toLiteralMap(){return at(this.values)}}function Fn(e){const{expressions:t,strings:s}=e;return 1===t.length&&2===s.length&&""===s[0]&&""===s[1]?1:t.length+s.length}function qn(e){const t=[];let s=null,n=null,r=0;for(const i of e){const e=("function"==typeof i.paramsOrFn?i.paramsOrFn():i.paramsOrFn)??[],a=Array.isArray(e)?e:[e];r<Pn&&n===i.reference&&Nn.has(n)?(s=s.callFn(a,s.sourceSpan),r++):(null!==s&&t.push(s.toStmt()),s=An(i.span,i.reference,a),n=i.reference,r=0)}return null!==s&&t.push(s.toStmt()),t}function Vn(e,t){let s=null;const n={name:e.name,type:e.type,typeArgumentCount:e.typeArgumentCount,deps:[],target:ts.Injectable};if(void 0!==e.useClass){const r=e.useClass.expression.isEquivalent(e.type.value);let i;void 0!==e.deps&&(i=e.deps),s=void 0!==i?ss({...n,delegate:e.useClass.expression,delegateDeps:i,delegateType:es.Class}):r?ss(n):{statements:[],expression:Hn(e.type.value,e.useClass.expression,t)}}else s=void 0!==e.useFactory?void 0!==e.deps?ss({...n,delegate:e.useFactory,delegateDeps:e.deps||[],delegateType:es.Function}):{statements:[],expression:lt([],[new Xe(e.useFactory.callFn([]))])}:void 0!==e.useValue?ss({...n,expression:e.useValue.expression}):void 0!==e.useExisting?ss({...n,expression:st(_t.inject).callFn([e.useExisting.expression])}):{statements:[],expression:Hn(e.type.value,e.type.value,t)};const r=e.type.value,i=new $n;i.set("token",r),i.set("factory",s.expression),null!==e.providedIn.expression.value&&i.set("providedIn",Jt(e.providedIn));return{expression:st(_t.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:Un(e),statements:s.statements}}function Un(e){return new H(st(_t.InjectableDeclaration,[Ut(e.type.type,e.typeArgumentCount)]))}function Hn(e,t,s){if(e.node===t.node)return t.prop("\u0275fac");if(!s)return jn(t);return jn(st(_t.resolveForwardRef).callFn([t]))}function jn(e){return lt([new Le("t",K)],[new Xe(e.prop("\u0275fac").callFn([tt("t")]))])}const Wn=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];class zn{static fromArray(e){return e?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){const e=t[0],s=t[1];Wn.forEach((t=>{if(t.test(e)||t.test(s))throw new Error(`['${e}', '${s}'] contains unusable interpolation symbol.`)}))}}("interpolation",e),new zn(e[0],e[1])):Kn}constructor(e,t){this.start=e,this.end=t}}e("InterpolationConfig",zn);const Kn=e("DEFAULT_INTERPOLATION_CONFIG",new zn("{{","}}")),Gn=0,Yn=9,Qn=10,Xn=32,Jn=36,Zn=40,er=41,tr=44,sr=46,nr=47,rr=58,ir=59,ar=60,or=61,lr=62,cr=48,ur=57,pr=65,hr=70,dr=90,mr=91,gr=93,fr=95,vr=97,yr=102,xr=122,wr=123,Sr=125,Er=160;function _r(e){return e>=Yn&&e<=Xn||e==Er}function br(e){return cr<=e&&e<=ur}function Cr(e){return e>=vr&&e<=xr||e>=pr&&e<=dr}function Ir(e){return e===Qn||13===e}function Tr(e){return cr<=e&&e<=55}function kr(e){return 39===e||34===e||96===e}class Pr{constructor(e,t,s,n){this.file=e,this.offset=t,this.line=s,this.col=n}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){const t=this.file.content,s=t.length;let n=this.offset,r=this.line,i=this.col;for(;n>0&&e<0;){n--,e++;if(t.charCodeAt(n)==Qn){r--;const e=t.substring(0,n-1).lastIndexOf(String.fromCharCode(Qn));i=e>0?n-e:n}else i--}for(;n<s&&e>0;){const s=t.charCodeAt(n);n++,e--,s==Qn?(r++,i=0):i++}return new Pr(this.file,n,r,i)}getContext(e,t){const s=this.file.content;let n=this.offset;if(null!=n){n>s.length-1&&(n=s.length-1);let r=n,i=0,a=0;for(;i<e&&n>0&&(n--,i++,"\n"!=s[n]||++a!=t););for(i=0,a=0;i<e&&r<s.length-1&&(r++,i++,"\n"!=s[r]||++a!=t););return{before:s.substring(n,this.offset),after:s.substring(this.offset,r+1)}}return null}}e("ParseLocation",Pr);class Nr{constructor(e,t){this.content=e,this.url=t}}e("ParseSourceFile",Nr);class Ar{constructor(e,t,s=e,n=null){this.start=e,this.end=t,this.fullStart=s,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var Lr;e("ParseSourceSpan",Ar),e("ParseErrorLevel",Lr),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(Lr||e("ParseErrorLevel",Lr={}));class Mr{constructor(e,t,s=Lr.ERROR){this.span=e,this.msg=t,this.level=s}contextualMessage(){const e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Lr[this.level]} ->]${e.after}")`:this.msg}toString(){const e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}}function Rr(e,t,s){const n=new Nr("",`in ${e} ${t} in ${s}`);return new Ar(new Pr(n,-1,-1,-1),new Pr(n,-1,-1,-1))}e("ParseError",Mr);let Br=0;function Dr(e){if(!e||!e.reference)return null;const t=e.reference;if(t.__anonymousType)return t.__anonymousType;if(t.__forward_ref__)return"__forward_ref__";let s=Tt(t);return s.indexOf("(")>=0?(s="anonymous_"+Br++,t.__anonymousType=s):s=Or(s),s}function Or(e){return e.replace(/\W/g,"_")}const $r='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';class Fr extends Ft{constructor(){super(!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitTaggedTemplateExpr(e,t){const s=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${$r}(`),t.print(e,`[${s.map((e=>qt(e.text,!1))).join(", ")}], `),t.print(e,`[${s.map((e=>qt(e.rawText,!1))).join(", ")}])`),e.template.expressions.forEach((s=>{t.print(e,", "),s.visitExpression(this,t)})),t.print(e,")"),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${$r}(`);const s=[e.serializeI18nHead()];for(let t=1;t<e.messageParts.length;t++)s.push(e.serializeI18nTemplatePart(t));return t.print(e,`[${s.map((e=>qt(e.cooked,!1))).join(", ")}], `),t.print(e,`[${s.map((e=>qt(e.raw,!1))).join(", ")}])`),e.expressions.forEach((s=>{t.print(e,", "),s.visitExpression(this,t)})),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects((e=>t.print(null,e.name)),e,t,",")}}function qr(...e){if(!Pt.trustedTypes)return new Function(...e);const t=`(function anonymous(${e.slice(0,-1).join(",")}\n) { ${e[e.length-1]}\n})`,s=Pt.eval(t);return void 0===s.bind?new Function(...e):(s.toString=()=>t,s.bind(Pt))}class Vr{evaluateStatements(e,t,s,n){const r=new Ur(s),i=$t.createRoot();return t.length>0&&!t[0].isEquivalent(pt("use strict").toStmt())&&(t=[pt("use strict").toStmt(),...t]),r.visitAllStatements(t,i),r.createReturnStmt(i),this.evaluateCode(e,i,r.getArgs(),n)}evaluateCode(e,t,s,n){let r=`"use strict";${t.toSource()}\n//# sourceURL=${e}`;const i=[],a=[];for(const e in s)a.push(s[e]),i.push(e);if(n){const s=qr(...i.concat("return null;")).toString(),n=s.slice(0,s.indexOf("return null;")).split("\n").length-1;r+=`\n${t.toSourceMapGenerator(e,n).toJsComment()}`}const o=qr(...i.concat(r));return this.executeFunction(o,a)}executeFunction(e,t){return e(...t)}}e("JitEvaluator",Vr);class Ur extends Fr{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new Xe(new qe(this._evalExportedVars.map((e=>new Fe(e,tt(e),!1))))).visitStatement(this,e)}getArgs(){const e={};for(let t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e}visitExternalExpr(e,t){return this._emitReferenceToExternal(e,this.refResolver.resolveExternalReference(e.value),t),null}visitWrappedNodeExpr(e,t){return this._emitReferenceToExternal(e,e.node,t),null}visitDeclareVarStmt(e,t){return e.hasModifier(je.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareVarStmt(e,t)}visitDeclareFunctionStmt(e,t){return e.hasModifier(je.Exported)&&this._evalExportedVars.push(e.name),super.visitDeclareFunctionStmt(e,t)}_emitReferenceToExternal(e,t,s){let n=this._evalArgValues.indexOf(t);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(t);const e=Dr({reference:t})||"val";this._evalArgNames.push(`jit_${e}_${n}`)}s.print(e,this._evalArgNames[n])}}function Hr(e){const t=new $n;null!==e.providers&&t.set("providers",e.providers),e.imports.length>0&&t.set("imports",it(e.imports));return{expression:st(_t.defineInjector).callFn([t.toLiteralMap()],void 0,!0),type:jr(e),statements:[]}}function jr(e){return new H(st(_t.InjectorDeclaration,[new H(e.type.type)]))}class Wr{constructor(e){this.context=e}resolveExternalReference(e){if("@angular/core"!==e.moduleName)throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}}var zr,Kr,Gr,Yr,Qr;function Xr(e){const t=[],s=new $n;if(s.set("type",e.type.value),e.kind===Kr.Global?e.bootstrap.length>0&&s.set("bootstrap",Qt(e.bootstrap,e.containsForwardDecls)):e.bootstrapExpression&&s.set("bootstrap",e.bootstrapExpression),e.selectorScopeMode===zr.Inline)e.declarations.length>0&&s.set("declarations",Qt(e.declarations,e.containsForwardDecls)),e.imports.length>0&&s.set("imports",Qt(e.imports,e.containsForwardDecls)),e.exports.length>0&&s.set("exports",Qt(e.exports,e.containsForwardDecls));else if(e.selectorScopeMode===zr.SideEffect){const s=function(e){const t=new $n;e.kind===Kr.Global?e.declarations.length>0&&t.set("declarations",Qt(e.declarations,e.containsForwardDecls)):e.declarationsExpression&&t.set("declarations",e.declarationsExpression);e.kind===Kr.Global?e.imports.length>0&&t.set("imports",Qt(e.imports,e.containsForwardDecls)):e.importsExpression&&t.set("imports",e.importsExpression);e.kind===Kr.Global?e.exports.length>0&&t.set("exports",Qt(e.exports,e.containsForwardDecls)):e.exportsExpression&&t.set("exports",e.exportsExpression);if(0===Object.keys(t.values).length)return null;const s=new de(st(_t.setNgModuleScope),[e.type.value,t.toLiteralMap()]),n=(i=s,Gt("ngJitMode",i)),r=new Me([],[n.toStmt()]);var i;return new de(r,[]).toStmt()}(e);null!==s&&t.push(s)}null!==e.schemas&&e.schemas.length>0&&s.set("schemas",it(e.schemas.map((e=>e.value)))),null!==e.id&&(s.set("id",e.id),t.push(st(_t.registerNgModuleType).callFn([e.type.value,e.id]).toStmt()));return{expression:st(_t.defineNgModule).callFn([s.toLiteralMap()],void 0,!0),type:Jr(e),statements:t}}function Jr(e){if(e.kind===Kr.Local)return new H(e.type.value);const{type:t,declarations:s,exports:n,imports:r,includeImportTypes:i,publicDeclarationTypes:a}=e;return new H(st(_t.NgModuleDeclaration,[new H(t.type),null===a?Zr(s):ei(a),i?Zr(r):ee,Zr(n)]))}function Zr(e){const t=e.map((e=>rt(e.type)));return e.length>0?nt(it(t)):ee}function ei(e){const t=e.map((e=>rt(e)));return e.length>0?nt(it(t)):ee}function ti(e){const t=[];t.push({key:"name",value:pt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type.value,quoted:!1}),t.push({key:"pure",value:pt(e.pure),quoted:!1}),e.isStandalone&&t.push({key:"standalone",value:pt(!0),quoted:!1});return{expression:st(_t.definePipe).callFn([at(t)],void 0,!0),type:si(e),statements:[]}}function si(e){return new H(st(_t.PipeDeclaration,[Ut(e.type.type,e.typeArgumentCount),new H(new fe(e.pipeName)),new H(new fe(e.isStandalone))]))}e("R3SelectorScopeMode",zr),function(e){e[e.Inline=0]="Inline",e[e.SideEffect=1]="SideEffect",e[e.Omit=2]="Omit"}(zr||e("R3SelectorScopeMode",zr={})),e("R3NgModuleMetadataKind",Kr),function(e){e[e.Global=0]="Global",e[e.Local=1]="Local"}(Kr||e("R3NgModuleMetadataKind",Kr={})),e("R3TemplateDependencyKind",Gr),function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"}(Gr||e("R3TemplateDependencyKind",Gr={}));class ni{constructor(e,t,s,n){this.input=t,this.errLocation=s,this.ctxLocation=n,this.message=`Parser Error: ${e} ${s} [${t}] in ${n}`}}e("ParserError",ni);class ri{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new Pi(e+this.start,e+this.end)}}e("ParseSpan",ri);class ii{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}}e("AST",ii);class ai extends ii{constructor(e,t,s){super(e,t),this.nameSpan=s}}e("ASTWithName",ai);class oi extends ii{visit(e,t=null){}}e("EmptyExpr",oi);class li extends ii{visit(e,t=null){return e.visitImplicitReceiver(this,t)}}e("ImplicitReceiver",li);class ci extends li{visit(e,t=null){return e.visitThisReceiver?.(this,t)}}e("ThisReceiver",ci);class ui extends ii{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}}e("Chain",ui);class pi extends ii{constructor(e,t,s,n,r){super(e,t),this.condition=s,this.trueExp=n,this.falseExp=r}visit(e,t=null){return e.visitConditional(this,t)}}e("Conditional",pi);class hi extends ai{constructor(e,t,s,n,r){super(e,t,s),this.receiver=n,this.name=r}visit(e,t=null){return e.visitPropertyRead(this,t)}}e("PropertyRead",hi);class di extends ai{constructor(e,t,s,n,r,i){super(e,t,s),this.receiver=n,this.name=r,this.value=i}visit(e,t=null){return e.visitPropertyWrite(this,t)}}e("PropertyWrite",di);class mi extends ai{constructor(e,t,s,n,r){super(e,t,s),this.receiver=n,this.name=r}visit(e,t=null){return e.visitSafePropertyRead(this,t)}}e("SafePropertyRead",mi);class gi extends ii{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitKeyedRead(this,t)}}e("KeyedRead",gi);class fi extends ii{constructor(e,t,s,n){super(e,t),this.receiver=s,this.key=n}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}}e("SafeKeyedRead",fi);class vi extends ii{constructor(e,t,s,n,r){super(e,t),this.receiver=s,this.key=n,this.value=r}visit(e,t=null){return e.visitKeyedWrite(this,t)}}e("KeyedWrite",vi);class yi extends ai{constructor(e,t,s,n,r,i){super(e,t,i),this.exp=s,this.name=n,this.args=r}visit(e,t=null){return e.visitPipe(this,t)}}e("BindingPipe",yi);class xi extends ii{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}}e("LiteralPrimitive",xi);class wi extends ii{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}}e("LiteralArray",wi);class Si extends ii{constructor(e,t,s,n){super(e,t),this.keys=s,this.values=n}visit(e,t=null){return e.visitLiteralMap(this,t)}}e("LiteralMap",Si);class Ei extends ii{constructor(e,t,s,n){super(e,t),this.strings=s,this.expressions=n}visit(e,t=null){return e.visitInterpolation(this,t)}}e("Interpolation",Ei);class _i extends ii{constructor(e,t,s,n,r){super(e,t),this.operation=s,this.left=n,this.right=r}visit(e,t=null){return e.visitBinary(this,t)}}e("Binary",_i);class bi extends _i{static createMinus(e,t,s){return new bi(e,t,"-",s,"-",new xi(e,t,0),s)}static createPlus(e,t,s){return new bi(e,t,"+",s,"-",s,new xi(e,t,0))}constructor(e,t,s,n,r,i,a){super(e,t,r,i,a),this.operator=s,this.expr=n,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}}e("Unary",bi);class Ci extends ii{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}}e("PrefixNot",Ci);class Ii extends ii{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}}e("NonNullAssert",Ii);class Ti extends ii{constructor(e,t,s,n,r){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=r}visit(e,t=null){return e.visitCall(this,t)}}e("Call",Ti);class ki extends ii{constructor(e,t,s,n,r){super(e,t),this.receiver=s,this.args=n,this.argumentSpan=r}visit(e,t=null){return e.visitSafeCall(this,t)}}e("SafeCall",ki);class Pi{constructor(e,t){this.start=e,this.end=t}}e("AbsoluteSourceSpan",Pi);class Ni extends ii{constructor(e,t,s,n,r){super(new ri(0,null===t?0:t.length),new Pi(n,null===t?n:n+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=r}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}}e("ASTWithSource",Ni);class Ai{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}e("VariableBinding",Ai);class Li{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}e("ExpressionBinding",Li);class Mi{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(const s of e)this.visit(s,t)}}e("RecursiveAstVisitor",Mi);class Ri{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){return new Ei(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,t){return new xi(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,t){return new hi(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,t){return new di(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,t){return new mi(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitLiteralArray(e,t){return new wi(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,t){return new Si(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitUnary(e,t){switch(e.operator){case"+":return bi.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return bi.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error(`Unknown unary operator ${e.operator}`)}}visitBinary(e,t){return new _i(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,t){return new Ci(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,t){return new Ii(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,t){return new pi(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,t){return new yi(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,t){return new gi(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}visitKeyedWrite(e,t){return new vi(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}visitCall(e,t){return new Ti(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}visitSafeCall(e,t){return new ki(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}visitAll(e){const t=[];for(let s=0;s<e.length;++s)t[s]=e[s].visit(this);return t}visitChain(e,t){return new ui(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitSafeKeyedRead(e,t){return new fi(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}e("AstTransformer",Ri);class Bi{visitImplicitReceiver(e,t){return e}visitThisReceiver(e,t){return e}visitInterpolation(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new Ei(e.span,e.sourceSpan,e.strings,s):e}visitLiteralPrimitive(e,t){return e}visitPropertyRead(e,t){const s=e.receiver.visit(this);return s!==e.receiver?new hi(e.span,e.sourceSpan,e.nameSpan,s,e.name):e}visitPropertyWrite(e,t){const s=e.receiver.visit(this),n=e.value.visit(this);return s!==e.receiver||n!==e.value?new di(e.span,e.sourceSpan,e.nameSpan,s,e.name,n):e}visitSafePropertyRead(e,t){const s=e.receiver.visit(this);return s!==e.receiver?new mi(e.span,e.sourceSpan,e.nameSpan,s,e.name):e}visitLiteralArray(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new wi(e.span,e.sourceSpan,s):e}visitLiteralMap(e,t){const s=this.visitAll(e.values);return s!==e.values?new Si(e.span,e.sourceSpan,e.keys,s):e}visitUnary(e,t){const s=e.expr.visit(this);if(s!==e.expr)switch(e.operator){case"+":return bi.createPlus(e.span,e.sourceSpan,s);case"-":return bi.createMinus(e.span,e.sourceSpan,s);default:throw new Error(`Unknown unary operator ${e.operator}`)}return e}visitBinary(e,t){const s=e.left.visit(this),n=e.right.visit(this);return s!==e.left||n!==e.right?new _i(e.span,e.sourceSpan,e.operation,s,n):e}visitPrefixNot(e,t){const s=e.expression.visit(this);return s!==e.expression?new Ci(e.span,e.sourceSpan,s):e}visitNonNullAssert(e,t){const s=e.expression.visit(this);return s!==e.expression?new Ii(e.span,e.sourceSpan,s):e}visitConditional(e,t){const s=e.condition.visit(this),n=e.trueExp.visit(this),r=e.falseExp.visit(this);return s!==e.condition||n!==e.trueExp||r!==e.falseExp?new pi(e.span,e.sourceSpan,s,n,r):e}visitPipe(e,t){const s=e.exp.visit(this),n=this.visitAll(e.args);return s!==e.exp||n!==e.args?new yi(e.span,e.sourceSpan,s,e.name,n,e.nameSpan):e}visitKeyedRead(e,t){const s=e.receiver.visit(this),n=e.key.visit(this);return s!==e.receiver||n!==e.key?new gi(e.span,e.sourceSpan,s,n):e}visitKeyedWrite(e,t){const s=e.receiver.visit(this),n=e.key.visit(this),r=e.value.visit(this);return s!==e.receiver||n!==e.key||r!==e.value?new vi(e.span,e.sourceSpan,s,n,r):e}visitAll(e){const t=[];let s=!1;for(let n=0;n<e.length;++n){const r=e[n],i=r.visit(this);t[n]=i,s=s||i!==r}return s?t:e}visitChain(e,t){const s=this.visitAll(e.expressions);return s!==e.expressions?new ui(e.span,e.sourceSpan,s):e}visitCall(e,t){const s=e.receiver.visit(this),n=this.visitAll(e.args);return s!==e.receiver||n!==e.args?new Ti(e.span,e.sourceSpan,s,n,e.argumentSpan):e}visitSafeCall(e,t){const s=e.receiver.visit(this),n=this.visitAll(e.args);return s!==e.receiver||n!==e.args?new ki(e.span,e.sourceSpan,s,n,e.argumentSpan):e}visitSafeKeyedRead(e,t){const s=e.receiver.visit(this),n=e.key.visit(this);return s!==e.receiver||n!==e.key?new fi(e.span,e.sourceSpan,s,n):e}}e("AstMemoryEfficientTransformer",Bi);class Di{constructor(e,t,s,n,r,i){this.name=e,this.expression=t,this.type=s,this.sourceSpan=n,this.keySpan=r,this.valueSpan=i,this.isLiteral=this.type===Yr.LITERAL_ATTR,this.isAnimation=this.type===Yr.ANIMATION}}e("ParsedProperty",Di),e("ParsedPropertyType",Yr),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(Yr||e("ParsedPropertyType",Yr={}));class Oi{constructor(e,t,s,n,r,i,a){this.name=e,this.targetOrPhase=t,this.type=s,this.handler=n,this.sourceSpan=r,this.handlerSpan=i,this.keySpan=a}}e("ParsedEvent",Oi);class $i{constructor(e,t,s,n,r){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=n,this.valueSpan=r}}e("ParsedVariable",$i);class Fi{constructor(e,t,s,n,r,i,a,o){this.name=e,this.type=t,this.securityContext=s,this.value=n,this.unit=r,this.sourceSpan=i,this.keySpan=a,this.valueSpan=o}}e("BoundElementProperty",Fi);class qi{static{this.event=tt("$event")}}function Vi(e,t,s,n,r,i,a){e||(e=new ea(a));const o=function(e,t){const s=new Yi(e);return t.visit(s)}({createLiteralArrayConverter:e=>e=>it(e),createLiteralMapConverter:e=>t=>at(e.map(((e,s)=>({key:e.key,value:t[s],quoted:e.quoted})))),createPipeConverter:e=>{throw new Error(`Illegal State: Actions are not allowed to contain pipes. Pipe: ${e}`)}},s);const l=new Qi(e,t,n,!1,r,i),c=[];Xi(o.visit(l,Qr.Statement),c),function(e,t,s){for(let n=e-1;n>=0;n--)s.unshift(zi(t,n))}(l.temporaryCount,n,c),l.usesImplicitReceiver&&e.notifyImplicitReceiverUse();const u=c.length-1;if(u>=0){const e=c[u];e instanceof Qe&&(c[u]=new Xe(e.expr))}return c}class Ui{constructor(e,t){this.stmts=e,this.currValExpr=t}}function Hi(e,t,s,n){e||(e=new ea);const r=new Qi(e,t,n,!1),i=s.visit(r,Qr.Expression),a=ji(r,n);return r.usesImplicitReceiver&&e.notifyImplicitReceiverUse(),new Ui(a,i)}function ji(e,t){const s=[];for(let n=0;n<e.temporaryCount;n++)s.push(zi(t,n));return s}function Wi(e,t){return`tmp_${e}_${t}`}function zi(e,t){return new Ge(Wi(e,t))}function Ki(e,t){if(e!==Qr.Expression)throw new Error(`Expected an expression, but saw ${t}`)}function Gi(e,t){return e===Qr.Statement?t.toStmt():t}!function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(Qr||(Qr={}));class Yi extends Ri{constructor(e){super(),this._converterFactory=e}visitPipe(e,t){const s=[e.exp,...e.args].map((e=>e.visit(this,t)));return new ta(e.span,e.sourceSpan,s,this._converterFactory.createPipeConverter(e.name,s.length))}visitLiteralArray(e,t){const s=e.expressions.map((e=>e.visit(this,t)));return new ta(e.span,e.sourceSpan,s,this._converterFactory.createLiteralArrayConverter(e.expressions.length))}visitLiteralMap(e,t){const s=e.values.map((e=>e.visit(this,t)));return new ta(e.span,e.sourceSpan,s,this._converterFactory.createLiteralMapConverter(e.keys))}}class Qi{constructor(e,t,s,n,r,i){this._localResolver=e,this._implicitReceiver=t,this.bindingId=s,this.supportsInterpolation=n,this.baseSourceSpan=r,this.implicitReceiverAccesses=i,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}visitUnary(e,t){let s;switch(e.operator){case"+":s=te.Plus;break;case"-":s=te.Minus;break;default:throw new Error(`Unsupported operator ${e.operator}`)}return Gi(t,new Re(s,this._visit(e.expr,Qr.Expression),void 0,this.convertSourceSpan(e.span)))}visitBinary(e,t){let s;switch(e.operation){case"+":s=se.Plus;break;case"-":s=se.Minus;break;case"*":s=se.Multiply;break;case"/":s=se.Divide;break;case"%":s=se.Modulo;break;case"&&":s=se.And;break;case"||":s=se.Or;break;case"==":s=se.Equals;break;case"!=":s=se.NotEquals;break;case"===":s=se.Identical;break;case"!==":s=se.NotIdentical;break;case"<":s=se.Lower;break;case">":s=se.Bigger;break;case"<=":s=se.LowerEquals;break;case">=":s=se.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,t);default:throw new Error(`Unsupported operation ${e.operation}`)}return Gi(t,new Be(s,this._visit(e.left,Qr.Expression),this._visit(e.right,Qr.Expression),void 0,this.convertSourceSpan(e.span)))}visitChain(e,t){return function(e,t){if(e!==Qr.Statement)throw new Error(`Expected a statement, but saw ${t}`)}(t,e),this.visitAll(e.expressions,t)}visitConditional(e,t){return Gi(t,this._visit(e.condition,Qr.Expression).conditional(this._visit(e.trueExp,Qr.Expression),this._visit(e.falseExp,Qr.Expression),this.convertSourceSpan(e.span)))}visitPipe(e,t){throw new Error(`Illegal state: Pipes should have been converted into functions. Pipe: ${e.name}`)}visitImplicitReceiver(e,t){return Ki(t,e),this.usesImplicitReceiver=!0,this._implicitReceiver}visitThisReceiver(e,t){return this.visitImplicitReceiver(e,t)}visitInterpolation(e,t){if(!this.supportsInterpolation)throw new Error("Unexpected interpolation");Ki(t,e);let s=[];for(let t=0;t<e.strings.length-1;t++)s.push(pt(e.strings[t])),s.push(this._visit(e.expressions[t],Qr.Expression));s.push(pt(e.strings[e.strings.length-1]));const n=e.strings;return 2===n.length&&""===n[0]&&""===n[1]?s=[s[1]]:e.expressions.length>=9&&(s=[it(s)]),new Zi(s)}visitKeyedRead(e,t){const s=this.leftMostSafeNode(e);return s?this.convertSafeAccess(e,s,t):Gi(t,this._visit(e.receiver,Qr.Expression).key(this._visit(e.key,Qr.Expression)))}visitKeyedWrite(e,t){const s=this._visit(e.receiver,Qr.Expression),n=this._visit(e.key,Qr.Expression),r=this._visit(e.value,Qr.Expression);return s===this._implicitReceiver&&this._localResolver.maybeRestoreView(),Gi(t,s.key(n).set(r))}visitLiteralArray(e,t){throw new Error("Illegal State: literal arrays should have been converted into functions")}visitLiteralMap(e,t){throw new Error("Illegal State: literal maps should have been converted into functions")}visitLiteralPrimitive(e,t){const s=null===e.value||void 0===e.value||!0===e.value||!0===e.value?G:void 0;return Gi(t,pt(e.value,s,this.convertSourceSpan(e.span)))}_getLocal(e,t){return this._localResolver.globals?.has(e)&&t instanceof ci?null:this._localResolver.getLocal(e)}visitPrefixNot(e,t){return Gi(t,ot(this._visit(e.expression,Qr.Expression)))}visitNonNullAssert(e,t){return Gi(t,this._visit(e.expression,Qr.Expression))}visitPropertyRead(e,t){const s=this.leftMostSafeNode(e);if(s)return this.convertSafeAccess(e,s,t);{let s=null;const n=this.usesImplicitReceiver,r=this._visit(e.receiver,Qr.Expression);return r===this._implicitReceiver&&(s=this._getLocal(e.name,e.receiver),s&&(this.usesImplicitReceiver=n,this.addImplicitReceiverAccess(e.name))),null==s&&(s=r.prop(e.name,this.convertSourceSpan(e.span))),Gi(t,s)}}visitPropertyWrite(e,t){const s=this._visit(e.receiver,Qr.Expression),n=this.usesImplicitReceiver;let r=null;if(s===this._implicitReceiver){const t=this._getLocal(e.name,e.receiver);if(t){if(!(t instanceof De)){const t=e.name,s=e.value instanceof hi?e.value.name:void 0;throw new Error(`Cannot assign value "${s}" to template variable "${t}". Template variables are read-only.`)}r=t,this.usesImplicitReceiver=n,this.addImplicitReceiverAccess(e.name)}}return null===r&&(r=s.prop(e.name,this.convertSourceSpan(e.span))),Gi(t,r.set(this._visit(e.value,Qr.Expression)))}visitSafePropertyRead(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)}visitSafeKeyedRead(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)}visitAll(e,t){return e.map((e=>this._visit(e,t)))}visitCall(e,t){const s=this.leftMostSafeNode(e);if(s)return this.convertSafeAccess(e,s,t);const n=this.visitAll(e.args,Qr.Expression);if(e instanceof ta)return Gi(t,e.converter(n));const r=e.receiver;if(r instanceof hi&&r.receiver instanceof li&&!(r.receiver instanceof ci)&&"$any"===r.name){if(1!==n.length)throw new Error(`Invalid call to $any, expected 1 argument but received ${n.length||"none"}`);return Gi(t,n[0])}return Gi(t,this._visit(r,Qr.Expression).callFn(n,this.convertSourceSpan(e.span)))}visitSafeCall(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)}_visit(e,t){const s=this._resultMap.get(e);return s||(this._nodeMap.get(e)||e).visit(this,t)}convertSafeAccess(e,t,s){let n,r=this._visit(t.receiver,Qr.Expression);this.needsTemporaryInSafeAccess(t.receiver)&&(n=this.allocateTemporary(),r=n.set(r),this._resultMap.set(t.receiver,n));const i=r.isBlank();t instanceof ki?this._nodeMap.set(t,new Ti(t.span,t.sourceSpan,t.receiver,t.args,t.argumentSpan)):t instanceof fi?this._nodeMap.set(t,new gi(t.span,t.sourceSpan,t.receiver,t.key)):this._nodeMap.set(t,new hi(t.span,t.sourceSpan,t.nameSpan,t.receiver,t.name));const a=this._visit(e,Qr.Expression);return this._nodeMap.delete(t),n&&this.releaseTemporary(n),Gi(s,i.conditional(Ue,a))}convertNullishCoalesce(e,t){const s=this._visit(e.left,Qr.Expression),n=this._visit(e.right,Qr.Expression),r=this.allocateTemporary();return this.releaseTemporary(r),Gi(t,r.set(s).notIdentical(Ue).and(r.notIdentical(pt(void 0))).conditional(r,n))}leftMostSafeNode(e){const t=(e,t)=>(this._nodeMap.get(t)||t).visit(e);return e.visit({visitUnary:e=>null,visitBinary:e=>null,visitChain:e=>null,visitConditional:e=>null,visitCall(e){return t(this,e.receiver)},visitSafeCall(e){return t(this,e.receiver)||e},visitImplicitReceiver:e=>null,visitThisReceiver:e=>null,visitInterpolation:e=>null,visitKeyedRead(e){return t(this,e.receiver)},visitKeyedWrite:e=>null,visitLiteralArray:e=>null,visitLiteralMap:e=>null,visitLiteralPrimitive:e=>null,visitPipe:e=>null,visitPrefixNot:e=>null,visitNonNullAssert(e){return t(this,e.expression)},visitPropertyRead(e){return t(this,e.receiver)},visitPropertyWrite:e=>null,visitSafePropertyRead(e){return t(this,e.receiver)||e},visitSafeKeyedRead(e){return t(this,e.receiver)||e}})}needsTemporaryInSafeAccess(e){const t=(e,t)=>t&&(this._nodeMap.get(t)||t).visit(e);return e.visit({visitUnary(e){return t(this,e.expr)},visitBinary(e){return t(this,e.left)||t(this,e.right)},visitChain:e=>!1,visitConditional(e){return t(this,e.condition)||t(this,e.trueExp)||t(this,e.falseExp)},visitCall:e=>!0,visitSafeCall:e=>!0,visitImplicitReceiver:e=>!1,visitThisReceiver:e=>!1,visitInterpolation(e){return((e,s)=>s.some((s=>t(e,s))))(this,e.expressions)},visitKeyedRead:e=>!1,visitKeyedWrite:e=>!1,visitLiteralArray:e=>!0,visitLiteralMap:e=>!0,visitLiteralPrimitive:e=>!1,visitPipe:e=>!0,visitPrefixNot(e){return t(this,e.expression)},visitNonNullAssert(e){return t(this,e.expression)},visitPropertyRead:e=>!1,visitPropertyWrite:e=>!1,visitSafePropertyRead:e=>!1,visitSafeKeyedRead:e=>!1})}allocateTemporary(){const e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new oe(Wi(this.bindingId,e))}releaseTemporary(e){if(this._currentTemporary--,e.name!=Wi(this.bindingId,this._currentTemporary))throw new Error(`Temporary ${e.name} released out of order`)}convertSourceSpan(e){if(this.baseSourceSpan){const t=this.baseSourceSpan.start.moveBy(e.start),s=this.baseSourceSpan.start.moveBy(e.end),n=this.baseSourceSpan.fullStart.moveBy(e.start);return new Ar(t,s,n)}return null}addImplicitReceiverAccess(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}function Xi(e,t){Array.isArray(e)?e.forEach((e=>Xi(e,t))):t.push(e)}function Ji(){throw new Error("Unsupported operation")}class Zi extends ae{constructor(e){super(null,null),this.args=e,this.isConstant=Ji,this.isEquivalent=Ji,this.visitExpression=Ji,this.clone=Ji}}class ea{constructor(e){this.globals=e}notifyImplicitReceiverUse(){}maybeRestoreView(){}getLocal(e){return e===qi.event.name?qi.event:null}}class ta extends Ti{constructor(e,t,s,n){super(e,t,new oi(e,t),s,null),this.converter=n}}let sa;function na(){return sa||(sa={},ra(h.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ra(h.STYLE,["*|style"]),ra(h.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),ra(h.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),sa}function ra(e,t){for(const s of t)sa[s.toLowerCase()]=e}const ia=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function aa(e){return ia.has(e.toLowerCase())}const oa=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"]);class la{constructor(){this._animationDeclarationKeyframesRe=/(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,t,s=""){const n=[];e=e.replace(ka,(e=>{if(e.match(Pa))n.push(e);else{const t=e.match(Ta);n.push((t?.join("")??"")+"\n")}return Na})),e=this._insertDirectives(e);const r=this._scopeCssText(e,t,s);let i=0;return r.replace(Aa,(()=>n[i++]))}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,t){const s=new Set,n=Ha(e,(e=>this._scopeLocalKeyframeDeclarations(e,t,s)));return Ha(n,(e=>this._scopeAnimationRule(e,t,s)))}_scopeLocalKeyframeDeclarations(e,t,s){return{...e,selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,((e,n,r,i,a)=>(s.add(za(i,r)),`${n}${r}${t}_${i}${r}${a}`)))}}_scopeAnimationKeyframe(e,t,s){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,((e,n,r,i,a)=>`${n}${r}${i=`${s.has(za(i,r))?t+"_":""}${i}`}${r}${a}`))}_scopeAnimationRule(e,t,s){let n=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation(?:\s*):(?:\s*))([^;]+)/g,((e,n,r)=>n+r.replace(this._animationDeclarationKeyframesRe,((e,n,r="",i,a)=>i?`${n}${this._scopeAnimationKeyframe(`${r}${i}${r}`,t,s)}`:oa.has(a)?e:`${n}${this._scopeAnimationKeyframe(a,t,s)}`))));return n=n.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,((e,n,r)=>`${n}${r.split(",").map((e=>this._scopeAnimationKeyframe(e,t,s))).join(",")}`)),{...e,content:n}}_insertPolyfillDirectivesInCssText(e){return e.replace(ua,(function(...e){return e[2]+"{"}))}_insertPolyfillRulesInCssText(e){return e.replace(pa,((...e)=>{const t=e[0].replace(e[1],"").replace(e[2],"");return e[4]+t}))}_scopeCssText(e,t,s){const n=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,s)),(e=e+"\n"+n).trim()}_extractUnscopedRulesFromCssText(e){let t,s="";for(ha.lastIndex=0;null!==(t=ha.exec(e));){s+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n"}return s}_convertColonHost(e){return e.replace(fa,((e,t,s)=>{if(t){const e=[],n=t.split(",").map((e=>e.trim()));for(const t of n){if(!t)break;const n=xa+t.replace(da,"")+s;e.push(n)}return e.join(",")}return xa+s}))}_convertColonHostContext(e){return e.replace(va,(e=>{const t=[[]];let s;for(;s=ya.exec(e);){const n=(s[1]??"").trim().split(",").map((e=>e.trim())).filter((e=>""!==e)),r=t.length;Ka(t,n.length);for(let e=0;e<n.length;e++)for(let s=0;s<r;s++)t[s+e*r].push(n[e]);e=s[2]}return t.map((t=>function(e,t){const s=xa;ba.lastIndex=0;const n=ba.test(t);if(0===e.length)return s+t;const r=[e.pop()||""];for(;e.length>0;){const t=r.length,s=e.pop();for(let e=0;e<t;e++){const n=r[e];r[2*t+e]=n+" "+s,r[t+e]=s+" "+n,r[e]=s+n}}return r.map((e=>n?`${e}${t}`:`${e}${s}${t}, ${e} ${s}${t}`)).join(",")}(t,e))).join(", ")}))}_convertShadowDOMSelectors(e){return Sa.reduce(((e,t)=>e.replace(t," ")),e)}_scopeSelectors(e,t,s){return Ha(e,(e=>{let n=e.selector,r=e.content;return"@"!==e.selector[0]?n=this._scopeSelector(e.selector,t,s):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@document")||e.selector.startsWith("@layer")||e.selector.startsWith("@container")||e.selector.startsWith("@scope")?r=this._scopeSelectors(e.content,t,s):(e.selector.startsWith("@font-face")||e.selector.startsWith("@page"))&&(r=this._stripScopingSelectors(e.content)),new Ua(n,r)}))}_stripScopingSelectors(e){return Ha(e,(e=>{const t=e.selector.replace(Ea," ").replace(wa," ");return new Ua(t,e.content)}))}_scopeSelector(e,t,s){return e.split(",").map((e=>e.trim().split(Ea))).map((e=>{const[n,...r]=e;return[(e=>this._selectorNeedsScoping(e,t)?this._applySelectorScope(e,t,s):e)(n),...r].join(" ")})).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+_a,"m")}_applySimpleSelectorScope(e,t,s){if(ba.lastIndex=0,ba.test(e)){const t=`[${s}]`;return e.replace(wa,((e,s)=>s.replace(/([^:]*)(:*)(.*)/,((e,s,n,r)=>s+t+n+r)))).replace(ba,t+" ")}return t+" "+e}_applySelectorScope(e,t,s){const n="["+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0])))+"]",r=e=>{let r=e.trim();if(!r)return"";if(e.indexOf(xa)>-1)r=this._applySimpleSelectorScope(e,t,s);else{const t=e.replace(ba,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(r=e[1]+n+e[2]+e[3])}}return r},i=new ca(e);let a,o="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let u=!((e=i.content()).indexOf(xa)>-1);for(;null!==(a=c.exec(e));){const t=a[1],s=e.slice(l,a.index).trim();if(s.match(La)&&e[a.index+1]?.match(/[a-fA-F\d]/))continue;u=u||s.indexOf(xa)>-1;o+=`${u?r(s):s} ${t} `,l=c.lastIndex}const p=e.substring(l);return u=u||p.indexOf(xa)>-1,o+=u?r(p):p,i.restore(o)}_insertPolyfillHostInCssText(e){return e.replace(Ia,ma).replace(Ca,da)}}class ca{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=this._escapeRegexMatches(e,/(\\.)/g),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,t,s)=>{const n=`__ph-${this.index}__`;return this.placeholders.push(s),this.index++,t+n}))}restore(e){return e.replace(La,((e,t)=>this.placeholders[+t]))}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,((e,t)=>{const s=`__ph-${this.index}__`;return this.placeholders.push(t),this.index++,s}))}}const ua=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,pa=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,ha=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,da="-shadowcsshost",ma="-shadowcsscontext",ga="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",fa=new RegExp(da+ga,"gim"),va=new RegExp(ma+ga,"gim"),ya=new RegExp(ma+ga,"im"),xa=da+"-no-combinator",wa=/-shadowcsshost-no-combinator([^\s]*)/,Sa=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ea=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,_a="([>\\s~+[.,{:][\\s\\S]*)?$",ba=/-shadowcsshost/gim,Ca=/:host/gim,Ia=/:host-context/gim,Ta=/\r?\n/g,ka=/\/\*[\s\S]*?\*\//g,Pa=/\/\*\s*#\s*source(Mapping)?URL=/g,Na="%COMMENT%",Aa=new RegExp(Na,"g"),La=/__ph-(\d+)__/g,Ma="%BLOCK%",Ra=new RegExp(`(\\s*(?:${Na}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),Ba=new Map([["{","}"]]),Da="%COMMA_IN_PLACEHOLDER%",Oa="%SEMI_IN_PLACEHOLDER%",$a="%COLON_IN_PLACEHOLDER%",Fa=new RegExp(Da,"g"),qa=new RegExp(Oa,"g"),Va=new RegExp($a,"g");class Ua{constructor(e,t){this.selector=e,this.content=t}}function Ha(e,t){const s=function(e){let t=e,s=null;for(let e=0;e<t.length;e++){const n=t[e];if("\\"===n)e++;else if(null!==s)if(n===s)s=null;else{const s=Wa[n];s&&(t=`${t.substr(0,e)}${s}${t.substr(e+1)}`,e+=s.length-1)}else"'"!==n&&'"'!==n||(s=n)}return t}(e),n=function(e,t,s){const n=[],r=[];let i,a,o=0,l=0,c=-1;for(let u=0;u<e.length;u++){const p=e[u];"\\"===p?u++:p===a?(o--,0===o&&(r.push(e.substring(c,u)),n.push(s),l=u,c=-1,i=a=void 0)):p===i?o++:0===o&&t.has(p)&&(i=p,a=t.get(p),o=1,c=u+1,n.push(e.substring(l,c)))}-1!==c?(r.push(e.substring(c)),n.push(s)):n.push(e.substring(l));return new ja(n.join(""),r)}(s,Ba,Ma);let r=0;return function(e){let t=e.replace(Fa,",");return t=t.replace(qa,";"),t=t.replace(Va,":"),t}(n.escapedString.replace(Ra,((...e)=>{const s=e[2];let i="",a=e[4],o="";a&&a.startsWith("{"+Ma)&&(i=n.blocks[r++],a=a.substring(Ma.length+1),o="{");const l=t(new Ua(s,i));return`${e[1]}${l.selector}${e[3]}${o}${l.content}${a}`})))}class ja{constructor(e,t){this.escapedString=e,this.blocks=t}}const Wa={";":Oa,",":Da,":":$a};function za(e,t){return t?e.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):e}function Ka(e,t){const s=e.length;for(let n=1;n<t;n++)for(let t=0;t<s;t++)e[t+n*s]=e[t].slice(0)}var Ga,Ya,Qa,Xa,Ja,Za,eo;function to(e){if(":"!=e[0])return[null,e];const t=e.indexOf(":",1);if(-1===t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[e.slice(1,t),e.slice(t+1)]}function so(e){return"ng-container"===to(e)[1]}function no(e){return"ng-content"===to(e)[1]}function ro(e){return"ng-template"===to(e)[1]}function io(e){return null===e?null:to(e)[0]}function ao(e,t){return e?`:${e}:${t}`:t}e("TagContentType",Ga),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(Ga||e("TagContentType",Ga={})),function(e){e[e.Attribute=0]="Attribute",e[e.ClassName=1]="ClassName",e[e.StyleProperty=2]="StyleProperty",e[e.Property=3]="Property",e[e.Template=4]="Template",e[e.I18n=5]="I18n",e[e.Animation=6]="Animation"}(Ya||(Ya={})),function(e){e[e.ListEnd=0]="ListEnd",e[e.Statement=1]="Statement",e[e.Variable=2]="Variable",e[e.ElementStart=3]="ElementStart",e[e.Element=4]="Element",e[e.Template=5]="Template",e[e.ElementEnd=6]="ElementEnd",e[e.ContainerStart=7]="ContainerStart",e[e.Container=8]="Container",e[e.ContainerEnd=9]="ContainerEnd",e[e.DisableBindings=10]="DisableBindings",e[e.EnableBindings=11]="EnableBindings",e[e.Text=12]="Text",e[e.Listener=13]="Listener",e[e.InterpolateText=14]="InterpolateText",e[e.Binding=15]="Binding",e[e.Property=16]="Property",e[e.StyleProp=17]="StyleProp",e[e.ClassProp=18]="ClassProp",e[e.StyleMap=19]="StyleMap",e[e.ClassMap=20]="ClassMap",e[e.Advance=21]="Advance",e[e.Pipe=22]="Pipe",e[e.Attribute=23]="Attribute",e[e.HostProperty=24]="HostProperty",e[e.Namespace=25]="Namespace"}(Qa||(Qa={})),function(e){e[e.LexicalRead=0]="LexicalRead",e[e.Context=1]="Context",e[e.ReadVariable=2]="ReadVariable",e[e.NextContext=3]="NextContext",e[e.Reference=4]="Reference",e[e.GetCurrentView=5]="GetCurrentView",e[e.RestoreView=6]="RestoreView",e[e.ResetView=7]="ResetView",e[e.PureFunctionExpr=8]="PureFunctionExpr",e[e.PureFunctionParameterExpr=9]="PureFunctionParameterExpr",e[e.PipeBinding=10]="PipeBinding",e[e.PipeBindingVariadic=11]="PipeBindingVariadic",e[e.SafePropertyRead=12]="SafePropertyRead",e[e.SafeKeyedRead=13]="SafeKeyedRead",e[e.SafeInvokeFunction=14]="SafeInvokeFunction",e[e.SafeTernaryExpr=15]="SafeTernaryExpr",e[e.EmptyExpr=16]="EmptyExpr",e[e.AssignTemporaryExpr=17]="AssignTemporaryExpr",e[e.ReadTemporaryExpr=18]="ReadTemporaryExpr",e[e.SanitizerExpr=19]="SanitizerExpr"}(Xa||(Xa={})),function(e){e[e.Context=0]="Context",e[e.Identifier=1]="Identifier",e[e.SavedView=2]="SavedView"}(Ja||(Ja={})),function(e){e[e.Normal=0]="Normal",e[e.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"}(Za||(Za={})),function(e){e[e.Html=0]="Html",e[e.Script=1]="Script",e[e.Style=2]="Style",e[e.Url=3]="Url",e[e.ResourceUrl=4]="ResourceUrl",e[e.IframeAttribute=5]="IframeAttribute"}(eo||(eo={}));const oo=Symbol("UsesSlotIndex"),lo=Symbol("ConsumesVars"),co=Symbol("UsesVarOffset");var uo,po,ho,mo,go,fo;class vo extends ae{constructor(e=null){super(null,e)}}class yo extends vo{static{uo=oo,po=lo,ho=co}constructor(e,t,s){super(),this.target=e,this.name=t,this.args=s,this.kind=Xa.PipeBinding,this[uo]=!0,this[po]=!0,this[ho]=!0,this.slot=null,this.varOffset=null}visitExpression(e,t){for(const s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){for(let s=0;s<this.args.length;s++)this.args[s]=wo(this.args[s],e,t)}clone(){const e=new yo(this.target,this.name,this.args.map((e=>e.clone())));return e.slot=this.slot,e.varOffset=this.varOffset,e}}class xo extends vo{constructor(e,t){super(),this.receiver=e,this.args=t,this.kind=Xa.SafeInvokeFunction}visitExpression(e,t){this.receiver.visitExpression(e,t);for(const s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=wo(this.receiver,e,t);for(let s=0;s<this.args.length;s++)this.args[s]=wo(this.args[s],e,t)}clone(){return new xo(this.receiver.clone(),this.args.map((e=>e.clone())))}}function wo(e,t,s){if(e instanceof vo)e.transformInternalExpressions(t,s);else if(e instanceof Be)e.lhs=wo(e.lhs,t,s),e.rhs=wo(e.rhs,t,s);else if(e instanceof De)e.receiver=wo(e.receiver,t,s);else if(e instanceof Oe)e.receiver=wo(e.receiver,t,s),e.index=wo(e.index,t,s);else if(e instanceof he)e.receiver=wo(e.receiver,t,s),e.value=wo(e.value,t,s);else if(e instanceof pe)e.receiver=wo(e.receiver,t,s),e.index=wo(e.index,t,s),e.value=wo(e.value,t,s);else if(e instanceof de){e.fn=wo(e.fn,t,s);for(let n=0;n<e.args.length;n++)e.args[n]=wo(e.args[n],t,s)}else if(e instanceof $e)for(let n=0;n<e.entries.length;n++)e.entries[n]=wo(e.entries[n],t,s);else if(e instanceof qe)for(let n=0;n<e.entries.length;n++)e.entries[n].value=wo(e.entries[n].value,t,s);else if(e instanceof Pe)e.condition=wo(e.condition,t,s),e.trueCase=wo(e.trueCase,t,s),null!==e.falseCase&&(e.falseCase=wo(e.falseCase,t,s));else if(!(e instanceof oe||e instanceof Te||e instanceof fe))throw new Error(`Unhandled expression kind: ${e.constructor.name}`);return t(e,s)}!function(e){e[e.None=0]="None",e[e.InChildOperation=1]="InChildOperation"}(mo||(mo={}));class So{static{this.nextListId=0}constructor(){this.debugListId=So.nextListId++,this.head={kind:Qa.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.tail={kind:Qa.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.head.next=this.tail,this.tail.prev=this.head}push(e){So.assertIsNotEnd(e),So.assertIsUnowned(e),e.debugListId=this.debugListId;const t=this.tail.prev;e.prev=t,t.next=e,e.next=this.tail,this.tail.prev=e}prepend(e){if(0===e.length)return;for(const t of e)So.assertIsNotEnd(t),So.assertIsUnowned(t),t.debugListId=this.debugListId;const t=this.head.next;let s=this.head;for(const t of e)s.next=t,t.prev=s,t;s.next=t,t.prev=s}*[Symbol.iterator](){let e=this.head.next;for(;e!==this.tail;){So.assertIsOwned(e,this.debugListId);const t=e.next;yield e,t}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){So.assertIsOwned(e,this.debugListId);const t=e.prev;yield e,t}}static replace(e,t){So.assertIsNotEnd(e),So.assertIsNotEnd(t),So.assertIsOwned(e),So.assertIsUnowned(t),t.debugListId=e.debugListId,null!==e.prev&&(e.prev.next=t,t.prev=e.prev),null!==e.next&&(e.next.prev=t,t.next=e.next),e.debugListId=null,e.prev=null,e.next=null}static replaceWithMany(e,t){if(0===t.length)return void So.remove(e);So.assertIsNotEnd(e),So.assertIsOwned(e);const s=e.debugListId;e.debugListId=null;for(const e of t)So.assertIsNotEnd(e),So.assertIsUnowned(e);const{prev:n,next:r}=e;e.prev=null,e.next=null;let i=n;for(const e of t)this.assertIsUnowned(e),e.debugListId=s,i.next=e,e.prev=i,e.next=null,e;const a=t[0],o=i;null!==n&&(n.next=a,a.prev=e.prev),null!==r&&(r.prev=o,o.next=r)}static remove(e){So.assertIsNotEnd(e),So.assertIsOwned(e),e.prev.next=e.next,e.next.prev=e.prev,e.debugListId=null,e.prev=null,e.next=null}static insertBefore(e,t){if(So.assertIsOwned(t),null===t.prev)throw new Error("AssertionError: illegal operation on list start");So.assertIsNotEnd(e),So.assertIsUnowned(e),e.debugListId=t.debugListId,e.prev=null,t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e}static insertAfter(e,t){if(So.assertIsOwned(t),null===t.next)throw new Error("AssertionError: illegal operation on list end");So.assertIsNotEnd(e),So.assertIsUnowned(e),e.debugListId=t.debugListId,t.next.prev=e,e.next=t.next,e.prev=t,t.next=e}static assertIsUnowned(e){if(null!==e.debugListId)throw new Error(`AssertionError: illegal operation on owned node: ${Qa[e.kind]}`)}static assertIsOwned(e,t){if(null===e.debugListId)throw new Error(`AssertionError: illegal operation on unowned node: ${Qa[e.kind]}`);if(void 0!==t&&e.debugListId!==t)throw new Error(`AssertionError: node belongs to the wrong list (expected ${t}, actual ${e.debugListId})`)}static assertIsNotEnd(e){if(e.kind===Qa.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}}function Eo(e){return e.replace(/[a-z][A-Z]/g,(e=>e.charAt(0)+"-"+e.charAt(1))).toLowerCase()}function _o(e){return t=>t.kind===e}new Set([Qa.Element,Qa.ElementStart,Qa.Container,Qa.ContainerStart,Qa.Template]),function(e){e[e.HTML=0]="HTML",e[e.SVG=1]="SVG",e[e.Math=2]="Math"}(go||(go={})),new Set([_t.elementStart,_t.elementEnd,_t.element,_t.property,_t.hostProperty,_t.styleProp,_t.attribute,_t.stylePropInterpolate1,_t.stylePropInterpolate2,_t.stylePropInterpolate3,_t.stylePropInterpolate4,_t.stylePropInterpolate5,_t.stylePropInterpolate6,_t.stylePropInterpolate7,_t.stylePropInterpolate8,_t.stylePropInterpolateV,_t.classProp,_t.listener,_t.elementContainerStart,_t.elementContainerEnd,_t.elementContainer,_t.listener]),new Map([[Qa.ElementEnd,[Qa.ElementStart,Qa.Element]],[Qa.ContainerEnd,[Qa.ContainerStart,Qa.Container]]]),[de,$e,qe,xo,yo].map((e=>e.constructor.name)),new Map([["&&",se.And],[">",se.Bigger],[">=",se.BiggerEquals],["&",se.BitwiseAnd],["/",se.Divide],["==",se.Equals],["===",se.Identical],["<",se.Lower],["<=",se.LowerEquals],["-",se.Minus],["%",se.Modulo],["*",se.Multiply],["!=",se.NotEquals],["!==",se.NotIdentical],["??",se.NullishCoalesce],["||",se.Or],["+",se.Plus]]),new Map([["svg",go.SVG],["math",go.Math]]),_o(Qa.StyleMap),_o(Qa.ClassMap),_o(Qa.StyleProp),_o(Qa.ClassProp),_o(Qa.Attribute),new Set([Qa.StyleMap,Qa.ClassMap,Qa.StyleProp,Qa.ClassProp,Qa.Property,Qa.HostProperty,Qa.Attribute]),_t.pipeBind1,_t.pipeBind2,_t.pipeBind3,_t.pipeBind4,_t.textInterpolate,_t.textInterpolate1,_t.textInterpolate2,_t.textInterpolate3,_t.textInterpolate4,_t.textInterpolate5,_t.textInterpolate6,_t.textInterpolate7,_t.textInterpolate8,_t.textInterpolateV,_t.propertyInterpolate,_t.propertyInterpolate1,_t.propertyInterpolate2,_t.propertyInterpolate3,_t.propertyInterpolate4,_t.propertyInterpolate5,_t.propertyInterpolate6,_t.propertyInterpolate7,_t.propertyInterpolate8,_t.propertyInterpolateV,_t.styleProp,_t.stylePropInterpolate1,_t.stylePropInterpolate2,_t.stylePropInterpolate3,_t.stylePropInterpolate4,_t.stylePropInterpolate5,_t.stylePropInterpolate6,_t.stylePropInterpolate7,_t.stylePropInterpolate8,_t.stylePropInterpolateV,_t.attribute,_t.attributeInterpolate1,_t.attributeInterpolate2,_t.attributeInterpolate3,_t.attributeInterpolate4,_t.attributeInterpolate5,_t.attributeInterpolate6,_t.attributeInterpolate7,_t.attributeInterpolate8,_t.attributeInterpolateV,_t.styleMap,_t.styleMapInterpolate1,_t.styleMapInterpolate2,_t.styleMapInterpolate3,_t.styleMapInterpolate4,_t.styleMapInterpolate5,_t.styleMapInterpolate6,_t.styleMapInterpolate7,_t.styleMapInterpolate8,_t.styleMapInterpolateV,_t.classMap,_t.classMapInterpolate1,_t.classMapInterpolate2,_t.classMapInterpolate3,_t.classMapInterpolate4,_t.classMapInterpolate5,_t.classMapInterpolate6,_t.classMapInterpolate7,_t.classMapInterpolate8,_t.classMapInterpolateV,_t.pureFunction0,_t.pureFunction1,_t.pureFunction2,_t.pureFunction3,_t.pureFunction4,_t.pureFunction5,_t.pureFunction6,_t.pureFunction7,_t.pureFunction8,_t.pureFunctionV,new Map([[eo.Html,_t.sanitizeHtml],[eo.IframeAttribute,_t.validateIframeAttribute],[eo.ResourceUrl,_t.sanitizeResourceUrl],[eo.Script,_t.sanitizeScript],[eo.Style,_t.sanitizeStyle],[eo.Url,_t.sanitizeUrl]]),new Map([[h.HTML,eo.Html],[h.SCRIPT,eo.Script],[h.STYLE,eo.Style],[h.URL,eo.Url],[h.RESOURCE_URL,eo.ResourceUrl]]),function(e){e[e.None=0]="None",e[e.ViewContextRead=1]="ViewContextRead",e[e.ViewContextWrite=3]="ViewContextWrite",e[e.SideEffectful=4]="SideEffectful"}(fo||(fo={})),Za.TemplateDefinitionBuilder,new Map([[0,Ya.Property],[1,Ya.Attribute],[2,Ya.ClassName],[3,Ya.StyleProperty],[4,Ya.Animation]]);const bo=2;class Co{constructor(e){this._directiveExpr=e,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}registerBoundInput(e){let t=null,s=e.name;switch(e.type){case 0:t=this.registerInputBasedOnName(s,e.value,e.sourceSpan);break;case 3:t=this.registerStyleInput(s,!1,e.value,e.sourceSpan,e.unit);break;case 2:t=this.registerClassInput(s,!1,e.value,e.sourceSpan)}return!!t}registerInputBasedOnName(e,t,s){let n=null;const r=e.substring(0,6),i="style"===e||"style."===r||"style!"===r;if(i||!i&&("class"===e||"class."===r||"class!"===r)){const r="."!==e.charAt(5),a=e.slice(r?5:6);n=i?this.registerStyleInput(a,r,t,s):this.registerClassInput(a,r,t,s)}return n}registerStyleInput(e,t,s,n,r){if(Po(s))return null;(function(e){return e.startsWith("--")})(e)||(e=Eo(e));const{property:i,hasOverrideFlag:a,suffix:o}=To(e),l={name:i,suffix:r="string"==typeof r&&0!==r.length?r:o,value:s,sourceSpan:n,hasOverrideFlag:a};return t?this._styleMapInput=l:((this._singleStyleInputs=this._singleStyleInputs||[]).push(l),Io(this._stylesIndex,i)),this._lastStylingInput=l,this._firstStylingInput=this._firstStylingInput||l,this._checkForPipes(s),this.hasBindings=!0,l}registerClassInput(e,t,s,n){if(Po(s))return null;const{property:r,hasOverrideFlag:i}=To(e),a={name:r,value:s,sourceSpan:n,hasOverrideFlag:i,suffix:null};return t?this._classMapInput=a:((this._singleClassInputs=this._singleClassInputs||[]).push(a),Io(this._classesIndex,r)),this._lastStylingInput=a,this._firstStylingInput=this._firstStylingInput||a,this._checkForPipes(s),this.hasBindings=!0,a}_checkForPipes(e){e instanceof Ni&&e.ast instanceof yi&&(this.hasBindingsWithPipes=!0)}registerStyleAttr(e){this._initialStyleValues=function(e){const t=[];let s=0,n=0,r=0,i=0,a=0,o=null;for(;s<e.length;)switch(e.charCodeAt(s++)){case 40:n++;break;case 41:n--;break;case 39:0===r?r=39:39===r&&92!==e.charCodeAt(s-1)&&(r=0);break;case 34:0===r?r=34:34===r&&92!==e.charCodeAt(s-1)&&(r=0);break;case 58:o||0!==n||0!==r||(o=Eo(e.substring(a,s-1).trim()),i=s);break;case 59:if(o&&i>0&&0===n&&0===r){const n=e.substring(i,s-1).trim();t.push(o,n),a=s,i=0,o=null}}if(o&&i){const s=e.slice(i).trim();t.push(o,s)}return t}(e),this._hasInitialValues=!0}registerClassAttr(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}populateInitialStylingAttrs(e){if(this._initialClassValues.length){e.push(pt(1));for(let t=0;t<this._initialClassValues.length;t++)e.push(pt(this._initialClassValues[t]))}if(this._initialStyleValues.length){e.push(pt(2));for(let t=0;t<this._initialStyleValues.length;t+=2)e.push(pt(this._initialStyleValues[t]),pt(this._initialStyleValues[t+1]))}}assignHostAttrs(e,t){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),t.set("hostAttrs",it(e)))}buildClassMapInstruction(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null}buildStyleMapInstruction(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null}_buildMapBasedInstruction(e,t,s){let n=bo;const r=s.value.visit(e);let i;return r instanceof Ei?(n+=r.expressions.length,i=t?function(e){switch(Fn(e)){case 1:return _t.classMap;case 3:return _t.classMapInterpolate1;case 5:return _t.classMapInterpolate2;case 7:return _t.classMapInterpolate3;case 9:return _t.classMapInterpolate4;case 11:return _t.classMapInterpolate5;case 13:return _t.classMapInterpolate6;case 15:return _t.classMapInterpolate7;case 17:return _t.classMapInterpolate8;default:return _t.classMapInterpolateV}}(r):function(e){switch(Fn(e)){case 1:return _t.styleMap;case 3:return _t.styleMapInterpolate1;case 5:return _t.styleMapInterpolate2;case 7:return _t.styleMapInterpolate3;case 9:return _t.styleMapInterpolate4;case 11:return _t.styleMapInterpolate5;case 13:return _t.styleMapInterpolate6;case 15:return _t.styleMapInterpolate7;case 17:return _t.styleMapInterpolate8;default:return _t.styleMapInterpolateV}}(r)):i=t?_t.classMap:_t.styleMap,{reference:i,calls:[{supportsInterpolation:!0,sourceSpan:s.sourceSpan,allocateBindingSlots:n,params:e=>{const t=e(r);return Array.isArray(t)?t:[t]}}]}}_buildSingleInputs(e,t,s,n,r){const i=[];return t.forEach((t=>{const a=i[i.length-1],o=t.value.visit(s);let l=e,c=bo;o instanceof Ei&&(c+=o.expressions.length,n&&(l=n(o)));const u={sourceSpan:t.sourceSpan,allocateBindingSlots:c,supportsInterpolation:!!n,params:e=>{const s=[];s.push(pt(t.name));const n=e(o);return Array.isArray(n)?s.push(...n):s.push(n),r||null===t.suffix||s.push(pt(t.suffix)),s}};a&&a.reference===l?a.calls.push(u):i.push({reference:l,calls:[u]})})),i}_buildClassInputs(e){return this._singleClassInputs?this._buildSingleInputs(_t.classProp,this._singleClassInputs,e,null,!0):[]}_buildStyleInputs(e){return this._singleStyleInputs?this._buildSingleInputs(_t.styleProp,this._singleStyleInputs,e,ko,!1):[]}buildUpdateLevelInstructions(e){const t=[];if(this.hasBindings){const s=this.buildStyleMapInstruction(e);s&&t.push(s);const n=this.buildClassMapInstruction(e);n&&t.push(n),t.push(...this._buildStyleInputs(e)),t.push(...this._buildClassInputs(e))}return t}}function Io(e,t){e.has(t)||e.set(t,e.size)}function To(e){let t=!1;const s=e.indexOf("!important");-1!==s&&(e=s>0?e.substring(0,s):"",t=!0);let n=null,r=e;const i=e.lastIndexOf(".");return i>0&&(n=e.slice(i+1),r=e.substring(0,i)),{property:r,suffix:n,hasOverrideFlag:t}}function ko(e){switch(Fn(e)){case 1:return _t.styleProp;case 3:return _t.stylePropInterpolate1;case 5:return _t.stylePropInterpolate2;case 7:return _t.stylePropInterpolate3;case 9:return _t.stylePropInterpolate4;case 11:return _t.stylePropInterpolate5;case 13:return _t.stylePropInterpolate6;case 15:return _t.stylePropInterpolate7;case 17:return _t.stylePropInterpolate8;default:return _t.stylePropInterpolateV}}function Po(e){return e instanceof Ni&&(e=e.ast),e instanceof oi}var No;e("TokenType",No),function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"}(No||e("TokenType",No={}));const Ao=["var","let","as","null","undefined","true","false","if","else","this"];class Lo{tokenize(e){const t=new Oo(e),s=[];let n=t.scanToken();for(;null!=n;)s.push(n),n=t.scanToken();return s}}e("Lexer",Lo);class Mo{constructor(e,t,s,n,r){this.index=e,this.end=t,this.type=s,this.numValue=n,this.strValue=r}isCharacter(e){return this.type==No.Character&&this.numValue==e}isNumber(){return this.type==No.Number}isString(){return this.type==No.String}isOperator(e){return this.type==No.Operator&&this.strValue==e}isIdentifier(){return this.type==No.Identifier}isPrivateIdentifier(){return this.type==No.PrivateIdentifier}isKeyword(){return this.type==No.Keyword}isKeywordLet(){return this.type==No.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==No.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==No.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==No.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==No.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==No.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==No.Keyword&&"this"==this.strValue}isError(){return this.type==No.Error}toNumber(){return this.type==No.Number?this.numValue:-1}toString(){switch(this.type){case No.Character:case No.Identifier:case No.Keyword:case No.Operator:case No.PrivateIdentifier:case No.String:case No.Error:return this.strValue;case No.Number:return this.numValue.toString();default:return null}}}function Ro(e,t,s){return new Mo(e,t,No.Character,s,String.fromCharCode(s))}function Bo(e,t,s){return new Mo(e,t,No.Operator,0,s)}e("Token",Mo);const Do=e("EOF",new Mo(-1,-1,No.Character,0,""));class Oo{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?Gn:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let s=this.peek,n=this.index;for(;s<=Xn;){if(++n>=t){s=Gn;break}s=e.charCodeAt(n)}if(this.peek=s,this.index=n,n>=t)return null;if($o(s))return this.scanIdentifier();if(br(s))return this.scanNumber(n);const r=n;switch(s){case sr:return this.advance(),br(this.peek)?this.scanNumber(r):Ro(r,this.index,sr);case Zn:case er:case wr:case Sr:case mr:case gr:case tr:case rr:case ir:return this.scanCharacter(r,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case nr:case 37:case 94:return this.scanOperator(r,String.fromCharCode(s));case 63:return this.scanQuestion(r);case ar:case lr:return this.scanComplexOperator(r,String.fromCharCode(s),or,"=");case 33:case or:return this.scanComplexOperator(r,String.fromCharCode(s),or,"=",or,"=");case 38:return this.scanComplexOperator(r,"&",38,"&");case 124:return this.scanComplexOperator(r,"|",124,"|");case Er:for(;_r(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),Ro(e,this.index,t)}scanOperator(e,t){return this.advance(),Bo(e,this.index,t)}scanComplexOperator(e,t,s,n,r,i){this.advance();let a=t;return this.peek==s&&(this.advance(),a+=n),null!=r&&this.peek==r&&(this.advance(),a+=i),Bo(e,this.index,a)}scanIdentifier(){const e=this.index;for(this.advance();Fo(this.peek);)this.advance();const t=this.input.substring(e,this.index);return Ao.indexOf(t)>-1?(s=e,n=this.index,r=t,new Mo(s,n,No.Keyword,0,r)):function(e,t,s){return new Mo(e,t,No.Identifier,0,s)}(e,this.index,t);var s,n,r}scanPrivateIdentifier(){const e=this.index;if(this.advance(),!$o(this.peek))return this.error("Invalid character [#]",-1);for(;Fo(this.peek);)this.advance();const t=this.input.substring(e,this.index);return s=e,n=this.index,r=t,new Mo(s,n,No.PrivateIdentifier,0,r);var s,n,r}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(br(this.peek));else if(this.peek===fr){if(!br(this.input.charCodeAt(this.index-1))||!br(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===sr)t=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),qo(this.peek)&&this.advance(),!br(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}var n;let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));const i=t?function(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(r):parseFloat(r);return a=e,o=this.index,l=i,new Mo(a,o,No.Number,l,"");var a,o,l}scanString(){const e=this.index,t=this.peek;this.advance();let s="",n=this.index;const r=this.input;for(;this.peek!=t;)if(92==this.peek){let e;if(s+=r.substring(n,this.index),this.advance(),117==this.peek){const t=r.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(t))return this.error(`Invalid unicode escape [\\u${t}]`,0);e=parseInt(t,16);for(let e=0;e<5;e++)this.advance()}else e=Vo(this.peek),this.advance();s+=String.fromCharCode(e),n=this.index}else{if(this.peek==Gn)return this.error("Unterminated quote",0);this.advance()}const i=r.substring(n,this.index);return this.advance(),a=e,o=this.index,l=s+i,new Mo(a,o,No.String,0,l);var a,o,l}scanQuestion(e){this.advance();let t="?";return 63!==this.peek&&this.peek!==sr||(t+=this.peek===sr?".":"?",this.advance()),Bo(e,this.index,t)}error(e,t){const s=this.index+t;return function(e,t,s){return new Mo(e,t,No.Error,0,s)}(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}}function $o(e){return vr<=e&&e<=xr||pr<=e&&e<=dr||e==fr||e==Jn}function Fo(e){return Cr(e)||br(e)||e==fr||e==Jn}function qo(e){return 45==e||43==e}function Vo(e){switch(e){case 110:return Qn;case yr:return 12;case 114:return 13;case 116:return Yn;case 118:return 11;default:return e}}class Uo{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}}e("SplitInterpolation",Uo);class Ho{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}}e("TemplateBindingParseResult",Ho);class jo{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,n,r=Kn){this._checkNoInterpolation(e,s,r);const i=this._stripComments(e),a=this._lexer.tokenize(i);let o=1;t&&(o|=2);const l=new zo(e,s,n,a,o,this.errors,0).parseChain();return new Ni(l,e,s,n,this.errors)}parseBinding(e,t,s,n=Kn){const r=this._parseBindingAst(e,t,s,n);return new Ni(r,e,t,s,this.errors)}checkSimpleExpression(e){const t=new Ko;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,n=Kn){const r=this._parseBindingAst(e,t,s,n),i=this.checkSimpleExpression(r);return i.length>0&&this._reportError(`Host binding expression cannot contain ${i.join(" ")}`,e,t),new Ni(r,e,t,s,this.errors)}_reportError(e,t,s,n){this.errors.push(new ni(e,t,s,n))}_parseBindingAst(e,t,s,n){this._checkNoInterpolation(e,t,n);const r=this._stripComments(e),i=this._lexer.tokenize(r);return new zo(e,t,s,i,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,n,r){const i=this._lexer.tokenize(t);return new zo(t,s,r,i,0,this.errors,0).parseTemplateBindings({source:e,span:new Pi(n,n+e.length)})}parseInterpolation(e,t,s,n,r=Kn){const{strings:i,expressions:a,offsets:o}=this.splitInterpolation(e,t,n,r);if(0===a.length)return null;const l=[];for(let n=0;n<a.length;++n){const r=a[n].text,i=this._stripComments(r),c=this._lexer.tokenize(i),u=new zo(e,t,s,c,0,this.errors,o[n]).parseChain();l.push(u)}return this.createInterpolationAst(i.map((e=>e.text)),l,e,t,s)}parseInterpolationExpression(e,t,s){const n=this._stripComments(e),r=this._lexer.tokenize(n),i=new zo(e,t,s,r,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[i],e,t,s)}createInterpolationAst(e,t,s,n,r){const i=new ri(0,s.length),a=new Ei(i,i.toAbsolute(r),e,t);return new Ni(a,s,n,r,this.errors)}splitInterpolation(e,t,s,n=Kn){const r=[],i=[],a=[],o=s?function(e){let t=new Map,s=0,n=0,r=0;for(;r<e.length;){const i=e[r];if(9===i.type){const[e,t]=i.parts;s+=t.length,n+=e.length}else{const e=i.parts.reduce(((e,t)=>e+t.length),0);n+=e,s+=e}t.set(n,s),r++}return t}(s):null;let l=0,c=!1,u=!1,{start:p,end:h}=n;for(;l<e.length;)if(c){const s=l,n=s+p.length,r=this._getInterpolationEndIndex(e,h,n);if(-1===r){c=!1,u=!0;break}const d=r+h.length,m=e.substring(n,r);0===m.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${l} in`,t),i.push({text:m,start:s,end:d});const g=(o?.get(s)??s)+p.length;a.push(g),l=d,c=!1}else{const t=l;l=e.indexOf(p,l),-1===l&&(l=e.length);const s=e.substring(t,l);r.push({text:s,start:t,end:l}),c=!0}if(!c)if(u){const t=r[r.length-1];t.text+=e.substring(l),t.end=e.length}else r.push({text:e.substring(l),start:l,end:e.length});return new Uo(r,i,a)}wrapLiteralPrimitive(e,t,s){const n=new ri(0,null==e?0:e.length);return new Ni(new xi(n,n.toAbsolute(s),e),e,t,s,this.errors)}_stripComments(e){const t=this._commentStart(e);return null!=t?e.substring(0,t):e}_commentStart(e){let t=null;for(let s=0;s<e.length-1;s++){const n=e.charCodeAt(s),r=e.charCodeAt(s+1);if(n===nr&&r==nr&&null==t)return s;t===n?t=null:null==t&&kr(n)&&(t=n)}return null}_checkNoInterpolation(e,t,{start:s,end:n}){let r=-1,i=-1;for(const t of this._forEachUnquotedChar(e,0))if(-1===r)e.startsWith(s)&&(r=t);else if(i=this._getInterpolationEndIndex(e,n,t),i>-1)break;r>-1&&i>-1&&this._reportError(`Got interpolation (${s}${n}) where expression was expected`,e,`at column ${r} in`,t)}_getInterpolationEndIndex(e,t,s){for(const n of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,n))return n;if(e.startsWith("//",n))return e.indexOf(t,n)}return-1}*_forEachUnquotedChar(e,t){let s=null,n=0;for(let r=t;r<e.length;r++){const t=e[r];!kr(e.charCodeAt(r))||null!==s&&s!==t||n%2!=0?null===s&&(yield r):s=null===s?t:null,n="\\"===t?n+1:0}}}var Wo;e("Parser",jo),function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"}(Wo||(Wo={}));class zo{constructor(e,t,s,n,r,i,a){this.input=e,this.location=t,this.absoluteOffset=s,this.tokens=n,this.parseFlags=r,this.errors=i,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Wo.None,this.sourceSpanCache=new Map,this.index=0}peek(e){const t=this.index+e;return t<this.tokens.length?this.tokens[t]:Do}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}return 0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(void 0!==t&&t>this.currentEndIndex&&(s=t),e>s){const t=s;s=e,e=t}return new ri(e,s)}sourceSpan(e,t){const s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;const s=t();return this.context^=e,s}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Do?"end of input":`token ${e}`}expectIdentifierOrKeyword(){const e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){const e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),"")}parseChain(){const e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){const t=this.parsePipe();if(e.push(t),this.consumeOptionalCharacter(ir))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(ir););else if(this.index<this.tokens.length){const e=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===e)break}}if(0===e.length){const e=this.offset,t=this.offset+this.input.length;return new oi(this.span(e,t),this.sourceSpan(e,t))}return 1==e.length?e[0]:new ui(this.span(t),this.sourceSpan(t),e)}parsePipe(){const e=this.inputIndex;let t=this.parseExpression();if(this.consumeOptionalOperator("|")){1&this.parseFlags&&this.error("Cannot have a pipe in an action expression");do{const s=this.inputIndex;let n,r,i=this.expectIdentifierOrKeyword();null!==i?n=this.sourceSpan(s):(i="",r=-1!==this.next.index?this.next.index:this.input.length+this.offset,n=new ri(r,r).toAbsolute(this.absoluteOffset));const a=[];for(;this.consumeOptionalCharacter(rr);)a.push(this.parseExpression());t=new yi(this.span(e),this.sourceSpan(e,r),t,i,a,n)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){const e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){const s=this.parsePipe();let n;if(this.consumeOptionalCharacter(rr))n=this.parsePipe();else{const t=this.inputIndex,s=this.input.substring(e,t);this.error(`Conditional expression ${s} requires all 3 expressions`),n=new oi(this.span(e),this.sourceSpan(e))}return new pi(this.span(e),this.sourceSpan(e),t,s,n)}return t}parseLogicalOr(){const e=this.inputIndex;let t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){const s=this.parseLogicalAnd();t=new _i(this.span(e),this.sourceSpan(e),"||",t,s)}return t}parseLogicalAnd(){const e=this.inputIndex;let t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){const s=this.parseNullishCoalescing();t=new _i(this.span(e),this.sourceSpan(e),"&&",t,s)}return t}parseNullishCoalescing(){const e=this.inputIndex;let t=this.parseEquality();for(;this.consumeOptionalOperator("??");){const s=this.parseEquality();t=new _i(this.span(e),this.sourceSpan(e),"??",t,s)}return t}parseEquality(){const e=this.inputIndex;let t=this.parseRelational();for(;this.next.type==No.Operator;){const s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();const n=this.parseRelational();t=new _i(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseRelational(){const e=this.inputIndex;let t=this.parseAdditive();for(;this.next.type==No.Operator;){const s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":this.advance();const n=this.parseAdditive();t=new _i(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseAdditive(){const e=this.inputIndex;let t=this.parseMultiplicative();for(;this.next.type==No.Operator;){const s=this.next.strValue;switch(s){case"+":case"-":this.advance();let n=this.parseMultiplicative();t=new _i(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parseMultiplicative(){const e=this.inputIndex;let t=this.parsePrefix();for(;this.next.type==No.Operator;){const s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();t=new _i(this.span(e),this.sourceSpan(e),s,t,n);continue}break}return t}parsePrefix(){if(this.next.type==No.Operator){const e=this.inputIndex;let t;switch(this.next.strValue){case"+":return this.advance(),t=this.parsePrefix(),bi.createPlus(this.span(e),this.sourceSpan(e),t);case"-":return this.advance(),t=this.parsePrefix(),bi.createMinus(this.span(e),this.sourceSpan(e),t);case"!":return this.advance(),t=this.parsePrefix(),new Ci(this.span(e),this.sourceSpan(e),t)}}return this.parseCallChain()}parseCallChain(){const e=this.inputIndex;let t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(sr))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.consumeOptionalCharacter(Zn)?this.parseCall(t,e,!0):this.consumeOptionalCharacter(mr)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(mr))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(Zn))t=this.parseCall(t,e,!1);else{if(!this.consumeOptionalOperator("!"))return t;t=new Ii(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){const e=this.inputIndex;if(this.consumeOptionalCharacter(Zn)){this.rparensExpected++;const e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(er),e}if(this.next.isKeywordNull())return this.advance(),new xi(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new xi(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new xi(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new xi(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ci(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(mr)){this.rbracketsExpected++;const t=this.parseExpressionList(gr);return this.rbracketsExpected--,this.expectCharacter(gr),new wi(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(wr))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new li(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){const t=this.next.toNumber();return this.advance(),new xi(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){const t=this.next.toString();return this.advance(),new xi(this.span(e),this.sourceSpan(e),t)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new oi(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new oi(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new oi(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(tr));return t}parseLiteralMap(){const e=[],t=[],s=this.inputIndex;if(this.expectCharacter(wr),!this.consumeOptionalCharacter(Sr)){this.rbracesExpected++;do{const s=this.inputIndex,n=this.next.isString(),r=this.expectIdentifierOrKeywordOrString();if(e.push({key:r,quoted:n}),n)this.expectCharacter(rr),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(rr))t.push(this.parsePipe());else{const e=this.span(s),n=this.sourceSpan(s);t.push(new hi(e,n,n,new li(e,n),r))}}while(this.consumeOptionalCharacter(tr)&&!this.next.isCharacter(Sr));this.rbracesExpected--,this.expectCharacter(Sr)}return new Si(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){const n=this.inputIndex,r=this.withContext(Wo.Writable,(()=>{const t=this.expectIdentifierOrKeyword()??"";return 0===t.length&&this.error("Expected identifier for property access",e.span.end),t})),i=this.sourceSpan(n);let a;if(s)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),a=new oi(this.span(t),this.sourceSpan(t))):a=new mi(this.span(t),this.sourceSpan(t),i,e,r);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new oi(this.span(t),this.sourceSpan(t));const s=this.parseConditional();a=new di(this.span(t),this.sourceSpan(t),i,e,r,s)}else a=new hi(this.span(t),this.sourceSpan(t),i,e,r);return a}parseCall(e,t,s){const n=this.inputIndex;this.rparensExpected++;const r=this.parseCallArguments(),i=this.span(n,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(er),this.rparensExpected--;const a=this.span(t),o=this.sourceSpan(t);return s?new ki(a,o,e,r,i):new Ti(a,o,e,r,i)}consumeOptionalAssignment(){return 2&this.parseFlags&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}parseCallArguments(){if(this.next.isCharacter(er))return[];const e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(tr));return e}expectTemplateBindingKey(){let e="",t=!1;const s=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-")}while(t);return{source:e,span:new Pi(s,s+e.length)}}parseTemplateBindings(e){const t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){const s=this.parseLetBinding();if(s)t.push(s);else{const s=this.expectTemplateBindingKey(),n=this.parseAsBinding(s);n?t.push(n):(s.source=e.source+s.source.charAt(0).toUpperCase()+s.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(s)))}this.consumeStatementTerminator()}return new Ho(t,[],this.errors)}parseKeyedReadOrWrite(e,t,s){return this.withContext(Wo.Writable,(()=>{this.rbracketsExpected++;const n=this.parsePipe();if(n instanceof oi&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(gr),!this.consumeOptionalOperator("="))return s?new fi(this.span(t),this.sourceSpan(t),e,n):new gi(this.span(t),this.sourceSpan(t),e,n);if(!s){const s=this.parseConditional();return new vi(this.span(t),this.sourceSpan(t),e,n,s)}return this.error("The '?.' operator cannot be used in the assignment"),new oi(this.span(t),this.sourceSpan(t))}))}parseDirectiveKeywordBindings(e){const t=[];this.consumeOptionalCharacter(rr);const s=this.getDirectiveBoundTarget();let n=this.currentAbsoluteOffset;const r=this.parseAsBinding(e);r||(this.consumeStatementTerminator(),n=this.currentAbsoluteOffset);const i=new Pi(e.span.start,n);return t.push(new Li(i,e,s)),r&&t.push(r),t}getDirectiveBoundTarget(){if(this.next===Do||this.peekKeywordAs()||this.peekKeywordLet())return null;const e=this.parsePipe(),{start:t,end:s}=e.span,n=this.input.substring(t,s);return new Ni(e,n,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();const t=this.expectTemplateBindingKey();this.consumeStatementTerminator();const s=new Pi(e.span.start,this.currentAbsoluteOffset);return new Ai(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;const e=this.currentAbsoluteOffset;this.advance();const t=this.expectTemplateBindingKey();let s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();const n=new Pi(e,this.currentAbsoluteOffset);return new Ai(n,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(ir)||this.consumeOptionalCharacter(tr)}error(e,t=null){this.errors.push(new ni(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return null==e&&(e=this.index),e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let s=`Private identifiers are not supported. Unexpected private identifier: ${e}`;null!==t&&(s+=`, ${t}`),this.error(s)}skip(){let e=this.next;for(;!(!(this.index<this.tokens.length)||e.isCharacter(ir)||e.isOperator("|")||!(this.rparensExpected<=0)&&e.isCharacter(er)||!(this.rbracesExpected<=0)&&e.isCharacter(Sr)||!(this.rbracketsExpected<=0)&&e.isCharacter(gr)||this.context&Wo.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new ni(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}e("_ParseAST",zo);class Ko extends Mi{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}}class Go{constructor(e,t){this.sourceSpan=e,this.i18n=t}}e("NodeWithI18n",Go);class Yo extends Go{constructor(e,t,s,n){super(t,n),this.value=e,this.tokens=s}visit(e,t){return e.visitText(this,t)}}e("Text",Yo);class Qo extends Go{constructor(e,t,s,n,r,i){super(n,i),this.switchValue=e,this.type=t,this.cases=s,this.switchValueSourceSpan=r}visit(e,t){return e.visitExpansion(this,t)}}e("Expansion",Qo);class Xo{constructor(e,t,s,n,r){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=n,this.expSourceSpan=r}visit(e,t){return e.visitExpansionCase(this,t)}}e("ExpansionCase",Xo);class Jo extends Go{constructor(e,t,s,n,r,i,a){super(s,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=r,this.valueTokens=i}visit(e,t){return e.visitAttribute(this,t)}}e("Attribute",Jo);class Zo extends Go{constructor(e,t,s,n,r,i=null,a){super(n,a),this.name=e,this.attrs=t,this.children=s,this.startSourceSpan=r,this.endSourceSpan=i}visit(e,t){return e.visitElement(this,t)}}e("Element",Zo);class el{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}}e("Comment",el);class tl{constructor(e,t,s,n=null){this.blocks=e,this.sourceSpan=t,this.startSourceSpan=s,this.endSourceSpan=n}visit(e,t){return e.visitBlockGroup(this,t)}}e("BlockGroup",tl);class sl{constructor(e,t,s,n,r,i=null){this.name=e,this.parameters=t,this.children=s,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=i}visit(e,t){return e.visitBlock(this,t)}}e("Block",sl);class nl{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}}function rl(e,t,s=null){const n=[],r=e.visit?t=>e.visit(t,s)||t.visit(e,s):t=>t.visit(e,s);return t.forEach((e=>{const t=r(e);t&&n.push(t)})),n}e("BlockParameter",nl);e("RecursiveVisitor",class{constructor(){}visitElement(e,t){this.visitChildren(t,(t=>{t(e.attrs),t(e.children)}))}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){return this.visitChildren(t,(t=>{t(e.cases)}))}visitExpansionCase(e,t){}visitBlockGroup(e,t){this.visitChildren(t,(t=>{t(e.blocks)}))}visitBlock(e,t){this.visitChildren(t,(t=>{t(e.parameters),t(e.children)}))}visitBlockParameter(e,t){}visitChildren(e,t){let s=[],n=this;return t((function(t){t&&s.push(rl(n,t,e))})),Array.prototype.concat.apply([],s)}});class il{}e("ElementSchemaRegistry",il);const al=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%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,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,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","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","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","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:|"],ol=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ll=Array.from(ol).reduce(((e,[t,s])=>(e.set(t,s),e)),new Map);class cl extends il{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,al.forEach((e=>{const t=new Map,s=new Set,[n,r]=e.split("|"),i=r.split(","),[a,o]=n.split("^");a.split(",").forEach((e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),s)}));const l=o&&this._schema.get(o.toLowerCase());if(l){for(const[e,s]of l)t.set(e,s);for(const e of this._eventSchema.get(o.toLowerCase()))s.add(e)}i.forEach((e=>{if(e.length>0)switch(e[0]){case"*":s.add(e.substring(1));break;case"!":t.set(e.substring(1),"boolean");break;case"#":t.set(e.substring(1),"number");break;case"%":t.set(e.substring(1),"object");break;default:t.set(e,"string")}}))}))}hasProperty(e,t,s){if(s.some((e=>e.name===u.name)))return!0;if(e.indexOf("-")>-1){if(so(e)||no(e))return!1;if(s.some((e=>e.name===c.name)))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){if(t.some((e=>e.name===u.name)))return!0;if(e.indexOf("-")>-1){if(so(e)||no(e))return!0;if(t.some((e=>e.name===c.name)))return!0}return this._schema.has(e.toLowerCase())}securityContext(e,t,s){s&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=na()[e+"|"+t];return n||(n=na()["*|"+t],n||h.NONE)}getMappedPropName(e){return ol.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){if(e.toLowerCase().startsWith("on")){return{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`}}return{error:!1}}validateAttribute(e){if(e.toLowerCase().startsWith("on")){return{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}}return{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){const t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map((e=>ll.get(e)??e))}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return e.replace(bt,((...e)=>e[1].toUpperCase()))}normalizeAnimationStyleValue(e,t,s){let n="";const r=s.toString().trim();let i=null;if(function(e){switch(e){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}}(e)&&0!==s&&"0"!==s)if("number"==typeof s)n="px";else{const e=s.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&(i=`Please provide a CSS unit value for ${t}:${s}`)}return{error:i,value:r+n}}}e("DomElementSchemaRegistry",cl);class ul{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:s=Ga.PARSABLE_DATA,closedByParent:n=!1,isVoid:r=!1,ignoreFirstLf:i=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach((e=>this.closedByChildren[e]=!0)),this.isVoid=r,this.closedByParent=n||r,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=i,this.preventNamespaceInheritance=a,this.canSelfClose=o??r}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){if("object"==typeof this.contentType){return(void 0===e?void 0:this.contentType[e])??this.contentType.default}return this.contentType}}let pl,hl;function dl(e){return hl||(pl=new ul({canSelfClose:!0}),hl={base:new ul({isVoid:!0}),meta:new ul({isVoid:!0}),area:new ul({isVoid:!0}),embed:new ul({isVoid:!0}),link:new ul({isVoid:!0}),img:new ul({isVoid:!0}),input:new ul({isVoid:!0}),param:new ul({isVoid:!0}),hr:new ul({isVoid:!0}),br:new ul({isVoid:!0}),source:new ul({isVoid:!0}),track:new ul({isVoid:!0}),wbr:new ul({isVoid:!0}),p:new ul({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 ul({closedByChildren:["tbody","tfoot"]}),tbody:new ul({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ul({closedByChildren:["tbody"],closedByParent:!0}),tr:new ul({closedByChildren:["tr"],closedByParent:!0}),td:new ul({closedByChildren:["td","th"],closedByParent:!0}),th:new ul({closedByChildren:["td","th"],closedByParent:!0}),col:new ul({isVoid:!0}),svg:new ul({implicitNamespacePrefix:"svg"}),foreignObject:new ul({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ul({implicitNamespacePrefix:"math"}),li:new ul({closedByChildren:["li"],closedByParent:!0}),dt:new ul({closedByChildren:["dt","dd"]}),dd:new ul({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ul({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ul({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ul({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ul({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ul({closedByChildren:["optgroup"],closedByParent:!0}),option:new ul({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ul({ignoreFirstLf:!0}),listing:new ul({ignoreFirstLf:!0}),style:new ul({contentType:Ga.RAW_TEXT}),script:new ul({contentType:Ga.RAW_TEXT}),title:new ul({contentType:{default:Ga.ESCAPABLE_RAW_TEXT,svg:Ga.PARSABLE_DATA}}),textarea:new ul({contentType:Ga.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},(new cl).allKnownElementNames().forEach((e=>{hl.hasOwnProperty(e)||null!==io(e)||(hl[e]=new ul({canSelfClose:!1}))}))),hl[e]??hl[e.toLowerCase()]??pl}e("HtmlTagDefinition",ul);const ml={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\u{1d504}",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\u{1d538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\u{1d49c}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\u{1d505}",Bopf:"\u{1d539}",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\u{1d49e}",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1d507}",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1d53b}",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\u{1d49f}",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\u{1d508}",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\u{1d53c}",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1d509}",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\u{1d53d}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1d50a}",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\u{1d53e}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1d4a2}",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\u{1d540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1d50d}",Jopf:"\u{1d541}",Jscr:"\u{1d4a5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\u{1d50e}",Kopf:"\u{1d542}",Kscr:"\u{1d4a6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1d50f}",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\u{1d543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1d510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1d544}",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\u{1d511}",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1d4a9}",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\u{1d512}",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\u{1d546}",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\u{1d4aa}",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\u{1d513}",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\u{1d4ab}",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\u{1d514}",Qopf:"\u211a",rationals:"\u211a",Qscr:"\u{1d4ac}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\u{1d516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1d54a}",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1d4ae}",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1d517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1d54b}",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\u{1d4af}",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1d518}",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\u{1d54c}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\u{1d4b0}",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\u{1d519}",Vopf:"\u{1d54d}",Vscr:"\u{1d4b1}",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\u{1d51a}",Wopf:"\u{1d54e}",Wscr:"\u{1d4b2}",Xfr:"\u{1d51b}",Xi:"\u039e",Xopf:"\u{1d54f}",Xscr:"\u{1d4b3}",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\u{1d51c}",Yopf:"\u{1d550}",Yscr:"\u{1d4b4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1d4b5}",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\u{1d51e}",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\u{1d552}",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\u{1d4b6}",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\u{1d51f}",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\u{1d553}",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\u{1d4b7}",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\u{1d520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\u{1d554}",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1d522}",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1d4bb}",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\u{1d558}",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\u{1d559}",horbar:"\u2015",hscr:"\u{1d4bd}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\u{1d526}",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\u{1d55a}",iota:"\u03b9",iquest:"\xbf",iscr:"\u{1d4be}",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1d527}",jmath:"\u0237",jopf:"\u{1d55b}",jscr:"\u{1d4bf}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\u{1d528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\u{1d55c}",kscr:"\u{1d4c0}",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\u{1d529}",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\u{1d55e}",mscr:"\u{1d4c2}",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1d52b}",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\u{1d55f}",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\u{1d4c3}",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\u{1d52c}",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\u{1d560}",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1d52d}",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\u{1d561}",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\u{1d4c5}",psi:"\u03c8",puncsp:"\u2008",qfr:"\u{1d52e}",qopf:"\u{1d562}",qprime:"\u2057",qscr:"\u{1d4c6}",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\u{1d52f}",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\u{1d4c7}",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1d530}",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\u{1d4c8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1d531}",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\u{1d532}",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\u{1d566}",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\u{1d4ca}",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\u{1d533}",vopf:"\u{1d567}",vscr:"\u{1d4cb}",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1d534}",wopf:"\u{1d568}",wscr:"\u{1d4cc}",xfr:"\u{1d535}",xi:"\u03be",xnis:"\u22fb",xopf:"\u{1d569}",xscr:"\u{1d4cd}",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\u{1d536}",yicy:"\u0457",yopf:"\u{1d56a}",yscr:"\u{1d4ce}",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\u{1d537}",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\u{1d56b}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"},gl="\ue500";ml.ngsp=gl;class fl extends Mr{constructor(e,t,s){super(s,e),this.tokenType=t}}class vl{constructor(e,t,s){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=s}}function yl(e,t,s,n={}){const r=new bl(new Nr(e,t),s,n);return r.tokenize(),new vl(function(e){const t=[];let s;for(let n=0;n<e.length;n++){const r=e[n];s&&5===s.type&&5===r.type||s&&16===s.type&&16===r.type?(s.parts[0]+=r.parts[0],s.sourceSpan.end=r.sourceSpan.end):(s=r,t.push(s))}return t}(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}const xl=/\r\n?/g;function wl(e){return`Unexpected character "${e===Gn?"EOF":String.fromCharCode(e)}"`}function Sl(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}var El;!function(e){e.HEX="hexadecimal",e.DEC="decimal"}(El||(El={}));class _l{constructor(e){this.error=e}}class bl{constructor(e,t,s){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||Kn,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map((e=>e.codePointAt(0)||0));const n=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new Ml(e,n):new Ll(e,n),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks||!1;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(xl,"\n")}tokenize(){for(;this._cursor.peek()!==Gn;){const e=this._cursor.clone();try{this._attemptCharCode(ar)?this._attemptCharCode(33)?this._attemptCharCode(mr)?this._consumeCdata(e):this._attemptCharCode(45)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(nr)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeBlocks&&this._attemptStr("{#")?this._consumeBlockGroupOpen(e):this._tokenizeBlocks&&this._attemptStr("{/")?this._consumeBlockGroupClose(e):this._tokenizeBlocks&&this._attemptStr("{:")?this._consumeBlock(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,(()=>this._isTextEnd()),(()=>this._isTagStart()))}catch(e){this.handleError(e)}}this._beginToken(24),this._endToken([])}_consumeBlockGroupOpen(e){this._beginToken(25,e);const t=this._cursor.clone();this._attemptCharCodeUntilFn((e=>!Nl(e))),this._endToken([this._cursor.getChars(t)]),this._consumeBlockParameters(),this._beginToken(26),this._requireCharCode(Sr),this._endToken([])}_consumeBlockGroupClose(e){this._beginToken(27,e);const t=this._cursor.clone();this._attemptCharCodeUntilFn((e=>!Nl(e)));const s=this._cursor.getChars(t);this._requireCharCode(Sr),this._endToken([s])}_consumeBlock(e){this._beginToken(29,e);const t=this._cursor.clone();this._attemptCharCodeUntilFn((e=>!Nl(e))),this._endToken([this._cursor.getChars(t)]),this._consumeBlockParameters(),this._beginToken(30),this._requireCharCode(Sr),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Al);this._cursor.peek()!==Sr&&this._cursor.peek()!==Gn;){this._beginToken(28);const e=this._cursor.clone();let t=null,s=0;for(;this._cursor.peek()!==ir&&this._cursor.peek()!==Gn||null!==t;){const e=this._cursor.peek();if(92===e)this._cursor.advance();else if(e===t)t=null;else if(null===t&&kr(e))t=e;else if(e===wr&&null===t)s++;else if(e===Sr&&null===t){if(0===s)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Al)}}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(this._cursor.peek()!==Sr&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Sr){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(null===this._currentTokenStart)throw new fl("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new fl("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));const s={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');const s=new fl(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new _l(s)}handleError(e){if(e instanceof Rl&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof _l))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return t=this._cursor.peek(),s=e,Pl(t)===Pl(s)&&(this._cursor.advance(),!0);var t,s}_requireCharCode(e){const t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(wl(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){const t=e.length;if(this._cursor.charsLeft()<t)return!1;const s=this._cursor.clone();for(let n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._cursor=s,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){const t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(wl(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){const s=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(s)<t)throw this._createError(wl(this._cursor.peek()),this._cursor.getSpan(s))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){const e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);const t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){const e=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(Tl),this._cursor.peek()!=ir){this._cursor.advance();const n=e?El.HEX:El.DEC;throw this._createError((s=n,`Unable to parse entity "${this._cursor.getChars(t)}" - ${s} character reference entities must end with ";"`),this._cursor.getSpan())}const r=this._cursor.getChars(n);this._cursor.advance();try{const s=parseInt(r,e?16:10);this._endToken([String.fromCharCode(s),this._cursor.getChars(t)])}catch{throw this._createError(Sl(this._cursor.getChars(t)),this._cursor.getSpan())}}else{const s=this._cursor.clone();if(this._attemptCharCodeUntilFn(kl),this._cursor.peek()!=ir)this._beginToken(e,t),this._cursor=s,this._endToken(["&"]);else{const e=this._cursor.getChars(s);this._cursor.advance();const n=ml[e];if(!n)throw this._createError(Sl(e),this._cursor.getSpan(t));this._endToken([n,`&${e};`])}}var s}_consumeRawText(e,t){this._beginToken(e?6:7);const s=[];for(;;){const n=this._cursor.clone(),r=t();if(this._cursor=n,r)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(6),this._beginToken(6)):s.push(this._readChar())}this._endToken([this._processCarriageReturns(s.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("--\x3e"))),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);const t=this._cursor.clone();this._attemptUntilChar(lr);const s=this._cursor.getChars(t);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(){const e=this._cursor.clone();let t="";for(;this._cursor.peek()!==rr&&!(((s=this._cursor.peek())<vr||xr<s)&&(s<pr||dr<s)&&(s<cr||s>ur));)this._cursor.advance();var s;let n;this._cursor.peek()===rr?(t=this._cursor.getChars(e),this._cursor.advance(),n=this._cursor.clone()):n=e,this._requireCharCodeUntilFn(Il,""===t?0:1);return[t,this._cursor.getChars(n)]}_consumeTagOpen(e){let t,s,n;try{if(!Cr(this._cursor.peek()))throw this._createError(wl(this._cursor.peek()),this._cursor.getSpan(e));for(n=this._consumeTagOpenStart(e),s=n.parts[0],t=n.parts[1],this._attemptCharCodeUntilFn(Cl);this._cursor.peek()!==nr&&this._cursor.peek()!==lr&&this._cursor.peek()!==ar&&this._cursor.peek()!==Gn;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Cl),this._attemptCharCode(or)&&(this._attemptCharCodeUntilFn(Cl),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Cl);this._consumeTagOpenEnd()}catch(t){if(t instanceof _l)return void(n?n.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw t}const r=this._getTagDefinition(t).getContentType(s);r===Ga.RAW_TEXT?this._consumeRawTextWithTagClose(s,t,!1):r===Ga.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,t,!0)}_consumeRawTextWithTagClose(e,t,s){this._consumeRawText(s,(()=>!!this._attemptCharCode(ar)&&(!!this._attemptCharCode(nr)&&(this._attemptCharCodeUntilFn(Cl),!!this._attemptStrCaseInsensitive(t)&&(this._attemptCharCodeUntilFn(Cl),this._attemptCharCode(lr)))))),this._beginToken(3),this._requireCharCodeUntilFn((e=>e===lr),3),this._cursor.advance(),this._endToken([e,t])}_consumeTagOpenStart(e){this._beginToken(0,e);const t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){const e=this._cursor.peek();if(39===e||34===e)throw this._createError(wl(e),this._cursor.getSpan());this._beginToken(14);const t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){if(39===this._cursor.peek()||34===this._cursor.peek()){const e=this._cursor.peek();this._consumeQuote(e);const t=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,t,t),this._consumeQuote(e)}else{const e=()=>Il(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){const e=this._attemptCharCode(nr)?2:1;this._beginToken(e),this._requireCharCode(lr),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Cl);const t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Cl),this._requireCharCode(lr),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(wr),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);const e=this._readUntil(tr),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{const s=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(tr),this._attemptCharCodeUntilFn(Cl),this._beginToken(7);const s=this._readUntil(tr);this._endToken([s]),this._requireCharCode(tr),this._attemptCharCodeUntilFn(Cl)}_consumeExpansionCaseStart(){this._beginToken(20);const e=this._readUntil(wr).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Cl),this._beginToken(21),this._requireCharCode(wr),this._endToken([]),this._attemptCharCodeUntilFn(Cl),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(Sr),this._endToken([]),this._attemptCharCodeUntilFn(Cl),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(Sr),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,s,n){this._beginToken(e);const r=[];for(;!s();){const s=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(r.join(""))],s),r.length=0,this._consumeInterpolation(t,s,n),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(e),this._beginToken(e)):r.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(r.join(""))])}_consumeInterpolation(e,t,s){const n=[];this._beginToken(e,t),n.push(this._interpolationConfig.start);const r=this._cursor.clone();let i=null,a=!1;for(;this._cursor.peek()!==Gn&&(null===s||!s());){const e=this._cursor.clone();if(this._isTagStart())return this._cursor=e,n.push(this._getProcessedChars(r,e)),void this._endToken(n);if(null===i){if(this._attemptStr(this._interpolationConfig.end))return n.push(this._getProcessedChars(r,e)),n.push(this._interpolationConfig.end),void this._endToken(n);this._attemptStr("//")&&(a=!0)}const t=this._cursor.peek();this._cursor.advance(),92===t?this._cursor.advance():t===i?i=null:!a&&null===i&&kr(t)&&(i=t)}n.push(this._getProcessedChars(r,this._cursor)),this._endToken(n)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){if(this._isTagStart()||this._isBlockStart()||this._cursor.peek()===Gn)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(this._cursor.peek()===Sr&&this._isInExpansionCase())return!0}return!1}_isTagStart(){if(this._cursor.peek()===ar){const e=this._cursor.clone();e.advance();const t=e.peek();if(vr<=t&&t<=xr||pr<=t&&t<=dr||t===nr||33===t)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===wr){const e=this._cursor.clone();e.advance();const t=e.peek();if(33!==t&&t!==nr&&t!==rr)return!1;if(e.advance(),Nl(e.peek()))return!0}return!1}_readUntil(e){const t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(this._cursor.peek()!==wr)return!1;if(this._interpolationConfig){const e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}}function Cl(e){return!_r(e)||e===Gn}function Il(e){return _r(e)||e===lr||e===ar||e===nr||39===e||34===e||e===or||e===Gn}function Tl(e){return e===ir||e===Gn||!function(e){return e>=vr&&e<=yr||e>=pr&&e<=hr||br(e)}(e)}function kl(e){return e===ir||e===Gn||!Cr(e)}function Pl(e){return e>=vr&&e<=xr?e-vr+pr:e}function Nl(e){return Cr(e)||br(e)||e===fr}function Al(e){return e!==ir&&Cl(e)}class Ll{constructor(e,t){if(e instanceof Ll){this.file=e.file,this.input=e.input,this.end=e.end;const t=e.state;this.state={peek:t.peek,offset:t.offset,line:t.line,column:t.column}}else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new Ll(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){let s=e=e||this;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)s===e&&(e=e.clone()),e.advance();const n=this.locationFromCursor(e),r=this.locationFromCursor(this),i=s!==e?this.locationFromCursor(s):n;return new Ar(n,r,i)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Rl('Unexpected character "EOF"',this);const t=this.charAt(e.offset);t===Qn?(e.line++,e.column=0):Ir(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Gn:this.charAt(e.offset)}locationFromCursor(e){return new Pr(e.file,e.state.offset,e.state.line,e.state.column)}}class Ml extends Ll{constructor(e,t){e instanceof Ml?(super(e),this.internalState={...e.internalState}):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Ml(this)}getChars(e){const t=e.clone();let s="";for(;t.internalState.offset<this.internalState.offset;)s+=String.fromCodePoint(t.peek()),t.advance();return s}processEscapeSequence(){const e=()=>this.internalState.peek;if(92===e())if(this.internalState={...this.state},this.advanceState(this.internalState),110===e())this.state.peek=Qn;else if(114===e())this.state.peek=13;else if(118===e())this.state.peek=11;else if(116===e())this.state.peek=Yn;else if(98===e())this.state.peek=8;else if(e()===yr)this.state.peek=12;else if(117===e())if(this.advanceState(this.internalState),e()===wr){this.advanceState(this.internalState);const t=this.clone();let s=0;for(;e()!==Sr;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(t,s)}else{const e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(120===e()){this.advanceState(this.internalState);const e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(Tr(e())){let t="",s=0,n=this.clone();for(;Tr(e())&&s<3;)n=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(t,8),this.internalState=n.internalState}else Ir(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){const s=this.input.slice(e.internalState.offset,e.internalState.offset+t),n=parseInt(s,16);if(isNaN(n))throw e.state=e.internalState,new Rl("Invalid hexadecimal escape sequence",e);return n}}class Rl{constructor(e,t){this.msg=e,this.cursor=t}}class Bl extends Mr{static create(e,t,s){return new Bl(e,t,s)}constructor(e,t,s){super(t,s),this.elementName=e}}e("TreeError",Bl);class Dl{constructor(e,t){this.rootNodes=e,this.errors=t}}e("ParseTreeResult",Dl);class Ol{constructor(e){this.getTagDefinition=e}parse(e,t,s){const n=yl(e,t,this.getTagDefinition,s),r=new $l(n.tokens,this.getTagDefinition);return r.build(),new Dl(r.rootNodes,n.errors.concat(r.errors))}}class $l{constructor(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;24!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?this._consumeEndTag(this._advance()):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):19===this._peek.type?this._consumeExpansion(this._advance()):25===this._peek.type?(this._closeVoidElement(),this._consumeBlockGroupOpen(this._advance())):29===this._peek.type?(this._closeVoidElement(),this._consumeBlock(this._advance(),30)):27===this._peek.type?(this._closeVoidElement(),this._consumeBlockGroupClose(this._advance())):this._advance()}_advance(){const e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){this._consumeText(this._advance()),this._advanceIf(13)}_consumeComment(e){const t=this._advanceIf(7),s=this._advanceIf(11),n=null!=t?t.parts[0].trim():null,r=null==s?e.sourceSpan:new Ar(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new el(n,r))}_consumeExpansion(e){const t=this._advance(),s=this._advance(),n=[];for(;20===this._peek.type;){const e=this._parseExpansionCase();if(!e)return;n.push(e)}if(23!==this._peek.type)return void this.errors.push(Bl.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));const r=new Ar(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Qo(t.parts[0],s.parts[0],n,r,t.sourceSpan)),this._advance()}_parseExpansionCase(){const e=this._advance();if(21!==this._peek.type)return this.errors.push(Bl.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;const t=this._advance(),s=this._collectExpansionExpTokens(t);if(!s)return null;const n=this._advance();s.push({type:24,parts:[],sourceSpan:n.sourceSpan});const r=new $l(s,this.getTagDefinition);if(r.build(),r.errors.length>0)return this.errors=this.errors.concat(r.errors),null;const i=new Ar(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart),a=new Ar(t.sourceSpan.start,n.sourceSpan.end,t.sourceSpan.fullStart);return new Xo(e.parts[0],r.rootNodes,i,e.sourceSpan,a)}_collectExpansionExpTokens(e){const t=[],s=[21];for(;;){if(19!==this._peek.type&&21!==this._peek.type||s.push(this._peek.type),22===this._peek.type){if(!Fl(s,21))return this.errors.push(Bl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(s.pop(),0===s.length)return t}if(23===this._peek.type){if(!Fl(s,19))return this.errors.push(Bl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;s.pop()}if(24===this._peek.type)return this.errors.push(Bl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){const t=[e],s=e.sourceSpan;let n=e.parts[0];if(n.length>0&&"\n"===n[0]){const r=this._getContainer();if(r instanceof tl)return this.errors.push(Bl.create(null,s,"Text cannot be placed directly inside of a block group.")),null;null!=r&&0===r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(n=n.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[n]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),t.push(e),8===e.type?n+=e.parts.join("").replace(/&([^;]+);/g,ql):9===e.type?n+=e.parts[0]:n+=e.parts.join("");if(n.length>0){const r=e.sourceSpan;this._addToParent(new Yo(n,new Ar(s.start,r.end,s.fullStart,s.details),t))}}_closeVoidElement(){const e=this._getContainer();e instanceof Zo&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){const[t,s]=e.parts,n=[];for(;14===this._peek.type;)n.push(this._consumeAttr(this._advance()));const r=this._getElementFullName(t,s,this._getClosestParentElement());let i=!1;if(2===this._peek.type){this._advance(),i=!0;const t=this.getTagDefinition(r);t.canSelfClose||null!==io(r)||t.isVoid||this.errors.push(Bl.create(r,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),i=!1);const a=this._peek.sourceSpan.fullStart,o=new Ar(e.sourceSpan.start,a,e.sourceSpan.fullStart),l=new Ar(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new Zo(r,n,[],o,l,void 0),u=this._getContainer();this._pushContainer(c,u instanceof Zo&&this.getTagDefinition(u.name).isClosedByChild(c.name)),i?this._popContainer(r,Zo,o):4===e.type&&(this._popContainer(r,Zo,null),this.errors.push(Bl.create(r,o,`Opening tag "${r}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){const t=this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(this.getTagDefinition(t).isVoid)this.errors.push(Bl.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,Zo,e.sourceSpan)){const s=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Bl.create(t,e.sourceSpan,s))}}_popContainer(e,t,s){let n=!1;for(let r=this._containerStack.length-1;r>=0;r--){const i=this._containerStack[r];if((i instanceof tl?i.blocks[0]?.name:i.name)===e&&i instanceof t)return i.endSourceSpan=s,i.sourceSpan.end=null!==s?s.end:i.sourceSpan.end,this._containerStack.splice(r,this._containerStack.length-r),!n;(i instanceof tl||i instanceof Zo&&!this.getTagDefinition(i.name).closedByParent)&&(n=!0)}return!1}_consumeAttr(e){const t=ao(e.parts[0],e.parts[1]);let s=e.sourceSpan.end;15===this._peek.type&&this._advance();let n="";const r=[];let i,a;if(16===this._peek.type)for(i=this._peek.sourceSpan,a=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){const e=this._advance();r.push(e),17===e.type?n+=e.parts.join("").replace(/&([^;]+);/g,ql):9===e.type?n+=e.parts[0]:n+=e.parts.join(""),a=s=e.sourceSpan.end}if(15===this._peek.type){s=this._advance().sourceSpan.end}const o=i&&a&&new Ar(i.start,a,i.fullStart);return new Jo(t,n,new Ar(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,o,r.length>0?r:void 0,void 0)}_consumeBlockGroupOpen(e){const t=this._peek.sourceSpan.fullStart,s=new Ar(e.sourceSpan.start,t,e.sourceSpan.fullStart),n=new Ar(e.sourceSpan.start,t,e.sourceSpan.fullStart),r=new tl([],s,n,null);this._pushContainer(r,!1);const i=this._consumeBlock(e,26);n.end=i.startSourceSpan.end}_consumeBlock(e,t){this._conditionallyClosePreviousBlock();const s=[];for(;28===this._peek.type;){const e=this._advance();s.push(new nl(e.parts[0],e.sourceSpan))}this._peek.type===t&&this._advance();const n=this._peek.sourceSpan.fullStart,r=new Ar(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new Ar(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new sl(e.parts[0],s,[],r,i),o=this._getContainer();return o instanceof tl?(o.blocks.push(a),this._containerStack.push(a)):this.errors.push(Bl.create(a.name,a.sourceSpan,"Blocks can only be placed inside of block groups.")),a}_consumeBlockGroupClose(e){const t=e.parts[0],s=this._getContainer();if(this._conditionallyClosePreviousBlock(),!this._popContainer(t,tl,e.sourceSpan)){const n=s instanceof Zo?`There is an unclosed "${s.name}" HTML tag named that may have to be closed first.`:"The block may have been closed earlier.";this.errors.push(Bl.create(t,e.sourceSpan,`Unexpected closing block "${t}". ${n}`))}}_conditionallyClosePreviousBlock(){const e=this._getContainer();if(e instanceof sl){const t=e.children.length?e.children[e.children.length-1]:null,s=null===t?null:new Ar(t.sourceSpan.end,t.sourceSpan.end);this._popContainer(e.name,sl,s)}}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof Zo)return this._containerStack[e];return null}_addToParent(e){const t=this._getContainer();null===t?this.rootNodes.push(e):t instanceof tl?this.errors.push(Bl.create(null,e.sourceSpan,"Block groups can only contain blocks.")):t.children.push(e)}_getElementFullName(e,t,s){if(""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=s){const t=to(s.name)[1];this.getTagDefinition(t).preventNamespaceInheritance||(e=io(s.name))}return ao(e,t)}}function Fl(e,t){return e.length>0&&e[e.length-1]===t}function ql(e,t){return void 0!==ml[t]?ml[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}class Vl extends Ol{constructor(){super(dl)}parse(e,t,s){return super.parse(e,t,s)}}e("HtmlParser",Vl);const Ul="ngPreserveWhitespaces",Hl=new Set(["pre","template","textarea","script","style"]),jl=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",Wl=new RegExp(`[^${jl}]`),zl=new RegExp(`[${jl}]{2,}`,"g");function Kl(e){return e.replace(new RegExp(gl,"g")," ")}class Gl{visitElement(e,t){return Hl.has(e.name)||e.attrs.some((e=>e.name===Ul))?new Zo(e.name,rl(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new Zo(e.name,e.attrs,Ql(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,t){return e.name!==Ul?e:null}visitText(e,t){const s=e.value.match(Wl),n=t&&(t.prev instanceof Qo||t.next instanceof Qo);if(s||n){const t=e.tokens.map((e=>5===e.type?function({type:e,parts:t,sourceSpan:s}){return{type:e,parts:[Yl(t[0])],sourceSpan:s}}(e):e)),s=Yl(e.value);return new Yo(s,e.sourceSpan,t,e.i18n)}return null}visitComment(e,t){return e}visitExpansion(e,t){return e}visitExpansionCase(e,t){return e}visitBlockGroup(e,t){return new tl(Ql(this,e.blocks),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitBlock(e,t){return new sl(e.name,e.parameters,Ql(this,e.children),e.sourceSpan,e.startSourceSpan)}visitBlockParameter(e,t){return e}}function Yl(e){return Kl(e).replace(zl," ")}function Ql(e,t){const s=[];return t.forEach(((n,r)=>{const i={prev:t[r-1],next:t[r+1]},a=n.visit(e,i);a&&s.push(a)})),s}function Xl(e,t=!1){return at(Object.keys(e).map((s=>({key:s,quoted:t,value:e[s]}))))}const Jl=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Zl(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),Jl.has(e+"|"+t)||Jl.has("*|"+t)}const ec="animate-";class tc{constructor(e,t,s,n){this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=s,this.errors=n}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,t){const s=[];for(const n of Object.keys(e)){const r=e[n];"string"==typeof r?this.parsePropertyBinding(n,r,!0,t,t.start.offset,void 0,[],s,t):this._reportError(`Value of the host property binding "${n}" needs to be a string representing an expression but got "${r}" (${typeof r})`,t)}return s}createDirectiveHostEventAsts(e,t){const s=[];for(const n of Object.keys(e)){const r=e[n];"string"==typeof r?this.parseEvent(n,r,!1,t,t,[],s,t):this._reportError(`Value of the host listener "${n}" needs to be a string representing an expression but got "${r}" (${typeof r})`,t)}return s}parseInterpolation(e,t,s){const n=t.start.toString(),r=t.fullStart.offset;try{const i=this._exprParser.parseInterpolation(e,n,r,s,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),i}catch(e){return this._reportError(`${e}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInterpolationExpression(e,t){const s=t.start.toString(),n=t.start.offset;try{const r=this._exprParser.parseInterpolationExpression(e,s,n);return r&&this._reportExpressionParserErrors(r.errors,t),r}catch(e){return this._reportError(`${e}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,n)}}parseInlineTemplateBinding(e,t,s,n,r,i,a,o){const l=s.start.offset+1,c=this._parseTemplateBindings(e,t,s,l,n);for(const e of c){const t=rc(s,e.sourceSpan),l=e.key.source,c=rc(s,e.key.span);if(e instanceof Ai){const n=e.value?e.value.source:"$implicit",r=e.value?rc(s,e.value.span):void 0;a.push(new $i(l,n,t,c,r))}else if(e.value){const n=o?t:s,a=rc(s,e.value.ast.sourceSpan);this._parsePropertyAst(l,e.value,n,c,a,r,i)}else r.push([l,""]),this.parseLiteralAttr(l,null,c,n,void 0,r,i,c)}}_parseTemplateBindings(e,t,s,n,r){const i=s.start.toString();try{const a=this._exprParser.parseTemplateBindings(e,t,i,n,r);return this._reportExpressionParserErrors(a.errors,s),a.warnings.forEach((e=>{this._reportError(e,s,Lr.WARNING)})),a.templateBindings}catch(e){return this._reportError(`${e}`,s),[]}}parseLiteralAttr(e,t,s,n,r,i,a,o){sc(e)?(e=e.substring(1),void 0!==o&&(o=rc(o,new Pi(o.start.offset+1,o.end.offset))),t&&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.',s,Lr.ERROR),this._parseAnimation(e,t,s,n,o,r,i,a)):a.push(new Di(e,this._exprParser.wrapLiteralPrimitive(t,"",n),Yr.LITERAL_ATTR,s,o,r))}parsePropertyBinding(e,t,s,n,r,i,a,o,l){0===e.length&&this._reportError("Property name is missing in binding",n);let c=!1;e.startsWith(ec)?(c=!0,e=e.substring(8),void 0!==l&&(l=rc(l,new Pi(l.start.offset+8,l.end.offset)))):sc(e)&&(c=!0,e=e.substring(1),void 0!==l&&(l=rc(l,new Pi(l.start.offset+1,l.end.offset)))),c?this._parseAnimation(e,t,n,r,l,i,a,o):this._parsePropertyAst(e,this.parseBinding(t,s,i||n,r),n,l,i,a,o)}parsePropertyInterpolation(e,t,s,n,r,i,a,o){const l=this.parseInterpolation(t,n||s,o);return!!l&&(this._parsePropertyAst(e,l,s,a,n,r,i),!0)}_parsePropertyAst(e,t,s,n,r,i,a){i.push([e,t.source]),a.push(new Di(e,t,Yr.DEFAULT,s,n,r))}_parseAnimation(e,t,s,n,r,i,a,o){0===e.length&&this._reportError("Animation trigger is missing",s);const l=this.parseBinding(t||"undefined",!1,i||s,n);a.push([e,l.source]),o.push(new Di(e,l,Yr.ANIMATION,s,r,i))}parseBinding(e,t,s,n){const r=(s&&s.start||"(unknown)").toString();try{const i=t?this._exprParser.parseSimpleBinding(e,r,n,this._interpolationConfig):this._exprParser.parseBinding(e,r,n,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,s),i}catch(e){return this._reportError(`${e}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}createBoundElementProperty(e,t,s=!1,n=!0){if(t.isAnimation)return new Fi(t.name,4,h.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let r,i=null,a=null;const o=t.name.split(".");let l;if(o.length>1)if("attr"==o[0]){a=o.slice(1).join("."),s||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),l=nc(this._schemaRegistry,e,a,!0);const n=a.indexOf(":");if(n>-1){const e=a.substring(0,n),t=a.substring(n+1);a=ao(e,t)}r=1}else"class"==o[0]?(a=o[1],r=2,l=[h.NONE]):"style"==o[0]&&(i=o.length>2?o[2]:null,a=o[1],r=3,l=[h.STYLE]);if(null===a){const i=this._schemaRegistry.getMappedPropName(t.name);a=n?i:t.name,l=nc(this._schemaRegistry,e,i,!1),r=0,s||this._validatePropertyOrAttributeName(i,t.sourceSpan,!1)}return new Fi(a,r,l[0],t.expression,i,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,s,n,r,i,a,o){0===e.length&&this._reportError("Event name is missing in binding",n),sc(e)?(e=e.slice(1),void 0!==o&&(o=rc(o,new Pi(o.start.offset+1,o.end.offset))),this._parseAnimationEvent(e,t,s,n,r,a,o)):this._parseRegularEvent(e,t,s,n,r,i,a,o)}calcPossibleSecurityContexts(e,t,s){const n=this._schemaRegistry.getMappedPropName(t);return nc(this._schemaRegistry,e,n,s)}_parseAnimationEvent(e,t,s,n,r,i,a){const o=Ct(e,".",[e,""]);const l=o[0],c=o[1].toLowerCase(),u=this._parseAction(t,s,r);i.push(new Oi(l,c,1,u,n,r,a)),0===l.length&&this._reportError("Animation event name is missing in binding",n),c?"start"!==c&&"done"!==c&&this._reportError(`The provided animation output phase value "${c}" for "@${l}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,t,s,n,r,i,a,o){const[l,c]=Ct(e,":",[null,e]);const u=this._parseAction(t,s,r);i.push([e,u.source]),a.push(new Oi(c,l,0,u,n,r,o))}_parseAction(e,t,s){const n=(s&&s.start||"(unknown").toString(),r=s&&s.start?s.start.offset:0;try{const i=this._exprParser.parseAction(e,t,n,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,s),!i||i.ast instanceof oi?(this._reportError("Empty expressions are not allowed",s),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):i}catch(e){return this._reportError(`${e}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}_reportError(e,t,s=Lr.ERROR){this.errors.push(new Mr(t,e,s))}_reportExpressionParserErrors(e,t){for(const s of e)this._reportError(s.message,t)}_validatePropertyOrAttributeName(e,t,s){const n=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);n.error&&this._reportError(n.msg,t,Lr.ERROR)}}function sc(e){return"@"==e[0]}function nc(e,t,n,r){const i=[];return s.parse(t).forEach((t=>{const s=t.element?[t.element]:e.allKnownElementNames(),a=new Set(t.notSelectors.filter((e=>e.isElementSelector())).map((e=>e.element))),o=s.filter((e=>!a.has(e)));i.push(...o.map((t=>e.securityContext(t,n,r))))})),0===i.length?[h.NONE]:Array.from(new Set(i)).sort()}function rc(e,t){const s=t.start-e.start.offset,n=t.end-e.end.offset;return new Ar(e.start.moveBy(s),e.end.moveBy(n),e.fullStart.moveBy(s),e.details)}const ic=/^([^:/?#]+):/;function ac(e){let t=null,s=null,n=null,r=!1,i="";e.attrs.forEach((e=>{const a=e.name.toLowerCase();"select"==a?t=e.value:"href"==a?s=e.value:"rel"==a?n=e.value:"ngNonBindable"==e.name?r=!0:"ngProjectAs"==e.name&&e.value.length>0&&(i=e.value)})),t=function(e){if(null===e||0===e.length)return"*";return e}(t);const a=e.name.toLowerCase();let o=oc.OTHER;return no(a)?o=oc.NG_CONTENT:"style"==a?o=oc.STYLE:"script"==a?o=oc.SCRIPT:"link"==a&&"stylesheet"==n&&(o=oc.STYLESHEET),new lc(o,t,s,r,i)}var oc;!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(oc||(oc={}));class lc{constructor(e,t,s,n,r){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=n,this.projectAs=r}}const cc=/^\d+(ms|s)?$/,uc=/^\s$/,pc=new Map([[wr,Sr],[mr,gr],[Zn,er]]);var hc;function dc({expression:e,sourceSpan:t},s,n){const r=e.indexOf("when");if(-1===r)return n.push(new Mr(t,'Could not find "when" keyword in expression')),null;const i=fc(e,r+1),a=s.parseBinding(e.slice(i),!1,t,t.start.offset+i);return new ms(a,t)}function mc({expression:e,sourceSpan:t},s){const n=e.indexOf("on");if(-1===n)return s.push(new Mr(t,'Could not find "on" keyword in expression')),[];const r=fc(e,n+1);return new gc(e,r,t,s).parse()}!function(e){e.IDLE="idle",e.TIMER="timer",e.INTERACTION="interaction",e.IMMEDIATE="immediate",e.HOVER="hover",e.VIEWPORT="viewport"}(hc||(hc={}));class gc{constructor(e,t,s,n){this.expression=e,this.start=t,this.span=s,this.errors=n,this.index=0,this.triggers=[],this.tokens=(new Lo).tokenize(e.slice(t))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){const e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(tr))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(Zn)){this.advance();const t=this.errors.length,s=this.consumeParameters();if(this.errors.length!==t)break;this.consumeTrigger(e,s),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}return this.triggers}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1||this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,t){const s=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),n=s.moveBy(this.token().end-e.index),r=new Ar(s,n);try{switch(e.toString()){case hc.IDLE:this.triggers.push(function(e,t){if(e.length>0)throw new Error(`"${hc.IDLE}" trigger cannot have parameters`);return new gs(t)}(t,r));break;case hc.TIMER:this.triggers.push(function(e,t){if(1!==e.length)throw new Error(`"${hc.TIMER}" trigger must have exactly one parameter`);const s=vc(e[0]);if(null===s)throw new Error(`Could not parse time value of trigger "${hc.TIMER}"`);return new ys(s,t)}(t,r));break;case hc.INTERACTION:this.triggers.push(function(e,t){if(e.length>1)throw new Error(`"${hc.INTERACTION}" trigger can only have zero or one parameters`);return new xs(e[0]??null,t)}(t,r));break;case hc.IMMEDIATE:this.triggers.push(function(e,t){if(e.length>0)throw new Error(`"${hc.IMMEDIATE}" trigger cannot have parameters`);return new fs(t)}(t,r));break;case hc.HOVER:this.triggers.push(function(e,t){if(e.length>0)throw new Error(`"${hc.HOVER}" trigger cannot have parameters`);return new vs(t)}(t,r));break;case hc.VIEWPORT:this.triggers.push(function(e,t){if(e.length>1)throw new Error(`"${hc.VIEWPORT}" trigger can only have zero or one parameters`);return new ws(e[0]??null,t)}(t,r));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(t){this.error(e,t.message)}}consumeParameters(){const e=[];if(!this.token().isCharacter(Zn))return this.unexpectedToken(this.token()),e;this.advance();const t=[];let s="";for(;this.index<this.tokens.length;){const n=this.token();if(n.isCharacter(er)&&0===t.length){s.length&&e.push(s);break}n.type===No.Character&&pc.has(n.numValue)&&t.push(pc.get(n.numValue)),t.length>0&&n.isCharacter(t[t.length-1])&&t.pop(),0===t.length&&n.isCharacter(tr)&&s.length>0?(e.push(s),s="",this.advance()):(s+=this.tokenText(),this.advance())}return(!this.token().isCharacter(er)||t.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(tr)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenText(){return this.expression.slice(this.start+this.token().index,this.start+this.token().end)}error(e,t){const s=this.span.start.moveBy(this.start+e.index),n=s.moveBy(e.end-e.index);this.errors.push(new Mr(new Ar(s,n),t))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}}function fc(e,t=0){let s=!1;for(let n=t;n<e.length;n++)if(uc.test(e[n]))s=!0;else if(s)return n;return-1}function vc(e){const t=e.match(cc);if(!t)return null;const[s,n]=t;return parseInt(s)*("s"===n?1e3:1)}const yc=/^prefetch\s+when\s/,xc=/^prefetch\s+on\s/,wc=/^minimum\s/,Sc=/^after\s/,Ec=/^when\s/,_c=/^on\s/;var bc;function Cc(e,t,s){const n=[],[r,...i]=e.blocks,{triggers:a,prefetchTriggers:o}=function(e,t,s){const n=[],r=[];for(const i of e)if(Ec.test(i.expression)){const e=dc(i,t,s);null!==e&&n.push(e)}else if(_c.test(i.expression))n.push(...mc(i,s));else if(yc.test(i.expression)){const e=dc(i,t,s);null!==e&&r.push(e)}else xc.test(i.expression)?r.push(...mc(i,s)):s.push(new Mr(i.sourceSpan,"Unrecognized trigger"));return{triggers:n,prefetchTriggers:r}}(r.parameters,s,n),{placeholder:l,loading:c,error:u}=function(e,t,s){let n=null,r=null,i=null;for(const a of e)try{switch(a.name){case bc.PLACEHOLDER:null!==n?t.push(new Mr(a.startSourceSpan,`"defer" block can only have one "${bc.PLACEHOLDER}" block`)):n=Ic(a,s);break;case bc.LOADING:null!==r?t.push(new Mr(a.startSourceSpan,`"defer" block can only have one "${bc.LOADING}" block`)):r=Tc(a,s);break;case bc.ERROR:null!==i?t.push(new Mr(a.startSourceSpan,`"defer" block can only have one "${bc.ERROR}" block`)):i=kc(a,s);break;default:t.push(new Mr(a.startSourceSpan,`Unrecognized block "${a.name}"`))}}catch(e){t.push(new Mr(a.startSourceSpan,e.message))}return{placeholder:n,loading:r,error:i}}(i,n,t);return{node:new bs(rl(t,r.children),a,o,l,c,u,e.sourceSpan,e.startSourceSpan,e.endSourceSpan),errors:n}}function Ic(e,t){let s=null;for(const t of e.parameters){if(!wc.test(t.expression))throw new Error(`Unrecognized parameter in "${bc.PLACEHOLDER}" block: "${t.expression}"`);{const e=vc(t.expression.slice(fc(t.expression)));if(null===e)throw new Error('Could not parse time value of parameter "minimum"');s=e}}return new Ss(rl(t,e.children),s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}function Tc(e,t){let s=null,n=null;for(const t of e.parameters)if(Sc.test(t.expression)){const e=vc(t.expression.slice(fc(t.expression)));if(null===e)throw new Error('Could not parse time value of parameter "after"');s=e}else{if(!wc.test(t.expression))throw new Error(`Unrecognized parameter in "${bc.LOADING}" block: "${t.expression}"`);{const e=vc(t.expression.slice(fc(t.expression)));if(null===e)throw new Error('Could not parse time value of parameter "minimum"');n=e}}return new Es(rl(t,e.children),s,n,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}function kc(e,t){if(e.parameters.length>0)throw new Error(`"${bc.ERROR}" block cannot have parameters`);return new _s(rl(t,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}!function(e){e.PLACEHOLDER="placeholder",e.LOADING="loading",e.ERROR="error"}(bc||(bc={}));const Pc=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Nc={start:"[(",end:")]"},Ac={start:"[",end:"]"},Lc={start:"(",end:")"};class Mc{constructor(e,t){this.bindingParser=e,this.options=t,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}visitElement(e){const t=pn(e.i18n);t&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);const s=ac(e);if(s.type===oc.SCRIPT)return null;if(s.type===oc.STYLE){const t=1===(n=e).children.length&&n.children[0]instanceof Yo?n.children[0].value:null;return null!==t&&this.styles.push(t),null}if(s.type===oc.STYLESHEET&&function(e){if(null==e||0===e.length||"/"==e[0])return!1;const t=e.match(ic);return null===t||"package"==t[1]||"asset"==t[1]}(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;var n;const r=ro(e.name),i=[],a=[],o=[],l=[],c=[],u={},p=[],h=[];let d,m,g=!1;for(const t of e.attrs){let e=!1;const s=Bc(t.name);let n=!1;if(t.i18n&&(u[t.name]=t.i18n),s.startsWith("*")){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),n=!0,g=!0;const e=t.value,r=s.substring(1),i=[],a=t.valueSpan?t.valueSpan.start.offset:t.sourceSpan.start.offset+t.name.length;this.bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,a,[],p,i,!0),h.push(...i.map((e=>new Ts(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan))))}else e=this.parseAttribute(r,t,[],i,a,o,l);e||n||c.push(this.visitAttribute(t))}if(d=s.nonBindable?rl(Rc,e.children).flat(1/0):rl(this,e.children),s.type===oc.NG_CONTENT){e.children&&!e.children.every((e=>function(e){return e instanceof Yo&&0==e.value.trim().length}(e)||function(e){return e instanceof el}(e)))&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);const t=s.selectAttr,n=e.attrs.map((e=>this.visitAttribute(e)));m=new Is(t,n,e.sourceSpan,e.i18n),this.ngContentSelectors.push(t)}else if(r){const t=this.extractAttributes(e.name,i,u);m=new Cs(e.name,c,t.bound,a,[],d,l,o,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{const t=this.extractAttributes(e.name,i,u);m=new hs(e.name,c,t.bound,a,d,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(g){const s=this.extractAttributes("ng-template",p,u),n=[];s.literal.forEach((e=>n.push(e))),s.bound.forEach((e=>n.push(e)));const i=m instanceof hs?{attributes:m.attributes,inputs:m.inputs,outputs:m.outputs}:{attributes:[],inputs:[],outputs:[]},a=r&&t?void 0:e.i18n,o=m instanceof Cs?null:m.name;m=new Cs(o,i.attributes,i.inputs,i.outputs,n,[m],[],h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,a)}return t&&(this.inI18nBlock=!1),m}visitAttribute(e){return new cs(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!pn(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);const t=e.i18n,s={},n={};return Object.keys(t.placeholders).forEach((e=>{const r=t.placeholders[e];if(e.startsWith("VAR_")){const t=e.trim(),n=this.bindingParser.parseInterpolationExpression(r.text,r.sourceSpan);s[t]=new ls(n,r.sourceSpan)}else n[e]=this._visitTextWithInterpolation(r.text,r.sourceSpan,null)})),new Ps(s,n,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new as(e.value||"",e.sourceSpan)),null}visitBlockGroup(e,t){const s=e.blocks[0];if(!s)return this.reportError("Block group must have at least one block.",e.sourceSpan),null;if("defer"===s.name&&this.options.enabledBlockTypes.has(s.name)){const{node:t,errors:s}=Cc(e,this,this.bindingParser);return this.errors.push(...s),t}return this.reportError(`Unrecognized block "${s.name}".`,s.sourceSpan),null}visitBlock(e,t){}visitBlockParameter(e,t){}extractAttributes(e,t,s){const n=[],r=[];return t.forEach((t=>{const i=s[t.name];if(t.isLiteral)r.push(new cs(t.name,t.expression.source||"",t.sourceSpan,t.keySpan,t.valueSpan,i));else{const s=this.bindingParser.createBoundElementProperty(e,t,!0,!1);n.push(us.fromBoundElementProperty(s,i))}})),{bound:n,literal:r}}parseAttribute(e,t,s,n,r,i,a){const o=Bc(t.name),l=t.value,c=t.sourceSpan,u=t.valueSpan?t.valueSpan.start.offset:c.start.offset;function p(e,s,n){const r=t.name.length-o.length,i=e.start.moveBy(s.length+r),a=i.moveBy(n.length);return new Ar(i,a,i,n)}const h=o.match(Pc);if(h){if(null!=h[1]){const e=h[7],r=p(c,h[1],e);this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,r)}else if(h[2])if(e){const e=h[7],s=p(c,h[2],e);this.parseVariable(e,l,c,s,t.valueSpan,i)}else this.reportError('"let-" is only supported on ng-template elements.',c);else if(h[3]){const e=h[7],s=p(c,h[3],e);this.parseReference(e,l,c,s,t.valueSpan,a)}else if(h[4]){const e=[],n=h[7],i=p(c,h[4],n);this.bindingParser.parseEvent(n,l,!1,c,t.valueSpan||c,s,e,i),Dc(e,r)}else if(h[5]){const e=h[7],i=p(c,h[5],e);this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,i),this.parseAssignmentEvent(e,l,c,t.valueSpan,s,r,i)}else if(h[6]){const e=p(c,"",o);this.bindingParser.parseLiteralAttr(o,l,c,u,t.valueSpan,s,n,e)}return!0}let d=null;if(o.startsWith(Nc.start)?d=Nc:o.startsWith(Ac.start)?d=Ac:o.startsWith(Lc.start)&&(d=Lc),null!==d&&o.endsWith(d.end)&&o.length>d.start.length+d.end.length){const e=o.substring(d.start.length,o.length-d.end.length),i=p(c,d.start,e);if(d.start===Nc.start)this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,i),this.parseAssignmentEvent(e,l,c,t.valueSpan,s,r,i);else if(d.start===Ac.start)this.bindingParser.parsePropertyBinding(e,l,!1,c,u,t.valueSpan,s,n,i);else{const n=[];this.bindingParser.parseEvent(e,l,!1,c,t.valueSpan||c,s,n,i),Dc(n,r)}return!0}const m=p(c,"",o);return this.bindingParser.parsePropertyInterpolation(o,l,c,t.valueSpan,s,n,m,t.valueTokens??null)}_visitTextWithInterpolation(e,t,s,n){const r=Kl(e),i=this.bindingParser.parseInterpolation(r,t,s);return i?new ls(i,t,n):new os(r,t)}parseVariable(e,t,s,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):0===e.length&&this.reportError("Variable does not have a name",s),i.push(new Ts(e,t,s,n,r))}parseReference(e,t,s,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):0===e.length?this.reportError("Reference does not have a name",s):i.some((t=>t.name===e))&&this.reportError(`Reference "#${e}" is defined more than once`,s),i.push(new ks(e,t,s,n,r))}parseAssignmentEvent(e,t,s,n,r,i,a){const o=[];this.bindingParser.parseEvent(`${e}Change`,`${t} =$event`,!0,s,n||s,r,o,a),Dc(o,i)}reportError(e,t,s=Lr.ERROR){this.errors.push(new Mr(t,e,s))}}const Rc=new class{visitElement(e){const t=ac(e);if(t.type===oc.SCRIPT||t.type===oc.STYLE||t.type===oc.STYLESHEET)return null;const s=rl(this,e.children,null);return new hs(e.name,rl(this,e.attrs),[],[],s,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new cs(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new os(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlockGroup(e,t){const s=rl(this,e.blocks);return null!==e.endSourceSpan&&s.push(new os(e.endSourceSpan.toString(),e.endSourceSpan)),s}visitBlock(e,t){return[new os(e.startSourceSpan.toString(),e.startSourceSpan),...rl(this,e.children)]}visitBlockParameter(e,t){return null}};function Bc(e){return/^data-/i.test(e)?e.substring(5):e}function Dc(e,t){t.push(...e.map((e=>ps.fromParsedEvent(e))))}var Oc;!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE"}(Oc||(Oc={}));class $c{constructor(e,t,s=0,n=null,r,i){this.index=e,this.ref=t,this.level=s,this.templateIndex=n,this.meta=r,this.registry=i,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=i||{getUniqueId:fn(),icus:new Map},this.id=this._registry.getUniqueId()}appendTag(e,t,s,n){if(t.isVoid&&n)return;const r=t.isVoid||!n?t.startName:t.closeName,i={type:e,index:s,ctx:this.id,isVoid:t.isVoid,closed:n};yn(this.placeholders,r,i)}get icus(){return this._registry.icus}get isRoot(){return 0===this.level}get isResolved(){return 0===this._unresolvedCtxCount}getSerializedPlaceholders(){const e=new Map;return this.placeholders.forEach(((t,s)=>e.set(s,t.map(Uc)))),e}appendBinding(e){this.bindings.add(e)}appendIcu(e,t){yn(this._registry.icus,e,t)}appendBoundText(e){xn(e,this.bindings.size,this.id).forEach(((e,t)=>yn(this.placeholders,t,...e)))}appendTemplate(e,t){this.appendTag(Oc.TEMPLATE,e,t,!1),this.appendTag(Oc.TEMPLATE,e,t,!0),this._unresolvedCtxCount++}appendElement(e,t,s){this.appendTag(Oc.ELEMENT,e,t,s)}appendProjection(e,t){this.appendTag(Oc.ELEMENT,e,t,!1),this.appendTag(Oc.ELEMENT,e,t,!0)}forkChildContext(e,t,s){return new $c(e,this.ref,this.level+1,t,s,this._registry)}reconcileChildContext(e){["start","close"].forEach((t=>{const s=e.meta[`${t}Name`],n=(this.placeholders.get(s)||[]).find(Vc(this.id,e.templateIndex));n&&(n.ctx=e.id)}));e.placeholders.forEach(((t,s)=>{const n=this.placeholders.get(s);if(!n)return void this.placeholders.set(s,t);const r=n.findIndex(Vc(e.id,e.templateIndex));if(r>=0){const e=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))n.splice(r+(e?0:1),0,...t);else{t[e?t.length-1:0].tmpl=n[r],n.splice(r,1,...t)}}else n.push(...t);this.placeholders.set(s,n)})),this._unresolvedCtxCount--}}function Fc(e,t,s,n){return gn(`${n?"/":""}${e}${t}`,s)}function qc(e,{index:t,ctx:s,isVoid:n},r){return n?Fc(e,t,s)+Fc(e,t,s,!0):Fc(e,t,s,r)}function Vc(e,t){return s=>"object"==typeof s&&s.type===Oc.TEMPLATE&&s.index===t&&s.ctx===e}function Uc(e){const t=(e,t)=>qc("#",e,t),s=(e,t)=>qc("*",e,t);switch(e.type){case Oc.ELEMENT:return e.closed?t(e,!0)+(e.tmpl?s(e.tmpl,!0):""):e.tmpl?s(e.tmpl)+t(e)+(e.isVoid?s(e.tmpl,!0):""):t(e);case Oc.TEMPLATE:return s(e,e.closed);default:return e}}const Hc=new class{visitText(e){return e.value}visitContainer(e){return e.children.map((e=>e.visit(this))).join("")}visitIcu(e){const t=Object.keys(e.cases).map((t=>`${t} {${e.cases[t].visit(this)}}`));return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map((e=>e.visit(this))).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}formatPh(e){return`{${Sn(e,!1)}}`}};function jc(e){return e.visit(Hc)}const Wc={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 zc{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,s){const n=this._hashTag(e,t,s);if(this._signatureToName[n])return this._signatureToName[n];const r=e.toUpperCase(),i=Wc[r]||`TAG_${r}`,a=this._generateUniqueName(s?i:`START_${i}`);return this._signatureToName[n]=a,a}getCloseTagPlaceholderName(e){const t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];const s=e.toUpperCase(),n=Wc[s]||`TAG_${s}`,r=this._generateUniqueName(`CLOSE_${n}`);return this._signatureToName[t]=r,r}getPlaceholderName(e,t){const s=e.toUpperCase(),n=`PH: ${s}=${t}`;if(this._signatureToName[n])return this._signatureToName[n];const r=this._generateUniqueName(s);return this._signatureToName[n]=r,r}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}_hashTag(e,t,s){return`<${e}`+Object.keys(t).sort().map((e=>` ${e}=${t[e]}`)).join("")+(s?"/>":`></${e}>`)}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;const t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,`${e}_${t}`}}const Kc=new jo(new Lo);function Gc(e){const t=new Qc(Kc,e);return(e,s,n,r,i)=>t.toI18nMessage(e,s,n,r,i)}function Yc(e,t){return t}class Qc{constructor(e,t){this._expressionParser=e,this._interpolationConfig=t}toI18nMessage(e,t="",s="",n="",r){const i={isIcu:1==e.length&&e[0]instanceof Qo,icuDepth:0,placeholderRegistry:new zc,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:r||Yc},a=rl(this,e,i);return new As(a,i.placeholderToContent,i.placeholderToMessage,t,s,n)}visitElement(e,t){const s=rl(this,e.children,t),n={};e.attrs.forEach((e=>{n[e.name]=e.value}));const r=dl(e.name).isVoid,i=t.placeholderRegistry.getStartTagPlaceholderName(e.name,n,r);t.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";r||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:`</${e.name}>`,sourceSpan:e.endSourceSpan??e.sourceSpan});const o=new Bs(e.name,n,i,a,s,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,o)}visitAttribute(e,t){const s=void 0===e.valueTokens||1===e.valueTokens.length?new Ls(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitText(e,t){const s=1===e.tokens.length?new Ls(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;const s={},n=new Rs(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach((e=>{s[e.value]=new Ms(e.expression.map((e=>e.visit(this,t))),e.expSourceSpan)})),t.icuDepth--,t.isIcu||t.icuDepth>0){const s=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return n.expressionPlaceholder=s,t.placeholderToContent[s]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,n)}const r=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[r]=this.toI18nMessage([e],"","","",void 0);const i=new Os(n,r,e.sourceSpan);return t.visitNodeFn(e,i)}visitExpansionCase(e,t){throw new Error("Unreachable code")}visitBlockGroup(e,t){const s=rl(this,e.blocks,t),n=new Ms(s,e.sourceSpan);return t.visitNodeFn(e,n)}visitBlock(e,t){const s=rl(this,e.children,t),n=new Ms(s,e.sourceSpan);return t.visitNodeFn(e,n)}visitBlockParameter(e,t){}_visitTextWithInterpolation(e,t,s,n){const r=[];let i=!1;for(const t of e)switch(t.type){case 8:case 17:i=!0;const e=t.parts[1],n=e.split(Xc)[2]||"INTERPOLATION",a=s.placeholderRegistry.getPlaceholderName(n,e);s.placeholderToContent[a]={text:t.parts.join(""),sourceSpan:t.sourceSpan},r.push(new Ds(e,a,t.sourceSpan));break;default:if(t.parts[0].length>0){const e=r[r.length-1];e instanceof Ls?(e.value+=t.parts[0],e.sourceSpan=new Ar(e.sourceSpan.start,t.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)):r.push(new Ls(t.parts[0],t.sourceSpan))}}return i?(function(e,t){t instanceof As&&(!function(e){const t=e.nodes;if(1!==t.length||!(t[0]instanceof Ms))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(t),t=t.nodes[0]);if(t instanceof Ms){!function(e,t){if(e.length!==t.length)throw new Error("The number of i18n message children changed between first and second pass.");if(e.some(((e,s)=>t[s].constructor!==e.constructor)))throw new Error("The types of the i18n message children changed between first and second pass.")}(t.children,e);for(let s=0;s<e.length;s++)e[s].sourceSpan=t.children[s].sourceSpan}}(r,n),new Ms(r,t)):r[0]}}const Xc=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;class Jc extends Mr{constructor(e,t){super(e,t)}}const Zc=(e,t)=>(e instanceof Go&&(t instanceof Os&&e.i18n instanceof As&&(t.previousMessage=e.i18n),e.i18n=t),t);class eu{constructor(e=Kn,t=!1,s=!1){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=s,this.hasI18nMeta=!1,this._errors=[]}_generateI18nMessage(e,t="",s){const{meaning:n,description:r,customId:i}=this._parseMetadata(t),a=Gc(this.interpolationConfig)(e,n,r,i,s);return this._setMessageId(a,t),this._setLegacyIds(a,t),a}visitAllWithErrors(e){const t=e.map((e=>e.visit(this,null)));return new Dl(t,this._errors)}visitElement(e){let t;if(function(e){return e.attrs.some((e=>un(e.name)))}(e)){this.hasI18nMeta=!0;const s=[],n={};for(const r of e.attrs)if(r.name===on){const s=e.i18n||r.value;t=this._generateI18nMessage(e.children,s,Zc),0===t.nodes.length&&(t=void 0),e.i18n=t}else if(r.name.startsWith(ln)){const t=r.name.slice(ln.length);Zl(e.name,t)?this._reportError(r,`Translating attribute '${t}' is disallowed for security reasons.`):n[t]=r.value}else s.push(r);if(Object.keys(n).length)for(const e of s){const t=n[e.name];void 0!==t&&e.value&&(e.i18n=this._generateI18nMessage([e],e.i18n||t))}this.keepI18nAttrs||(e.attrs=s)}return rl(this,e.children,t),e}visitExpansion(e,t){let s;const n=e.i18n;if(this.hasI18nMeta=!0,n instanceof Os){const r=n.name;s=this._generateI18nMessage([e],n);mn(s).name=r,null!==t&&(t.placeholderToMessage[r]=s)}else s=this._generateI18nMessage([e],t||n);return e.i18n=s,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlockGroup(e,t){return rl(this,e.blocks,t),e}visitBlock(e,t){return rl(this,e.children,t),e}visitBlockParameter(e,t){return e}_parseMetadata(e){return"string"==typeof e?function(e=""){let t,s,n;if(e=e.trim(),e){const r=e.indexOf(su),i=e.indexOf(tu);let a;[a,t]=r>-1?[e.slice(0,r),e.slice(r+2)]:[e,""],[s,n]=i>-1?[a.slice(0,i),a.slice(i+1)]:["",a]}return{customId:t,meaning:s,description:n}}(e):e instanceof As?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof As&&t.id||S(e))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[w(e),E(e)];else if("string"!=typeof t){const s=t instanceof As?t:t instanceof Os?t.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}const tu="|",su="@@";const nu="goog.getMsg";function ru(e,t,s,n){const r=function(e){return e.nodes.map((e=>e.visit(iu,null))).join("")}(t),i=[pt(r)];Object.keys(n).length&&(i.push(Xl(wn(n,!0),!0)),i.push(Xl({original_code:at(Object.keys(n).map((e=>({key:Sn(e),quoted:!0,value:t.placeholders[e]?pt(t.placeholders[e].sourceSpan.toString()):pt(t.placeholderToMessage[e].nodes.map((e=>e.sourceSpan.toString())).join(""))}))))})));const a=s.set(tt(nu).callFn(i)).toConstDecl();a.addLeadingComment(function(e){const t=[];return e.description?t.push({tagName:"desc",text:e.description}):t.push({tagName:"suppress",text:"{msgDescriptions}"}),e.meaning&&t.push({tagName:"meaning",text:e.meaning}),et(t)}(t));return[a,new Qe(e.set(s))]}const iu=new class{formatPh(e){return`{$${Sn(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map((e=>e.visit(this))).join("")}visitIcu(e){return jc(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map((e=>e.visit(this))).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}};function au(e,t,s){const{messageParts:n,placeHolders:r}=function(e){const t=[],s=new ou(e.placeholderToMessage,t);return e.nodes.forEach((e=>e.visit(s))),function(e){const t=[],s=[];e[0]instanceof we&&t.push(lu(e[0].sourceSpan.start));for(let n=0;n<e.length;n++){const r=e[n];r instanceof xe?t.push(r):(s.push(r),e[n-1]instanceof we&&t.push(lu(e[n-1].sourceSpan.end)))}e[e.length-1]instanceof we&&t.push(lu(e[e.length-1].sourceSpan.end));return{messageParts:t,placeHolders:s}}(t)}(t),i=function(e){const t=e.nodes[0],s=e.nodes[e.nodes.length-1];return new Ar(t.sourceSpan.fullStart,s.sourceSpan.end,t.sourceSpan.fullStart,t.sourceSpan.details)}(t),a=r.map((e=>s[e.text])),o=ht(t,n,r,a,i),l=e.set(o);return[new Qe(l)]}class ou{constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof xe)this.pieces[this.pieces.length-1].text+=e.value;else{const t=new Ar(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new xe(e.value,t))}}visitContainer(e){e.children.forEach((e=>e.visit(this)))}visitIcu(e){this.pieces.push(new xe(jc(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach((e=>e.visit(this))),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,t,s){return new we(Sn(e,!1),t,s)}}function lu(e){return new xe("",new Ar(e,e))}const cu=new Set(["$event"]),uu=new Map([["window",_t.resolveWindow],["document",_t.resolveDocument],["body",_t.resolveBody]]),pu=[" ","\n","\r","\t"];function hu(e,t){return ct(tt(Tn).bitwiseAnd(pt(e),null,!1),t)}function du(e,t=null,s=null){const{type:n,name:r,target:i,phase:a,handler:o}=e;if(i&&!uu.has(i))throw new Error(`Unexpected global target '${i}' defined for '${r}' event.\n        Supported list of global targets: ${Array.from(uu.keys())}.`);const l="$event",c=new Set,u=null===s||0===s.bindingLevel?tt(In):s.getOrCreateSharedContextVar(0),p=Vi(s,u,o,"b",e.handlerSpan,c,cu),h=[],d=s?.variableDeclarations(),m=s?.restoreViewStatement();if(d&&h.push(...d),h.push(...p),m){h.unshift(m);const e=h[h.length-1];e instanceof Xe?h[h.length-1]=new Xe(An(e.value.sourceSpan,_t.resetView,[e.value])):h.push(new Qe(An(null,_t.resetView,[])))}const g=1===n?function(e,t){return`${Ht}${e}.${t}`}(r,a):r,f=t&&Or(t),v=[];c.has(l)&&v.push(new Le(l,K));const y=lt(v,h,G,null,f),x=[pt(g),y];return i&&x.push(pt(!1),st(uu.get(i))),x}class mu{constructor(e,t,s=0,n,r,i,a,o,l,c,u,p=function(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}()){this.constantPool=e,this.level=s,this.contextName=n,this.i18nContext=r,this.templateIndex=i,this.templateName=a,this._namespace=o,this.i18nUseExternalIds=c,this.deferBlocks=u,this._constants=p,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=Mn,this.visitVariable=Mn,this.visitTextAttribute=Mn,this.visitBoundAttribute=Mn,this.visitBoundEvent=Mn,this._bindingScope=t.nestedScope(s),this.fileBasedI18nSuffix=l.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new gu(e,(()=>this.allocateDataSlot()),(e=>this.allocatePureFunctionSlots(e)),((e,t,s,n)=>{this._bindingScope.set(this.level,t,n),this.creationInstruction(null,_t.pipe,[pt(s),pt(e)])}))}buildTemplateFunction(e,t,s=0,n){this._ngContentSelectorsOffset=s,this._namespace!==_t.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach((e=>this.registerContextVariables(e)));const r=this.i18nContext||pn(n)&&!hn(n)&&!(1===(i=e).length&&i[0]instanceof hs&&e[0].i18n===n);var i;const a=Nu(e);if(r&&this.i18nStart(null,n,a),Ns(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach((e=>e())),0===this.level&&this._ngContentReservedSlots.length){const e=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){const t=this._ngContentReservedSlots.map((e=>"*"!==e?g(e):e));e.push(this.constantPool.getConstLiteral(Rn(t),!0))}this.creationInstruction(null,_t.projectionDef,e,!0)}r&&this.i18nEnd(null,a);const o=qn(this._creationCodeFns),l=qn(this._updateCodeFns),c=this._bindingScope.viewSnapshotStatements(),u=this._bindingScope.variableDeclarations().concat(this._tempVariables),p=o.length>0?[hu(1,c.concat(o))]:[],h=l.length>0?[hu(2,u.concat(l))]:[];return lt([new Le(Tn,X),new Le(In,null)],[...this._prefixCode,...p,...h],G,null,this.templateName)}getLocal(e){return this._bindingScope.get(e)}notifyImplicitReceiverUse(){this._bindingScope.notifyImplicitReceiverUse()}maybeRestoreView(){this._bindingScope.maybeRestoreView()}i18nTranslate(e,t={},s,n){const r=s||this.i18nGenerateMainBlockVar(),i=function(e,t,s,n={},r){const i=[_n(t),ct(Mu(),ru(t,e,s,n),au(t,e,wn(n,!1)))];r&&i.push(new Qe(t.set(r(t))));return i}(e,r,this.i18nGenerateClosureVar(e.id),t,n);return this._constants.prepareStatements.push(...i),r}registerContextVariables(e){const t=this._bindingScope.freshReferenceName(),s=this.level,n=tt(e.name+t);this._bindingScope.set(s,e.name,n,1,((t,r)=>{let i;if(t.bindingLevel===s)t.isListenerScope()&&t.hasRestoreViewVariable()?(i=tt(kn),t.notifyRestoredViewContextUse()):i=tt(In);else{const e=t.getSharedContextName(s);i=e||yu(r)}return[n.set(i.prop(e.value||"$implicit")).toConstDecl()]}))}i18nAppendBindings(e){e.length>0&&e.forEach((e=>this.i18n.appendBinding(e)))}i18nBindProps(e){const t={};return Object.keys(e).forEach((s=>{const n=e[s];if(n instanceof os)t[s]=pt(n.value);else{const e=n.value.visit(this._valueConverter);if(this.allocateBindingSlots(e),e instanceof Ei){const{strings:n,expressions:r}=e,{id:i,bindings:a}=this.i18n,o=function(e,t=0,s=0){if(!e.length)return"";let n="";const r=e.length-1;for(let i=0;i<r;i++)n+=`${e[i]}${gn(t+i,s)}`;return n+=e[r],n}(n,a.size,i);this.i18nAppendBindings(r),t[s]=pt(o)}}})),t}i18nGenerateMainBlockVar(){return tt(this.constantPool.uniqueName("i18n_"))}i18nGenerateClosureVar(e){let t;const s=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){const n=En("EXTERNAL_"),r=this.constantPool.uniqueName(s);t=`${n}${Or(e)}$$${r}`}else{const e=En(s);t=this.constantPool.uniqueName(e)}return tt(t)}i18nUpdateRef(e){const{icus:t,meta:s,isRoot:n,isResolved:r,isEmitted:i}=e;if(n&&r&&!i&&!hn(s)){e.isEmitted=!0;const n=e.getSerializedPlaceholders();let r={},i=n.size?vn(n):{};t.size&&t.forEach(((e,t)=>{if(1===e.length)i[t]=e[0];else{const s=gn(`I18N_EXP_${t}`);i[t]=pt(s),r[t]=it(e)}}));let a;(Array.from(n.values()).some((e=>e.length>1))||Object.keys(r).length)&&(a=e=>{const t=[e];return Object.keys(r).length&&t.push(Xl(r,!0)),An(null,_t.i18nPostprocess,t)}),this.i18nTranslate(s,i,e.ref,a)}}i18nStart(e=null,t,s){const n=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(n,this.templateIndex,t):new $c(n,this.i18nGenerateMainBlockVar(),0,this.templateIndex,t);const{id:r,ref:i}=this.i18n,a=[pt(n),this.addToConsts(i)];r>0&&a.push(pt(r)),this.creationInstruction(e,s?_t.i18n:_t.i18nStart,a)}i18nEnd(e=null,t){if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);const{index:s,bindings:n}=this.i18n;if(n.size){for(const t of n)this.updateInstructionWithAdvance(this.getConstCount()-1,e,_t.i18nExp,(()=>this.convertPropertyBinding(t)));this.updateInstruction(e,_t.i18nApply,[pt(s)])}t||this.creationInstruction(e,_t.i18nEnd),this.i18n=null}i18nAttributesInstruction(e,t,s){let n=!1;const r=[];if(t.forEach((t=>{const i=t.i18n,a=t.value.visit(this._valueConverter);if(this.allocateBindingSlots(a),a instanceof Ei){const o=vn(xn(i));r.push(pt(t.name),this.i18nTranslate(i,o)),a.expressions.forEach((t=>{n=!0,this.updateInstructionWithAdvance(e,s,_t.i18nExp,(()=>this.convertPropertyBinding(t)))}))}})),r.length>0){const e=pt(this.allocateDataSlot()),t=this.addToConsts(it(r));this.creationInstruction(s,_t.i18nAttributes,[e,t]),n&&this.updateInstruction(s,_t.i18nApply,[e])}}getNamespaceInstruction(e){switch(e){case"math":return _t.namespaceMathML;case"svg":return _t.namespaceSVG;default:return _t.namespaceHTML}}addNamespaceInstruction(e,t){this._namespace=e,this.creationInstruction(t.startSourceSpan,e)}interpolatedUpdateInstruction(e,t,s,n,r,i){this.updateInstructionWithAdvance(t,n.sourceSpan,e,(()=>[pt(s),...this.getUpdateInstructionArguments(r),...i]))}visitContent(e){const t=this.allocateDataSlot(),s=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,n=[pt(t)];this._ngContentReservedSlots.push(e.selector);const r=e.attributes.filter((e=>"select"!==e.name.toLowerCase())),i=this.getAttributeExpressions(e.name,r,[],[]);i.length>0?n.push(pt(s),it(i)):0!==s&&n.push(pt(s)),this.creationInstruction(e.sourceSpan,_t.projection,n),this.i18n&&this.i18n.appendProjection(e.i18n,t)}visitElement(e){const t=this.allocateDataSlot(),s=new Co(null);let n=!1;const r=pn(e.i18n)&&!hn(e.i18n),i=[],[a,o]=to(e.name),l=so(e.name);for(const t of e.attributes){const{name:e,value:r}=t;"ngNonBindable"===e?n=!0:"style"===e?s.registerStyleAttr(r):"class"===e?s.registerClassAttr(r):i.push(t)}const c=[pt(t)];l||c.push(pt(o));const u=[],p=[];e.inputs.forEach((e=>{s.registerBoundInput(e)||(0===e.type&&e.i18n?p.push(e):u.push(e))}));const h=this.getAttributeExpressions(e.name,i,u,e.outputs,s,[],p);c.push(this.addAttrsToConsts(h));const d=this.prepareRefsArray(e.references);c.push(this.addToConsts(d));const m=this._namespace,g=this.getNamespaceInstruction(a);g!==m&&this.addNamespaceInstruction(g,e),this.i18n&&this.i18n.appendElement(e.i18n,t);const f=!r&&this.i18n?!Nu(e.children):e.children.length>0,v=!s.hasBindingsWithPipes&&0===e.outputs.length&&0===p.length&&!f,y=!v&&Nu(e.children);if(v)this.creationInstruction(e.sourceSpan,l?_t.elementContainer:_t.element,Dn(c));else{if(this.creationInstruction(e.startSourceSpan,l?_t.elementContainerStart:_t.elementStart,Dn(c)),n&&this.creationInstruction(e.startSourceSpan,_t.disableBindings),p.length>0&&this.i18nAttributesInstruction(t,p,e.startSourceSpan??e.sourceSpan),e.outputs.length>0)for(const s of e.outputs)this.creationInstruction(s.sourceSpan,_t.listener,this.prepareListenerParameter(e.name,s,t));r&&this.i18nStart(e.startSourceSpan,e.i18n,y)}const x=s.buildUpdateLevelInstructions(this._valueConverter),w=x.length-1;for(let e=0;e<=w;e++){const s=x[e];this._bindingSlots+=this.processStylingUpdateInstruction(t,s)}const S=pt(void 0),E=[],_=[];u.forEach((s=>{const n=s.type;if(4===n){const e=s.value.visit(this._valueConverter),t=!(e instanceof xi)||!!e.value;this.allocateBindingSlots(e),E.push({span:s.sourceSpan,paramsOrFn:Au((()=>t?this.convertPropertyBinding(e):S),jt(s.name))})}else{if(s.i18n)return;const r=s.value.visit(this._valueConverter);if(void 0!==r){const i=[],[a,o]=to(s.name),l=1===n;let c=Tu(s.securityContext,l);if(c||"iframe"===e.name.toLowerCase()&&aa(s.name)&&(c=st(_t.validateIframeAttribute)),c&&i.push(c),a){const e=pt(a);c?i.push(e):i.push(pt(null),e)}if(this.allocateBindingSlots(r),0===n)r instanceof Ei?this.interpolatedUpdateInstruction(_u(r),t,o,s,r,i):E.push({span:s.sourceSpan,paramsOrFn:Au((()=>this.convertPropertyBinding(r)),o,i)});else if(1===n)if(r instanceof Ei&&Fn(r)>1)this.interpolatedUpdateInstruction(function(e){switch(Fn(e)){case 3:return _t.attributeInterpolate1;case 5:return _t.attributeInterpolate2;case 7:return _t.attributeInterpolate3;case 9:return _t.attributeInterpolate4;case 11:return _t.attributeInterpolate5;case 13:return _t.attributeInterpolate6;case 15:return _t.attributeInterpolate7;case 17:return _t.attributeInterpolate8;default:return _t.attributeInterpolateV}}(r),t,o,s,r,i);else{const e=r instanceof Ei?r.expressions[0]:r;_.push({span:s.sourceSpan,paramsOrFn:Au((()=>this.convertPropertyBinding(e)),o,i)})}else this.updateInstructionWithAdvance(t,s.sourceSpan,_t.classProp,(()=>[pt(t),pt(o),this.convertPropertyBinding(r),...i]))}}}));for(const e of E)this.updateInstructionWithAdvance(t,e.span,_t.property,e.paramsOrFn);for(const e of _)this.updateInstructionWithAdvance(t,e.span,_t.attribute,e.paramsOrFn);if(Ns(this,e.children),!r&&this.i18n&&this.i18n.appendElement(e.i18n,t,!0),!v){const t=e.endSourceSpan??e.sourceSpan;r&&this.i18nEnd(t,y),n&&this.creationInstruction(t,_t.enableBindings),this.creationInstruction(t,l?_t.elementContainerEnd:_t.elementEnd)}}visitTemplate(e){const t="ng-template",s=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,s);const n=e.tagName?to(e.tagName)[1]:e.tagName,r=`${this.contextName}${e.tagName?"_"+Or(e.tagName):""}_${s}`,i=`${r}_Template`,a=[pt(s),tt(i),pt(n)],o=this.getAttributeExpressions(t,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(a.push(this.addAttrsToConsts(o)),e.references&&e.references.length){const t=this.prepareRefsArray(e.references);a.push(this.addToConsts(t)),a.push(st(_t.templateRefExtractor))}const l=new mu(this.constantPool,this._bindingScope,this.level+1,r,this.i18n,s,i,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this.deferBlocks,this._constants);if(this._nestedTemplateFns.push((()=>{const t=l.buildTemplateFunction(e.children,e.variables,this._ngContentReservedSlots.length+this._ngContentSelectorsOffset,e.i18n);this.constantPool.statements.push(t.toDeclStmt(i)),l._ngContentReservedSlots.length&&this._ngContentReservedSlots.push(...l._ngContentReservedSlots)})),this.creationInstruction(e.sourceSpan,_t.templateCreate,(()=>(a.splice(2,0,pt(l.getConstCount()),pt(l.getVarCount())),Dn(a)))),this.templatePropertyBindings(s,e.templateAttrs),n===t){const[t,n]=function(e,t){const s=[],n=[];for(const r of e)(t(r)?s:n).push(r);return[s,n]}(e.inputs,dn);t.length>0&&this.i18nAttributesInstruction(s,t,e.startSourceSpan??e.sourceSpan),n.length>0&&this.templatePropertyBindings(s,n);for(const t of e.outputs)this.creationInstruction(t.sourceSpan,_t.listener,this.prepareListenerParameter("ng_template",t,s))}}visitBoundText(e){if(this.i18n){const t=e.value.visit(this._valueConverter);return this.allocateBindingSlots(t),void(t instanceof Ei&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(t.expressions)))}const t=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,_t.text,[pt(t)]);const s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof Ei?this.updateInstructionWithAdvance(t,e.sourceSpan,function(e){switch(Fn(e)){case 1:return _t.textInterpolate;case 3:return _t.textInterpolate1;case 5:return _t.textInterpolate2;case 7:return _t.textInterpolate3;case 9:return _t.textInterpolate4;case 11:return _t.textInterpolate5;case 13:return _t.textInterpolate6;case 15:return _t.textInterpolate7;case 17:return _t.textInterpolate8;default:return _t.textInterpolateV}}(s),(()=>this.getUpdateInstructionArguments(s))):It("Text nodes should be interpolated and never bound directly.")}visitText(e){this.i18n||this.creationInstruction(e.sourceSpan,_t.text,[pt(this.allocateDataSlot()),pt(e.value)])}visitIcu(e){let t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));const s=this.i18n,n=this.i18nBindProps(e.vars),r=this.i18nBindProps(e.placeholders),i=e.i18n,a=e=>{const t=wn({...n,...r},!1);return An(null,_t.i18nPostprocess,[e,Xl(t,!0)])};if(hn(s.meta))this.i18nTranslate(i,{},s.ref,a);else{const e=this.i18nTranslate(i,{},void 0,a);s.appendIcu(mn(i).name,e)}return t&&this.i18nEnd(null,!0),null}visitDeferredBlock(e){const t=this.allocateDataSlot(),s=this.deferBlocks.get(e),n=`${`${this.contextName}_Defer_${t}`}_DepsFn`,r=[pt(t),s?tt(n):He];if(s){const e=[];for(const t of s)if(t.isDeferrable){const s=lt([new Le("m",K)],[new Xe(tt("m").prop(t.symbolName))]),n=t.importPath,r=new Ne(n).prop("then").callFn([s]);e.push(r)}else e.push(t.type);const t=[];t.push(new Xe(it(e)));const r=lt([],t,G,null,n);this.constantPool.statements.push(r.toDeclStmt(n))}this.creationInstruction(e.sourceSpan,_t.defer,(()=>Dn(r)))}visitDeferredTrigger(e){}visitDeferredBlockPlaceholder(e){}visitDeferredBlockError(e){}visitDeferredBlockLoading(e){}allocateDataSlot(){return this._dataIndex++}getConstCount(){return this._dataIndex}getVarCount(){return this._pureFunctionSlots}getConsts(){return this._constants}getNgContentSelectors(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(Rn(this._ngContentReservedSlots),!0):null}bindingContext(){return""+this._bindingContext++}templatePropertyBindings(e,t){const s=[];for(const n of t){if(!(n instanceof us))continue;const t=n.value.visit(this._valueConverter);if(void 0!==t)if(this.allocateBindingSlots(t),t instanceof Ei){const s=[];this.interpolatedUpdateInstruction(_u(t),e,n.name,n,t,s)}else s.push({span:n.sourceSpan,paramsOrFn:Au((()=>this.convertPropertyBinding(t)),n.name)})}for(const t of s)this.updateInstructionWithAdvance(e,t.span,_t.property,t.paramsOrFn)}instructionFn(e,t,s,n,r=!1){e[r?"unshift":"push"]({span:t,reference:s,paramsOrFn:n})}processStylingUpdateInstruction(e,t){let s=0;if(t)for(const n of t.calls)s+=n.allocateBindingSlots,this.updateInstructionWithAdvance(e,n.sourceSpan,t.reference,(()=>n.params((e=>n.supportsInterpolation&&e instanceof Ei?this.getUpdateInstructionArguments(e):this.convertPropertyBinding(e)))));return s}creationInstruction(e,t,s,n){this.instructionFn(this._creationCodeFns,e,t,s||[],n)}updateInstructionWithAdvance(e,t,s,n){this.addAdvanceInstructionIfNecessary(e,t),this.updateInstruction(t,s,n)}updateInstruction(e,t,s){this.instructionFn(this._updateCodeFns,e,t,s||[])}addAdvanceInstructionIfNecessary(e,t){if(e!==this._currentIndex){const s=e-this._currentIndex;if(s<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,t,_t.advance,[pt(s)]),this._currentIndex=e}}allocatePureFunctionSlots(e){const t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t}allocateBindingSlots(e){this._bindingSlots+=e instanceof Ei?e.expressions.length:1}getImplicitReceiverExpr(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?tt(In):this._bindingScope.getOrCreateSharedContextVar(0)}convertPropertyBinding(e){const t=Hi(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),s=t.currValExpr;return this._tempVariables.push(...t.stmts),s}getUpdateInstructionArguments(e){const{args:t,stmts:s}=function(e,t,s,n){const r=new Qi(e,t,n,!0),i=r.visitInterpolation(s,Qr.Expression);return r.usesImplicitReceiver&&e.notifyImplicitReceiverUse(),{stmts:ji(r,n),args:i.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext());return this._tempVariables.push(...s),t}getAttributeExpressions(e,t,s,n,r,i=[],a=[]){const o=new Set,l=[];let c;for(const s of t)if("ngProjectAs"===s.name&&(c=s),s.i18n){const{i18nVarRefsCache:e}=this._constants;let t;e.has(s.i18n)?t=e.get(s.i18n):(t=this.i18nTranslate(s.i18n),e.set(s.i18n,t)),l.push(pt(s.name),t)}else l.push(...wu(s.name),ku(e,s));function u(e,t){"string"==typeof e?o.has(e)||(l.push(...wu(e)),void 0!==t&&l.push(t),o.add(e)):l.push(pt(e))}if(c&&l.push(...function(e){const t=g(e.value)[0];return[pt(5),Rn(t)]}(c)),r&&r.populateInitialStylingAttrs(l),s.length||n.length){const e=l.length;for(let e=0;e<s.length;e++){const t=s[e];4!==t.type&&1!==t.type&&u(t.name)}for(let e=0;e<n.length;e++){const t=n[e];1!==t.type&&u(t.name)}l.length!==e&&l.splice(e,0,pt(3))}return i.length&&(l.push(pt(4)),i.forEach((e=>u(e.name)))),a.length&&(l.push(pt(6)),a.forEach((e=>u(e.name)))),l}addToConsts(e){if(dt(e))return He;const t=this._constants.constExpressions;for(let s=0;s<t.length;s++)if(t[s].isEquivalent(e))return pt(s);return pt(t.push(e)-1)}addAttrsToConsts(e){return e.length>0?this.addToConsts(it(e)):He}prepareRefsArray(e){if(!e||0===e.length)return He;return Rn(e.flatMap((e=>{const t=this.allocateDataSlot(),s=this._bindingScope.freshReferenceName(),n=this.level,r=tt(s);return this._bindingScope.set(n,e.name,r,0,((e,s)=>{const n=s>0?[yu(s).toStmt()]:[],i=r.set(st(_t.reference).callFn([pt(t)]));return n.concat(i.toConstDecl())}),!0),[e.name,e.value]})))}prepareListenerParameter(e,t,s){return()=>{const n=t.name,r=1===t.type?zt(n,t.phase):Or(n),i=`${this.templateName}_${e}_${r}_${s}_listener`,a=this._bindingScope.nestedScope(this._bindingScope.bindingLevel,cu);return du(t,i,a)}}}class gu extends Bi{constructor(e,t,s,n){super(),this.constantPool=e,this.allocateSlot=t,this.allocatePureFunctionSlots=s,this.definePipe=n,this._pipeBindExprs=[]}visitPipe(e,t){const s=this.allocateSlot(),n=`PIPE:${s}`,r=this.allocatePureFunctionSlots(2+e.args.length),i=new hi(e.span,e.sourceSpan,e.nameSpan,new li(e.span,e.sourceSpan),n),{identifier:a,isVarLength:o}=function(e){const t=fu[e.length];return{identifier:t||_t.pipeBindV,isVarLength:!t}}(e.args);this.definePipe(e.name,n,s,st(a));const l=[e.exp,...e.args],c=o?this.visitAll([new wi(e.span,e.sourceSpan,l)]):this.visitAll(l),u=new Ti(e.span,e.sourceSpan,i,[new xi(e.span,e.sourceSpan,s),new xi(e.span,e.sourceSpan,r),...c],null);return this._pipeBindExprs.push(u),u}updatePipeSlotOffsets(e){this._pipeBindExprs.forEach((t=>{t.args[1].value+=e}))}visitLiteralArray(e,t){return new ta(e.span,e.sourceSpan,this.visitAll(e.expressions),(e=>{const t=it(e);return xu(this.constantPool,t,this.allocatePureFunctionSlots)}))}visitLiteralMap(e,t){return new ta(e.span,e.sourceSpan,this.visitAll(e.values),(t=>{const s=at(t.map(((t,s)=>({key:e.keys[s].key,value:t,quoted:e.keys[s].quoted}))));return xu(this.constantPool,s,this.allocatePureFunctionSlots)}))}}const fu=[_t.pipeBind1,_t.pipeBind2,_t.pipeBind3,_t.pipeBind4];const vu=[_t.pureFunction0,_t.pureFunction1,_t.pureFunction2,_t.pureFunction3,_t.pureFunction4,_t.pureFunction5,_t.pureFunction6,_t.pureFunction7,_t.pureFunction8];function yu(e){return st(_t.nextContext).callFn(e>1?[pt(e)]:[])}function xu(e,t,s){const{literalFactory:n,literalFactoryArguments:r}=e.getLiteralFactory(t),i=s(1+r.length),{identifier:a,isVarLength:o}=function(e){const t=vu[e.length];return{identifier:t||_t.pureFunctionV,isVarLength:!t}}(r),l=[pt(i),n];return o?l.push(it(r)):l.push(...r),st(a).callFn(l)}function wu(e){const[t,s]=to(e),n=pt(s);return t?[pt(0),pt(t),n]:[n]}const Su="$$shared_ctx$$";class Eu{static createRootScope(){return new Eu}constructor(e=0,t=null,s){if(this.bindingLevel=e,this.parent=t,this.globals=s,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,this.usesRestoredViewContext=!1,void 0!==s)for(const e of s)this.set(0,e,tt(e))}get(e){let t=this;for(;t;){let s=t.map.get(e);if(null!=s)return t!==this&&(s={retrievalLevel:s.retrievalLevel,lhs:s.lhs,declareLocalCallback:s.declareLocalCallback,declare:!1,priority:s.priority},this.map.set(e,s),this.maybeGenerateSharedContextVar(s),this.maybeRestoreView()),s.declareLocalCallback&&!s.declare&&(s.declare=!0),s.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}set(e,t,s,n=0,r,i){if(this.map.has(t)){if(i)return this;It(`The name ${t} is already defined in scope to be ${this.map.get(t)}`)}return this.map.set(t,{retrievalLevel:e,lhs:s,declare:!1,declareLocalCallback:r,priority:n}),this}getLocal(e){return this.get(e)}notifyImplicitReceiverUse(){0!==this.bindingLevel&&(this.map.get(Su+0).declare=!0)}nestedScope(e,t){const s=new Eu(e,this,t);return e>0&&s.generateSharedContextVar(0),s}getOrCreateSharedContextVar(e){const t=Su+e;return this.map.has(t)||this.generateSharedContextVar(e),this.map.get(t).lhs}getSharedContextName(e){const t=this.map.get(Su+e);return t&&t.declare?t.lhs:null}maybeGenerateSharedContextVar(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){const t=this.map.get(Su+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}generateSharedContextVar(e){const t=tt(In+this.freshReferenceName());this.map.set(Su+e,{retrievalLevel:e,lhs:t,declareLocalCallback:(e,s)=>[t.set(yu(s)).toConstDecl()],declare:!1,priority:2})}getComponentProperty(e){const t=this.map.get(Su+0);return t.declare=!0,this.maybeRestoreView(),t.lhs.prop(e)}maybeRestoreView(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=tt(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}restoreViewStatement(){if(this.restoreViewVariable){const e=An(null,_t.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?tt(kn).set(e).toConstDecl():e.toStmt()}return null}viewSnapshotStatements(){return this.restoreViewVariable?[this.restoreViewVariable.set(An(null,_t.getCurrentView,[])).toConstDecl()]:[]}isListenerScope(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}variableDeclarations(){let e=0;return Array.from(this.map.values()).filter((e=>e.declare)).sort(((e,t)=>t.retrievalLevel-e.retrievalLevel||t.priority-e.priority)).reduce(((t,s)=>{const n=this.bindingLevel-s.retrievalLevel,r=s.declareLocalCallback(this,n-e);return e=n,t.concat(r)}),[])}freshReferenceName(){let e=this;for(;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++}hasRestoreViewVariable(){return!!this.restoreViewVariable}notifyRestoredViewContextUse(){this.usesRestoredViewContext=!0}}function _u(e){switch(Fn(e)){case 1:return _t.propertyInterpolate;case 3:return _t.propertyInterpolate1;case 5:return _t.propertyInterpolate2;case 7:return _t.propertyInterpolate3;case 9:return _t.propertyInterpolate4;case 11:return _t.propertyInterpolate5;case 13:return _t.propertyInterpolate6;case 15:return _t.propertyInterpolate7;case 17:return _t.propertyInterpolate8;default:return _t.propertyInterpolateV}}function bu(e,t,s={}){const{interpolationConfig:n,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:i}=s,a=Iu(n),o=(new Vl).parse(e,t,{leadingTriviaChars:pu,...s,tokenizeExpansionForms:!0,tokenizeBlocks:null!=s.enabledBlockTypes&&s.enabledBlockTypes.size>0});if(!s.alwaysAttemptHtmlToR3AstConversion&&o.errors&&o.errors.length>0){const e={interpolationConfig:n,preserveWhitespaces:r,errors:o.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return s.collectCommentNodes&&(e.commentNodes=[]),e}let l=o.rootNodes;const c=new eu(n,!r,i),u=c.visitAllWithErrors(l);if(!s.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){const e={interpolationConfig:n,preserveWhitespaces:r,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return s.collectCommentNodes&&(e.commentNodes=[]),e}l=u.rootNodes,r||(l=rl(new Gl,l),c.hasI18nMeta&&(l=rl(new eu(n,!1),l)));const{nodes:p,errors:h,styleUrls:d,styles:m,ngContentSelectors:g,commentNodes:f}=function(e,t,s){const n=new Mc(t,s),r={nodes:rl(n,e),errors:t.errors.concat(n.errors),styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return s.collectCommentNodes&&(r.commentNodes=n.commentNodes),r}(l,a,{collectCommentNodes:!!s.collectCommentNodes,enabledBlockTypes:s.enabledBlockTypes||new Set});h.push(...o.errors,...u.errors);const v={interpolationConfig:n,preserveWhitespaces:r,errors:h.length>0?h:null,nodes:p,styleUrls:d,styles:m,ngContentSelectors:g};return s.collectCommentNodes&&(v.commentNodes=f),v}const Cu=new cl;function Iu(e=Kn){return new tc(new jo(new Lo),e,Cu,[])}function Tu(e,t){switch(e){case h.HTML:return st(_t.sanitizeHtml);case h.SCRIPT:return st(_t.sanitizeScript);case h.STYLE:return t?st(_t.sanitizeStyle):null;case h.URL:return st(_t.sanitizeUrl);case h.RESOURCE_URL:return st(_t.sanitizeResourceUrl);default:return null}}function ku(e,t){const s=Rn(t.value);if(!Zl(e,t.name))return s;switch(Cu.securityContext(e,t.name,!0)){case h.HTML:return ut(st(_t.trustConstantHtml),new ve([new ye(t.value)],[]),void 0,t.valueSpan);case h.RESOURCE_URL:return ut(st(_t.trustConstantResourceUrl),new ve([new ye(t.value)],[]),void 0,t.valueSpan);default:return s}}function Pu(e){return e instanceof os||e instanceof ls||e instanceof Ps}function Nu(e){return e.every(Pu)}function Au(e,t,s){return()=>{const n=e(),r=Array.isArray(n)?n:[n];return s&&r.push(...s),t&&r.unshift(pt(t)),r}}const Lu="ngI18nClosureMode";function Mu(){return rt(tt(Lu)).notIdentical(pt("undefined",J)).and(tt(Lu))}const Ru=/attr\.([^\]]+)/,Bu="%COMP%",Du=`_nghost-${Bu}`,Ou=`_ngcontent-${Bu}`;function $u(e,t,s){const n=new $n,r=g(e.selector);return n.set("type",e.type.value),r.length>0&&n.set("selectors",Rn(r)),e.queries.length>0&&n.set("contentQueries",function(e,t,s){const n=[],r=[],i=Ln(r,Cn);for(const s of e){n.push(st(_t.contentQuery).callFn([tt("dirIndex"),...Hu(s,t)]).toStmt());const e=i(),a=st(_t.loadQuery).callFn([]),o=st(_t.queryRefresh).callFn([e.set(a)]),l=tt(In).prop(s.propertyName).set(s.first?e.prop("first"):e);r.push(o.and(l).toStmt())}const a=s?`${s}_ContentQueries`:null;return lt([new Le(Tn,X),new Le(In,null),new Le("dirIndex",null)],[hu(1,n),hu(2,r)],G,null,a)}(e.queries,t,e.name)),e.viewQueries.length&&n.set("viewQuery",function(e,t,s){const n=[],r=[],i=Ln(r,Cn);e.forEach((e=>{const s=st(_t.viewQuery).callFn(Hu(e,t));n.push(s.toStmt());const a=i(),o=st(_t.loadQuery).callFn([]),l=st(_t.queryRefresh).callFn([a.set(o)]),c=tt(In).prop(e.propertyName).set(e.first?a.prop("first"):a);r.push(l.and(c).toStmt())}));const a=s?`${s}_Query`:null;return lt([new Le(Tn,X),new Le(In,null)],[hu(1,n),hu(2,r)],G,null,a)}(e.viewQueries,t,e.name)),n.set("hostBindings",function(e,t,s,n,r,i,a){const o=s.createBoundHostProperties(e.properties,t),l=s.createDirectiveHostEventAsts(e.listeners,t),c=tt(In),u=new Co(c),{styleAttr:p,classAttr:d}=e.specialAttributes;void 0!==p&&u.registerStyleAttr(p);void 0!==d&&u.registerClassAttr(d);const m=[],g=[],f=[],v=t;l&&l.length&&m.push(...function(e,t){const s=[],n=[],r=[];for(const r of e){let e=r.name&&Or(r.name);const i=1===r.type?zt(e,r.targetOrPhase):e,a=t&&e?`${t}_${i}_HostBindingHandler`:null,o=du(ps.fromParsedEvent(r),a);1==r.type?n.push(o):s.push(o)}for(const e of n)r.push({reference:_t.syntheticHostListener,paramsOrFn:e,span:null});for(const e of s)r.push({reference:_t.listener,paramsOrFn:e,span:null});return r}(l,i));const y=[];let x,w=0;o&&o.forEach((e=>{u.registerInputBasedOnName(e.name,e.expression,v)?w+=bo:(y.push(e),w++)}));const S=()=>{if(!x){x=new gu(n,(()=>It("Unexpected node")),(e=>{const t=w;return w+=e,t}),(()=>It("Unexpected pipe")))}return x},E=[],_=[],b=[];for(const e of y){const t=e.expression.visit(S()),n=Qu(c,t),{bindingName:i,instruction:a,isAttribute:o}=Ju(e),l=s.calcPossibleSecurityContexts(r,i,o).filter((e=>e!==h.NONE));let u=null;l.length&&(u=2===l.length&&l.indexOf(h.URL)>-1&&l.indexOf(h.RESOURCE_URL)>-1?st(_t.sanitizeUrlOrResourceUrl):Tu(l[0],o));const p=[pt(i),n.currValExpr];u?p.push(u):aa(i)&&p.push(st(_t.validateIframeAttribute)),f.push(...n.stmts),a===_t.hostProperty?E.push(p):a===_t.attribute?_.push(p):a===_t.syntheticHostProperty?b.push(p):g.push({reference:a,paramsOrFn:p,span:null})}for(const e of E)g.push({reference:_t.hostProperty,paramsOrFn:e,span:null});for(const e of _)g.push({reference:_t.attribute,paramsOrFn:e,span:null});for(const e of b)g.push({reference:_t.syntheticHostProperty,paramsOrFn:e,span:null});const C=function(e){const t=[];for(let s of Object.getOwnPropertyNames(e)){const n=e[s];t.push(pt(s),n)}return t}(e.attributes);u.assignHostAttrs(C,a),u.hasBindings&&u.buildUpdateLevelInstructions(S()).forEach((e=>{for(const t of e.calls)w+=Math.max(t.allocateBindingSlots-bo,0),g.push({reference:e.reference,paramsOrFn:Xu(t,c,Qu),span:null})}));w&&a.set("hostVars",pt(w));if(m.length>0||g.length>0){const e=i?`${i}_HostBindings`:null,t=[];return m.length>0&&t.push(hu(1,qn(m))),g.length>0&&t.push(hu(2,f.concat(qn(g)))),lt([new Le(Tn,X),new Le(In,null)],t,G,null,e)}return null}(e.host,e.typeSourceSpan,s,t,e.selector||"",e.name,n)),n.set("inputs",Bn(e.inputs,!0)),n.set("outputs",Bn(e.outputs)),null!==e.exportAs&&n.set("exportAs",it(e.exportAs.map((e=>pt(e))))),e.isStandalone&&n.set("standalone",pt(!0)),e.isSignal&&n.set("signals",pt(!0)),n}function Fu(e,t){const s=[],n=t.providers,r=t.viewProviders,i=Object.keys(t.inputs);if(n||r){const e=[n||new $e([])];r&&e.push(r),s.push(st(_t.ProvidersFeature).callFn(e))}for(const e of i)if(null!==t.inputs[e].transformFunction){s.push(st(_t.InputTransformsFeatureFeature));break}t.usesInheritance&&s.push(st(_t.InheritDefinitionFeature)),t.fullInheritance&&s.push(st(_t.CopyDefinitionFeature)),t.lifecycle.usesOnChanges&&s.push(st(_t.NgOnChangesFeature)),t.hasOwnProperty("template")&&t.isStandalone&&s.push(st(_t.StandaloneFeature)),t.hostDirectives?.length&&s.push(st(_t.HostDirectivesFeature).callFn([np(t.hostDirectives)])),s.length&&e.set("features",it(s))}function qu(e,t,s){const n=$u(e,t,s);Fu(n,e);return{expression:st(_t.defineDirective).callFn([n.toLiteralMap()],void 0,!0),type:Yu(e),statements:[]}}function Vu(e,t,n){const r=$u(e,t,n);Fu(r,e);const i=e.selector&&s.parse(e.selector),a=i&&i[0];if(a){const e=a.getAttrs();e.length&&r.set("attrs",t.getConstLiteral(it(e.map((e=>pt(null!=e?e:void 0)))),!0))}const c=e.name,u=c?`${c}_Template`:null,p=e.changeDetection;{const s=e.template,n=new mu(t,Eu.createRootScope(),0,c,null,null,u,_t.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds,e.deferBlocks),i=n.buildTemplateFunction(s.nodes,[]),a=n.getNgContentSelectors();a&&r.set("ngContentSelectors",a),r.set("decls",pt(n.getConstCount())),r.set("vars",pt(n.getVarCount()));const{constExpressions:o,prepareStatements:l}=n.getConsts();if(o.length>0){let e=it(o);l.length>0&&(e=lt([],[...l,new Xe(e)])),r.set("consts",e)}r.set("template",i)}if(e.declarations.length>0&&r.set("dependencies",function(e,t){switch(t){case 0:return e;case 1:return lt([],[new Xe(e)]);case 2:const t=e.prop("map").callFn([st(_t.resolveForwardRef)]);return lt([],[new Xe(t)])}}(it(e.declarations.map((e=>e.type))),e.declarationListEmitMode)),null===e.encapsulation&&(e.encapsulation=o.Emulated),e.styles&&e.styles.length){const s=e.encapsulation==o.Emulated?function(e,t,s){const n=new la;return e.map((e=>n.shimCssText(e,t,s)))}(e.styles,Ou,Du):e.styles,n=s.reduce(((e,s)=>(s.trim().length>0&&e.push(t.getConstLiteral(pt(s))),e)),[]);n.length>0&&r.set("styles",it(n))}else e.encapsulation===o.Emulated&&(e.encapsulation=o.None);e.encapsulation!==o.Emulated&&r.set("encapsulation",pt(e.encapsulation)),null!==e.animations&&r.set("data",at([{key:"animation",value:e.animations,quoted:!1}])),null!=p&&p!==l.Default&&r.set("changeDetection",pt(p));return{expression:st(_t.defineComponent).callFn([r.toLiteralMap()],void 0,!0),type:Uu(e),statements:[]}}function Uu(e){const t=Ku(e);return t.push(zu(e.template.ngContentSelectors)),t.push(nt(pt(e.isStandalone))),t.push(sp(e)),e.isSignal&&t.push(nt(pt(e.isSignal))),nt(st(_t.ComponentDeclaration,t))}function Hu(e,t){const s=[On(e,t),pt(ju(e))];return e.read&&s.push(e.read),s}function ju(e){return(e.descendants?1:0)|(e.static?2:0)|(e.emitDistinctChangesOnly?4:0)}function Wu(e){return at(Object.keys(e).map((t=>({key:t,value:pt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}))))}function zu(e){return e.length>0?nt(it(e.map((e=>pt(e))))):ee}function Ku(e){const t=null!==e.selector?e.selector.replace(/\n/g,""):null;return[Ut(e.type.type,e.typeArgumentCount),null!==t?(s=t,nt(pt(s))):ee,null!==e.exportAs?zu(e.exportAs):ee,nt(Gu(e)),nt(Wu(e.outputs)),zu(e.queries.map((e=>e.propertyName)))];var s}function Gu(e){return at(Object.keys(e.inputs).map((t=>{const s=e.inputs[t];return{key:t,value:at([{key:"alias",value:pt(s.bindingPropertyName),quoted:!0},{key:"required",value:pt(s.required),quoted:!0}]),quoted:!0}})))}function Yu(e){const t=Ku(e);return t.push(ee),t.push(nt(pt(e.isStandalone))),t.push(sp(e)),e.isSignal&&t.push(nt(pt(e.isSignal))),nt(st(_t.DirectiveDeclaration,t))}function Qu(e,t){return Hi(null,e,t,"b")}function Xu(e,t,s){return e.params((e=>s(t,e).currValExpr))}function Ju(e){let t,s=e.name;const n=s.match(Ru);return n?(s=n[1],t=_t.attribute):e.isAnimation?(s=jt(s),t=_t.syntheticHostProperty):t=_t.hostProperty,{bindingName:s,instruction:t,isAttribute:!!n}}const Zu=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function ep(e){const t={},s={},n={},r={};for(const i of Object.keys(e)){const a=e[i],o=i.match(Zu);if(null===o)switch(i){case"class":if("string"!=typeof a)throw new Error("Class binding must be string");r.classAttr=a;break;case"style":if("string"!=typeof a)throw new Error("Style binding must be string");r.styleAttr=a;break;default:t[i]="string"==typeof a?pt(a):a}else if(null!=o[1]){if("string"!=typeof a)throw new Error("Property binding must be string");n[o[1]]=a}else if(null!=o[2]){if("string"!=typeof a)throw new Error("Event binding must be string");s[o[2]]=a}}return{attributes:t,listeners:s,properties:n,specialAttributes:r}}function tp(e,t){const s=Iu();return s.createDirectiveHostEventAsts(e.listeners,t),s.createBoundHostProperties(e.properties,t),s.errors}function sp(e){return e.hostDirectives?.length?nt(it(e.hostDirectives.map((e=>at([{key:"directive",value:rt(e.directive.type),quoted:!1},{key:"inputs",value:Wu(e.inputs||{}),quoted:!1},{key:"outputs",value:Wu(e.outputs||{}),quoted:!1}]))))):ee}function np(e){const t=[];let s=!1;for(const n of e){if(n.inputs||n.outputs){const e=[{key:"directive",value:n.directive.type,quoted:!1}];if(n.inputs){const t=rp(n.inputs);t&&e.push({key:"inputs",value:t,quoted:!1})}if(n.outputs){const t=rp(n.outputs);t&&e.push({key:"outputs",value:t,quoted:!1})}t.push(at(e))}else t.push(n.directive.type);n.isForwardReference&&(s=!0)}return s?new Me([],[new Xe(it(t))]):it(t)}function rp(e){const t=[];for(const s in e)e.hasOwnProperty(s)&&t.push(pt(s),pt(e[s]));return t.length>0?it(t):null}class ip{}let ap;e("ResourceLoader",ip);class op{constructor(e=new Vr){this.jitEvaluator=e,this.FactoryTarget=ts,this.ResourceLoader=ip,this.elementSchemaRegistry=new cl}compilePipe(e,t,s){const n=ti({name:s.name,type:Yt(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone});return this.jitExpression(n.expression,e,t,[])}compilePipeDeclaration(e,t,s){const n=function(e){return{name:e.type.name,type:Yt(e.type),typeArgumentCount:0,pipeName:e.name,deps:null,pure:e.pure??!0,isStandalone:e.isStandalone??!1}}(s),r=ti(n);return this.jitExpression(r.expression,e,t,[])}compileInjectable(e,t,s){const{expression:n,statements:r}=Vn({name:s.name,type:Yt(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:Ep(s.providedIn),useClass:wp(s,"useClass"),useFactory:Sp(s,"useFactory"),useValue:wp(s,"useValue"),useExisting:wp(s,"useExisting"),deps:s.deps?.map(_p)},!0);return this.jitExpression(n,e,t,r)}compileInjectableDeclaration(e,t,s){const{expression:n,statements:r}=Vn({name:s.type.name,type:Yt(s.type),typeArgumentCount:0,providedIn:Ep(s.providedIn),useClass:wp(s,"useClass"),useFactory:Sp(s,"useFactory"),useValue:wp(s,"useValue"),useExisting:wp(s,"useExisting"),deps:s.deps?.map(bp)},!0);return this.jitExpression(n,e,t,r)}compileInjector(e,t,s){const n=Hr({name:s.name,type:Yt(s.type),providers:s.providers&&s.providers.length>0?new ce(s.providers):null,imports:s.imports.map((e=>new ce(e)))});return this.jitExpression(n.expression,e,t,[])}compileInjectorDeclaration(e,t,s){const n=function(e){return{name:e.type.name,type:Yt(e.type),providers:void 0!==e.providers&&e.providers.length>0?new ce(e.providers):null,imports:void 0!==e.imports?e.imports.map((e=>new ce(e))):[]}}(s),r=Hr(n);return this.jitExpression(r.expression,e,t,[])}compileNgModule(e,t,s){const n=Xr({kind:Kr.Global,type:Yt(s.type),bootstrap:s.bootstrap.map(Yt),declarations:s.declarations.map(Yt),publicDeclarationTypes:null,imports:s.imports.map(Yt),includeImportTypes:!0,exports:s.exports.map(Yt),selectorScopeMode:zr.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(Yt):null,id:s.id?new ce(s.id):null});return this.jitExpression(n.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){const n=function(e){const t=new $n;return t.set("type",new ce(e.type)),void 0!==e.bootstrap&&t.set("bootstrap",new ce(e.bootstrap)),void 0!==e.declarations&&t.set("declarations",new ce(e.declarations)),void 0!==e.imports&&t.set("imports",new ce(e.imports)),void 0!==e.exports&&t.set("exports",new ce(e.exports)),void 0!==e.schemas&&t.set("schemas",new ce(e.schemas)),void 0!==e.id&&t.set("id",new ce(e.id)),st(_t.defineNgModule).callFn([t.toLiteralMap()])}(s);return this.jitExpression(n,e,t,[])}compileDirective(e,t,s){const n=pp(s);return this.compileDirectiveFromMeta(e,t,n)}compileDirectiveDeclaration(e,t,s){const n=hp(s,this.createParseSourceSpan("Directive",s.type.name,t));return this.compileDirectiveFromMeta(e,t,n)}compileDirectiveFromMeta(e,t,s){const n=new yt,r=qu(s,n,Iu());return this.jitExpression(r.expression,e,t,n.statements)}compileComponent(e,t,s){const{template:n,interpolation:r}=xp(s.template,s.name,t,s.preserveWhitespaces,s.interpolation),i={...s,...pp(s),selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:n,declarations:s.declarations.map(fp),declarationListEmitMode:0,deferBlocks:new Map,deferrableDeclToImportDecl:new Map,styles:[...s.styles,...n.styles],encapsulation:s.encapsulation,interpolation:r,changeDetection:s.changeDetection,animations:null!=s.animations?new ce(s.animations):null,viewProviders:null!=s.viewProviders?new ce(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},a=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,a,i)}compileComponentDeclaration(e,t,s){const n=function(e,t,s){const{template:n,interpolation:r}=xp(e.template,e.type.name,s,e.preserveWhitespaces??!1,e.interpolation),i=[];if(e.dependencies)for(const t of e.dependencies)switch(t.kind){case"directive":case"component":i.push(vp(t));break;case"pipe":i.push(yp(t))}else(e.components||e.directives||e.pipes)&&(e.components&&i.push(...e.components.map((e=>vp(e,!0)))),e.directives&&i.push(...e.directives.map((e=>vp(e)))),e.pipes&&i.push(...function(e){if(!e)return[];return Object.keys(e).map((t=>({kind:Gr.Pipe,name:t,type:new ce(e[t])})))}(e.pipes)));return{...hp(e,t),template:n,styles:e.styles??[],declarations:i,viewProviders:void 0!==e.viewProviders?new ce(e.viewProviders):null,animations:void 0!==e.animations?new ce(e.animations):null,deferBlocks:new Map,deferrableDeclToImportDecl:new Map,changeDetection:e.changeDetection??l.Default,encapsulation:e.encapsulation??o.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}(s,this.createParseSourceSpan("Component",s.type.name,t),t);return this.compileComponentFromMeta(e,t,n)}compileComponentFromMeta(e,t,s){const n=new yt,r=Vu(s,n,Iu(s.interpolation));return this.jitExpression(r.expression,e,t,n.statements)}compileFactory(e,t,s){const n=ss({name:s.name,type:Yt(s.type),typeArgumentCount:s.typeArgumentCount,deps:(r=s.deps,null==r?null:r.map(_p)),target:s.target});var r;return this.jitExpression(n.expression,e,t,n.statements)}compileFactoryDeclaration(e,t,s){const n=ss({name:s.type.name,type:Yt(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(bp):s.deps,target:s.target});return this.jitExpression(n.expression,e,t,n.statements)}createParseSourceSpan(e,t,s){return Rr(e,t,s)}jitExpression(e,t,s,n){const r=[...n,new Ge("$def",e,void 0,je.Exported)];return this.jitEvaluator.evaluateStatements(s,r,new Wr(t),!0).$def}}function lp(e){return{...e,predicate:up(e.predicate),read:e.read?new ce(e.read):null,static:e.static,emitDistinctChangesOnly:e.emitDistinctChangesOnly}}function cp(e){return{propertyName:e.propertyName,first:e.first??!1,predicate:up(e.predicate),descendants:e.descendants??!1,read:e.read?new ce(e.read):null,static:e.static??!1,emitDistinctChangesOnly:e.emitDistinctChangesOnly??!0}}function up(e){return Array.isArray(e)?e:Xt(new ce(e),1)}function pp(e){const t=(e.inputs||[]).reduce(((e,t)=>{if("string"==typeof t){const[s,n]=Np(t);e[n]={bindingPropertyName:s,classPropertyName:n,required:!1,transformFunction:null}}else e[t.name]={bindingPropertyName:t.alias||t.name,classPropertyName:t.name,required:t.required||!1,transformFunction:null!=t.transform?new ce(t.transform):null};return e}),{});const s=Pp(e.outputs||[]),n=e.propMetadata,r={},i={};for(const e in n)n.hasOwnProperty(e)&&n[e].forEach((t=>{"Input"===t.ngMetadataName?r[e]={bindingPropertyName:t.alias||e,classPropertyName:e,required:t.required||!1,transformFunction:null!=t.transform?new ce(t.transform):null}:kp(t)&&(i[e]=t.alias||e)}));return{...e,typeArgumentCount:0,typeSourceSpan:e.typeSourceSpan,type:Yt(e.type),deps:null,host:Ip(e.propMetadata,e.typeSourceSpan,e.host),inputs:{...t,...r},outputs:{...s,...i},queries:e.queries.map(lp),providers:null!=e.providers?new ce(e.providers):null,viewQueries:e.viewQueries.map(lp),fullInheritance:!1,hostDirectives:mp(e)}}function hp(e,t){return{name:e.type.name,type:Yt(e.type),typeSourceSpan:t,selector:e.selector??null,inputs:e.inputs?(s=e.inputs,Object.keys(s).reduce(((e,t)=>{const n=s[t];return e[t]="string"==typeof n?{bindingPropertyName:n,classPropertyName:n,transformFunction:null,required:!1}:{bindingPropertyName:n[0],classPropertyName:n[1],transformFunction:n[2]?new ce(n[2]):null,required:!1},e}),{})):{},outputs:e.outputs??{},host:dp(e.host),queries:(e.queries??[]).map(cp),viewQueries:(e.viewQueries??[]).map(cp),providers:void 0!==e.providers?new ce(e.providers):null,exportAs:e.exportAs??null,usesInheritance:e.usesInheritance??!1,lifecycle:{usesOnChanges:e.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:e.isStandalone??!1,isSignal:e.isSignal??!1,hostDirectives:mp(e)};var s}function dp(e={}){return{attributes:gp(e.attributes??{}),listeners:e.listeners??{},properties:e.properties??{},specialAttributes:{classAttr:e.classAttribute,styleAttr:e.styleAttribute}}}function mp(e){return e.hostDirectives?.length?e.hostDirectives.map((e=>"function"==typeof e?{directive:Yt(e),inputs:null,outputs:null,isForwardReference:!1}:{directive:Yt(e.directive),isForwardReference:!1,inputs:e.inputs?Pp(e.inputs):null,outputs:e.outputs?Pp(e.outputs):null})):null}function gp(e){const t={};for(const s of Object.keys(e))t[s]=new ce(e[s]);return t}function fp(e){return{...e,type:new ce(e.type)}}function vp(e,t=null){return{kind:Gr.Directive,isComponent:t||"component"===e.kind,selector:e.selector,type:new ce(e.type),inputs:e.inputs??[],outputs:e.outputs??[],exportAs:e.exportAs??null}}function yp(e){return{kind:Gr.Pipe,name:e.name,type:new ce(e.type)}}function xp(e,t,s,n,r){const i=r?zn.fromArray(r):Kn,a=bu(e,s,{preserveWhitespaces:n,interpolationConfig:i,enabledBlockTypes:ap});if(null!==a.errors){const e=a.errors.map((e=>e.toString())).join(", ");throw new Error(`Errors during JIT compilation of template for ${t}: ${e}`)}return{template:a,interpolation:i}}function wp(e,t){return e.hasOwnProperty(t)?Xt(new ce(e[t]),0):void 0}function Sp(e,t){return e.hasOwnProperty(t)?new ce(e[t]):void 0}function Ep(e){return Xt("function"==typeof e?new ce(e):new fe(e??null),0)}function _p(e){const t=null!=e.attribute,s=null===e.token?null:new ce(e.token);return Cp(t?new ce(e.attribute):s,t,e.host,e.optional,e.self,e.skipSelf)}function bp(e){const t=e.attribute??!1;return Cp(null===e.token?null:new ce(e.token),t,e.host??!1,e.optional??!1,e.self??!1,e.skipSelf??!1)}function Cp(e,t,s,n,r,i){return{token:e,attributeNameType:t?pt("unknown"):null,host:s,optional:n,self:r,skipSelf:i}}function Ip(e,t,s){const n=ep(s||{}),r=tp(n,t);if(r.length)throw new Error(r.map((e=>e.msg)).join("\n"));for(const t in e)e.hasOwnProperty(t)&&e[t].forEach((e=>{"HostBinding"===e.ngMetadataName?n.properties[e.hostPropertyName||t]=Wt("this",t):Tp(e)&&(n.listeners[e.eventName||t]=`${t}(${(e.args||[]).join(",")})`)}));return n}function Tp(e){return"HostListener"===e.ngMetadataName}function kp(e){return"Output"===e.ngMetadataName}function Pp(e){return e.reduce(((e,t)=>{const[s,n]=Np(t);return e[n]=s,e}),{})}function Np(e){const[t,s]=e.split(":",2).map((e=>e.trim()));return[s??t,t]}function Ap(e){(e.ng||(e.ng={})).\u0275compilerFacade=new op}e("VERSION",new kt("16.2.12"));function Lp(e,t=!1){return null===e?t:e}e("CompilerConfig",class{constructor({defaultEncapsulation:e=o.Emulated,useJit:t=!0,missingTranslation:s=null,preserveWhitespaces:n,strictInjectionParameters:r}={}){var i;this.defaultEncapsulation=e,this.useJit=!!t,this.missingTranslation=s,this.preserveWhitespaces=Lp(void 0===(i=n)?null:i),this.strictInjectionParameters=!0===r}});const Mp="i18n",Rp="i18n-",Bp=/^i18n:?/;let Dp=!1;class Op{constructor(e,t){this.messages=e,this.errors=t}}var $p;!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}($p||($p={}));class Fp{constructor(e,t){this._implicitTags=e,this._implicitAttrs=t}extract(e,t){return this._init($p.Extract,t),e.forEach((e=>e.visit(this,null))),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Op(this._messages,this._errors)}merge(e,t,s){this._init($p.Merge,s),this._translations=t;const n=new Zo("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Dl(n.children,this._errors)}visitExpansionCase(e,t){const s=rl(this,e.expression,t);if(this._mode===$p.Merge)return new Xo(e.value,s,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)}visitExpansion(e,t){this._mayBeAddBlockChildren(e);const s=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);const n=rl(this,e.cases,t);return this._mode===$p.Merge&&(e=new Qo(e.switchValue,e.type,n,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=s,e}visitComment(e,t){const s=!!((n=e)instanceof el&&n.value&&n.value.startsWith("i18n"));var n;if(s&&this._isInTranslatableSection)return void this._reportError(e,"Could not start a block inside a translatable section");const r=function(e){return!!(e instanceof el&&e.value&&"/i18n"===e.value)}(e);if(!r||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;const t=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return rl(this,this._translateMessage(e,t))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(s){if(!Dp&&console&&console.warn){Dp=!0;const t=e.sourceSpan.details?`, ${e.sourceSpan.details}`:"";console.warn(`I18n comments are deprecated, use an <ng-container> element instead (${e.sourceSpan.start}${t})`)}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(Bp,"").trim(),this._openTranslatableSection(e)}}else this._reportError(e,"Trying to close an unopened block")}visitText(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e}visitElement(e,t){this._mayBeAddBlockChildren(e),this._depth++;const s=this._inI18nNode,n=this._inImplicitNode;let r,i=[];const a=e.attrs.find((e=>e.name===Mp))||null;const o=a?a.value:"",l=this._implicitTags.some((t=>e.name===t))&&!this._inIcu&&!this._isInTranslatableSection,c=!n&&l;if(this._inImplicitNode=n||l,this._isInTranslatableSection||this._inIcu)(a||c)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==$p.Extract&&rl(this,e.children);else{if(a||c){this._inI18nNode=!0;const t=this._addMessage(e.children,o);r=this._translateMessage(e,t)}if(this._mode==$p.Extract){const t=a||c;t&&this._openTranslatableSection(e),rl(this,e.children),t&&this._closeTranslatableSection(e,e.children)}}if(this._mode===$p.Merge){(r||e.children).forEach((e=>{const s=e.visit(this,t);s&&!this._isInTranslatableSection&&(i=i.concat(s))}))}if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=s,this._inImplicitNode=n,this._mode===$p.Merge){const t=this._translateAttributes(e);return new Zo(e.name,t,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return null}visitAttribute(e,t){throw new Error("unreachable code")}visitBlockGroup(e,t){rl(this,e.blocks,t)}visitBlock(e,t){rl(this,e.children,t)}visitBlockParameter(e,t){}_init(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=Gc(t)}_visitAttributesOf(e){const t={},s=this._implicitAttrs[e.name]||[];e.attrs.filter((e=>e.name.startsWith(Rp))).forEach((e=>t[e.name.slice(5)]=e.value)),e.attrs.forEach((e=>{e.name in t?this._addMessage([e],t[e.name]):s.some((t=>e.name===t))&&this._addMessage([e])}))}_addMessage(e,t){if(0==e.length||1==e.length&&e[0]instanceof Jo&&!e[0].value)return null;const{meaning:s,description:n,id:r}=qp(t),i=this._createI18nMessage(e,s,n,r);return this._messages.push(i),i}_translateMessage(e,t){if(t&&this._mode===$p.Merge){const s=this._translations.get(t);if(s)return s;this._reportError(e,`Translation unavailable for message id="${this._translations.digest(t)}"`)}return[]}_translateAttributes(e){const t=e.attrs,s={};t.forEach((e=>{e.name.startsWith(Rp)&&(s[e.name.slice(5)]=qp(e.value))}));const n=[];return t.forEach((t=>{if(t.name!==Mp&&!t.name.startsWith(Rp))if(t.value&&""!=t.value&&s.hasOwnProperty(t.name)){const{meaning:r,description:i,id:a}=s[t.name],o=this._createI18nMessage([t],r,i,a),l=this._translations.get(o);if(l)if(0==l.length)n.push(new Jo(t.name,"",t.sourceSpan,void 0,void 0,void 0,void 0));else if(l[0]instanceof Yo){const e=l[0].value;n.push(new Jo(t.name,e,t.sourceSpan,void 0,void 0,void 0,void 0))}else this._reportError(e,`Unexpected translation for attribute "${t.name}" (id="${a||this._translations.digest(o)}")`);else this._reportError(e,`Translation unavailable for attribute "${t.name}" (id="${a||this._translations.digest(o)}")`)}else n.push(t)})),n}_mayBeAddBlockChildren(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)}_openTranslatableSection(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length}get _isInTranslatableSection(){return void 0!==this._msgCountAtSectionStart}_closeTranslatableSection(e,t){if(!this._isInTranslatableSection)return void this._reportError(e,"Unexpected section end");const s=this._msgCountAtSectionStart,n=t.reduce(((e,t)=>e+(t instanceof el?0:1)),0);if(1==n)for(let e=this._messages.length-1;e>=s;e--){const t=this._messages[e].nodes;if(!(1==t.length&&t[0]instanceof Ls)){this._messages.splice(e,1);break}}this._msgCountAtSectionStart=void 0}_reportError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}function qp(e){if(!e)return{meaning:"",description:"",id:""};const t=e.indexOf("@@"),s=e.indexOf("|"),[n,r]=t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],[i,a]=s>-1?[n.slice(0,s),n.slice(s+1)]:["",n];return{meaning:i,description:a,id:r.trim()}}const Vp=new class{constructor(){this.closedByParent=!1,this.implicitNamespacePrefix=null,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Ga.PARSABLE_DATA}};function Up(e){return Vp}class Hp extends Ol{constructor(){super(Up)}parse(e,t,s={}){return super.parse(e,t,{...s,tokenizeBlocks:!1})}}e("XmlParser",Hp);const jp="x",Wp="source",zp="trans-unit",Kp="context";class Gp extends Vs{write(e,t){const s=new Yp,n=[];e.forEach((e=>{let t=[];e.sources.forEach((e=>{let s=new Ks("context-group",{purpose:"location"});s.children.push(new Ys(10),new Ks(Kp,{"context-type":"sourcefile"},[new Gs(e.filePath)]),new Ys(10),new Ks(Kp,{"context-type":"linenumber"},[new Gs(`${e.startLine}`)]),new Ys(8)),t.push(new Ys(8),s)}));const r=new Ks(zp,{id:e.id,datatype:"html"});r.children.push(new Ys(8),new Ks(Wp,{},s.serialize(e.nodes)),...t),e.description&&r.children.push(new Ys(8),new Ks("note",{priority:"1",from:"description"},[new Gs(e.description)])),e.meaning&&r.children.push(new Ys(8),new Ks("note",{priority:"1",from:"meaning"},[new Gs(e.meaning)])),r.children.push(new Ys(6)),n.push(new Ys(6),r)}));const r=new Ks("body",{},[...n,new Ys(4)]),i=new Ks("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new Ys(4),r,new Ys(2)]),a=new Ks("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Ys(2),i,new Ys]);return js([new Ws({version:"1.0",encoding:"UTF-8"}),new Ys,a,new Ys])}load(e,t){const s=new Qp,{locale:n,msgIdToHtml:r,errors:i}=s.parse(e,t),a={},o=new Xp;if(Object.keys(r).forEach((e=>{const{i18nNodes:s,errors:n}=o.convert(r[e],t);i.push(...n),a[e]=s})),i.length)throw new Error(`xliff parse errors:\n${i.join("\n")}`);return{locale:n,i18nNodesByMsgId:a}}digest(e){return x(e)}}e("Xliff",Gp);class Yp{visitText(e,t){return[new Gs(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach((e=>s.push(...e.visit(this)))),s}visitIcu(e,t){const s=[new Gs(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach((t=>{s.push(new Gs(`${t} {`),...e.cases[t].visit(this),new Gs("} "))})),s.push(new Gs("}")),s}visitTagPlaceholder(e,t){const s=function(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return`x-${e}`}}(e.tag);if(e.isVoid)return[new Ks(jp,{id:e.startName,ctype:s,"equiv-text":`<${e.tag}/>`})];const n=new Ks(jp,{id:e.startName,ctype:s,"equiv-text":`<${e.tag}>`}),r=new Ks(jp,{id:e.closeName,ctype:s,"equiv-text":`</${e.tag}>`});return[n,...this.serialize(e.children),r]}visitPlaceholder(e,t){return[new Ks(jp,{id:e.name,"equiv-text":`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const s=`{${e.value.expression}, ${e.value.type}, ${Object.keys(e.value.cases).map((e=>e+" {...}")).join(" ")}}`;return[new Ks(jp,{id:e.name,"equiv-text":s})]}serialize(e){return[].concat(...e.map((e=>e.visit(this))))}}class Qp{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const s=(new Hp).parse(e,t);return this._errors=s.errors,rl(this,s.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case zp:this._unitMlString=null;const t=e.attrs.find((e=>"id"===e.name));if(t){const s=t.value;this._msgIdToHtml.hasOwnProperty(s)?this._addError(e,`Duplicated translations for msg ${s}`):(rl(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[s]=this._unitMlString:this._addError(e,`Message ${s} misses a translation`))}else this._addError(e,`<${zp}> misses the "id" attribute`);break;case Wp:case"seg-source":case"alt-trans":break;case"target":const s=e.startSourceSpan.end.offset,n=e.endSourceSpan.start.offset,r=e.startSourceSpan.start.file.content.slice(s,n);this._unitMlString=r;break;case"file":const i=e.attrs.find((e=>"target-language"===e.name));i&&(this._locale=i.value),rl(this,e.children,null);break;default:rl(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}visitBlockGroup(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}_addError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}class Xp{convert(e,t){const s=(new Hp).parse(e,t,{tokenizeExpansionForms:!0});this._errors=s.errors;return{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:[].concat(...rl(this,s.rootNodes)),errors:this._errors}}visitText(e,t){return new Ls(e.value,e.sourceSpan)}visitElement(e,t){if(e.name===jp){const t=e.attrs.find((e=>"id"===e.name));return t?new Ds("",t.value,e.sourceSpan):(this._addError(e,`<${jp}> misses the "id" attribute`),null)}return"mrk"===e.name?[].concat(...rl(this,e.children)):(this._addError(e,"Unexpected tag"),null)}visitExpansion(e,t){const s={};return rl(this,e.cases).forEach((t=>{s[t.value]=new Ms(t.nodes,e.sourceSpan)})),new Rs(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:rl(this,e.expression)}}visitComment(e,t){}visitAttribute(e,t){}visitBlockGroup(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}_addError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}const Jp="ph",Zp="xliff",eh="source",th="unit";class sh extends Vs{write(e,t){const s=new nh,n=[];e.forEach((e=>{const t=new Ks(th,{id:e.id}),r=new Ks("notes");(e.description||e.meaning)&&(e.description&&r.children.push(new Ys(8),new Ks("note",{category:"description"},[new Gs(e.description)])),e.meaning&&r.children.push(new Ys(8),new Ks("note",{category:"meaning"},[new Gs(e.meaning)]))),e.sources.forEach((e=>{r.children.push(new Ys(8),new Ks("note",{category:"location"},[new Gs(`${e.filePath}:${e.startLine}${e.endLine!==e.startLine?","+e.endLine:""}`)]))})),r.children.push(new Ys(6)),t.children.push(new Ys(6),r);const i=new Ks("segment");i.children.push(new Ys(8),new Ks(eh,{},s.serialize(e.nodes)),new Ys(6)),t.children.push(new Ys(6),i,new Ys(4)),n.push(new Ys(4),t)}));const r=new Ks("file",{original:"ng.template",id:"ngi18n"},[...n,new Ys(2)]),i=new Ks(Zp,{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new Ys(2),r,new Ys]);return js([new Ws({version:"1.0",encoding:"UTF-8"}),new Ys,i,new Ys])}load(e,t){const s=new rh,{locale:n,msgIdToHtml:r,errors:i}=s.parse(e,t),a={},o=new ih;if(Object.keys(r).forEach((e=>{const{i18nNodes:s,errors:n}=o.convert(r[e],t);i.push(...n),a[e]=s})),i.length)throw new Error(`xliff2 parse errors:\n${i.join("\n")}`);return{locale:n,i18nNodesByMsgId:a}}digest(e){return S(e)}}e("Xliff2",sh);class nh{constructor(){this._nextPlaceholderId=0}visitText(e,t){return[new Gs(e.value)]}visitContainer(e,t){const s=[];return e.children.forEach((e=>s.push(...e.visit(this)))),s}visitIcu(e,t){const s=[new Gs(`{${e.expressionPlaceholder}, ${e.type}, `)];return Object.keys(e.cases).forEach((t=>{s.push(new Gs(`${t} {`),...e.cases[t].visit(this),new Gs("} "))})),s.push(new Gs("}")),s}visitTagPlaceholder(e,t){const s=function(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}(e.tag);if(e.isVoid){return[new Ks(Jp,{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:s,disp:`<${e.tag}/>`})]}const n=new Ks("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:s,dispStart:`<${e.tag}>`,dispEnd:`</${e.tag}>`}),r=[].concat(...e.children.map((e=>e.visit(this))));return r.length?r.forEach((e=>n.children.push(e))):n.children.push(new Gs("")),[n]}visitPlaceholder(e,t){const s=(this._nextPlaceholderId++).toString();return[new Ks(Jp,{id:s,equiv:e.name,disp:`{{${e.value}}}`})]}visitIcuPlaceholder(e,t){const s=Object.keys(e.value.cases).map((e=>e+" {...}")).join(" "),n=(this._nextPlaceholderId++).toString();return[new Ks(Jp,{id:n,equiv:e.name,disp:`{${e.value.expression}, ${e.value.type}, ${s}}`})]}serialize(e){return this._nextPlaceholderId=0,[].concat(...e.map((e=>e.visit(this))))}}class rh{constructor(){this._locale=null}parse(e,t){this._unitMlString=null,this._msgIdToHtml={};const s=(new Hp).parse(e,t);return this._errors=s.errors,rl(this,s.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case th:this._unitMlString=null;const t=e.attrs.find((e=>"id"===e.name));if(t){const s=t.value;this._msgIdToHtml.hasOwnProperty(s)?this._addError(e,`Duplicated translations for msg ${s}`):(rl(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[s]=this._unitMlString:this._addError(e,`Message ${s} misses a translation`))}else this._addError(e,`<${th}> misses the "id" attribute`);break;case eh:break;case"target":const s=e.startSourceSpan.end.offset,n=e.endSourceSpan.start.offset,r=e.startSourceSpan.start.file.content.slice(s,n);this._unitMlString=r;break;case Zp:const i=e.attrs.find((e=>"trgLang"===e.name));i&&(this._locale=i.value);const a=e.attrs.find((e=>"version"===e.name));if(a){const t=a.value;"2.0"!==t?this._addError(e,`The XLIFF file version ${t} is not compatible with XLIFF 2.0 serializer`):rl(this,e.children,null)}break;default:rl(this,e.children,null)}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}visitBlockGroup(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}_addError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}class ih{convert(e,t){const s=(new Hp).parse(e,t,{tokenizeExpansionForms:!0});this._errors=s.errors;return{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:[].concat(...rl(this,s.rootNodes)),errors:this._errors}}visitText(e,t){return new Ls(e.value,e.sourceSpan)}visitElement(e,t){switch(e.name){case Jp:const t=e.attrs.find((e=>"equiv"===e.name));if(t)return[new Ds("",t.value,e.sourceSpan)];this._addError(e,`<${Jp}> misses the "equiv" attribute`);break;case"pc":const s=e.attrs.find((e=>"equivStart"===e.name)),n=e.attrs.find((e=>"equivEnd"===e.name));if(s){if(n){const t=s.value,r=n.value;return[].concat(new Ds("",t,e.sourceSpan),...e.children.map((e=>e.visit(this,null))),new Ds("",r,e.sourceSpan))}this._addError(e,`<${Jp}> misses the "equivEnd" attribute`)}else this._addError(e,`<${Jp}> misses the "equivStart" attribute`);break;case"mrk":return[].concat(...rl(this,e.children));default:this._addError(e,"Unexpected tag")}return null}visitExpansion(e,t){const s={};return rl(this,e.cases).forEach((t=>{s[t.value]=new Ms(t.nodes,e.sourceSpan)})),new Rs(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:[].concat(...rl(this,e.expression))}}visitComment(e,t){}visitAttribute(e,t){}visitBlockGroup(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}_addError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}const ah="translationbundle",oh="translation";class lh extends Vs{write(e,t){throw new Error("Unsupported")}load(e,t){const s=new ch,{locale:n,msgIdToHtml:r,errors:i}=s.parse(e,t),a={},o=new uh;if(Object.keys(r).forEach((e=>{!function(e,t,s){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){const n=s();return Object.defineProperty(e,t,{enumerable:!0,value:n}),n},set:e=>{throw new Error("Could not overwrite an XTB translation")}})}(a,e,(function(){const{i18nNodes:s,errors:n}=o.convert(r[e],t);if(n.length)throw new Error(`xtb parse errors:\n${n.join("\n")}`);return s}))})),i.length)throw new Error(`xtb parse errors:\n${i.join("\n")}`);return{locale:n,i18nNodesByMsgId:a}}digest(e){return nn(e)}createNameMapper(e){return new Us(e,an)}}e("Xtb",lh);class ch{constructor(){this._locale=null}parse(e,t){this._bundleDepth=0,this._msgIdToHtml={};const s=(new Hp).parse(e,t);return this._errors=s.errors,rl(this,s.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(e,t){switch(e.name){case ah:this._bundleDepth++,this._bundleDepth>1&&this._addError(e,`<${ah}> elements can not be nested`);const t=e.attrs.find((e=>"lang"===e.name));t&&(this._locale=t.value),rl(this,e.children,null),this._bundleDepth--;break;case oh:const s=e.attrs.find((e=>"id"===e.name));if(s){const t=s.value;if(this._msgIdToHtml.hasOwnProperty(t))this._addError(e,`Duplicated translations for msg ${t}`);else{const s=e.startSourceSpan.end.offset,n=e.endSourceSpan.start.offset,r=e.startSourceSpan.start.file.content.slice(s,n);this._msgIdToHtml[t]=r}}else this._addError(e,`<${oh}> misses the "id" attribute`);break;default:this._addError(e,"Unexpected tag")}}visitAttribute(e,t){}visitText(e,t){}visitComment(e,t){}visitExpansion(e,t){}visitExpansionCase(e,t){}visitBlockGroup(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}_addError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}class uh{convert(e,t){const s=(new Hp).parse(e,t,{tokenizeExpansionForms:!0});this._errors=s.errors;return{i18nNodes:this._errors.length>0||0==s.rootNodes.length?[]:rl(this,s.rootNodes),errors:this._errors}}visitText(e,t){return new Ls(e.value,e.sourceSpan)}visitExpansion(e,t){const s={};return rl(this,e.cases).forEach((t=>{s[t.value]=new Ms(t.nodes,e.sourceSpan)})),new Rs(e.switchValue,e.type,s,e.sourceSpan)}visitExpansionCase(e,t){return{value:e.value,nodes:rl(this,e.expression)}}visitElement(e,t){if("ph"===e.name){const t=e.attrs.find((e=>"name"===e.name));if(t)return new Ds("",t.value,e.sourceSpan);this._addError(e,'<ph> misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null}visitComment(e,t){}visitAttribute(e,t){}visitBlockGroup(e,t){}visitBlock(e,t){}visitBlockParameter(e,t){}_addError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}class ph{constructor(e={},t,s,n,r=d.Warning,i){this._i18nNodesByMsgId=e,this.digest=s,this.mapperFactory=n,this._i18nToHtml=new hh(e,t,s,n,r,i)}static load(e,t,s,n,r){const{locale:i,i18nNodesByMsgId:a}=s.load(e,t);return new ph(a,i,(e=>s.digest(e)),(e=>s.createNameMapper(e)),n,r)}get(e){const t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes}has(e){return this.digest(e)in this._i18nNodesByMsgId}}class hh{constructor(e={},t,s,n,r,i){this._i18nNodesByMsgId=e,this._locale=t,this._digest=s,this._mapperFactory=n,this._missingTranslationStrategy=r,this._console=i,this._errors=[],this._contextStack=[]}convert(e){this._contextStack.length=0,this._errors.length=0;const t=this._convertToText(e),s=e.nodes[0].sourceSpan.start.file.url,n=(new Vl).parse(t,s,{tokenizeExpansionForms:!0});return{nodes:n.rootNodes,errors:[...this._errors,...n.errors]}}visitText(e,t){return Xs(e.value)}visitContainer(e,t){return e.children.map((e=>e.visit(this))).join("")}visitIcu(e,t){const s=Object.keys(e.cases).map((t=>`${t} {${e.cases[t].visit(this)}}`));return`{${this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression].text:e.expression}, ${e.type}, ${s.join(" ")}}`}visitPlaceholder(e,t){const s=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(s)?this._srcMsg.placeholders[s].text:this._srcMsg.placeholderToMessage.hasOwnProperty(s)?this._convertToText(this._srcMsg.placeholderToMessage[s]):(this._addError(e,`Unknown placeholder "${e.name}"`),"")}visitTagPlaceholder(e,t){const s=`${e.tag}`,n=Object.keys(e.attrs).map((t=>`${t}="${e.attrs[t]}"`)).join(" ");if(e.isVoid)return`<${s} ${n}/>`;return`<${s} ${n}>${e.children.map((e=>e.visit(this))).join("")}</${s}>`}visitIcuPlaceholder(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])}_convertToText(e){const t=this._digest(e),s=this._mapperFactory?this._mapperFactory(e):null;let n;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(t))n=this._i18nNodesByMsgId[t],this._mapper=e=>s?s.toInternalName(e):e;else{if(this._missingTranslationStrategy===d.Error){const s=this._locale?` for locale "${this._locale}"`:"";this._addError(e.nodes[0],`Missing translation for message "${t}"${s}`)}else if(this._console&&this._missingTranslationStrategy===d.Warning){const e=this._locale?` for locale "${this._locale}"`:"";this._console.warn(`Missing translation for message "${t}"${e}`)}n=e.nodes,this._mapper=e=>e}const r=n.map((e=>e.visit(this))).join(""),i=this._contextStack.pop();return this._srcMsg=i.msg,this._mapper=i.mapper,r}_addError(e,t){this._errors.push(new Jc(e.sourceSpan,t))}}e("I18NHtmlParser",class{constructor(e,t,s,n=d.Warning,r){if(this._htmlParser=e,t){const e=function(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new tn;case"xtb":return new lh;case"xliff2":case"xlf2":return new sh;default:return new Gp}}(s);this._translationBundle=ph.load(t,"i18n",e,n,r)}else this._translationBundle=new ph({},null,x,void 0,n,r)}parse(e,t,s={}){const n=s.interpolationConfig||Kn,r=this._htmlParser.parse(e,t,{interpolationConfig:n,...s});return r.errors.length?new Dl(r.rootNodes,r.errors):function(e,t,s,n,r){return new Fp(n,r).merge(e,t,s)}(r.rootNodes,this._translationBundle,n,[],{})}});e("MessageBundle",class{constructor(e,t,s,n=null){this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=s,this._locale=n,this._messages=[]}updateFromTemplate(e,t,s){const n=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:s});if(n.errors.length)return n.errors;const r=function(e,t,s,n){return new Fp(s,n).extract(e,t)}(n.rootNodes,s,this._implicitTags,this._implicitAttrs);return r.errors.length?r.errors:(this._messages.push(...r.messages),[])}getMessages(){return this._messages}write(e,t){const s={},n=new dh;this._messages.forEach((t=>{const n=e.digest(t);s.hasOwnProperty(n)?s[n].sources.push(...t.sources):s[n]=t}));const r=Object.keys(s).map((r=>{const i=e.createNameMapper(s[r]),a=s[r],o=i?n.convert(a.nodes,i):a.nodes;let l=new As(o,{},{},a.meaning,a.description,r);return l.sources=a.sources,t&&l.sources.forEach((e=>e.filePath=t(e.filePath))),l}));return e.write(r,this._locale)}});class dh extends $s{convert(e,t){return t?e.map((e=>e.visit(this,t))):e}visitTagPlaceholder(e,t){const s=t.toPublicName(e.startName),n=e.closeName?t.toPublicName(e.closeName):e.closeName,r=e.children.map((e=>e.visit(this,t)));return new Bs(e.tag,e.attrs,s,n,r,e.isVoid,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitPlaceholder(e,t){return new Ds(e.value,t.toPublicName(e.name),e.sourceSpan)}visitIcuPlaceholder(e,t){return new Os(e.value,t.toPublicName(e.name),e.sourceSpan)}}var mh;!function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(mh||(mh={}));e("R3TargetBinder",class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");const t=gh.apply(e.template),s=function(e){const t=new Map;function s(e){if(t.has(e.template))return t.get(e.template);const n=e.namedEntities;let r;return r=null!==e.parentScope?new Map([...s(e.parentScope),...n]):new Map(n),t.set(e.template,r),r}const n=[e];for(;n.length>0;){const e=n.pop();for(const t of e.childScopes.values())n.push(t);s(e)}const r=new Map;for(const[e,s]of t)r.set(e,new Set(s.values()));return r}(t),{directives:n,eagerDirectives:r,bindings:i,references:a}=fh.apply(e.template,this.directiveMatcher),{expressions:o,symbols:l,nestingLevel:c,usedPipes:u,eagerPipes:p,deferBlocks:h}=vh.applyWithScope(e.template,t);return new yh(e,n,r,i,a,o,l,c,s,u,p,h)}});class gh{constructor(e,t){this.parentScope=e,this.template=t,this.namedEntities=new Map,this.childScopes=new Map}static newRootScope(){return new gh(null,null)}static apply(e){const t=gh.newRootScope();return t.ingest(e),t}ingest(e){e instanceof Cs?(e.variables.forEach((e=>this.visitVariable(e))),e.children.forEach((e=>e.visit(this)))):e.forEach((e=>e.visit(this)))}visitElement(e){e.references.forEach((e=>this.visitReference(e))),e.children.forEach((e=>e.visit(this)))}visitTemplate(e){e.references.forEach((e=>this.visitReference(e)));const t=new gh(this,e);t.ingest(e),this.childScopes.set(e,t)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){e.children.forEach((e=>e.visit(this))),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach((e=>e.visit(this)))}visitDeferredBlockError(e){e.children.forEach((e=>e.visit(this)))}visitDeferredBlockLoading(e){e.children.forEach((e=>e.visit(this)))}visitContent(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):null!==this.parentScope?this.parentScope.lookup(e):null}getChildScope(e){const t=this.childScopes.get(e);if(void 0===t)throw new Error(`Assertion error: child scope for ${e} not found`);return t}}class fh{constructor(e,t,s,n,r){this.matcher=e,this.directives=t,this.eagerDirectives=s,this.bindings=n,this.references=r,this.isInDeferBlock=!1}static apply(e,t){const s=new Map,n=new Map,r=new Map,i=[];return new fh(t,s,i,n,r).ingest(e),{directives:s,eagerDirectives:i,bindings:n,references:r}}ingest(e){e.forEach((e=>e.visit(this)))}visitElement(e){this.visitElementOrTemplate(e.name,e)}visitTemplate(e){this.visitElementOrTemplate("ng-template",e)}visitElementOrTemplate(e,t){const n=function(e,t){const n=new s,r=to(e)[1];return n.setElement(r),Object.getOwnPropertyNames(t).forEach((e=>{const s=to(e)[1],r=t[e];n.addAttribute(s,r),"class"===e.toLowerCase()&&r.trim().split(/\s+/).forEach((e=>n.addClassName(e)))})),n}(e,function(e){const t={};return e instanceof Cs&&"ng-template"!==e.tagName?e.templateAttrs.forEach((e=>t[e.name]="")):(e.attributes.forEach((e=>{un(e.name)||(t[e.name]=e.value)})),e.inputs.forEach((e=>{0===e.type&&(t[e.name]="")})),e.outputs.forEach((e=>{t[e.name]=""}))),t}(t)),r=[];this.matcher.match(n,((e,t)=>r.push(...t))),r.length>0&&(this.directives.set(t,r),this.isInDeferBlock||this.eagerDirectives.push(...r)),t.references.forEach((e=>{let s=null;if(""===e.value.trim())s=r.find((e=>e.isComponent))||null;else if(s=r.find((t=>null!==t.exportAs&&t.exportAs.some((t=>t===e.value))))||null,null===s)return;null!==s?this.references.set(e,{directive:s,node:t}):this.references.set(e,t)}));const i=(e,s)=>{const n=r.find((t=>t[s].hasBindingPropertyName(e.name))),i=void 0!==n?n:t;this.bindings.set(e,i)};t.inputs.forEach((e=>i(e,"inputs"))),t.attributes.forEach((e=>i(e,"inputs"))),t instanceof Cs&&t.templateAttrs.forEach((e=>i(e,"inputs"))),t.outputs.forEach((e=>i(e,"outputs"))),t.children.forEach((e=>e.visit(this)))}visitDeferredBlock(e){this.isInDeferBlock=!0,e.children.forEach((e=>e.visit(this))),this.isInDeferBlock=!1,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach((e=>e.visit(this)))}visitDeferredBlockError(e){e.children.forEach((e=>e.visit(this)))}visitDeferredBlockLoading(e){e.children.forEach((e=>e.visit(this)))}visitContent(e){}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}}class vh extends Mi{constructor(e,t,s,n,r,i,a,o,l){super(),this.bindings=e,this.symbols=t,this.usedPipes=s,this.eagerPipes=n,this.deferBlocks=r,this.nestingLevel=i,this.scope=a,this.template=o,this.level=l,this.isInDeferBlock=!1,this.visitNode=e=>e.visit(this)}visit(e,t){e instanceof ii?e.visit(this,t):e.visit(this)}static applyWithScope(e,t){const s=new Map,n=new Map,r=new Map,i=new Set,a=new Set,o=e instanceof Cs?e:null,l=new Set;return new vh(s,n,i,a,l,r,t,o,0).ingest(e),{expressions:s,symbols:n,nestingLevel:r,usedPipes:i,eagerPipes:a,deferBlocks:l}}ingest(e){e instanceof Cs?(e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)}visitElement(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode);const t=this.scope.getChildScope(e);new vh(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,t,e,this.level+1).ingest(e)}visitVariable(e){null!==this.template&&this.symbols.set(e,this.template)}visitReference(e){null!==this.template&&this.symbols.set(e,this.template)}visitText(e){}visitContent(e){}visitTextAttribute(e){}visitIcu(e){Object.keys(e.vars).forEach((t=>e.vars[t].visit(this))),Object.keys(e.placeholders).forEach((t=>e.placeholders[t].visit(this)))}visitBoundAttribute(e){e.value.visit(this)}visitBoundEvent(e){e.handler.visit(this)}visitDeferredBlock(e){this.deferBlocks.add(e),this.isInDeferBlock=!0,e.children.forEach(this.visitNode),this.isInDeferBlock=!1,e.triggers.forEach(this.visitNode),e.prefetchTriggers.forEach(this.visitNode),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredTrigger(e){e instanceof ms&&e.value.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(this.visitNode)}visitDeferredBlockError(e){e.children.forEach(this.visitNode)}visitDeferredBlockLoading(e){e.children.forEach(this.visitNode)}visitBoundText(e){e.value.visit(this)}visitPipe(e,t){return this.usedPipes.add(e.name),this.isInDeferBlock||this.eagerPipes.add(e.name),super.visitPipe(e,t)}visitPropertyRead(e,t){return this.maybeMap(t,e,e.name),super.visitPropertyRead(e,t)}visitSafePropertyRead(e,t){return this.maybeMap(t,e,e.name),super.visitSafePropertyRead(e,t)}visitPropertyWrite(e,t){return this.maybeMap(t,e,e.name),super.visitPropertyWrite(e,t)}maybeMap(e,t,s){if(!(t.receiver instanceof li))return;let n=this.scope.lookup(s);null!==n&&this.bindings.set(t,n)}}class yh{constructor(e,t,s,n,r,i,a,o,l,c,u,p){this.target=e,this.directives=t,this.eagerDirectives=s,this.bindings=n,this.references=r,this.exprTargets=i,this.symbols=a,this.nestingLevel=o,this.templateEntities=l,this.usedPipes=c,this.eagerPipes=u,this.deferredBlocks=p}getEntitiesInTemplateScope(e){return this.templateEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getTemplateOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){const e=new Set;return this.directives.forEach((t=>t.forEach((t=>e.add(t))))),Array.from(e.values())}getEagerlyUsedDirectives(){const e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return Array.from(this.deferredBlocks)}}e("R3BoundTarget",yh);const xh="12.0.0";function wh(e,t){return null===e||0===e.length?null:it(e.map((e=>t(e))))}function Sh(e,t){const s=Object.keys(e).map((s=>{const n=e[s];return{key:s,value:t(n),quoted:!0}}));return s.length>0?at(s):null}function Eh(e){return"invalid"===e?pt("invalid"):null===e?pt(null):it(e.map(_h))}function _h(e){const t=new $n;return t.set("token",e.token),null!==e.attributeNameType&&t.set("attribute",pt(!0)),e.host&&t.set("host",pt(!0)),e.optional&&t.set("optional",pt(!0)),e.self&&t.set("self",pt(!0)),e.skipSelf&&t.set("skipSelf",pt(!0)),t.toLiteralMap()}const bh="16.1.0";function Ch(e){const t=new $n,s=Object.values(e.inputs).some((e=>null!==e.transformFunction))?bh:"14.0.0";return t.set("minVersion",pt(s)),t.set("version",pt("16.2.12")),t.set("type",e.type.value),e.isStandalone&&t.set("isStandalone",pt(e.isStandalone)),e.isSignal&&t.set("isSignal",pt(e.isSignal)),null!==e.selector&&t.set("selector",pt(e.selector)),t.set("inputs",Bn(e.inputs,!0)),t.set("outputs",Bn(e.outputs)),t.set("host",function(e){const t=new $n;t.set("attributes",Sh(e.attributes,(e=>e))),t.set("listeners",Sh(e.listeners,pt)),t.set("properties",Sh(e.properties,pt)),e.specialAttributes.styleAttr&&t.set("styleAttribute",pt(e.specialAttributes.styleAttr));e.specialAttributes.classAttr&&t.set("classAttribute",pt(e.specialAttributes.classAttr));return t.values.length>0?t.toLiteralMap():null}(e.host)),t.set("providers",e.providers),e.queries.length>0&&t.set("queries",it(e.queries.map(Ih))),e.viewQueries.length>0&&t.set("viewQueries",it(e.viewQueries.map(Ih))),null!==e.exportAs&&t.set("exportAs",Rn(e.exportAs)),e.usesInheritance&&t.set("usesInheritance",pt(!0)),e.lifecycle.usesOnChanges&&t.set("usesOnChanges",pt(!0)),e.hostDirectives?.length&&t.set("hostDirectives",it(e.hostDirectives.map((e=>{const t=[{key:"directive",value:e.isForwardReference?Zt(e.directive.type):e.directive.type,quoted:!1}],s=e.inputs?rp(e.inputs):null,n=e.outputs?rp(e.outputs):null;return s&&t.push({key:"inputs",value:s,quoted:!1}),n&&t.push({key:"outputs",value:n,quoted:!1}),at(t)})))),t.set("ngImport",st(_t.core)),t}function Ih(e){const t=new $n;return t.set("propertyName",pt(e.propertyName)),e.first&&t.set("first",pt(!0)),t.set("predicate",Array.isArray(e.predicate)?Rn(e.predicate):Jt(e.predicate)),e.emitDistinctChangesOnly||t.set("emitDistinctChangesOnly",pt(!1)),e.descendants&&t.set("descendants",pt(!0)),t.set("read",e.read),e.static&&t.set("static",pt(!0)),t.toLiteralMap()}const Th="12.0.0";const kh="12.0.0";const Ph="12.0.0";const Nh="14.0.0";const Ah="14.0.0";Ap(Pt)}}}));