var tC=Object.defineProperty,nC=Object.defineProperties;var rC=Object.getOwnPropertyDescriptors;var ng=Object.getOwnPropertySymbols;var sC=Object.prototype.hasOwnProperty,iC=Object.prototype.propertyIsEnumerable;var rg=(t,e,n)=>e in t?tC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y=(t,e)=>{for(var n in e||={})sC.call(e,n)&&rg(t,n,e[n]);if(ng)for(var n of ng(e))iC.call(e,n)&&rg(t,n,e[n]);return t},ee=(t,e)=>nC(t,rC(e));var sg=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),qs=class t{element=null;classNames=[];attrs=[];notSelectors=[];static parse(e){let n=[],r=(c,l)=>{l.notSelectors.length>0&&!l.element&&l.classNames.length==0&&l.attrs.length==0&&(l.element="*"),c.push(l)},s=new t,i,o=s,a=!1;for(sg.lastIndex=0;i=sg.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new t,s.notSelectors.push(o)}let c=i[2];if(c){let u=i[3];u==="#"?o.addAttribute("id",c.slice(1)):u==="."?o.addClassName(c.slice(1)):o.setElement(c)}let l=i[4];if(l&&o.addAttribute(o.unescapeAttribute(l),i[6]),i[7]&&(a=!1,o=s),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");r(n,s),s=o=new t}}return r(n,s),n}unescapeAttribute(e){let n="",r=!1;for(let s=0;s0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,n=""){this.attrs.push(e,n&&n.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(n=>e+=`.${n}`),this.attrs)for(let n=0;ne+=`:not(${n})`),e}},dc=class t{static createNotMatcher(e){let n=new t;return n.addSelectables(e,null),n}_elementMap=new Map;_elementPartialMap=new Map;_classMap=new Map;_classPartialMap=new Map;_attrValueMap=new Map;_attrValuePartialMap=new Map;_listContexts=[];addSelectables(e,n){let r=null;e.length>1&&(r=new Sd(e),this._listContexts.push(r));for(let s=0;s0&&(!this.listContext||!this.listContext.alreadyMatched)&&(r=!dc.createNotMatcher(this.notSelectors).match(e,null)),r&&n&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),n(this.selector,this.cbContext)),r}},fc=class{registry;constructor(e){this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}};var br=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(br||{}),Yf=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(Yf||{}),zi=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(zi||{}),ig={name:"custom-elements"},og={name:"no-errors-schema"};var se=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(se||{});function oC(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function aC(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return t.element?[5,t.element,...t.attrs,...e]:t.attrs.length?[3,...t.attrs,...e]:t.classNames&&t.classNames.length?[9,...t.classNames]:[]}function cC(t){let e=oC(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>aC(r)):[];return e.concat(...n)}function Zf(t){return t?qs.parse(t).map(cC):[]}var _n=(function(t){return t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule",t})(_n||{});var pc;function lC(t){return pC(fC(t.nodes).join("")+`[${t.meaning}]`)}function uC(t){return t.id||Yv(t)}function Yv(t){let e=new Cd,n=t.nodes.map(r=>r.visit(e,null));return Zv(n.join(""),t.meaning)}var hc=class{visitText(e,n){return e.value}visitContainer(e,n){return`[${e.children.map(r=>r.visit(this)).join(", ")}]`}visitIcu(e,n){let r=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expression}, ${e.type}, ${r.join(", ")}}`}visitTagPlaceholder(e,n){return e.isVoid?``:`${e.children.map(r=>r.visit(this)).join(", ")}`}visitPlaceholder(e,n){return e.value?`${e.value}`:``}visitIcuPlaceholder(e,n){return`${e.value.visit(this)}`}visitBlockPlaceholder(e,n){return`${e.children.map(r=>r.visit(this)).join(", ")}`}},dC=new hc;function fC(t){return t.map(e=>e.visit(dC,null))}var Cd=class extends hc{visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function pC(t){pc??=new TextEncoder;let e=[...pc.encode(t)],n=gC(e,Xf.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,c=271733878,l=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let u=0;u>>0).toString(16).padStart(8,"0")}function hC(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function ag(t){pc??=new TextEncoder;let e=pc.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=cg(n,e.length,0),s=cg(n,e.length,102072);return r==0&&(s==0||s==1)&&(r=r^319790063,s=s^-1801410264),BigInt.asUintN(32,BigInt(r))<>BigInt(63)&BigInt(1),n+=ag(e)),BigInt.asUintN(63,n).toString()}function cg(t,e,n){let r=2654435769,s=2654435769,i=0,o=e-12;for(;i<=o;i+=12){r+=t.getUint32(i,!0),s+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let c=lg(r,s,n);r=c[0],s=c[1],n=c[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),lg(r,s,n)[2]}function lg(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}var Xf=(function(t){return t[t.Little=0]="Little",t[t.Big=1]="Big",t})(Xf||{});function Ds(t,e){return mC(t,e)[1]}function mC(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function ed(t,e){return t<>>32-e}function gC(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s=t.length?0:t[e]}function vC(t,e,n){let r=0;if(n===Xf.Big)for(let s=0;s<4;s++)r+=ug(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=ug(t,e+s)<<8*s;return r}var Xv=(function(t){return t[t.None=0]="None",t[t.Const=1]="Const",t})(Xv||{}),mc=class{modifiers;constructor(e=Xv.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},On=(function(t){return t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None",t})(On||{}),fn=class extends mc{name;constructor(e,n){super(n),this.name=e}visitType(e,n){return e.visitBuiltinType(this,n)}},Rt=class extends mc{value;typeParams;constructor(e,n,r=null){super(n),this.value=e,this.typeParams=r}visitType(e,n){return e.visitExpressionType(this,n)}};var Sl=new fn(On.Dynamic),qt=new fn(On.Inferred),EC=new fn(On.Bool),IL=new fn(On.Int),Jf=new fn(On.Number),Kf=new fn(On.String),TL=new fn(On.Function),pn=new fn(On.None),ro=(function(t){return t[t.Minus=0]="Minus",t[t.Plus=1]="Plus",t})(ro||{}),C=(function(t){return t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Assign=2]="Assign",t[t.Identical=3]="Identical",t[t.NotIdentical=4]="NotIdentical",t[t.Minus=5]="Minus",t[t.Plus=6]="Plus",t[t.Divide=7]="Divide",t[t.Multiply=8]="Multiply",t[t.Modulo=9]="Modulo",t[t.And=10]="And",t[t.Or=11]="Or",t[t.BitwiseOr=12]="BitwiseOr",t[t.BitwiseAnd=13]="BitwiseAnd",t[t.Lower=14]="Lower",t[t.LowerEquals=15]="LowerEquals",t[t.Bigger=16]="Bigger",t[t.BiggerEquals=17]="BiggerEquals",t[t.NullishCoalesce=18]="NullishCoalesce",t[t.Exponentiation=19]="Exponentiation",t[t.In=20]="In",t[t.AdditionAssignment=21]="AdditionAssignment",t[t.SubtractionAssignment=22]="SubtractionAssignment",t[t.MultiplicationAssignment=23]="MultiplicationAssignment",t[t.DivisionAssignment=24]="DivisionAssignment",t[t.RemainderAssignment=25]="RemainderAssignment",t[t.ExponentiationAssignment=26]="ExponentiationAssignment",t[t.AndAssignment=27]="AndAssignment",t[t.OrAssignment=28]="OrAssignment",t[t.NullishCoalesceAssignment=29]="NullishCoalesceAssignment",t})(C||{});function yC(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Jv(t,e,n){let r=t.length;if(r!==e.length)return!1;for(let s=0;sn.isEquivalent(r))}var X=class{type;sourceSpan;constructor(e,n){this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new wt(this,e,null,n)}key(e,n,r){return new Rn(this,e,n,r)}callFn(e,n,r){return new lt(this,e,null,n,r)}instantiate(e,n,r){return new io(this,e,n,r)}conditional(e,n=null,r){return new hn(this,e,n,null,r)}equals(e,n){return new G(C.Equals,this,e,null,n)}notEquals(e,n){return new G(C.NotEquals,this,e,null,n)}identical(e,n){return new G(C.Identical,this,e,null,n)}notIdentical(e,n){return new G(C.NotIdentical,this,e,null,n)}minus(e,n){return new G(C.Minus,this,e,null,n)}plus(e,n){return new G(C.Plus,this,e,null,n)}divide(e,n){return new G(C.Divide,this,e,null,n)}multiply(e,n){return new G(C.Multiply,this,e,null,n)}modulo(e,n){return new G(C.Modulo,this,e,null,n)}power(e,n){return new G(C.Exponentiation,this,e,null,n)}and(e,n){return new G(C.And,this,e,null,n)}bitwiseOr(e,n){return new G(C.BitwiseOr,this,e,null,n)}bitwiseAnd(e,n){return new G(C.BitwiseAnd,this,e,null,n)}or(e,n){return new G(C.Or,this,e,null,n)}lower(e,n){return new G(C.Lower,this,e,null,n)}lowerEquals(e,n){return new G(C.LowerEquals,this,e,null,n)}bigger(e,n){return new G(C.Bigger,this,e,null,n)}biggerEquals(e,n){return new G(C.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(IC,e)}nullishCoalesce(e,n){return new G(C.NullishCoalesce,this,e,null,n)}toStmt(){return new qe(this,null)}},Wt=class t extends X{name;constructor(e,n,r){super(n,r),this.name=e}isEquivalent(e){return e instanceof t&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadVarExpr(this,n)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(e){return new G(C.Assign,this,e,null,this.sourceSpan)}},Ws=class t extends X{expr;constructor(e,n,r){super(n,r),this.expr=e}visitExpression(e,n){return e.visitTypeofExpr(this,n)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},gc=class t extends X{expr;constructor(e,n,r){super(n,r),this.expr=e}visitExpression(e,n){return e.visitVoidExpr(this,n)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},U=class t extends X{node;constructor(e,n,r){super(n,r),this.node=e}isEquivalent(e){return e instanceof t&&this.node===e.node}isConstant(){return!1}visitExpression(e,n){return e.visitWrappedNodeExpr(this,n)}clone(){return new t(this.node,this.type,this.sourceSpan)}},lt=class t extends X{fn;args;pure;constructor(e,n,r,s,i=!1){super(r,s),this.fn=e,this.args=n,this.pure=i}get receiver(){return this.fn}isEquivalent(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&yt(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,n){return e.visitInvokeFunctionExpr(this,n)}clone(){return new t(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},so=class t extends X{tag;template;constructor(e,n,r,s){super(r,s),this.tag=e,this.template=n}isEquivalent(e){return e instanceof t&&this.tag.isEquivalent(e.tag)&&this.template.isEquivalent(e.template)}isConstant(){return!1}visitExpression(e,n){return e.visitTaggedTemplateLiteralExpr(this,n)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},io=class t extends X{classExpr;args;constructor(e,n,r,s){super(r,s),this.classExpr=e,this.args=n}isEquivalent(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&yt(this.args,e.args)}isConstant(){return!1}visitExpression(e,n){return e.visitInstantiateExpr(this,n)}clone(){return new t(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},zs=class t extends X{body;flags;constructor(e,n,r){super(null,r),this.body=e,this.flags=n}isEquivalent(e){return e instanceof t&&this.body===e.body&&this.flags===e.flags}isConstant(){return!0}visitExpression(e,n){return e.visitRegularExpressionLiteral(this,n)}clone(){return new t(this.body,this.flags,this.sourceSpan)}},Be=class t extends X{value;constructor(e,n,r){super(n,r),this.value=e}isEquivalent(e){return e instanceof t&&this.value===e.value}isConstant(){return!0}visitExpression(e,n){return e.visitLiteralExpr(this,n)}clone(){return new t(this.value,this.type,this.sourceSpan)}},oo=class t extends X{elements;expressions;constructor(e,n,r){super(null,r),this.elements=e,this.expressions=n}isEquivalent(e){return e instanceof t&&Jv(this.elements,e.elements,(n,r)=>n.text===r.text)&&yt(this.expressions,e.expressions)}isConstant(){return!1}visitExpression(e,n){return e.visitTemplateLiteralExpr(this,n)}clone(){return new t(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},vc=class t extends X{text;rawText;constructor(e,n,r){super(Kf,n),this.text=e,this.rawText=r??Id(ic(e))}visitExpression(e,n){return e.visitTemplateLiteralElementExpr(this,n)}isEquivalent(e){return e instanceof t&&e.text===this.text&&e.rawText===this.rawText}isConstant(){return!0}clone(){return new t(this.text,this.sourceSpan,this.rawText)}},Pr=class{text;sourceSpan;constructor(e,n){this.text=e,this.sourceSpan=n}},Hs=class{text;sourceSpan;associatedMessage;constructor(e,n,r){this.text=e,this.sourceSpan=n,this.associatedMessage=r}},wC="|",dg="@@",SC="\u241F",Ec=class t extends X{metaBlock;messageParts;placeHolderNames;expressions;constructor(e,n,r,s,i){super(Kf,i),this.metaBlock=e,this.messageParts=n,this.placeHolderNames=r,this.expressions=s}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,n){return e.visitLocalizedString(this,n)}clone(){return new t(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}${wC}${e}`),this.metaBlock.customId&&(e=`${e}${dg}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(n=>{e=`${e}${SC}${n}`}),fg(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){let n=this.placeHolderNames[e-1],r=this.messageParts[e],s=n.text;return n.associatedMessage?.legacyIds.length===0&&(s+=`${dg}${Zv(n.associatedMessage.messageString,n.associatedMessage.meaning)}`),fg(s,r.text,this.getMessagePartSourceSpan(e))}},ic=t=>t.replace(/\\/g,"\\\\"),xC=t=>t.replace(/^:/,"\\:"),CC=t=>t.replace(/:/g,"\\:"),Id=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function fg(t,e,n){return t===""?{cooked:e,raw:Id(xC(ic(e))),range:n}:{cooked:`:${t}:${e}`,raw:Id(`:${CC(ic(t))}:${ic(e)}`),range:n}}var jr=class t extends X{value;typeParams;constructor(e,n,r=null,s){super(n,s),this.value=e,this.typeParams=r}isEquivalent(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName}isConstant(){return!1}visitExpression(e,n){return e.visitExternalExpr(this,n)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}};var hn=class t extends X{condition;falseCase;trueCase;constructor(e,n,r=null,s,i){super(s||n.type,i),this.condition=e,this.falseCase=r,this.trueCase=n}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&yC(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,n){return e.visitConditionalExpr(this,n)}clone(){return new t(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};var ao=class t extends X{condition;constructor(e,n){super(EC,n),this.condition=e}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,n){return e.visitNotExpr(this,n)}clone(){return new t(this.condition.clone(),this.sourceSpan)}},Pe=class t{name;type;constructor(e,n=null){this.name=e,this.type=n}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},nr=class t extends X{params;statements;name;constructor(e,n,r,s,i){super(r,s),this.params=e,this.statements=n,this.name=i}isEquivalent(e){return(e instanceof t||e instanceof co)&&yt(this.params,e.params)&&yt(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,n){return e.visitFunctionExpr(this,n)}toDeclStmt(e,n){return new co(e,this.params,this.statements,this.type,n,this.sourceSpan)}clone(){return new t(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}},Ur=class t extends X{params;body;constructor(e,n,r,s){super(r,s),this.params=e,this.body=n}isEquivalent(e){return!(e instanceof t)||!yt(this.params,e.params)?!1:this.body instanceof X&&e.body instanceof X?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?yt(this.body,e.body):!1}isConstant(){return!1}visitExpression(e,n){return e.visitArrowFunctionExpr(this,n)}clone(){return new t(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,n){return new De(e,this,qt,n,this.sourceSpan)}},qr=class t extends X{operator;expr;parens;constructor(e,n,r,s,i=!0){super(r||Jf,s),this.operator=e,this.expr=n,this.parens=i}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,n){return e.visitUnaryOperatorExpr(this,n)}clone(){return new t(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},zt=class t extends X{expr;constructor(e,n,r){super(n,r),this.expr=e}visitExpression(e,n){return e.visitParenthesizedExpr(this,n)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},G=class t extends X{operator;rhs;lhs;constructor(e,n,r,s,i){super(s||n.type,i),this.operator=e,this.rhs=r,this.lhs=n}isEquivalent(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,n){return e.visitBinaryOperatorExpr(this,n)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let e=this.operator;return e===C.Assign||e===C.AdditionAssignment||e===C.SubtractionAssignment||e===C.MultiplicationAssignment||e===C.DivisionAssignment||e===C.RemainderAssignment||e===C.ExponentiationAssignment||e===C.AndAssignment||e===C.OrAssignment||e===C.NullishCoalesceAssignment}},wt=class t extends X{receiver;name;constructor(e,n,r,s){super(r,s),this.receiver=e,this.name=n}get index(){return this.name}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadPropExpr(this,n)}set(e){return new G(C.Assign,this.receiver.prop(this.name),e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Rn=class t extends X{receiver;index;constructor(e,n,r,s){super(r,s),this.receiver=e,this.index=n}isEquivalent(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,n){return e.visitReadKeyExpr(this,n)}set(e){return new G(C.Assign,this.receiver.key(this.index),e,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},mn=class t extends X{entries;constructor(e,n,r){super(n,r),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof t&&yt(this.entries,e.entries)}visitExpression(e,n){return e.visitLiteralArrayExpr(this,n)}clone(){return new t(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},Gs=class t{key;value;quoted;constructor(e,n,r){this.key=e,this.value=n,this.quoted=r}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new t(this.key,this.value.clone(),this.quoted)}isConstant(){return this.value.isConstant()}},rr=class t{expression;constructor(e){this.expression=e}isEquivalent(e){return e instanceof t&&this.expression.isEquivalent(e.expression)}clone(){return new t(this.expression.clone())}isConstant(){return this.expression.isConstant()}},Gt=class t extends X{entries;valueType=null;constructor(e,n,r){super(n,r),this.entries=e,n&&(this.valueType=n.valueType)}isEquivalent(e){return e instanceof t&&yt(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.isConstant())}visitExpression(e,n){return e.visitLiteralMapExpr(this,n)}clone(){let e=this.entries.map(n=>n.clone());return new t(e,this.type,this.sourceSpan)}};var Wr=class t extends X{expression;constructor(e,n){super(null,n),this.expression=e}isEquivalent(e){return e instanceof t&&this.expression.isEquivalent(e.expression)}isConstant(){return this.expression.isConstant()}visitExpression(e,n){return e.visitSpreadElementExpr(this,n)}clone(){return new t(this.expression.clone(),this.sourceSpan)}},Qs=new Be(null,null,null),IC=new Be(null,qt,null),Le=(function(t){return t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static",t})(Le||{}),Td=class{text;multiline;trailingNewline;constructor(e,n,r){this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},yc=class extends Td{tags;constructor(e){super("",!0,!0),this.tags=e}toString(){return AC(this.tags)}},zr=class{modifiers;sourceSpan;leadingComments;constructor(e=Le.None,n=null,r){this.modifiers=e,this.sourceSpan=n,this.leadingComments=r}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},De=class t extends zr{name;value;type;constructor(e,n,r,s,i,o){super(s,i,o),this.name=e,this.value=n,this.type=r||n&&n.type||null}isEquivalent(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,n){return e.visitDeclareVarStmt(this,n)}},co=class t extends zr{name;params;statements;type;constructor(e,n,r,s,i,o,a){super(i,o,a),this.name=e,this.params=n,this.statements=r,this.type=s||null}isEquivalent(e){return e instanceof t&&yt(this.params,e.params)&&yt(this.statements,e.statements)}visitStatement(e,n){return e.visitDeclareFunctionStmt(this,n)}},qe=class t extends zr{expr;constructor(e,n,r){super(Le.None,n,r),this.expr=e}isEquivalent(e){return e instanceof t&&this.expr.isEquivalent(e.expr)}visitStatement(e,n){return e.visitExpressionStmt(this,n)}},Oe=class t extends zr{value;constructor(e,n=null,r){super(Le.None,n,r),this.value=e}isEquivalent(e){return e instanceof t&&this.value.isEquivalent(e.value)}visitStatement(e,n){return e.visitReturnStmt(this,n)}},wc=class t extends zr{condition;trueCase;falseCase;constructor(e,n,r=[],s,i){super(Le.None,s,i),this.condition=e,this.trueCase=n,this.falseCase=r}isEquivalent(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&yt(this.trueCase,e.trueCase)&&yt(this.falseCase,e.falseCase)}visitStatement(e,n){return e.visitIfStmt(this,n)}};function TC(t=[]){return new yc(t)}function z(t,e,n){return new Wt(t,e,n)}function k(t,e=null,n){return new jr(t,null,e,n)}function Fe(t,e,n){return new Rt(t,e,n)}function ta(t){return new Ws(t)}function te(t,e,n){return new mn(t,e,n)}function Pt(t,e=null){return new Gt(t.map(n=>new Gs(n.key,n.value,n.quoted)),e,null)}function bC(t,e){return new ao(t,e)}function sr(t,e,n,r,s){return new nr(t,e,n,r,s)}function gn(t,e,n,r){return new Ur(t,e,n,r)}function xl(t,e,n,r,s){return new wc(t,e,n,r,s)}function DC(t,e,n,r){return new so(t,e,n,r)}function E(t,e,n){return new Be(t,e,n)}function _C(t,e,n,r,s){return new Ec(t,e,n,r,s)}function pg(t){let e="";if(t.tagName&&(e+=` @${t.tagName}`),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}function AC(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${pg(t[0])} `;let e=`* `;for(let n of t)e+=" *",e+=pg(n).replace(/\n/g,` * `),e+=` `;return e+=" ",e}var NC="_c",kC={},MC=50,Sc=class t extends X{resolved;original;shared=!1;constructor(e){super(e.type),this.resolved=e,this.original=e}visitExpression(e,n){return n===kC?this.original.visitExpression(e,n):this.resolved.visitExpression(e,n)}isEquivalent(e){return e instanceof t&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}},xc=class{isClosureCompilerEnabled;statements=[];literals=new Map;literalFactories=new Map;sharedConstants=new Map;_claimedNames=new Map;nextNameIndex=0;constructor(e=!1){this.isClosureCompilerEnabled=e}getConstLiteral(e,n){if(e instanceof Be&&!hg(e)||e instanceof Sc)return e;let r=lo.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new Sc(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),a,c;this.isClosureCompilerEnabled&&hg(e)?(a=new nr([],[new Oe(e)]),c=z(o).callFn([])):(a=e,c=z(o)),this.statements.push(new De(o,a,qt,Le.Final)),s.fixup(c)}return s}getSharedConstant(e,n){let r=e.keyOf(n);if(!this.sharedConstants.has(r)){let s=this.freshName();this.sharedConstants.set(r,z(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getSharedFunctionReference(e,n,r=!0){let s=e instanceof Ur;for(let o of this.statements)if(s&&o instanceof De&&o.value?.isEquivalent(e)||!s&&o instanceof co&&e instanceof nr&&e.isEquivalent(o))return z(o.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof nr?e.toDeclStmt(i,Le.Final):new De(i,e,qt,Le.Final,e.sourceSpan)),z(i)}uniqueName(e,n=!0){let r=this._claimedNames.get(e)??0,s=r===0&&!n?`${e}`:`${e}${r}`;return this._claimedNames.set(e,r+1),s}freshName(){return this.uniqueName(NC)}},lo=class t{static INSTANCE=new t;keyOf(e){if(e instanceof Be&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof Be)return String(e.value);if(e instanceof zs)return`/${e.body}/${e.flags??""}`;if(e instanceof mn){let n=[];for(let r of e.entries)n.push(this.keyOf(r));return`[${n.join(",")}]`}else if(e instanceof Gt){let n=[];for(let r of e.entries)if(r instanceof rr)n.push("..."+this.keyOf(r.expression));else{let s=r.key;r.quoted&&(s=`"${s}"`),n.push(s+":"+this.keyOf(r.value))}return`{${n.join(",")}}`}else{if(e instanceof jr)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Wt)return`read(${e.name})`;if(e instanceof Ws)return`typeof(${this.keyOf(e.expr)})`;if(e instanceof Wr)return`...${this.keyOf(e.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};function hg(t){return t instanceof Be&&typeof t.value=="string"&&t.value.length>=MC}var g="@angular/core",h=(()=>{class t{static core={name:null,moduleName:g};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:g};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:g};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:g};static element={name:"\u0275\u0275element",moduleName:g};static elementStart={name:"\u0275\u0275elementStart",moduleName:g};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:g};static domElement={name:"\u0275\u0275domElement",moduleName:g};static domElementStart={name:"\u0275\u0275domElementStart",moduleName:g};static domElementEnd={name:"\u0275\u0275domElementEnd",moduleName:g};static domElementContainer={name:"\u0275\u0275domElementContainer",moduleName:g};static domElementContainerStart={name:"\u0275\u0275domElementContainerStart",moduleName:g};static domElementContainerEnd={name:"\u0275\u0275domElementContainerEnd",moduleName:g};static domTemplate={name:"\u0275\u0275domTemplate",moduleName:g};static domListener={name:"\u0275\u0275domListener",moduleName:g};static advance={name:"\u0275\u0275advance",moduleName:g};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:g};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:g};static attribute={name:"\u0275\u0275attribute",moduleName:g};static classProp={name:"\u0275\u0275classProp",moduleName:g};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:g};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:g};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:g};static styleMap={name:"\u0275\u0275styleMap",moduleName:g};static classMap={name:"\u0275\u0275classMap",moduleName:g};static styleProp={name:"\u0275\u0275styleProp",moduleName:g};static interpolate={name:"\u0275\u0275interpolate",moduleName:g};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:g};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:g};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:g};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:g};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:g};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:g};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:g};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:g};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:g};static nextContext={name:"\u0275\u0275nextContext",moduleName:g};static resetView={name:"\u0275\u0275resetView",moduleName:g};static templateCreate={name:"\u0275\u0275template",moduleName:g};static defer={name:"\u0275\u0275defer",moduleName:g};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:g};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:g};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:g};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:g};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:g};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:g};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:g};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:g};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:g};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:g};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:g};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:g};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:g};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:g};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:g};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:g};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:g};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:g};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:g};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:g};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:g};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:g};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:g};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:g};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:g};static conditional={name:"\u0275\u0275conditional",moduleName:g};static repeater={name:"\u0275\u0275repeater",moduleName:g};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:g};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:g};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:g};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:g};static text={name:"\u0275\u0275text",moduleName:g};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:g};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:g};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:g};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:g};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:g};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:g};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:g};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:g};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:g};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:g};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:g};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:g};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:g};static restoreView={name:"\u0275\u0275restoreView",moduleName:g};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:g};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:g};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:g};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:g};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:g};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:g};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:g};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:g};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:g};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:g};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:g};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:g};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:g};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:g};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:g};static domProperty={name:"\u0275\u0275domProperty",moduleName:g};static ariaProperty={name:"\u0275\u0275ariaProperty",moduleName:g};static property={name:"\u0275\u0275property",moduleName:g};static control={name:"\u0275\u0275control",moduleName:g};static controlCreate={name:"\u0275\u0275controlCreate",moduleName:g};static animationEnterListener={name:"\u0275\u0275animateEnterListener",moduleName:g};static animationLeaveListener={name:"\u0275\u0275animateLeaveListener",moduleName:g};static animationEnter={name:"\u0275\u0275animateEnter",moduleName:g};static animationLeave={name:"\u0275\u0275animateLeave",moduleName:g};static i18n={name:"\u0275\u0275i18n",moduleName:g};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:g};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:g};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:g};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:g};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:g};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:g};static pipe={name:"\u0275\u0275pipe",moduleName:g};static projection={name:"\u0275\u0275projection",moduleName:g};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:g};static reference={name:"\u0275\u0275reference",moduleName:g};static inject={name:"\u0275\u0275inject",moduleName:g};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:g};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:g};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:g};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:g};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:g};static forwardRef={name:"forwardRef",moduleName:g};static resolveForwardRef={name:"resolveForwardRef",moduleName:g};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:g};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:g};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:g};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:g};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:g};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:g};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:g};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:g};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:g};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:g};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:g};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:g};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:g};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:g};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:g};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:g};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:g};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:g};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:g};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:g};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:g};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:g};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:g};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:g};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:g};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:g};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:g};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:g};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:g};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:g};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:g};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:g};static definePipe={name:"\u0275\u0275definePipe",moduleName:g};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:g};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:g};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:g};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:g};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:g};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:g};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:g};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:g};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:g};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:g};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:g};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:g};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:g};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:g};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:g};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:g};static declareLet={name:"\u0275\u0275declareLet",moduleName:g};static storeLet={name:"\u0275\u0275storeLet",moduleName:g};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:g};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:g};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:g};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:g};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:g};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:g};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:g};static listener={name:"\u0275\u0275listener",moduleName:g};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:g};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:g};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:g};static validateAttribute={name:"\u0275\u0275validateAttribute",moduleName:g};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:g};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:g};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:g};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:g};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:g};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:g};static inputDecorator={name:"Input",moduleName:g};static outputDecorator={name:"Output",moduleName:g};static viewChildDecorator={name:"ViewChild",moduleName:g};static viewChildrenDecorator={name:"ViewChildren",moduleName:g};static contentChildDecorator={name:"ContentChild",moduleName:g};static contentChildrenDecorator={name:"ContentChildren",moduleName:g};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:g};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:g};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:g};static assertType={name:"\u0275assertType",moduleName:g}}return t})(),RC=/-+([a-z0-9])/g;function PC(t){return t.replace(RC,(...e)=>e[1].toUpperCase())}function LC(t,e){return Kv(t,":",e)}function OC(t,e){return Kv(t,".",e)}function Kv(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function FC(t){let e=[];for(let n=0;n=55296&&r<=56319&&t.length>n+1){let s=t.charCodeAt(n+1);s>=56320&&s<=57343&&(n++,r=(r-55296<<10)+s-56320+65536)}r<=127?e.push(r):r<=2047?e.push(r>>6&31|192,r&63|128):r<=65535?e.push(r>>12|224,r>>6&63|128,r&63|128):r<=2097151&&e.push(r>>18&7|240,r>>12&63|128,r>>6&63|128,r&63|128)}return e}function eE(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(eE).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;if(!t.toString)return"object";let n=t.toString();if(n==null)return""+n;let r=n.indexOf(` `);return r>=0?n.slice(0,r):n}var bd=class{full;major;minor;patch;constructor(e){this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},Xi=globalThis,BC=/^([1-9]|1[0-8])\./;function tE(t){return t.startsWith("0.")?!0:!BC.test(t)}var $C=3,VC="# sourceMappingURL=data:application/json;base64,",Dd=class{file;sourcesContent=new Map;lines=[];lastCol0=0;hasMappings=!1;constructor(e=null){this.file=e}addSource(e,n=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,n),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,n,r,s){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(n!=null&&!this.sourcesContent.has(n))throw new Error(`Unknown source file "${n}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e{e.set(l,u),n.push(l),r.push(this.sourcesContent.get(l)||null)});let s="",i=0,o=0,a=0,c=0;return this.lines.forEach(l=>{i=0,s+=l.map(u=>{let f=Wa(u.col0-i);return i=u.col0,u.sourceUrl!=null&&(f+=Wa(e.get(u.sourceUrl)-o),o=e.get(u.sourceUrl),f+=Wa(u.sourceLine0-a),a=u.sourceLine0,f+=Wa(u.sourceCol0-c),c=u.sourceCol0),f}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:$C,sourceRoot:"",sources:n,sourcesContent:r,mappings:s}}toJsComment(){return this.hasMappings?"//"+VC+HC(JSON.stringify(this,null,0)):""}};function HC(t){let e="",n=FC(t);for(let r=0;r>2),e+=Gi((s&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":Gi((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":Gi(o&63)}return e}function Wa(t){t=t<0?(-t<<1)+1:t<<1;let e="";do{let n=t&31;t=t>>5,t>0&&(n=n|32),e+=Gi(n)}while(t>0);return e}var jC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Gi(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return jC[t]}var UC=/'|\\|\n|\r|\$/g,qC=/^[$A-Z_][0-9A-Z_$]*$/i,_d=" ",Cc=class{indent;partsLength=0;parts=[];srcSpans=[];constructor(e){this.indent=e}},WC=new Map([[C.And,"&&"],[C.Bigger,">"],[C.BiggerEquals,">="],[C.BitwiseOr,"|"],[C.BitwiseAnd,"&"],[C.Divide,"/"],[C.Assign,"="],[C.Equals,"=="],[C.Identical,"==="],[C.Lower,"<"],[C.LowerEquals,"<="],[C.Minus,"-"],[C.Modulo,"%"],[C.Exponentiation,"**"],[C.Multiply,"*"],[C.NotEquals,"!="],[C.NotIdentical,"!=="],[C.NullishCoalesce,"??"],[C.Or,"||"],[C.Plus,"+"],[C.In,"in"],[C.AdditionAssignment,"+="],[C.SubtractionAssignment,"-="],[C.MultiplicationAssignment,"*="],[C.DivisionAssignment,"/="],[C.RemainderAssignment,"%="],[C.ExponentiationAssignment,"**="],[C.AndAssignment,"&&="],[C.OrAssignment,"||="],[C.NullishCoalesceAssignment,"??="]]),Ad=class t{_indent;static createRoot(){return new t(0)}_lines;constructor(e){this._indent=e,this._lines=[new Cc(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,n=""){this.print(e||null,n,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*_d.length+this._currentLine.partsLength}print(e,n,r=!1){n.length>0&&(this._currentLine.parts.push(n),this._currentLine.partsLength+=n.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),r&&this._lines.push(new Cc(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?mg(e.indent)+e.parts.join(""):"").join(` `)}toSourceMapGenerator(e,n=0){let r=new Dd(e),s=!1,i=()=>{s||(r.addSource(e," ").addMapping(0,e,0,0),s=!0)};for(let o=0;o{r.addLine();let c=o.srcSpans,l=o.parts,u=o.indent*_d.length,f=0;for(;fs)return r.srcSpans[i];s-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},Nd=class{_escapeDollarInStrings;lastIfCondition=null;constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,n){if(e.leadingComments!==void 0)for(let r of e.leadingComments)r instanceof yc?n.print(e,`/*${r.toString()}*/`,r.trailingNewline):r.multiline?n.print(e,`/* ${r.text} */`,r.trailingNewline):r.text.split(` `).forEach(s=>{n.println(e,`// ${s}`)})}visitExpressionStmt(e,n){return this.printLeadingComments(e,n),e.expr.visitExpression(this,n),n.println(e,";"),null}visitReturnStmt(e,n){return this.printLeadingComments(e,n),n.print(e,"return "),e.value.visitExpression(this,n),n.println(e,";"),null}visitIfStmt(e,n){this.printLeadingComments(e,n),n.print(e,"if ("),this.lastIfCondition=e.condition,e.condition.visitExpression(this,n),this.lastIfCondition=null,n.print(e,") {");let r=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!r?(n.print(e," "),this.visitAllStatements(e.trueCase,n),n.removeEmptyLastLine(),n.print(e," ")):(n.println(),n.incIndent(),this.visitAllStatements(e.trueCase,n),n.decIndent(),r&&(n.println(e,"} else {"),n.incIndent(),this.visitAllStatements(e.falseCase,n),n.decIndent())),n.println(e,"}"),null}visitInvokeFunctionExpr(e,n){let r=e.fn instanceof Ur;return r&&n.print(e.fn,"("),e.fn.visitExpression(this,n),r&&n.print(e.fn,")"),n.print(e,"("),this.visitAllExpressions(e.args,n,","),n.print(e,")"),null}visitTaggedTemplateLiteralExpr(e,n){return e.tag.visitExpression(this,n),e.template.visitExpression(this,n),null}visitTemplateLiteralExpr(e,n){n.print(e,"`");for(let r=0;r{r instanceof rr?(n.print(e,"..."),r.expression.visitExpression(this,n)):(n.print(e,`${Nr(r.key,this._escapeDollarInStrings,r.quoted)}:`),r.value.visitExpression(this,n))},e.entries,n,","),n.print(e,"}"),null}visitCommaExpr(e,n){return n.print(e,"("),this.visitAllExpressions(e.parts,n,","),n.print(e,")"),null}visitParenthesizedExpr(e,n){e.expr.visitExpression(this,n)}visitSpreadElementExpr(e,n){n.print(e,"..."),e.expression.visitExpression(this,n)}visitAllExpressions(e,n,r){this.visitAllObjects(s=>s.visitExpression(this,n),e,n,r)}visitAllObjects(e,n,r,s){let i=!1;for(let o=0;o0&&(r.lineLength()>80?(r.print(null,s,!0),i||(r.incIndent(),r.incIndent(),i=!0)):r.print(null,s,!1)),e(n[o]);i&&(r.decIndent(),r.decIndent())}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}};function Nr(t,e,n=!0){if(t==null)return null;let r=t.replace(UC,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==` `?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return n||!qC.test(r)?`'${r}'`:r}function mg(t){let e="";for(let n=0;nr.value));return e?gn([],n):n}function ep(t,e){return{expression:t,forwardRef:e}}function YC({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return ZC(t)}}function ZC(t){return k(h.forwardRef).callFn([gn([],t)])}var Ic=(function(t){return t[t.Class=0]="Class",t[t.Function=1]="Function",t})(Ic||{});function Dr(t){let e=z("__ngFactoryType__"),n=null,r=vg(t)?e:new G(C.Or,e,t.type.value),s=null;t.deps!==null?t.deps!=="invalid"&&(s=new io(r,gg(t.deps,t.target))):(n=z(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let i=[],o=null;function a(l){let u=z("__ngConditionalFactory__");i.push(new De(u.name,Qs,qt));let f=s!==null?u.set(s).toStmt():k(h.invalidFactory).callFn([]).toStmt();return i.push(xl(e,[f],[u.set(l).toStmt()])),u}if(vg(t)){let l=gg(t.delegateDeps,t.target),u=new(t.delegateType===Ic.Class?io:lt)(t.delegate,l);o=a(u)}else tI(t)?o=a(t.expression):o=s;if(o===null)i.push(k(h.invalidFactory).callFn([]).toStmt());else if(n!==null){let l=k(h.getInheritedFactory).callFn([t.type.value]),u=new G(C.Or,n,n.set(l));i.push(new Oe(u.callFn([r])))}else i.push(new Oe(o));let c=sr([new Pe(e.name,Sl)],i,qt,void 0,`${t.name}_Factory`);return n!==null&&(c=gn([],[new De(n.name),new Oe(c)]).callFn([],void 0,!0)),{expression:c,statements:[],type:XC(t)}}function XC(t){let e=t.deps!==null&&t.deps!=="invalid"?KC(t.deps):pn;return Fe(k(h.FactoryDeclaration,[Cl(t.type.type,t.typeArgumentCount),e]))}function gg(t,e){return t.map((n,r)=>JC(n,e,r))}function JC(t,e,n){if(t.token===null)return k(h.invalidFactoryDep).callFn([E(n)]);if(t.attributeNameType===null){let r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===_n.Pipe?16:0),s=r!==0||t.optional?E(r):null,i=[t.token];s&&i.push(s);let o=nI(e);return k(o).callFn(i)}else return k(h.injectAttribute).callFn([t.token])}function KC(t){let e=!1,n=t.map(r=>{let s=eI(r);return s!==null?(e=!0,s):E(null)});return e?Fe(te(n)):pn}function eI(t){let e=[];return t.attributeNameType!==null&&e.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&e.push({key:"optional",value:E(!0),quoted:!1}),t.host&&e.push({key:"host",value:E(!0),quoted:!1}),t.self&&e.push({key:"self",value:E(!0),quoted:!1}),t.skipSelf&&e.push({key:"skipSelf",value:E(!0),quoted:!1}),e.length>0?Pt(e):null}function vg(t){return t.delegateType!==void 0}function tI(t){return t.expression!==void 0}function nI(t){switch(t){case _n.Component:case _n.Directive:case _n.Pipe:return h.directiveInject;case _n.NgModule:case _n.Injectable:default:return h.inject}}var Gr=class{start;end;constructor(e,n){this.start=e,this.end=n}toAbsolute(e){return new gt(e+this.start,e+this.end)}},ae=class{span;sourceSpan;constructor(e,n){this.span=e,this.sourceSpan=n}toString(){return"AST"}},uo=class extends ae{nameSpan;constructor(e,n,r){super(e,n),this.nameSpan=r}},Ge=class extends ae{visit(e,n=null){}},vn=class extends ae{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},fo=class extends ae{visit(e,n=null){return e.visitThisReceiver?.(this,n)}},Ys=class extends ae{expressions;constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitChain(this,n)}},Tc=class extends ae{condition;trueExp;falseExp;constructor(e,n,r,s,i){super(e,n),this.condition=r,this.trueExp=s,this.falseExp=i}visit(e,n=null){return e.visitConditional(this,n)}},un=class extends uo{receiver;name;constructor(e,n,r,s,i){super(e,n,r),this.receiver=s,this.name=i}visit(e,n=null){return e.visitPropertyRead(this,n)}},po=class extends uo{receiver;name;constructor(e,n,r,s,i){super(e,n,r),this.receiver=s,this.name=i}visit(e,n=null){return e.visitSafePropertyRead(this,n)}},Qr=class extends ae{receiver;key;constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitKeyedRead(this,n)}},ho=class extends ae{receiver;key;constructor(e,n,r,s){super(e,n),this.receiver=r,this.key=s}visit(e,n=null){return e.visitSafeKeyedRead(this,n)}},oc=(function(t){return t[t.ReferencedByName=0]="ReferencedByName",t[t.ReferencedDirectly=1]="ReferencedDirectly",t})(oc||{}),bc=class extends uo{exp;name;args;type;constructor(e,n,r,s,i,o,a){super(e,n,a),this.exp=r,this.name=s,this.args=i,this.type=o}visit(e,n=null){return e.visitPipe(this,n)}},it=class extends ae{value;constructor(e,n,r){super(e,n),this.value=r}visit(e,n=null){return e.visitLiteralPrimitive(this,n)}},mo=class extends ae{expressions;constructor(e,n,r){super(e,n),this.expressions=r}visit(e,n=null){return e.visitLiteralArray(this,n)}},Dc=class extends ae{expression;constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitSpreadElement(this,n)}},Yr=class extends ae{keys;values;constructor(e,n,r,s){super(e,n),this.keys=r,this.values=s}visit(e,n=null){return e.visitLiteralMap(this,n)}},na=class extends ae{strings;expressions;constructor(e,n,r,s){super(e,n),this.strings=r,this.expressions=s}visit(e,n=null){return e.visitInterpolation(this,n)}},Qe=class extends ae{operation;left;right;constructor(e,n,r,s,i){super(e,n),this.operation=r,this.left=s,this.right=i}visit(e,n=null){return e.visitBinary(this,n)}static isAssignmentOperation(e){return e==="="||e==="+="||e==="-="||e==="*="||e==="/="||e==="%="||e==="**="||e==="&&="||e==="||="||e==="??="}},js=class t extends Qe{operator;expr;left=null;right=null;operation=null;static createMinus(e,n,r){return new t(e,n,"-",r,"-",new it(e,n,0),r)}static createPlus(e,n,r){return new t(e,n,"+",r,"-",r,new it(e,n,0))}constructor(e,n,r,s,i,o,a){super(e,n,i,o,a),this.operator=r,this.expr=s}visit(e,n=null){return e.visitUnary!==void 0?e.visitUnary(this,n):e.visitBinary(this,n)}},go=class extends ae{expression;constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitPrefixNot(this,n)}},vo=class extends ae{expression;constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitTypeofExpression(this,n)}},Eo=class extends ae{expression;constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitVoidExpression(this,n)}},yo=class extends ae{expression;constructor(e,n,r){super(e,n),this.expression=r}visit(e,n=null){return e.visitNonNullAssert(this,n)}},Zs=class extends ae{receiver;args;argumentSpan;constructor(e,n,r,s,i){super(e,n),this.receiver=r,this.args=s,this.argumentSpan=i}visit(e,n=null){return e.visitCall(this,n)}},_c=class extends ae{receiver;args;argumentSpan;constructor(e,n,r,s,i){super(e,n),this.receiver=r,this.args=s,this.argumentSpan=i}visit(e,n=null){return e.visitSafeCall(this,n)}},wo=class extends ae{tag;template;constructor(e,n,r,s){super(e,n),this.tag=r,this.template=s}visit(e,n){return e.visitTaggedTemplateLiteral(this,n)}},So=class extends ae{elements;expressions;constructor(e,n,r,s){super(e,n),this.elements=r,this.expressions=s}visit(e,n){return e.visitTemplateLiteral(this,n)}},Ac=class extends ae{text;constructor(e,n,r){super(e,n),this.text=r}visit(e,n){return e.visitTemplateLiteralElement(this,n)}},xo=class extends ae{expression;constructor(e,n,r){super(e,n),this.expression=r}visit(e,n){return e.visitParenthesizedExpression(this,n)}},Nc=class extends ae{body;flags;constructor(e,n,r,s){super(e,n),this.body=r,this.flags=s}visit(e,n){return e.visitRegularExpressionLiteral(this,n)}},gt=class{start;end;constructor(e,n){this.start=e,this.end=n}},ot=class extends ae{ast;source;location;errors;constructor(e,n,r,s,i){super(new Gr(0,n===null?0:n.length),new gt(s,n===null?s:s+n.length)),this.ast=e,this.source=n,this.location=r,this.errors=i}visit(e,n=null){return e.visitASTWithSource?e.visitASTWithSource(this,n):this.ast.visit(e,n)}toString(){return`${this.source} in ${this.location}`}},Co=class{sourceSpan;key;value;constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},kd=class{sourceSpan;key;value;constructor(e,n,r){this.sourceSpan=e,this.key=n,this.value=r}},Xs=class{visit(e,n){e.visit(this,n)}visitUnary(e,n){this.visit(e.expr,n)}visitBinary(e,n){this.visit(e.left,n),this.visit(e.right,n)}visitChain(e,n){this.visitAll(e.expressions,n)}visitConditional(e,n){this.visit(e.condition,n),this.visit(e.trueExp,n),this.visit(e.falseExp,n)}visitPipe(e,n){this.visit(e.exp,n),this.visitAll(e.args,n)}visitImplicitReceiver(e,n){}visitThisReceiver(e,n){}visitInterpolation(e,n){this.visitAll(e.expressions,n)}visitKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitLiteralArray(e,n){this.visitAll(e.expressions,n)}visitLiteralMap(e,n){this.visitAll(e.values,n)}visitLiteralPrimitive(e,n){}visitPrefixNot(e,n){this.visit(e.expression,n)}visitTypeofExpression(e,n){this.visit(e.expression,n)}visitVoidExpression(e,n){this.visit(e.expression,n)}visitNonNullAssert(e,n){this.visit(e.expression,n)}visitPropertyRead(e,n){this.visit(e.receiver,n)}visitSafePropertyRead(e,n){this.visit(e.receiver,n)}visitSafeKeyedRead(e,n){this.visit(e.receiver,n),this.visit(e.key,n)}visitCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitSafeCall(e,n){this.visit(e.receiver,n),this.visitAll(e.args,n)}visitTemplateLiteral(e,n){for(let r=0;rr!==null);td(e,n)}visitTriggers(e,n,r){td(r,e.map(s=>n[s]))}},Oc=class extends St{expression;groups;unknownBlocks;constructor(e,n,r,s,i,o,a){super(a,s,i,o),this.expression=e,this.groups=n,this.unknownBlocks=r}visit(e){return e.visitSwitchBlock(this)}},Hd=class extends St{expression;constructor(e,n,r,s,i){super(i,n,r,s),this.expression=e}visit(e){return e.visitSwitchBlockCase(this)}},_o=class extends St{cases;children;i18n;constructor(e,n,r,s,i,o,a){super(o,r,s,i),this.cases=e,this.children=n,this.i18n=a}visit(e){return e.visitSwitchBlockCaseGroup(this)}},ei=class extends St{item;expression;trackBy;trackKeywordSpan;contextVariables;children;empty;mainBlockSpan;i18n;constructor(e,n,r,s,i,o,a,c,l,u,f,p,m){super(p,c,u,f),this.item=e,this.expression=n,this.trackBy=r,this.trackKeywordSpan=s,this.contextVariables=i,this.children=o,this.empty=a,this.mainBlockSpan=l,this.i18n=m}visit(e){return e.visitForLoopBlock(this)}},Ao=class extends St{children;i18n;constructor(e,n,r,s,i,o){super(i,n,r,s),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},Fc=class extends St{branches;constructor(e,n,r,s,i){super(i,n,r,s),this.branches=e}visit(e){return e.visitIfBlock(this)}},Lr=class extends St{expression;children;expressionAlias;i18n;constructor(e,n,r,s,i,o,a,c){super(a,s,i,o),this.expression=e,this.children=n,this.expressionAlias=r,this.i18n=c}visit(e){return e.visitIfBlockBranch(this)}},Bc=class{name;sourceSpan;nameSpan;constructor(e,n,r){this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},tp=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},Ji=class{componentName;tagName;fullName;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,n,r,s,i,o,a,c,l,u,f,p,m,v){this.componentName=e,this.tagName=n,this.fullName=r,this.attributes=s,this.inputs=i,this.outputs=o,this.directives=a,this.children=c,this.references=l,this.isSelfClosing=u,this.sourceSpan=f,this.startSourceSpan=p,this.endSourceSpan=m,this.i18n=v}visit(e){return e.visitComponent(this)}},nE=class{name;attributes;inputs;outputs;references;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,n,r,s,i,o,a,c,l){this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.references=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c,this.i18n=l}visit(e){return e.visitDirective(this)}},Et=class{tagName;attributes;inputs;outputs;directives;templateAttrs;children;references;variables;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(e,n,r,s,i,o,a,c,l,u,f,p,m,v){this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.templateAttrs=o,this.children=a,this.references=c,this.variables=l,this.isSelfClosing=u,this.sourceSpan=f,this.startSourceSpan=p,this.endSourceSpan=m,this.i18n=v}visit(e){return e.visitTemplate(this)}},ti=class{selector;attributes;children;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;name="ng-content";constructor(e,n,r,s,i,o,a,c){this.selector=e,this.attributes=n,this.children=r,this.isSelfClosing=s,this.sourceSpan=i,this.startSourceSpan=o,this.endSourceSpan=a,this.i18n=c}visit(e){return e.visitContent(this)}},ir=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitVariable(this)}},No=class{name;value;sourceSpan;keySpan;valueSpan;constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitReference(this)}},rE=class{vars;placeholders;sourceSpan;i18n;constructor(e,n,r,s){this.vars=e,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(e){return e.visitIcu(this)}},ko=class{tagNames;bindings;listeners;sourceSpan;constructor(e,n,r,s){if(this.tagNames=e,this.bindings=n,this.listeners=r,this.sourceSpan=s,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function td(t,e){let n=[];if(t.visit)for(let r of e)t.visit(r);else for(let r of e){let s=r.visit(t);s&&n.push(s)}return n}var Je=class{nodes;placeholders;placeholderToMessage;meaning;description;customId;sources;id;legacyIds=[];messageString;constructor(e,n,r,s,i,o){this.nodes=e,this.placeholders=n,this.placeholderToMessage=r,this.meaning=s,this.description=i,this.customId=o,this.id=this.customId,this.messageString=sI(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=[]}},Vi=class{value;sourceSpan;constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},kn=class{children;sourceSpan;constructor(e,n){this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},$c=class{expression;type;cases;sourceSpan;expressionPlaceholder;constructor(e,n,r,s,i){this.expression=e,this.type=n,this.cases=r,this.sourceSpan=s,this.expressionPlaceholder=i}visit(e,n){return e.visitIcu(this,n)}},or=class{tag;attrs;startName;closeName;children;isVoid;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,n,r,s,i,o,a,c,l){this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=c,this.endSourceSpan=l}visit(e,n){return e.visitTagPlaceholder(this,n)}},Mo=class{value;name;sourceSpan;constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},ni=class{value;name;sourceSpan;previousMessage;constructor(e,n,r){this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},ar=class{name;parameters;startName;closeName;children;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,n,r,s,i,o,a,c){this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function sI(t){let e=new jd;return t.map(r=>r.visit(e)).join("")}var jd=class{visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${n.join(" ")}}`}visitTagPlaceholder(e){let n=e.children.map(r=>r.visit(this)).join("");return`{$${e.startName}}${n}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let n=e.children.map(r=>r.visit(this)).join("");return`{$${e.startName}}${n}{$${e.closeName}}`}};var iI=class{visitTag(e){let n=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${n}/>`;let r=e.children.map(s=>s.visit(this));return`<${e.name}${n}>${r.join("")}`}visitText(e){return e.value}visitDeclaration(e){return``}_serializeAttributes(e){let n=Object.keys(e).map(r=>`${r}="${e[r]}"`).join(" ");return n.length>0?" "+n:""}visitDoctype(e){return``}},FL=new iI;function oI(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var sE="i18n",Ud="i18n-",aI="VAR_";function iE(t){return t===sE||t.startsWith(Ud)}function cI(t){return t.attrs.some(e=>iE(e.name))}function oE(t){return t.nodes[0]}function np(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(r=>n[ra(r,e)]=t[r]),n}function ra(t,e=!0){let n=oI(t);if(!e)return n;let r=n.split("_");if(r.length===1)return t.toLowerCase();let s;/^\d+$/.test(r[r.length-1])&&(s=r.pop());let i=r.shift().toLowerCase();return r.length&&(i+=r.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),s?`${i}_${s}`:i}var lI=/[-.]/,rp="_t",Ro="ctx",sp="rf";function aE(t,e){let n=null;return()=>(n||(t(new De(rp,void 0,Sl)),n=z(e)),n)}function Fs(t){return Array.isArray(t)?te(t.map(Fs)):E(t,qt)}function yg(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:Pt(n.map(r=>{let s=t[r],i,o,a,c;if(typeof s=="string")i=r,a=r,o=s,c=Fs(o);else{a=r,i=s.classPropertyName,o=s.bindingPropertyName;let l=o!==i,u=s.transformFunction!==null,f=zi.None;if(s.isSignal&&(f|=zi.SignalBased),u&&(f|=zi.HasDecoratorInputTransform),e&&(l||u||f!==zi.None)){let p=[E(f),Fs(o)];(l||u)&&(p.push(Fs(i)),u&&p.push(s.transformFunction)),c=te(p)}else c=Fs(o)}return{key:a,quoted:lI.test(a),value:c}}))}var cr=class{values=[];set(e,n){if(n){let r=this.values.find(s=>s.key===e);r?r.value=n:this.values.push({key:e,value:n,quoted:!1})}}toLiteralMap(){return Pt(this.values)}};function uI(t){let e=t instanceof En?t.name:"ng-template",n=dI(t),r=new qs,s=Qt(e)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let o=Qt(i)[1],a=n[i];r.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(l=>r.addClassName(l))}),r}function dI(t){let e={};return t instanceof Et&&t.tagName!=="ng-template"?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{iE(n.name)||(e[n.name]=n.value)}),t.inputs.forEach(n=>{(n.type===Q.Property||n.type===Q.TwoWay)&&(e[n.name]="")}),t.outputs.forEach(n=>{e[n.name]=""})),e}function wg(t,e){let n=null,r={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:_n.Injectable};if(t.useClass!==void 0){let a=t.useClass.expression.isEquivalent(t.type.value),c;t.deps!==void 0&&(c=t.deps),c!==void 0?n=Dr(ee(y({},r),{delegate:t.useClass.expression,delegateDeps:c,delegateType:Ic.Class})):a?n=Dr(r):n={statements:[],expression:Sg(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=Dr(ee(y({},r),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:Ic.Function})):n={statements:[],expression:gn([],t.useFactory.callFn([]))}:t.useValue!==void 0?n=Dr(ee(y({},r),{expression:t.useValue.expression})):t.useExisting!==void 0?n=Dr(ee(y({},r),{expression:k(h.inject).callFn([t.useExisting.expression])})):n={statements:[],expression:Sg(t.type.value,t.type.value,e)};let s=t.type.value,i=new cr;return i.set("token",s),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",YC(t.providedIn)),{expression:k(h.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:fI(t),statements:n.statements}}function fI(t){return new Rt(k(h.InjectableDeclaration,[Cl(t.type.type,t.typeArgumentCount)]))}function Sg(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return xg(e);let r=k(h.resolveForwardRef).callFn([e]);return xg(r)}function xg(t){let e=new Pe("__ngFactoryType__",Sl);return gn([e],t.prop("\u0275fac").callFn([z(e.name)]))}var _e=0,pI=8,ip=9,Or=10,cE=11,lE=12,op=13,uE=32,qd=33,Po=34,dE=35,Tl=36,hI=37,Vc=38,Lo=39,vt=40,Re=41,Cg=42,fE=43,at=44,Hc=45,Ir=46,At=47,cn=58,ht=59,Us=60,je=61,Dt=62,Ig=63,ap=48,mI=55,pE=57,hr=65,gI=69,vI=70,EI=88,ui=90,dn=91,Fr=92,An=93,yI=94,mr=95,Xr=97,wI=98,SI=101,cp=102,hE=110,mE=114,gE=116,vE=117,EE=118,yE=120,sa=122,Ut=123,Tg=124,Ye=125,wE=160,_s=64,Wd=96;function Oo(t){return t>=ip&&t<=uE||t==wE}function jt(t){return ap<=t&&t<=pE}function lr(t){return t>=Xr&&t<=sa||t>=hr&&t<=ui}function xI(t){return t>=Xr&&t<=cp||t>=hr&&t<=vI||jt(t)}function jc(t){return t===Or||t===op}function bg(t){return ap<=t&&t<=mI}function Ki(t){return t===Lo||t===Po||t===Wd}var Fo=class t{file;offset;line;col;constructor(e,n,r,s){this.file=e,this.offset=n,this.line=r,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let n=this.file.content,r=n.length,s=this.offset,i=this.line,o=this.col;for(;s>0&&e<0;)if(s--,e++,n.charCodeAt(s)==Or){i--;let c=n.substring(0,s-1).lastIndexOf(String.fromCharCode(Or));o=c>0?s-c:s}else o--;for(;s0;){let a=n.charCodeAt(s);s++,e--,a==Or?(i++,o=0):o++}return new t(this.file,s,i,o)}getContext(e,n){let r=this.file.content,s=this.offset;if(s!=null){s>r.length-1&&(s=r.length-1);let i=s,o=0,a=0;for(;o0&&(s--,o++,!(r[s]==` `&&++a==n)););for(o=0,a=0;o]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function CI(t,e,n){let r=`in ${t} ${e} in ${n}`,s=new Uc("",r);return new O(new Fo(s,-1,-1,-1),new Fo(s,-1,-1,-1))}var II=0;function TI(t){if(!t||!t.reference)return null;let e=t.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let n=eE(e);return n.indexOf("(")>=0?(n=`anonymous_${II++}`,e.__anonymousType=n):n=_r(n),n}function _r(t){return t.replace(/\W/g,"_")}var Dg='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',zd=class extends Nd{constructor(){super(!1)}visitWrappedNodeExpr(e,n){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,n){return n.print(e,`var ${e.name}`),e.value&&(n.print(e," = "),e.value.visitExpression(this,n)),n.println(e,";"),null}visitTaggedTemplateLiteralExpr(e,n){let r=e.template.elements;return e.tag.visitExpression(this,n),n.print(e,`(${Dg}(`),n.print(e,`[${r.map(s=>Nr(s.text,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>Nr(s.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")"),null}visitTemplateLiteralExpr(e,n){n.print(e,"`");for(let r=0;r"),Array.isArray(e.body))n.println(e,"{"),n.incIndent(),this.visitAllStatements(e.body,n),n.decIndent(),n.print(e,"}");else{let r=e.body instanceof Gt;r&&n.print(e,"("),e.body.visitExpression(this,n),r&&n.print(e,")")}return null}visitDeclareFunctionStmt(e,n){return n.print(e,`function ${e.name}(`),this._visitParams(e.params,n),n.println(e,") {"),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.println(e,"}"),null}visitLocalizedString(e,n){n.print(e,`$localize(${Dg}(`);let r=[e.serializeI18nHead()];for(let s=1;sNr(s.cooked,!1)).join(", ")}], `),n.print(e,`[${r.map(s=>Nr(s.raw,!1)).join(", ")}])`),e.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")"),null}_visitParams(e,n){this.visitAllObjects(r=>n.print(null,r.name),e,n,",")}},za;function bI(){if(za===void 0){let t=Xi.trustedTypes;if(za=null,t)try{za=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return za}function DI(t){return bI()?.createScript(t)||t}function _g(...t){if(!Xi.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],r=`(function anonymous(${e} ) { ${n} })`,s=Xi.eval(DI(r));return s.bind===void 0?new Function(...t):(s.toString=()=>r,s.bind(Xi))}var Gd=class{evaluateStatements(e,n,r,s){let i=new Qd(r),o=Ad.createRoot();return n.length>0&&!_I(n[0])&&(n=[E("use strict").toStmt(),...n]),i.visitAllStatements(n,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),s)}evaluateCode(e,n,r,s){let i=`"use strict";${n.toSource()} //# sourceURL=${e}`,o=[],a=[];for(let l in r)a.push(r[l]),o.push(l);if(s){let l=_g(...o.concat("return null;")).toString(),u=l.slice(0,l.indexOf("return null;")).split(` `).length-1;i+=` ${n.toSourceMapGenerator(e,u).toJsComment()}`}let c=_g(...o.concat(i));return this.executeFunction(c,a)}executeFunction(e,n){return e(...n)}},Qd=class extends zd{refResolver;_evalArgNames=[];_evalArgValues=[];_evalExportedVars=[];constructor(e){super(),this.refResolver=e}createReturnStmt(e){new Oe(new Gt(this._evalExportedVars.map(r=>new Gs(r,z(r),!1)))).visitStatement(this,e)}getArgs(){let e={};for(let n=0;n0&&e.set("imports",te(t.imports));let n=k(h.defineInjector).callFn([e.toLiteralMap()],void 0,!0),r=AI(t);return{expression:n,type:r,statements:[]}}function AI(t){return new Rt(k(h.InjectorDeclaration,[new Rt(t.type.type)]))}var Yd=class{context;constructor(e){this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")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]}},qc=(function(t){return t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit",t})(qc||{}),tr=(function(t){return t[t.Global=0]="Global",t[t.Local=1]="Local",t})(tr||{});function NI(t){let e=[],n=new cr;if(n.set("type",t.type.value),t.kind===tr.Global&&t.bootstrap.length>0&&n.set("bootstrap",kr(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===qc.Inline)t.declarations.length>0&&n.set("declarations",kr(t.declarations,t.containsForwardDecls)),t.imports.length>0&&n.set("imports",kr(t.imports,t.containsForwardDecls)),t.exports.length>0&&n.set("exports",kr(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===qc.SideEffect){let i=RI(t);i!==null&&e.push(i)}t.schemas!==null&&t.schemas.length>0&&n.set("schemas",te(t.schemas.map(i=>i.value))),t.id!==null&&(n.set("id",t.id),e.push(k(h.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let r=k(h.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),s=MI(t);return{expression:r,type:s,statements:e}}function kI(t){let e=new cr;return e.set("type",new U(t.type)),t.bootstrap!==void 0&&e.set("bootstrap",new U(t.bootstrap)),t.declarations!==void 0&&e.set("declarations",new U(t.declarations)),t.imports!==void 0&&e.set("imports",new U(t.imports)),t.exports!==void 0&&e.set("exports",new U(t.exports)),t.schemas!==void 0&&e.set("schemas",new U(t.schemas)),t.id!==void 0&&e.set("id",new U(t.id)),k(h.defineNgModule).callFn([e.toLiteralMap()])}function MI(t){if(t.kind===tr.Local)return new Rt(t.type.value);let{type:e,declarations:n,exports:r,imports:s,includeImportTypes:i,publicDeclarationTypes:o}=t;return new Rt(k(h.NgModuleDeclaration,[new Rt(e.type),o===null?nd(n):PI(o),i?nd(s):pn,nd(r)]))}function RI(t){let e=new cr;if(t.kind===tr.Global?t.declarations.length>0&&e.set("declarations",kr(t.declarations,t.containsForwardDecls)):t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===tr.Global?t.imports.length>0&&e.set("imports",kr(t.imports,t.containsForwardDecls)):t.importsExpression&&e.set("imports",t.importsExpression),t.kind===tr.Global?t.exports.length>0&&e.set("exports",kr(t.exports,t.containsForwardDecls)):t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===tr.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let n=new lt(k(h.setNgModuleScope),[t.type.value,e.toLiteralMap()]),r=GC(n),s=new nr([],[r.toStmt()]);return new lt(s,[]).toStmt()}function nd(t){let e=t.map(n=>ta(n.type));return t.length>0?Fe(te(e)):pn}function PI(t){let e=t.map(n=>ta(n));return t.length>0?Fe(te(e)):pn}function Ng(t){let e=[];e.push({key:"name",value:E(t.pipeName??t.name),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:E(t.pure),quoted:!1}),t.isStandalone===!1&&e.push({key:"standalone",value:E(!1),quoted:!1});let n=k(h.definePipe).callFn([Pt(e)],void 0,!0),r=LI(t);return{expression:n,type:r,statements:[]}}function LI(t){return new Rt(k(h.PipeDeclaration,[Cl(t.type.type,t.typeArgumentCount),new Rt(new Be(t.pipeName)),new Rt(new Be(t.isStandalone))]))}var ri=(function(t){return t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule",t})(ri||{}),OI=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"]),FI=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Zd=class{shimCssText(e,n,r=""){let s=[];e=e.replace(KI,a=>{if(a.match(eT))s.push(a);else{let c=a.match(JI);s.push((c?.join("")??"")+` `)}return up}),e=this._insertDirectives(e);let i=this._scopeCssText(e,n,r),o=0;return i.replace(tT,()=>s[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,n){let r=new Set,s=Ga(e,i=>this._scopeLocalKeyframeDeclarations(i,n,r));return Ga(s,i=>this._scopeAnimationRule(i,n,r))}_scopeLocalKeyframeDeclarations(e,n,r){return ee(y({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(s,i,o,a,c)=>(r.add(Rg(a,o)),`${i}${o}${n}_${a}${o}${c}`))})}_scopeAnimationKeyframe(e,n,r){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(s,i,o,a,c)=>(a=`${r.has(Rg(a,o))?n+"_":""}${a}`,`${i}${o}${a}${o}${c}`))}_animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;_scopeAnimationRule(e,n,r){let s=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(c,l,u="",f,p)=>f?`${l}${this._scopeAnimationKeyframe(`${u}${f}${u}`,n,r)}`:OI.has(p)?c:`${l}${this._scopeAnimationKeyframe(p,n,r)}`));return s=s.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(c=>this._scopeAnimationKeyframe(c,n,r)).join(",")}`),ee(y({},e),{content:s})}_insertPolyfillDirectivesInCssText(e){return e.replace($I,function(...n){return n[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(VI,(...n)=>{let r=n[0].replace(n[1],"").replace(n[2],"");return n[4]+r})}_scopeCssText(e,n,r){let s=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),n&&(e=this._scopeKeyframesRelatedCss(e,n),e=this._scopeSelectors(e,n,r)),e=e+` `+s,e.trim()}_extractUnscopedRulesFromCssText(e){let n="",r;for(kg.lastIndex=0;(r=kg.exec(e))!==null;){let s=r[0].replace(r[2],"").replace(r[1],r[4]);n+=s+` `}return n}_convertColonHost(e){return e.replace(qI,(n,r,s)=>{if(r){let i=[];for(let o of this._splitOnTopLevelCommas(r,!0)){let a=o.trim();if(!a)break;let c=Xn+a.replace(Wc,"")+s;i.push(c)}return i.join(",")}else return Xn+s})}*_splitOnTopLevelCommas(e,n){let r=e.length,s=0,i=0;for(let o=0;o{let s=[[]],i=n.indexOf(Ls);for(;i!==-1;){let o=n.substring(i+Ls.length);if(!o||o[0]!=="("){n=o,i=n.indexOf(Ls);continue}let a=[],c=0;for(let u of this._splitOnTopLevelCommas(o.substring(1),!0)){c=c+u.length+1;let f=u.trim();f&&a.push(f)}let l=s.length;fT(s,a.length);for(let u=0;udT(o,n,r)).join(", ")})}_convertShadowDOMSelectors(e){return QI.reduce((n,r)=>n.replace(r," "),e)}_scopeSelectors(e,n,r){return Ga(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:r,isParentSelector:!0}):FI.some(a=>s.selector.startsWith(a))?o=this._scopeSelectors(s.content,n,r):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(s.content)),new Bo(i,o)})}_stripScopingSelectors(e){return Ga(e,n=>{let r=n.selector.replace(Mg," ").replace(rd," ");return new Bo(r,n.content)})}_safeSelector;_shouldScopeIndicator;_scopeSelector({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(Mg)).map(o=>{let[a,...c]=o;return[(u=>this._selectorNeedsScoping(u,n)?this._applySelectorScope({selector:u,scopeSelector:n,hostSelector:r,isParentSelector:s}):u)(a),...c].join(" ")}).join(", ")}_selectorNeedsScoping(e,n){return!this._makeScopeMatcher(n).test(e)}_makeScopeMatcher(e){let n=/\[/g,r=/\]/g;return e=e.replace(n,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+YI,"m")}_applySimpleSelectorScope(e,n,r){if(Bs.lastIndex=0,Bs.test(e)){let s=`[${r}]`,i=e;for(;i.match(rd);)i=i.replace(rd,(o,a)=>a.replace(/([^:\)]*)(:*)(.*)/,(c,l,u,f)=>l+s+u+f));return i.replace(Bs,s)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s}){let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(x,..._)=>_[0]);let o=`[${n}]`,a=x=>{let _=x.trim();if(!_)return x;if(x.includes(Xn)){if(_=this._applySimpleSelectorScope(x,n,r),!x.match(GI)){let[T,P,K,$]=_.match(/([^:]*)(:*)([\s\S]*)/);_=P+o+K+$}}else{let T=x.replace(Bs,"");if(T.length>0){let P=T.match(/([^:]*)(:*)([\s\S]*)/);P&&(_=P[1]+o+P[2]+P[3])}}return _},c=x=>{let _="",T=[],P;for(;(P=Hi.exec(x))!==null;){let K=1,$=Hi.lastIndex;for(;${let[$]=K.match(Hi)??[],Ht=K.slice($?.length,-1);Ht.includes(Xn)&&(this._shouldScopeIndicator=!0);let Bi=this._scopeSelector({selector:Ht,scopeSelector:n,hostSelector:r});return`${$}${Bi})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||x.includes(Xn),_=this._shouldScopeIndicator?a(x):x),_};s&&(this._safeSelector=new Xd(e),e=this._safeSelector.content());let l="",u=0,f,p=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,m=e.includes(Xn);for((s||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!m);(f=p.exec(e))!==null;){let x=f[1],_=e.slice(u,f.index);if(_.match(/__esc-ph-(\d+)__/)&&e[f.index+1]?.match(/[a-fA-F\d]/))continue;let T=c(_);l+=`${T} ${x} `,u=p.lastIndex}let v=e.substring(u);return l+=c(v),this._safeSelector.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(XI,Ls).replace(ZI,Wc)}},Xd=class{placeholders=[];index=0;_content;constructor(e){e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(n,r)=>{let s=`__esc-ph-${this.index}__`;return this.placeholders.push(r),this.index++,s}),this._content=e.replace(UI,(n,r,s)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(`(${s})`),this.index++,r+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(n,r)=>this.placeholders[+r])}content(){return this._content}_escapeRegexMatches(e,n){return e.replace(n,(r,s)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(s),this.index++,i})}},BI="(:(where|is)\\()?",Hi=/:(where|is)\(/gi,$I=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,VI=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,kg=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Wc="-shadowcsshost",Ls="-shadowcsscontext",Jd="[^)(]*",HI=String.raw`(?:\(${Jd}\)|${Jd})+?`,jI=String.raw`(?:\(${HI}\)|${Jd})+?`,lp=String.raw`(?:\((${jI})\))`,UI=new RegExp(String.raw`(:nth-[-\w]+)`+lp,"g"),qI=new RegExp(Wc+lp+"?([^,{]*)","gim"),WI=Ls+lp+"?([^{]*)",zI=new RegExp(`${BI}(${WI})`,"gim"),Xn=Wc+"-no-combinator",GI=new RegExp(`${Xn}(?![^(]*\\))`,"g"),rd=/-shadowcsshost-no-combinator([^\s,]*)/,QI=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Mg=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,YI="([>\\s~+[.,{:][\\s\\S]*)?$",Bs=/-shadowcsshost/gim,ZI=/:host/gim,XI=/:host-context/gim,JI=/\r?\n/g,KI=/\/\*[\s\S]*?\*\//g,eT=/\/\*\s*#\s*source(Mapping)?URL=/g,up="%COMMENT%",tT=new RegExp(up,"g"),sd="%BLOCK%",nT=new RegExp(`(\\s*(?:${up}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),rT=new Map([["{","}"]]),SE="%COMMA_IN_PLACEHOLDER%",xE="%SEMI_IN_PLACEHOLDER%",CE="%COLON_IN_PLACEHOLDER%",sT=new RegExp(SE,"g"),iT=new RegExp(xE,"g"),oT=new RegExp(CE,"g"),Bo=class{selector;content;constructor(e,n){this.selector=e,this.content=n}};function Ga(t,e){let n=lT(t),r=aT(n,rT,sd),s=0,i=r.escapedString.replace(nT,(...o)=>{let a=o[2],c="",l=o[4],u="";l&&l.startsWith("{"+sd)&&(c=r.blocks[s++],l=l.substring(sd.length+1),u="{");let f=e(new Bo(a,c));return`${o[1]}${f.selector}${o[3]}${u}${f.content}${l}`});return uT(i)}var Kd=class{escapedString;blocks;constructor(e,n){this.escapedString=e,this.blocks=n}};function aT(t,e,n){let r=[],s=[],i=0,o=0,a=-1,c,l;for(let u=0;u0;){let o=i.length,a=t.pop();for(let c=0;cs?`${n}${o}${e}`:`${n}${o}${r}${e}, ${n}${o} ${r}${e}`).join(",")}function fT(t,e){let n=t.length;for(let r=1;rn.isEquivalent(this.args[r]))}isConstant(){return!1}transformInternalExpressions(e,n){this.body!==null?this.body=A(this.body,e,n|Y.InChildOperation):this.fn!==null&&(this.fn=A(this.fn,e,n));for(let r=0;rn.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}},dr=class t extends ie{index;kind=M.PureFunctionParameterExpr;constructor(e){super(),this.index=e}visitExpression(){}isEquivalent(e){return e instanceof t&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},es=class t extends ie{target;targetSlot;name;args;kind=M.PipeBinding;[fi]=!0;[bl]=!0;varOffset=null;constructor(e,n,r,s){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s}visitExpression(e,n){for(let r of this.args)r.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){for(let r=0;rn.clone()));return e.varOffset=this.varOffset,e}},Uo=class t extends ie{target;targetSlot;name;args;numArgs;kind=M.PipeBindingVariadic;[fi]=!0;[bl]=!0;varOffset=null;constructor(e,n,r,s,i){super(),this.target=e,this.targetSlot=n,this.name=r,this.args=s,this.numArgs=i}visitExpression(e,n){this.args.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.args=A(this.args,e,n)}clone(){let e=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}},si=class t extends ie{receiver;name;kind=M.SafePropertyRead;constructor(e,n){super(),this.receiver=e,this.name=n}get index(){return this.name}visitExpression(e,n){this.receiver.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=A(this.receiver,e,n)}clone(){return new t(this.receiver.clone(),this.name)}},ii=class t extends ie{receiver;index;kind=M.SafeKeyedRead;constructor(e,n,r){super(r),this.receiver=e,this.index=n}visitExpression(e,n){this.receiver.visitExpression(e,n),this.index.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=A(this.receiver,e,n),this.index=A(this.index,e,n)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},ts=class t extends ie{receiver;args;kind=M.SafeInvokeFunction;constructor(e,n){super(),this.receiver=e,this.args=n}visitExpression(e,n){this.receiver.visitExpression(e,n);for(let r of this.args)r.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.receiver=A(this.receiver,e,n);for(let r=0;re.clone()))}},oi=class t extends ie{guard;expr;kind=M.SafeTernaryExpr;constructor(e,n){super(),this.guard=e,this.expr=n}visitExpression(e,n){this.guard.visitExpression(e,n),this.expr.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.guard=A(this.guard,e,n),this.expr=A(this.expr,e,n)}clone(){return new t(this.guard.clone(),this.expr.clone())}},qo=class t extends ie{kind=M.EmptyExpr;visitExpression(e,n){}isEquivalent(e){return e instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},Sn=class t extends ie{expr;xref;kind=M.AssignTemporaryExpr;name=null;constructor(e,n){super(),this.expr=e,this.xref=n}visitExpression(e,n){this.expr.visitExpression(e,n)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,n){this.expr=A(this.expr,e,n)}clone(){let e=new t(this.expr.clone(),this.xref);return e.name=this.name,e}},fr=class t extends ie{xref;kind=M.ReadTemporaryExpr;name=null;constructor(e){super(),this.xref=e}visitExpression(e,n){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(e,n){}clone(){let e=new t(this.xref);return e.name=this.name,e}},Zc=class t extends ie{slot;kind=M.SlotLiteralExpr;constructor(e){super(),this.slot=e}visitExpression(e,n){}isEquivalent(e){return e instanceof t&&e.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},Xc=class t extends ie{expr;target;targetSlot;alias;kind=M.ConditionalCase;constructor(e,n,r,s=null){super(),this.expr=e,this.target=n,this.targetSlot=r,this.alias=s}visitExpression(e,n){this.expr!==null&&this.expr.visitExpression(e,n)}isEquivalent(e){return e instanceof t&&e.expr===this.expr}isConstant(){return!0}clone(){return new t(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,n){this.expr!==null&&(this.expr=A(this.expr,e,n))}},Wo=class t extends ie{expr;kind=M.ConstCollected;constructor(e){super(),this.expr=e}transformInternalExpressions(e,n){this.expr=e(this.expr,n)}visitExpression(e,n){this.expr.visitExpression(e,n)}isEquivalent(e){return e instanceof t?this.expr.isEquivalent(e.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}};function Ne(t,e){ye(t,(n,r)=>(e(n,r),n),Y.None)}var Y=(function(t){return t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t})(Y||{});function od(t,e,n){for(let r=0;rA(r,e,n));else if(t instanceof Ur)if(Array.isArray(t.body))for(let r=0;r{class t{static nextListId=0;debugListId=t.nextListId++;head={kind:d.ListEnd,next:null,prev:null,debugListId:this.debugListId};tail={kind:d.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(n){if(Array.isArray(n)){for(let s of n)this.push(s);return}t.assertIsNotEnd(n),t.assertIsUnowned(n),n.debugListId=this.debugListId;let r=this.tail.prev;n.prev=r,r.next=n,n.next=this.tail,this.tail.prev=n}prepend(n){if(n.length===0)return;for(let i of n)t.assertIsNotEnd(i),t.assertIsUnowned(i),i.debugListId=this.debugListId;let r=this.head.next,s=this.head;for(let i of n)s.next=i,i.prev=s,s=i;s.next=r,r.prev=s}*[Symbol.iterator](){let n=this.head.next;for(;n!==this.tail;){t.assertIsOwned(n,this.debugListId);let r=n.next;yield n,n=r}}*reversed(){let n=this.tail.prev;for(;n!==this.head;){t.assertIsOwned(n,this.debugListId);let r=n.prev;yield n,n=r}}static replace(n,r){t.assertIsNotEnd(n),t.assertIsNotEnd(r),t.assertIsOwned(n),t.assertIsUnowned(r),r.debugListId=n.debugListId,n.prev!==null&&(n.prev.next=r,r.prev=n.prev),n.next!==null&&(n.next.prev=r,r.next=n.next),n.debugListId=null,n.prev=null,n.next=null}static replaceWithMany(n,r){if(r.length===0){t.remove(n);return}t.assertIsNotEnd(n),t.assertIsOwned(n);let s=n.debugListId;n.debugListId=null;for(let u of r)t.assertIsNotEnd(u),t.assertIsUnowned(u);let{prev:i,next:o}=n;n.prev=null,n.next=null;let a=i;for(let u of r)t.assertIsUnowned(u),u.debugListId=s,a.next=u,u.prev=a,u.next=null,a=u;let c=r[0],l=a;i!==null&&(i.next=c,c.prev=i),o!==null&&(o.prev=l,l.next=o)}static remove(n){t.assertIsNotEnd(n),t.assertIsOwned(n),n.prev.next=n.next,n.next.prev=n.prev,n.debugListId=null,n.prev=null,n.next=null}static insertBefore(n,r){if(Array.isArray(n)){for(let s of n)t.insertBefore(s,r);return}if(t.assertIsOwned(r),r.prev===null)throw new Error("AssertionError: illegal operation on list start");t.assertIsNotEnd(n),t.assertIsUnowned(n),n.debugListId=r.debugListId,n.prev=null,r.prev.next=n,n.prev=r.prev,n.next=r,r.prev=n}static insertAfter(n,r){if(t.assertIsOwned(r),r.next===null)throw new Error("AssertionError: illegal operation on list end");t.assertIsNotEnd(n),t.assertIsUnowned(n),n.debugListId=r.debugListId,r.next.prev=n,n.next=r.next,n.prev=r,r.next=n}static assertIsUnowned(n){if(n.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${d[n.kind]}`)}static assertIsOwned(n,r){if(n.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${d[n.kind]}`);if(r!==void 0&&n.debugListId!==r)throw new Error(`AssertionError: node belongs to the wrong list (expected ${r}, actual ${n.debugListId})`)}static assertIsNotEnd(n){if(n.kind===d.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}}return t})(),$e=class{slot=null},bT=new Set([d.Element,d.ElementStart,d.Container,d.ContainerStart,d.Template,d.RepeaterCreate,d.ConditionalCreate,d.ConditionalBranchCreate]);function pr(t){return bT.has(t.kind)}function DT(t,e,n,r,s,i){return y(y({kind:d.ElementStart,xref:e,tag:t,handle:new $e,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i},Ot),F)}function _E(t,e,n,r,s,i,o,a){return y(y({kind:d.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new $e,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Ot),F)}function AE(t,e,n,r,s,i,o,a){return y(y({kind:d.ConditionalCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new $e,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Ot),F)}function NE(t,e,n,r,s,i,o,a){return y(y({kind:d.ConditionalBranchCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new $e,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Ot),F)}function _T(t,e,n,r,s,i,o,a,c,l){return ee(y(y(y({kind:d.RepeaterCreate,attributes:null,xref:t,handle:new $e,emptyView:e,track:r,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Ue.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:c,wholeSourceSpan:l},Ot),F),Ke),{numSlotsUsed:e===null?2:3})}function AT(t,e){return y({kind:d.ElementEnd,xref:t,sourceSpan:e},F)}function NT(t){return y({kind:d.DisableBindings,xref:t},F)}function kT(t){return y({kind:d.EnableBindings,xref:t},F)}function kE(t,e,n,r){return y(y({kind:d.Text,xref:t,handle:new $e,initialValue:e,icuPlaceholder:n,sourceSpan:r},Ot),F)}function MT(t,e,n,r,s,i){return y({kind:d.AnimationString,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},F)}function RT(t,e,n,r,s,i){let o=new w;return o.push(r),y({kind:d.Animation,name:t,target:e,animationKind:n,handlerOps:o,handlerFnName:null,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},F)}function fp(t,e,n,r,s,i,o,a,c){let l=new w;return l.push(s),y({kind:d.Listener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,handlerOps:l,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:o,sourceSpan:c},F)}function ME(t,e,n,r,s,i,o,a,c){let l=new w;return l.push(s),y({kind:d.AnimationListener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,animationKind:i,handlerOps:l,handlerFnName:null,consumesDollarEvent:!1,eventTarget:o,sourceSpan:c},F)}function RE(t,e,n,r,s,i){let o=new w;return o.push(s),y({kind:d.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},F)}function PE(t,e,n){return y(y({kind:d.Pipe,xref:t,handle:e,name:n},F),Ot)}function PT(t){return y({kind:d.Namespace,active:t},F)}function LT(t){return y({kind:d.ProjectionDef,def:t},F)}function OT(t,e,n,r,s){return ee(y(y({kind:d.Projection,xref:t,handle:new $e,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s},F),Ot),{numSlotsUsed:r===null?1:2})}function pt(t,e,n,r,s,i,o,a){return y({kind:d.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null},F)}function FT(t,e,n,r,s,i){return ee(y(y({kind:d.Defer,xref:t,handle:new $e,mainView:e,mainSlot:n,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:r,resolverFn:s,flags:null,sourceSpan:i},F),Ot),{numSlotsUsed:2})}function Zn(t,e,n,r){return y({kind:d.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:r},F)}function BT(t,e,n){return y(y({kind:d.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new $e},Ot),F)}function $T(t,e,n,r,s,i,o,a){return y({kind:d.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[]},F)}function Dl(t,e,n,r){return y(y({kind:d.I18nStart,xref:t,handle:new $e,root:n??t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r},F),Ot)}function _l(t,e){return y({kind:d.I18nEnd,xref:t,sourceSpan:e},F)}function VT(t,e,n,r){return y({kind:d.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r},F)}function HT(t){return y({kind:d.IcuEnd,xref:t},F)}function jT(t,e,n){return y({kind:d.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},F)}function ad(t,e,n,r,s){if(n===null&&t!==Rr.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return y({kind:d.I18nContext,contextKind:t,xref:e,i18nBlock:n,message:r,sourceSpan:s,params:new Map,postprocessingParams:new Map},F)}function LE(t,e,n){return y(y({kind:d.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},F),Ot)}function UT(t,e){return y({kind:d.SourceLocation,templatePath:t,locations:e},F)}function qT(t){return y({kind:d.ControlCreate,sourceSpan:t},F)}function WT(t,e,n,r,s,i){return y(y({kind:d.DomProperty,name:t,expression:e,bindingKind:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i},Ke),F)}var OE="CTX_REF_MARKER",b=(function(t){return t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both",t})(b||{}),rt=(function(t){return t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly",t})(rt||{}),Kc=class{componentName;pool;compatibility;mode;constructor(e,n,r,s){this.componentName=e,this.pool=n,this.compatibility=r,this.mode=s}kind=b.Both;allocateXrefId(){return this.nextXrefId++}nextXrefId=0},zo=class extends Kc{relativeContextFilePath;i18nUseExternalIds;deferMeta;allDeferrableDepsFn;relativeTemplatePath;enableDebugLocations;constructor(e,n,r,s,i,o,a,c,l,u){super(e,n,r,s),this.relativeContextFilePath=i,this.i18nUseExternalIds=o,this.deferMeta=a,this.allDeferrableDepsFn=c,this.relativeTemplatePath=l,this.enableDebugLocations=u,this.root=new Mt(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}kind=b.Tmpl;fnSuffix="Template";root;views=new Map;contentSelectors=null;allocateView(e){let n=new Mt(this,this.allocateXrefId(),e);return this.views.set(n.xref,n),n}get units(){return this.views.values()}addConst(e,n){for(let s=0;s{!o&&Vo(a)&&a.target!==i.xref&&(o=!0)}),o)break;n=n.next}}}}function XT(t){if(!(!t.enableDebugLocations||t.relativeTemplatePath===null))for(let e of t.units){let n=[];for(let r of e.create)if(r.kind===d.ElementStart||r.kind===d.Element){let s=r.startSourceSpan.start;n.push({targetSlot:r.handle,offset:s.offset,line:s.line,column:s.col})}n.length>0&&e.create.push(UT(t.relativeTemplatePath,n))}}function FE(t){let e=new Map;for(let n of t.create)pi(n)&&(e.set(n.xref,n),n.kind===d.RepeaterCreate&&n.emptyView!==null&&e.set(n.emptyView,n));return e}function JT(t){for(let e of t.units){let n=FE(e);for(let r of e.ops())switch(r.kind){case d.Attribute:KT(e,r,n);break;case d.Property:if(r.bindingKind!==N.LegacyAnimation&&r.bindingKind!==N.Animation){let s;r.i18nMessage!==null&&r.templateKind===null?s=N.I18n:r.isStructuralTemplateAttribute?s=N.Template:s=N.Property,w.insertBefore(pt(r.target,s,null,r.name,null,null,null,r.securityContext),Tr(n,r.target))}break;case d.Control:w.insertBefore(pt(r.target,N.Property,null,r.name,null,null,null,r.securityContext),Tr(n,r.target));break;case d.TwoWayProperty:w.insertBefore(pt(r.target,N.TwoWayProperty,null,r.name,null,null,null,r.securityContext),Tr(n,r.target));break;case d.StyleProp:case d.ClassProp:e.job.compatibility===xt.TemplateDefinitionBuilder&&r.expression instanceof qo&&w.insertBefore(pt(r.target,N.Property,null,r.name,null,null,null,se.STYLE),Tr(n,r.target));break;case d.Listener:if(!r.isLegacyAnimationListener){let s=pt(r.target,N.Property,null,r.name,null,null,null,se.NONE);if(t.kind===b.Host){if(t.compatibility)break;e.create.push(s)}else w.insertBefore(s,Tr(n,r.target))}break;case d.TwoWayListener:if(t.kind!==b.Host){let s=pt(r.target,N.Property,null,r.name,null,null,null,se.NONE);w.insertBefore(s,Tr(n,r.target))}break}}}function Tr(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function KT(t,e,n){if(e.expression instanceof ve)return;let r=e.isTextAttribute||e.expression.isConstant();if(t.job.compatibility===xt.TemplateDefinitionBuilder&&(r&&=e.isTextAttribute),r){let s=pt(e.target,e.isStructuralTemplateAttribute?N.Template:N.Attribute,e.namespace,e.name,e.expression,e.i18nContext,e.i18nMessage,e.securityContext);if(t.job.kind===b.Host)t.create.push(s);else{let i=Tr(n,e.target);w.insertBefore(s,i)}w.remove(e)}}var Fg="aria-";function BE(t){return t.startsWith(Fg)&&t.length>Fg.length}function eb(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function tb(t){let e=new Map;for(let n of t.units)for(let r of n.create)pr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===d.Binding)switch(r.bindingKind){case N.Attribute:if(r.name==="ngNonBindable"){w.remove(r);let s=eb(e,r.target);s.nonBindable=!0}else if(r.name.startsWith("animate."))w.replace(r,Og(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,0));else{let[s,i]=Qt(r.name);w.replace(r,Lg(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case N.Animation:w.replace(r,Og(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,1));break;case N.Property:case N.LegacyAnimation:t.mode===rt.DomOnly&&BE(r.name)?w.replace(r,Lg(r.target,null,r.name,r.expression,r.securityContext,!1,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan)):t.kind===b.Host?w.replace(r,WT(r.name,r.expression,r.bindingKind,r.i18nContext,r.securityContext,r.sourceSpan)):r.name==="formField"?w.replace(r,TT(r)):w.replace(r,hT(r.target,r.name,r.expression,r.bindingKind,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case N.TwoWayProperty:if(!(r.expression instanceof X))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);w.replace(r,mT(r.target,r.name,r.expression,r.securityContext,r.isStructuralTemplateAttribute,r.templateKind,r.i18nContext,r.i18nMessage,r.sourceSpan));break;case N.I18n:case N.ClassName:case N.StyleProperty:throw new Error(`Unhandled binding of kind ${N[r.bindingKind]}`)}}var Bg=new Map([[h.ariaProperty,h.ariaProperty],[h.attribute,h.attribute],[h.classProp,h.classProp],[h.element,h.element],[h.elementContainer,h.elementContainer],[h.elementContainerEnd,h.elementContainerEnd],[h.elementContainerStart,h.elementContainerStart],[h.elementEnd,h.elementEnd],[h.elementStart,h.elementStart],[h.domProperty,h.domProperty],[h.i18nExp,h.i18nExp],[h.listener,h.listener],[h.listener,h.listener],[h.property,h.property],[h.styleProp,h.styleProp],[h.syntheticHostListener,h.syntheticHostListener],[h.syntheticHostProperty,h.syntheticHostProperty],[h.templateCreate,h.templateCreate],[h.twoWayProperty,h.twoWayProperty],[h.twoWayListener,h.twoWayListener],[h.declareLet,h.declareLet],[h.conditionalCreate,h.conditionalBranchCreate],[h.conditionalBranchCreate,h.conditionalBranchCreate],[h.domElement,h.domElement],[h.domElementStart,h.domElementStart],[h.domElementEnd,h.domElementEnd],[h.domElementContainer,h.domElementContainer],[h.domElementContainerStart,h.domElementContainerStart],[h.domElementContainerEnd,h.domElementContainerEnd],[h.domListener,h.domListener],[h.domTemplate,h.domTemplate],[h.animationEnter,h.animationEnter],[h.animationLeave,h.animationLeave],[h.animationEnterListener,h.animationEnterListener],[h.animationLeaveListener,h.animationLeaveListener]]),nb=256;function rb(t){for(let e of t.units)$g(e.create),$g(e.update)}function $g(t){let e=null;for(let n of t){if(n.kind!==d.Statement||!(n.statement instanceof qe)){e=null;continue}if(!(n.statement.expr instanceof lt)||!(n.statement.expr.fn instanceof jr)){e=null;continue}let r=n.statement.expr.fn.value;if(!Bg.has(r)){e=null;continue}if(e!==null&&Bg.get(e.instruction)===r&&e.lengths==="")&&(n.expression=n.expression.expressions[0])}function ib(t){for(let e of t.units)for(let n of e.ops()){if(n.kind!==d.Conditional)continue;let r,s=n.conditions.findIndex(a=>a.expr===null);if(s>=0){let a=n.conditions.splice(s,1)[0].targetSlot;r=new Zc(a)}else r=E(-1);let i=n.test==null?null:new Sn(n.test,t.allocateXrefId()),o=null;for(let a=n.conditions.length-1;a>=0;a--){let c=n.conditions[a];if(c.expr!==null){if(i!==null){let l=a===0?i:new fr(i.xref);c.expr=new G(C.Identical,l,c.expr)}else c.alias!==null&&(o??=t.allocateXrefId(),c.expr=new Sn(c.expr,o),n.contextValue=new fr(o));r=new hn(c.expr,new Zc(c.targetSlot),r)}}n.processed=r,n.conditions=[]}}var ob=new Map([["&&",C.And],[">",C.Bigger],[">=",C.BiggerEquals],["|",C.BitwiseOr],["&",C.BitwiseAnd],["/",C.Divide],["=",C.Assign],["==",C.Equals],["===",C.Identical],["<",C.Lower],["<=",C.LowerEquals],["-",C.Minus],["%",C.Modulo],["**",C.Exponentiation],["*",C.Multiply],["!=",C.NotEquals],["!==",C.NotIdentical],["??",C.NullishCoalesce],["||",C.Or],["+",C.Plus],["in",C.In],["+=",C.AdditionAssignment],["-=",C.SubtractionAssignment],["*=",C.MultiplicationAssignment],["/=",C.DivisionAssignment],["%=",C.RemainderAssignment],["**=",C.ExponentiationAssignment],["&&=",C.AndAssignment],["||=",C.OrAssignment],["??=",C.NullishCoalesceAssignment]]);function $E(t){let e=new Map([["svg",Ue.SVG],["math",Ue.Math]]);return t===null?Ue.HTML:e.get(t)??Ue.HTML}function ab(t){let e=new Map([["svg",Ue.SVG],["math",Ue.Math]]);for(let[n,r]of e.entries())if(r===t)return n;return null}function cb(t,e){return e===Ue.HTML?t:`:${ab(e)}:${t}`}function ai(t){return Array.isArray(t)?te(t.map(ai)):E(t)}function lb(t){let e=new Map;for(let n of t.units)for(let r of n.create)if(r.kind===d.ExtractedAttribute){let s=e.get(r.target)||new sf(t.compatibility);e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),w.remove(r)}if(t instanceof zo)for(let n of t.units)for(let r of n.create)if(r.kind==d.Projection){let s=e.get(r.xref);if(s!==void 0){let i=of(s);i.entries.length>0&&(r.attributes=i)}}else pr(r)&&(r.attributes=Vg(t,e,r.xref),r.kind===d.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=Vg(t,e,r.emptyView)));else if(t instanceof tl)for(let[n,r]of e.entries()){if(n!==t.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let s=of(r);s.entries.length>0&&(t.root.attributes=s)}}function Vg(t,e,n){let r=e.get(n);if(r!==void 0){let s=of(r);if(s.entries.length>0)return t.addConst(s)}return null}var As=Object.freeze([]),sf=class{compatibility;known=new Map;byKind=new Map;propertyBindings=null;projectAs=null;get attributes(){return this.byKind.get(N.Attribute)??As}get classes(){return this.byKind.get(N.ClassName)??As}get styles(){return this.byKind.get(N.StyleProperty)??As}get bindings(){return this.propertyBindings??As}get template(){return this.byKind.get(N.Template)??As}get i18n(){return this.byKind.get(N.I18n)??As}constructor(e){this.compatibility=e}isKnown(e,n){let r=this.known.get(e)??new Set;return this.known.set(e,r),r.has(n)?!0:(r.add(n),!1)}add(e,n,r,s,i){if(!(this.compatibility===xt.TemplateDefinitionBuilder&&(e===N.Attribute||e===N.ClassName||e===N.StyleProperty))&&this.isKnown(e,n))return;if(n==="ngProjectAs"){if(r===null||!(r instanceof Be)||r.value==null||typeof r.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=r.value.toString()}let a=this.arrayFor(e);if(a.push(...ub(s,n)),e===N.Attribute||e===N.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!DE(r))throw Error("AssertionError: extracted attribute value should be string literal");a.push(DC(i,new oo([new vc(r.value)],[]),void 0,r.sourceSpan))}else a.push(r)}}arrayFor(e){return e===N.Property||e===N.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function ub(t,e){let n=E(e);return t?[E(0),E(t),n]:[n]}function of({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let a=[...t];if(s!==null){let c=Zf(s)[0];a.push(E(5),ai(c))}return n.length>0&&a.push(E(1),...n),i.length>0&&a.push(E(2),...i),e.length>0&&a.push(E(3),...e),o.length>0&&a.push(E(4),...o),r.length>0&&a.push(E(6),...r),te(a)}function db(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function fb(t){let e=new Map;for(let n of t.units)for(let r of n.create)pr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.ops())if(r.kind===d.AnimationBinding){let s=pb(r);t.kind===b.Host?n.create.push(s):w.insertAfter(s,db(e,r.target)),w.remove(r)}}function pb(t){if(t.animationBindingKind===0)return MT(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan);{let e=t.expression;return RT(t.name,t.target,t.name==="animate.enter"?"enter":"leave",[Lt(new Oe(e,e.sourceSpan))],t.securityContext,t.sourceSpan)}}function hb(t){let e=new Map;for(let n of t.units){for(let r of n.create)r.kind===d.I18nAttributes&&e.set(r.target,r);for(let r of n.update)switch(r.kind){case d.Property:case d.Attribute:if(r.i18nContext===null||!(r.expression instanceof ve))continue;let s=e.get(r.target);if(s===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(s.target!==r.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;oAb(r,{job:t}),Y.None),ye(n,Nb,Y.None)}function ft(t){return t instanceof qr?ft(t.expr):t instanceof G?ft(t.lhs)||ft(t.rhs):t instanceof hn?t.falseCase&&ft(t.falseCase)?!0:ft(t.condition)||ft(t.trueCase):t instanceof ao?ft(t.condition):t instanceof Sn?ft(t.expr):t instanceof wt?ft(t.receiver):t instanceof Rn?ft(t.receiver)||ft(t.index):t instanceof zt?ft(t.expr):t instanceof lt||t instanceof mn||t instanceof Gt||t instanceof ts||t instanceof es}function Ib(t){let e=new Set;return A(t,n=>(n instanceof Sn&&e.add(n.xref),n),Y.None),e}function Tb(t,e,n){return A(t,r=>{if(r instanceof Sn&&e.has(r.xref)){let s=new fr(r.xref);return n.job.compatibility===xt.TemplateDefinitionBuilder?new Sn(s,s.xref):s}return r},Y.None),t}function Ns(t,e,n){let r;if(ft(t)){let s=n.job.allocateXrefId();r=[new Sn(t,s),new fr(s)]}else r=[t,t.clone()],Tb(r[1],Ib(r[0]),n);return new oi(r[0],e(r[1]))}function bb(t){return t instanceof si||t instanceof ii||t instanceof ts}function Db(t){return t instanceof wt||t instanceof Rn||t instanceof lt}function VE(t){return bb(t)||Db(t)}function _b(t){if(VE(t)&&t.receiver instanceof oi){let e=t.receiver;for(;e.expr instanceof oi;)e=e.expr;return e}return null}function Ab(t,e){if(!VE(t))return t;let n=_b(t);if(n){if(t instanceof lt)return n.expr=n.expr.callFn(t.args),t.receiver;if(t instanceof wt)return n.expr=n.expr.prop(t.name),t.receiver;if(t instanceof Rn)return n.expr=n.expr.key(t.index),t.receiver;if(t instanceof ts)return n.expr=Ns(n.expr,r=>r.callFn(t.args),e),t.receiver;if(t instanceof si)return n.expr=Ns(n.expr,r=>r.prop(t.name),e),t.receiver;if(t instanceof ii)return n.expr=Ns(n.expr,r=>r.key(t.index),e),t.receiver}else{if(t instanceof ts)return Ns(t.receiver,r=>r.callFn(t.args),e);if(t instanceof si)return Ns(t.receiver,r=>r.prop(t.name),e);if(t instanceof ii)return Ns(t.receiver,r=>r.key(t.index),e)}return t}function Nb(t){return t instanceof oi?new zt(new hn(new G(C.Equals,t.guard,Qs),Qs,t.expr)):t}var Hg="\uFFFD",kb="#",Mb="*",Rb="/",Pb=":",Lb="[",Ob="]",Fb="|";function Bb(t){let e=new Map,n=new Map,r=new Map;for(let i of t.units)for(let o of i.create)switch(o.kind){case d.I18nContext:let a=$b(t,o);i.create.push(a),e.set(o.xref,a),r.set(o.xref,o);break;case d.I18nStart:n.set(o.xref,o);break}let s=null;for(let i of t.units)for(let o of i.create)switch(o.kind){case d.IcuStart:s=o,w.remove(o);let a=r.get(o.context);if(a.contextKind!==Rr.Icu)continue;let c=n.get(a.i18nBlock);if(c.context===a.xref)continue;let l=n.get(c.root),u=e.get(l.context);if(u===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let f=e.get(a.xref);f.messagePlaceholder=o.messagePlaceholder,u.subMessages.push(f.xref);break;case d.IcuEnd:s=null,w.remove(o);break;case d.IcuPlaceholder:if(s===null||s.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(s.context).postprocessingParams.set(o.name,E(Vb(o))),w.remove(o);break}}function $b(t,e,n){let r=jg(e.params),s=jg(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return $T(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,r,s,i)}function Vb(t){if(t.strings.length!==t.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${t.strings.length} strings and ${t.expressionPlaceholders.length} expressions`);let e=t.expressionPlaceholders.map($s);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function jg(t){let e=new Map;for(let[n,r]of t){let s=Hb(r);s!==null&&e.set(n,E(s))}return e}function Hb(t){if(t.length===0)return null;let e=t.map(n=>$s(n));return e.length===1?e[0]:`${Lb}${e.join(Fb)}${Ob}`}function $s(t){if(t.flags&oe.ElementTag&&t.flags&oe.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=$s(ee(y({},t),{value:t.value.element,flags:t.flags&~oe.TemplateTag})),i=$s(ee(y({},t),{value:t.value.template,flags:t.flags&~oe.ElementTag}));return t.flags&oe.OpenTag&&t.flags&oe.CloseTag?`${i}${s}${i}`:t.flags&oe.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&oe.OpenTag&&t.flags&oe.CloseTag)return`${$s(ee(y({},t),{flags:t.flags&~oe.CloseTag}))}${$s(ee(y({},t),{flags:t.flags&~oe.OpenTag}))}`;if(t.flags===oe.None)return`${t.value}`;let e="",n="";t.flags&oe.ElementTag?e=kb:t.flags&oe.TemplateTag&&(e=Mb),e!==""&&(n=t.flags&oe.CloseTag?Rb:"");let r=t.subTemplateIndex===null?"":`${Pb}${t.subTemplateIndex}`;return`${Hg}${n}${e}${t.value}${r}${Hg}`}function jb(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(pi(s)){if(s.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;n.set(s.xref,s.handle.slot)}let r=0;for(let s of e.update){let i=null;if(Vo(s)?i=s:Ne(s,a=>{i===null&&Vo(a)&&(i=a)}),i===null)continue;if(!n.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=n.get(i.target);if(r!==o){let a=o-r;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");w.insertBefore(wT(a,i.sourceSpan),s),r=o}}}}function Ub(t){for(let e of t.units)for(let n of e.update){if(n.kind!==d.StoreLet)continue;let r={kind:Ae.Identifier,name:null,identifier:n.declaredName,local:!0};w.replace(n,Kn(t.allocateXrefId(),r,new Ho(n.target,n.value,n.sourceSpan),kt.None))}}function qb(t){let e=t.compatibility===xt.TemplateDefinitionBuilder,n=[],r=0;for(let s of t.units)for(let i of s.create)i.kind===d.Projection&&(n.push(i.selector),i.projectionSlotIndex=r++);if(n.length>0){let s=null;if(n.length>1||n[0]!=="*"){let i=n.map(o=>o==="*"?o:Zf(o));s=t.pool.getConstLiteral(ai(i),e)}t.contentSelectors=t.pool.getConstLiteral(ai(n),e),t.root.create.prepend([LT(s)])}}function Wb(t){Qi(t.root,null)}function Qi(t,e){let n=zb(t,e);for(let r of t.create)switch(r.kind){case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:Qi(t.job.views.get(r.xref),n);break;case d.Projection:r.fallbackView!==null&&Qi(t.job.views.get(r.fallbackView),n);break;case d.RepeaterCreate:Qi(t.job.views.get(r.xref),n),r.emptyView&&Qi(t.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(cc(t,n,!1));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:r.handlerOps.prepend(cc(t,n,!0));break}t.update.prepend(cc(t,n,!1))}function zb(t,e){let n={view:t.xref,viewContextVariable:{kind:Ae.Context,name:null,view:t.xref},contextVariables:new Map,aliases:t.aliases,references:[],letDeclarations:[],parent:e};for(let r of t.contextVariables.keys())n.contextVariables.set(r,{kind:Ae.Identifier,name:null,identifier:r,local:!1});for(let r of t.create)switch(r.kind){case d.ElementStart:case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let s=0;sr instanceof Wo?E(t.addConst(r.expr)):r,Y.None)}var Ug="style.",qg="class.",Qb="style!",Wg="class!",zg="!important";function Yb(t){for(let e of t.root.update)if(e.kind===d.Binding&&e.bindingKind===N.Property)if(e.name.endsWith(zg)&&(e.name=e.name.substring(0,e.name.length-zg.length)),e.name.startsWith(Ug)){e.bindingKind=N.StyleProperty,e.name=e.name.substring(Ug.length),Zb(e.name)||(e.name=Xb(e.name));let{property:n,suffix:r}=cd(e.name);e.name=n,e.unit=r}else e.name.startsWith(Qb)?(e.bindingKind=N.StyleProperty,e.name="style"):e.name.startsWith(qg)?(e.bindingKind=N.ClassName,e.name=cd(e.name.substring(qg.length)).property):e.name.startsWith(Wg)&&(e.bindingKind=N.ClassName,e.name=cd(e.name.substring(Wg.length)).property)}function Zb(t){return t.startsWith("--")}function Xb(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function cd(t){let e=t.indexOf("!important");e!==-1&&(t=e>0?t.substring(0,e):"");let n=null,r=t,s=t.lastIndexOf(".");return s>0&&(n=t.slice(s+1),r=t.substring(0,s)),{property:r,suffix:n}}function af(t,e=!1){return Pt(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var cf=class{visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){let n=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${n.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,n){return this.formatPh(e.name)}formatPh(e){return`{${ra(e,!1)}}`}},Jb=new cf;function HE(t){return t.visit(Jb)}var Pn=class{sourceSpan;i18n;constructor(e,n){this.sourceSpan=e,this.i18n=n}},ns=class extends Pn{value;tokens;constructor(e,n,r,s){super(n,s),this.value=e,this.tokens=r}visit(e,n){return e.visitText(this,n)}},Br=class extends Pn{switchValue;type;cases;switchValueSourceSpan;constructor(e,n,r,s,i,o){super(s,o),this.switchValue=e,this.type=n,this.cases=r,this.switchValueSourceSpan=i}visit(e,n){return e.visitExpansion(this,n)}},nl=class{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(e,n,r,s,i){this.value=e,this.expression=n,this.sourceSpan=r,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,n){return e.visitExpansionCase(this,n)}},lf=class extends Pn{name;value;keySpan;valueSpan;valueTokens;constructor(e,n,r,s,i,o,a){super(r,a),this.name=e,this.value=n,this.keySpan=s,this.valueSpan=i,this.valueTokens=o}visit(e,n){return e.visitAttribute(this,n)}},_t=class extends Pn{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;isVoid;constructor(e,n,r,s,i,o,a,c=null,l,u){super(o,u),this.name=e,this.attrs=n,this.directives=r,this.children=s,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=c,this.isVoid=l}visit(e,n){return e.visitElement(this,n)}},Go=class{value;sourceSpan;constructor(e,n){this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Nt=class extends Pn{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(e,n,r,s,i,o,a=null,c){super(s,c),this.name=e,this.parameters=n,this.children=r,this.nameSpan=i,this.startSourceSpan=o,this.endSourceSpan=a}visit(e,n){return e.visitBlock(this,n)}},st=class extends Pn{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;constructor(e,n,r,s,i,o,a,c,l,u=null,f){super(c,f),this.componentName=e,this.tagName=n,this.fullName=r,this.attrs=s,this.directives=i,this.children=o,this.isSelfClosing=a,this.startSourceSpan=l,this.endSourceSpan=u}visit(e,n){return e.visitComponent(this,n)}},uf=class{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(e,n,r,s,i=null){this.name=e,this.attrs=n,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=i}visit(e,n){return e.visitDirective(this,n)}},rl=class{expression;sourceSpan;constructor(e,n){this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},sl=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(e,n,r,s,i){this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e,n){return e.visitLetDeclaration(this,n)}};function fe(t,e,n=null){let r=[],s=t.visit?i=>t.visit(i,n)||i.visit(t,n):i=>i.visit(t,n);return e.forEach(i=>{let o=s(i);o&&r.push(o)}),r}var Qo={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:` `,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:" ",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"},jE="\uE500";Qo.ngsp=jE;var df=class{tokens;errors;nonNormalizedIcuExpressions;constructor(e,n,r){this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function Kb(t,e,n,r={}){let s=new pf(new Uc(t,e),n,r);return s.tokenize(),new df(lD(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var eD=/\r\n?/g;function ks(t){return`Unexpected character "${t===_e?"EOF":String.fromCharCode(t)}"`}function Gg(t){return`Unknown entity "${t}" - use the "&#;" or "&#x;" syntax`}function tD(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var ff=(function(t){return t.HEX="hexadecimal",t.DEC="decimal",t})(ff||{}),nD=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],ji={start:"{{",end:"}}"},pf=class{_getTagDefinition;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(e,n,r){this._getTagDefinition=n,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(i=>i.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new hf(e,s):new il(e,s),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(eD,` `)}tokenize(){for(;this._cursor.peek()!==_e;){let e=this._cursor.clone();try{this._attemptCharCode(Us)?this._attemptCharCode(qd)?this._attemptCharCode(dn)?this._consumeCdata(e):this._attemptCharCode(Hc)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(At)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===_s&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(Ye)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(n){this.handleError(n)}}this._beginToken(41),this._endToken([])}_getBlockName(){let e=!1,n=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>Oo(r)?!e:cD(r)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._requireCharCode(_s),this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(this._cursor.peek()===vt)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ge),this._attemptCharCode(Re))this._attemptCharCodeUntilFn(ge);else{n.type=28;return}this._attemptCharCode(Ut)?(this._beginToken(25),this._endToken([])):this._isBlockStart()&&(n.parts[0]==="case"||n.parts[0]==="default")?(this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([])):n.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Yg);this._cursor.peek()!==Re&&this._cursor.peek()!==_e;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==ht&&this._cursor.peek()!==_e||n!==null;){let s=this._cursor.peek();if(s===Fr)this._cursor.advance();else if(s===n)n=null;else if(n===null&&Ki(s))n=s;else if(s===vt&&n===null)r++;else if(s===Re&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Yg)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(29,e),Oo(this._cursor.peek()))this._attemptCharCodeUntilFn(ge);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(ge),!this._attemptCharCode(je)){n.type=32;return}this._attemptCharCodeUntilFn(s=>ge(s)&&!jc(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===ht?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(n.type=32,n.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),n=!1;return this._attemptCharCodeUntilFn(r=>lr(r)||r===Tl||r===mr||n&&jt(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==_e;){let n=this._cursor.peek();if(n===ht)break;Ki(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===Fr?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(oD(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Ye){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,n=this._cursor.clone()){this._currentTokenStart=n,this._currentTokenType=e}_endToken(e,n){if(this._currentTokenStart===null)throw new R(this._cursor.getSpan(n),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new R(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(n??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,n){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new R(n,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Yo&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof R)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return aD(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ks(this._cursor.peek()),this._cursor.getSpan(n))}_attemptStr(e){let n=e.length;if(this._cursor.charsLeft()this._peekStr(e))}_isLetStart(){return this._cursor.peek()===_s&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(dE)){let r=this._attemptCharCode(yE)||this._attemptCharCode(EI),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(sD),this._cursor.peek()!=ht){this._cursor.advance();let o=r?ff.HEX:ff.DEC;throw this._createError(tD(o,this._cursor.getChars(n)),this._cursor.getSpan())}let i=this._cursor.getChars(s);this._cursor.advance();try{let o=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(o),this._cursor.getChars(n)])}catch{throw this._createError(Gg(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(iD),this._cursor.peek()!=ht)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=Qo.hasOwnProperty(s)&&Qo[s];if(!i)throw this._createError(Gg(s),this._cursor.getSpan(n));this._endToken([i,`&${s};`])}}}_consumeRawText(e,n){this._beginToken(e?6:7);let r=[];for(;;){let s=this._cursor.clone(),i=n();if(this._cursor=s,i)break;e&&this._cursor.peek()===Vc?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(6),this._beginToken(6)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(10,e),this._requireCharCode(Hc),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),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);let n=this._cursor.clone();this._attemptUntilChar(Dt);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(e){let n=this._cursor.clone(),r="";for(;this._cursor.peek()!==cn&&!rD(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===cn?(r=this._cursor.getChars(n),this._cursor.advance(),s=this._cursor.clone()):s=n,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(s);return[r,i]}_consumeTagOpen(e){let n,r,s,i;try{if(this._selectorlessEnabled&&Qa(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[s,r,n]=i.parts,r&&(s+=`:${r}`),n&&(s+=`:${n}`),this._attemptCharCodeUntilFn(ge);else{if(!lr(this._cursor.peek()))throw this._createError(ks(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],n=s=i.parts[1],this._attemptCharCodeUntilFn(ge)}for(;!Xg(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===_s){let a=this._cursor.clone(),c=a.clone();c.advance(),Qa(c.peek())&&this._consumeDirective(a,c)}else this._consumeAttribute();i.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(a){if(a instanceof R){i?i.type=i.type===33?37:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}let o=this._getTagDefinition(n).getContentType(r);o===an.RAW_TEXT?this._consumeRawTextWithTagClose(i,s,!1):o===an.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(i,s,!0)}_consumeRawTextWithTagClose(e,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(Us)||!this._attemptCharCode(At)||(this._attemptCharCodeUntilFn(ge),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(ge),this._attemptCharCode(Dt))),this._beginToken(e.type===33?36:3),this._requireCharCodeUntilFn(s=>s===Dt,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName(Cr);return this._endToken(n)}_consumeComponentOpenStart(e){this._beginToken(33,e);let n=this._consumeComponentName();return this._endToken(n)}_consumeComponentName(){let e=this._cursor.clone();for(;Zg(this._cursor.peek());)this._cursor.advance();let n=this._cursor.getChars(e),r="",s="";return this._cursor.peek()===cn&&(this._cursor.advance(),[r,s]=this._consumePrefixAndName(Cr)),[n,r,s]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(ge),this._attemptCharCode(je)&&(this._attemptCharCodeUntilFn(ge),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ge)}_consumeAttributeName(){let e=this._cursor.peek();if(e===Lo||e===Po)throw this._createError(ks(e),this._cursor.getSpan());this._beginToken(14);let n;if(this._openDirectiveCount>0){let s=0;n=i=>{if(this._openDirectiveCount>0){if(i===vt)s++;else if(i===Re){if(s===0)return!0;s--}}return Cr(i)}}else if(e===dn){let s=0;n=i=>(i===dn?s++:i===An&&s--,s<=0?Cr(i):jc(i))}else n=Cr;let r=this._consumePrefixAndName(n);this._endToken(r)}_consumeAttributeValue(){if(this._cursor.peek()===Lo||this._cursor.peek()===Po){let e=this._cursor.peek();this._consumeQuote(e);let n=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(e)}else{let e=()=>Cr(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(At)?2:1;this._beginToken(e),this._requireCharCode(Dt),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(At)?35:34;this._beginToken(e),this._requireCharCode(Dt),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==Dt&&!Qa(r.peek());)r.advance();if(Qa(r.peek())){this._beginToken(36,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(ge),this._requireCharCode(Dt),this._endToken(s);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(ge);let n=this._consumePrefixAndName(Cr);this._attemptCharCodeUntilFn(ge),this._requireCharCode(Dt),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Ut),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(at),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(at),this._attemptCharCodeUntilFn(ge),this._beginToken(7);let r=this._readUntil(at);this._endToken([r]),this._requireCharCode(at),this._attemptCharCodeUntilFn(ge)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Ut).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ge),this._beginToken(21),this._requireCharCode(Ut),this._endToken([]),this._attemptCharCodeUntilFn(ge),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(Ye),this._endToken([]),this._attemptCharCodeUntilFn(ge),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(Ye),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._attemptStr(ji.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===Vc?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(i.join(""))])}_consumeInterpolation(e,n,r){let s=[];this._beginToken(e,n),s.push(ji.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==_e&&(r===null||!r());){let c=this._cursor.clone();if(this._isTagStart()){this._cursor=c,s.push(this._getProcessedChars(i,c)),this._endToken(s);return}if(o===null)if(this._attemptStr(ji.end)){s.push(this._getProcessedChars(i,c)),s.push(ji.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let l=this._cursor.peek();this._cursor.advance(),l===Fr?this._cursor.advance():l===o?o=null:!a&&o===null&&Ki(l)&&(o=l)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_consumeDirective(e,n){for(this._requireCharCode(_s),this._cursor.advance();Zg(this._cursor.peek());)this._cursor.advance();this._beginToken(38,e);let r=this._cursor.getChars(n);if(this._endToken([r]),this._attemptCharCodeUntilFn(ge),this._cursor.peek()===vt){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ge);!Xg(this._cursor.peek())&&this._cursor.peek()!==Re;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(ge),this._openDirectiveCount--,this._cursor.peek()!==Re){if(this._cursor.peek()===Dt||this._cursor.peek()===At)return;throw this._createError(ks(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(ge)}}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===_e||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Ye&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===Ye))}_isTagStart(){if(this._cursor.peek()===Us){let e=this._cursor.clone();e.advance();let n=e.peek();if(Xr<=n&&n<=sa||hr<=n&&n<=ui||n===At||n===qd)return!0}return!1}_readUntil(e){let n=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(n)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==Ut)return!1;let e=this._cursor.clone(),n=this._attemptStr(ji.start);return this._cursor=e,!n}};function ge(t){return!Oo(t)||t===_e}function Cr(t){return Oo(t)||t===Dt||t===Us||t===At||t===Lo||t===Po||t===je||t===_e}function rD(t){return(tpE)}function sD(t){return t===ht||t===_e||!xI(t)}function iD(t){return t===ht||t===_e||!lr(t)}function oD(t){return t!==Ye}function aD(t,e){return Qg(t)===Qg(e)}function Qg(t){return t>=Xr&&t<=sa?t-Xr+hr:t}function cD(t){return lr(t)||jt(t)||t===mr}function Yg(t){return t!==ht&&ge(t)}function Qa(t){return t===mr||t>=hr&&t<=ui}function Zg(t){return lr(t)||jt(t)||t===mr}function Xg(t){return t===At||t===Dt||t===Us||t===_e}function lD(t){let e=[],n;for(let r=0;r0&&n.indexOf(e.peek())!==-1;)r===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),o=r!==e?this.locationFromCursor(r):s;return new O(s,i,o)}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 Yo('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===Or?(e.line++,e.column=0):jc(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?_e:this.charAt(e.offset)}locationFromCursor(e){return new Fo(e.file,e.state.offset,e.state.line,e.state.column)}},hf=class t extends il{internalState;constructor(e,n){e instanceof t?(super(e),this.internalState=y({},e.internalState)):(super(e,n),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new t(this)}getChars(e){let n=e.clone(),r="";for(;n.internalState.offsetthis.internalState.peek;if(e()===Fr)if(this.internalState=y({},this.state),this.advanceState(this.internalState),e()===hE)this.state.peek=Or;else if(e()===mE)this.state.peek=op;else if(e()===EE)this.state.peek=cE;else if(e()===gE)this.state.peek=ip;else if(e()===wI)this.state.peek=pI;else if(e()===cp)this.state.peek=lE;else if(e()===vE)if(this.advanceState(this.internalState),e()===Ut){this.advanceState(this.internalState);let n=this.clone(),r=0;for(;e()!==Ye;)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(n,r)}else{let n=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,4)}else if(e()===yE){this.advanceState(this.internalState);let n=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2)}else if(bg(e())){let n="",r=0,s=this.clone();for(;bg(e())&&r<3;)s=this.clone(),n+=String.fromCodePoint(e()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(n,8),this.internalState=s.internalState}else jc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,n){let r=this.input.slice(e.internalState.offset,e.internalState.offset+n),s=parseInt(r,16);if(isNaN(s))throw e.state=e.internalState,new Yo("Invalid hexadecimal escape sequence",e);return s}},Yo=class extends Error{msg;cursor;constructor(e,n){super(e),this.msg=e,this.cursor=n,Object.setPrototypeOf(this,new.target.prototype)}},Se=class t extends R{elementName;static create(e,n,r){return new t(e,n,r)}constructor(e,n,r){super(n,r),this.elementName=e}},ol=class{rootNodes;errors;constructor(e,n){this.rootNodes=e,this.errors=n}},uD=class{getTagDefinition;constructor(e){this.getTagDefinition=e}parse(e,n,r){let s=Kb(e,n,this.getTagDefinition,r),i=new mf(s.tokens,this.getTagDefinition);return i.build(),new ol(i.rootNodes,[...s.errors,...i.errors])}},mf=class t{tokens;tagDefinitionResolver;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(e,n){this.tokens=e,this.tagDefinitionResolver=n,this._advance()}build(){for(;this._peek.type!==41;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===33||this._peek.type===37?this._consumeComponentStartTag(this._advance()):this._peek.type===36?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof Nt&&this.errors.push(Se.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let o=new O(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),a=new O(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new nl(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){let n=[],r=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&r.push(this._peek.type),this._peek.type===22)if(Jg(r,21)){if(r.pop(),r.length===0)return n}else return this.errors.push(Se.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(Jg(r,19))r.pop();else return this.errors.push(Se.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===41)return this.errors.push(Se.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.push(this._advance())}}_consumeText(e){let n=[e],r=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===` `){let i=this._getContainer();i!=null&&i.children.length===0&&this._getTagDefinition(i)?.ignoreFirstLf&&(s=s.substring(1),n[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),n.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Kg):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new ns(s,new O(r.start,i.end,r.fullStart,r.details),n))}}_closeVoidElement(){let e=this._getContainer();e!==null&&this._getTagDefinition(e)?.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){let n=[],r=[];this._consumeAttributesAndDirectives(n,r);let s=this._getElementFullName(e,this._getClosestElementLikeParent()),i=this._getTagDefinition(s),o=!1;this._peek.type===2?(this._advance(),o=!0,i?.canSelfClose||Pd(s)!==null||i?.isVoid||this.errors.push(Se.create(s,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))):this._peek.type===1&&(this._advance(),o=!1);let a=this._peek.sourceSpan.fullStart,c=new O(e.sourceSpan.start,a,e.sourceSpan.fullStart),l=new O(e.sourceSpan.start,a,e.sourceSpan.fullStart),u=new _t(s,n,r,[],o,c,l,void 0,i?.isVoid??!1),f=this._getContainer(),p=f!==null&&!!this._getTagDefinition(f)?.isClosedByChild(u.name);this._pushContainer(u,p),o?this._popContainer(s,_t,c):e.type===4&&(this._popContainer(s,_t,null),this.errors.push(Se.create(s,c,`Opening tag "${s}" not terminated.`)))}_consumeComponentStartTag(e){let n=e.parts[0],r=[],s=[];this._consumeAttributesAndDirectives(r,s);let i=this._getClosestElementLikeParent(),o=this._getComponentTagName(e,i),a=this._getComponentFullName(e,i),c=this._peek.type===35;this._advance();let l=this._peek.sourceSpan.fullStart,u=new O(e.sourceSpan.start,l,e.sourceSpan.fullStart),f=new O(e.sourceSpan.start,l,e.sourceSpan.fullStart),p=new st(n,o,a,r,s,[],c,u,f,void 0),m=this._getContainer(),v=m!==null&&p.tagName!==null&&!!this._getTagDefinition(m)?.isClosedByChild(p.tagName);this._pushContainer(p,v),c?this._popContainer(a,st,u):e.type===37&&(this._popContainer(a,st,null),this.errors.push(Se.create(a,u,`Opening tag "${a}" not terminated.`)))}_consumeAttributesAndDirectives(e,n){for(;this._peek.type===14||this._peek.type===38;)this._peek.type===38?n.push(this._consumeDirective(this._peek)):e.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(e){let n=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(n,st,e.sourceSpan)){let r=this._containerStack[this._containerStack.length-1],s;r instanceof st&&r.componentName===e.parts[0]?s=`, did you mean "${r.fullName}"?`:s=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${n}"${s}`;this.errors.push(Se.create(n,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof _t?this.tagDefinitionResolver(e.name):e instanceof st&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,n){n&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){let n=this._getElementFullName(e,this._getClosestElementLikeParent());if(this._getTagDefinition(n)?.isVoid)this.errors.push(Se.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,_t,e.sourceSpan)){let r=`Unexpected closing tag "${n}". 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(Se.create(n,e.sourceSpan,r))}}_popContainer(e,n,r){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let o=this._containerStack[i];if(((o instanceof st?o.fullName:o.name)===e||e===null)&&o instanceof n)return o.endSourceSpan=r,o.sourceSpan.end=r!==null?r.end:o.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(o instanceof Nt||!this._getTagDefinition(o)?.closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let n=ac(e.parts[0],e.parts[1]),r=e.sourceSpan.end;this._peek.type===15&&this._advance();let s="",i=[],o,a;if(this._peek.type===16)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let u=this._advance();i.push(u),u.type===17?s+=u.parts.join("").replace(/&([^;]+);/g,Kg):u.type===9?s+=u.parts[0]:s+=u.parts.join(""),a=r=u.sourceSpan.end}this._peek.type===15&&(r=this._advance().sourceSpan.end);let l=o&&a&&new O(o.start,a,o.fullStart);return new lf(n,s,new O(e.sourceSpan.start,r,e.sourceSpan.fullStart),e.sourceSpan,l,i.length>0?i:void 0,void 0)}_consumeDirective(e){let n=[],r=e.sourceSpan.end,s=null;if(this._advance(),this._peek.type===39){for(r=this._peek.sourceSpan.end,this._advance();this._peek.type===14;)n.push(this._consumeAttr(this._advance()));this._peek.type===40?(s=this._peek.sourceSpan,this._advance()):this.errors.push(Se.create(null,e.sourceSpan,"Unterminated directive definition"))}let i=new O(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new O(i.start,s===null?e.sourceSpan.end:s.end,i.fullStart);return new uf(e.parts[0],n,o,i,s)}_consumeBlockOpen(e){let n=[];for(;this._peek.type===27;){let a=this._advance();n.push(new rl(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new O(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new O(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Nt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Nt,e.sourceSpan)||this.errors.push(Se.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let n=[];for(;this._peek.type===27;){let a=this._advance();n.push(new rl(a.parts[0],a.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new O(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new O(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Nt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Nt,null),this.errors.push(Se.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let n=e.parts[0],r,s;if(this._peek.type!==30){this.errors.push(Se.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));return}else r=this._advance();if(this._peek.type!==31){this.errors.push(Se.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.fullStart,o=new O(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(n),c=e.sourceSpan.start.moveBy(a),l=new O(c,e.sourceSpan.end),u=new sl(n,r.parts[0],o,l,r.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(e){let n=e.parts[0]??"",r=n?` "${n}"`:"";if(n.length>0){let s=e.sourceSpan.toString().lastIndexOf(n),i=e.sourceSpan.start.moveBy(s),o=new O(i,e.sourceSpan.end),a=new O(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),c=new sl(n,"",e.sourceSpan,o,a);this._addToParent(c)}this.errors.push(Se.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${r}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let n=this._containerStack[e];if(n instanceof _t||n instanceof st)return n}return null}_addToParent(e){let n=this._getContainer();n===null?this.rootNodes.push(e):n.children.push(e)}_getElementFullName(e,n){let r=this._getPrefix(e,n);return ac(r,e.parts[1])}_getComponentFullName(e,n){let r=e.parts[0],s=this._getComponentTagName(e,n);return s===null?r:s.startsWith(":")?r+s:`${r}:${s}`}_getComponentTagName(e,n){let r=this._getPrefix(e,n),s=e.parts[2];return!r&&!s?null:!r&&s?s:ac(r,s||"ng-component")}_getPrefix(e,n){let r,s;if(e.type===33||e.type===37||e.type===36?(r=e.parts[1],s=e.parts[2]):(r=e.parts[0],s=e.parts[1]),r=r||this._getTagDefinition(s)?.implicitNamespacePrefix||"",!r&&n){let i=n instanceof _t?n.name:n.tagName;if(i!==null){let o=Qt(i)[1],a=this._getTagDefinition(o);a!==null&&!a.preventNamespaceInheritance&&(r=Pd(i))}}return r}};function Jg(t,e){return t.length>0&&t[t.length-1]===e}function Kg(t,e){return Qo[e]!==void 0?Qo[e]||t:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):t}var UE="ngPreserveWhitespaces",ev=new Set(["pre","template","textarea","script","style"]),qE=` \f \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,dD=new RegExp(`[^${qE}]`),fD=new RegExp(`[${qE}]{2,}`,"g");function tv(t){return t.some(e=>e.name===UE)}function WE(t){return t.replace(new RegExp(jE,"g")," ")}var al=class{preserveSignificantWhitespace;originalNodeMap;requireContext;icuExpansionDepth=0;constructor(e,n,r=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r}visitElement(e,n){if(ev.has(e.name)||tv(e.attrs)){let s=new _t(e.name,rn(this,e.attrs),rn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return this.originalNodeMap?.set(s,e),s}let r=new _t(e.name,e.attrs,e.directives,rn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n);return this.originalNodeMap?.set(r,e),r}visitAttribute(e,n){return e.name!==UE?e:null}visitText(e,n){let r=e.value.match(dD),s=n&&(n.prev instanceof Br||n.next instanceof Br);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let o=e.tokens.map(u=>u.type===5?gD(u):u);if(!this.preserveSignificantWhitespace&&o.length>0){let u=o[0];o.splice(0,1,pD(u,n));let f=o[o.length-1];o.splice(o.length-1,1,hD(f,n))}let a=GE(e.value),c=this.preserveSignificantWhitespace?a:mD(a,n),l=new ns(c,e.sourceSpan,o,e.i18n);return this.originalNodeMap?.set(l,e),l}return null}visitComment(e,n){return e}visitExpansion(e,n){this.icuExpansionDepth++;let r;try{r=new Br(e.switchValue,e.type,rn(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(r,e),r}visitExpansionCase(e,n){let r=new nl(e.value,rn(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(r,e),r}visitBlock(e,n){let r=new Nt(e.name,e.parameters,rn(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(r,e),r}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitComponent(e,n){if(e.tagName&&ev.has(e.tagName)||tv(e.attrs)){let s=new st(e.componentName,e.tagName,e.fullName,rn(this,e.attrs),rn(this,e.directives),e.children,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(s,e),s}let r=new st(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,rn(this,e.children),e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(r,e),r}visitDirective(e,n){return e}visit(e,n){if(this.requireContext&&!n)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function pD(t,e){return t.type!==5||!!e?.prev?t:zE(t,r=>r.trimStart())}function hD(t,e){return t.type!==5||!!e?.next?t:zE(t,r=>r.trimEnd())}function mD(t,e){let n=!e?.prev,r=!e?.next,s=n?t.trimStart():t;return r?s.trimEnd():s}function gD({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[GE(e[0])],sourceSpan:n}}function zE({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function GE(t){return WE(t).replace(fD," ")}function rn(t,e){let n=[];return e.forEach((r,s)=>{let i={prev:e[s-1],next:e[s+1]},o=r.visit(t,i);o&&n.push(o)}),n}var L=(function(t){return t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.RegExpBody=7]="RegExpBody",t[t.RegExpFlags=8]="RegExpFlags",t[t.Error=9]="Error",t})(L||{}),$r=(function(t){return t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd",t})($r||{}),vD=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in"],Zo=class{tokenize(e){return new gf(e).scan()}},Ct=class{index;end;type;numValue;strValue;constructor(e,n,r,s,i){this.index=e,this.end=n,this.type=r,this.numValue=s,this.strValue=i}isCharacter(e){return this.type===L.Character&&this.numValue===e}isNumber(){return this.type===L.Number}isString(){return this.type===L.String}isOperator(e){return this.type===L.Operator&&this.strValue===e}isIdentifier(){return this.type===L.Identifier}isPrivateIdentifier(){return this.type===L.PrivateIdentifier}isKeyword(){return this.type===L.Keyword}isKeywordLet(){return this.type===L.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===L.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===L.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===L.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===L.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===L.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===L.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===L.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===L.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===L.Keyword&&this.strValue==="in"}isError(){return this.type===L.Error}isRegExpBody(){return this.type===L.RegExpBody}isRegExpFlags(){return this.type===L.RegExpFlags}toNumber(){return this.type===L.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===$r.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===$r.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case L.Character:case L.Identifier:case L.Keyword:case L.Operator:case L.PrivateIdentifier:case L.String:case L.Error:case L.RegExpBody:case L.RegExpFlags:return this.strValue;case L.Number:return this.numValue.toString();default:return null}}},eo=class extends Ct{kind;constructor(e,n,r,s){super(e,n,L.String,0,r),this.kind=s}};function Ui(t,e,n){return new Ct(t,e,L.Character,n,String.fromCharCode(n))}function ED(t,e,n){return new Ct(t,e,L.Identifier,0,n)}function yD(t,e,n){return new Ct(t,e,L.PrivateIdentifier,0,n)}function wD(t,e,n){return new Ct(t,e,L.Keyword,0,n)}function Ms(t,e,n){return new Ct(t,e,L.Operator,0,n)}function SD(t,e,n){return new Ct(t,e,L.Number,n,"")}function xD(t,e,n){return new Ct(t,e,L.Error,0,n)}function CD(t,e,n){return new Ct(t,e,L.RegExpBody,0,n)}function ID(t,e,n){return new Ct(t,e,L.RegExpFlags,0,n)}var Ya=new Ct(-1,-1,L.Character,0,""),gf=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?_e:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=uE;)if(++s>=n){r=_e;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(nv(r))return this.scanIdentifier();if(jt(r))return this.scanNumber(s);let i=s;switch(r){case Ir:return this.advance(),jt(this.peek)?this.scanNumber(i):this.peek!==Ir?Ui(i,this.index,Ir):(this.advance(),this.peek===Ir?(this.advance(),Ms(i,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(r)}]`,0));case vt:case Re:case dn:case An:case at:case cn:case ht:return this.scanCharacter(i,r);case Ut:return this.scanOpenBrace(i,r);case Ye:return this.scanCloseBrace(i,r);case Lo:case Po:return this.scanString();case Wd:return this.advance(),this.scanTemplateLiteralPart(i);case dE:return this.scanPrivateIdentifier();case fE:return this.scanComplexOperator(i,"+",je,"=");case Hc:return this.scanComplexOperator(i,"-",je,"=");case At:return this.isStartOfRegex()?this.scanRegex(s):this.scanComplexOperator(i,"/",je,"=");case hI:return this.scanComplexOperator(i,"%",je,"=");case yI:return this.scanOperator(i,"^");case Cg:return this.scanStar(i);case Ig:return this.scanQuestion(i);case Us:case Dt:return this.scanComplexOperator(i,String.fromCharCode(r),je,"=");case qd:case je:return this.scanComplexOperator(i,String.fromCharCode(r),je,"=",je,"=");case Vc:return this.scanComplexOperator(i,"&",Vc,"&",je,"=");case Tg:return this.scanComplexOperator(i,"|",Tg,"|",je,"=");case wE:for(;Oo(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),Ui(e,this.index,n)}scanOperator(e,n){return this.advance(),Ms(e,this.index,n)}scanOpenBrace(e,n){return this.braceStack.push("expression"),this.advance(),Ui(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Ui(e,this.index,Ye)),this.scanTemplateLiteralPart(this.index)):Ui(e,this.index,n)}scanComplexOperator(e,n,r,s,i,o){this.advance();let a=n;return this.peek==r&&(this.advance(),a+=s),i!=null&&this.peek==i&&(this.advance(),a+=o),Ms(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();rv(this.peek);)this.advance();let n=this.input.substring(e,this.index);return vD.indexOf(n)>-1?wD(e,this.index,n):ED(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!nv(this.peek))return this.error("Invalid character [#]",-1);for(;rv(this.peek);)this.advance();let n=this.input.substring(e,this.index);return yD(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!jt(this.peek))if(this.peek===mr){if(!jt(this.input.charCodeAt(this.index-1))||!jt(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===Ir)n=!1;else if(TD(this.peek)){if(this.advance(),bD(this.peek)&&this.advance(),!jt(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let s=this.input.substring(e,this.index);r&&(s=s.replace(/_/g,""));let i=n?_D(s):parseFloat(s);return SD(e,this.index,i)}scanString(){let e=this.index,n=this.peek;this.advance();let r="",s=this.index,i=this.input;for(;this.peek!=n;)if(this.peek==Fr){let a=this.scanStringBackslash(r,s);if(typeof a!="string")return a;r=a,s=this.index}else{if(this.peek==_e)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),new eo(e,this.index,r+o,$r.Plain)}scanQuestion(e){this.advance();let n="?";return this.peek===Ig?(n+="?",this.advance(),this.peek===je&&(n+="=",this.advance())):this.peek===Ir&&(n+=".",this.advance()),Ms(e,this.index,n)}scanTemplateLiteralPart(e){let n="",r=this.index;for(;this.peek!==Wd;)if(this.peek===Fr){let i=this.scanStringBackslash(n,r);if(typeof i!="string")return i;n=i,r=this.index}else if(this.peek===Tl){let i=this.index;if(this.advance(),this.peek===Ut)return this.braceStack.push("interpolation"),this.tokens.push(new eo(e,i,n+this.input.substring(r,i),$r.TemplateLiteralPart)),this.advance(),Ms(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===_e)return this.error("Unterminated template literal",0);this.advance()}let s=this.input.substring(r,this.index);return this.advance(),new eo(e,this.index,n+s,$r.TemplateLiteralEnd)}error(e,n){let r=this.index+n;return xD(r,this.index,`Lexer Error: ${e} at column ${r} in expression [${this.input}]`)}scanStringBackslash(e,n){e+=this.input.substring(n,this.index);let r;if(this.advance(),this.peek===vE){let s=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(s))r=parseInt(s,16);else return this.error(`Invalid unicode escape [\\u${s}]`,0);for(let i=0;i<5;i++)this.advance()}else r=DD(this.peek),this.advance();return e+=String.fromCharCode(r),e}scanStar(e){this.advance();let n="*";return this.peek===Cg?(n+="*",this.advance(),this.peek===je&&(n+="=",this.advance())):this.peek===je&&(n+="=",this.advance()),Ms(e,this.index,n)}isStartOfRegex(){if(this.tokens.length===0)return!0;let e=this.tokens[this.tokens.length-1];if(e.isOperator("!")){let n=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return n===null||n.type!==L.Identifier&&!n.isCharacter(Re)&&!n.isCharacter(An)}return e.type===L.Operator||e.isCharacter(vt)||e.isCharacter(dn)||e.isCharacter(at)||e.isCharacter(cn)}scanRegex(e){this.advance();let n=this.index,r=!1,s=!1;for(;;){let c=this.peek;if(c===_e)return this.error("Unterminated regular expression",0);if(r)r=!1;else if(c===Fr)r=!0;else if(c===dn)s=!0;else if(c===An)s=!1;else if(c===At&&!s)break;this.advance()}let i=this.input.substring(n,this.index);this.advance();let o=CD(e,this.index,i),a=this.scanRegexFlags(this.index);return a!==null?(this.tokens.push(o),a):o}scanRegexFlags(e){if(!lr(this.peek))return null;for(;lr(this.peek);)this.advance();return ID(e,this.index,this.input.substring(e,this.index))}};function nv(t){return Xr<=t&&t<=sa||hr<=t&&t<=ui||t==mr||t==Tl}function rv(t){return lr(t)||jt(t)||t==mr||t==Tl}function TD(t){return t==SI||t==gI}function bD(t){return t==Hc||t==fE}function DD(t){switch(t){case hE:return Or;case cp:return lE;case mE:return op;case gE:return ip;case EE:return cE;default:return t}}function _D(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var vf=class{strings;expressions;offsets;constructor(e,n,r){this.strings=e,this.expressions=n,this.offsets=r}},Ef=class{templateBindings;warnings;errors;constructor(e,n,r){this.templateBindings=e,this.warnings=n,this.errors=r}};function Jn(t){return t.start.toString()||"(unknown)"}var cl=class{_lexer;_supportsDirectPipeReferences;constructor(e,n=!1){this._lexer=e,this._supportsDirectPipeReferences=n}parseAction(e,n,r){let s=[];this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i),a=new Ar(e,n,r,o,1,s,0,this._supportsDirectPipeReferences).parseChain();return new ot(a,e,Jn(n),r,s)}parseBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s);return new ot(i,e,Jn(n),r,s)}checkSimpleExpression(e){let n=new yf;return e.visit(n),n.errors}parseSimpleBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s),o=this.checkSimpleExpression(i);return o.length>0&&s.push(Vs(`Host binding expression cannot contain ${o.join(" ")}`,e,"",n)),new ot(i,e,Jn(n),r,s)}_parseBindingAst(e,n,r,s){this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i);return new Ar(e,n,r,o,0,s,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n),a=[];return new Ar(n,r,i,o,0,a,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new gt(s,s+e.length)})}parseInterpolation(e,n,r,s){let i=[],{strings:o,expressions:a,offsets:c}=this.splitInterpolation(e,n,i,s);if(a.length===0)return null;let l=[];for(let u=0;uu.text),l,e,Jn(n),r,i)}parseInterpolationExpression(e,n,r){let{stripped:s}=this._stripComments(e),i=this._lexer.tokenize(s),o=[],a=new Ar(e,n,r,i,0,o,0,this._supportsDirectPipeReferences).parseChain(),c=["",""];return this.createInterpolationAst(c,[a],e,Jn(n),r,o)}createInterpolationAst(e,n,r,s,i,o){let a=new Gr(0,r.length),c=new na(a,a.toAbsolute(i),e,n);return new ot(c,r,s,i,o)}splitInterpolation(e,n,r,s){let i=[],o=[],a=[],c=s?AD(s):null,l=0,u=!1,f=!1,p="{{",m="}}";for(;l-1)break;s>-1&&i>-1&&e.push(Vs("Got interpolation ({{}}) where expression was expected",n,`at column ${s} in`,r))}_getInterpolationEndIndex(e,n,r){for(let s of this._forEachUnquotedChar(e,r)){if(e.startsWith(n,s))return s;if(e.startsWith("//",s))return e.indexOf(n,s)}return-1}*_forEachUnquotedChar(e,n){let r=null,s=0;for(let i=n;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,n){let r=this.currentEndIndex;if(n!==void 0&&n>this.currentEndIndex&&(r=n),e>r){let s=r;r=e,e=s}return new Gr(e,r)}sourceSpan(e,n){let r=`${e}@${this.inputIndex}:${n}`;return this.sourceSpanCache.has(r)||this.sourceSpanCache.set(r,this.span(e,n).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(r)}advance(){this.index++}withContext(e,n){this.context|=e;let r=n();return this.context^=e,r}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}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):!1}isAssignmentOperator(e){return e.type===L.Operator&&Qe.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ya?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],n=this.inputIndex;for(;this.index=hr&&l<=ui?oc.ReferencedDirectly:oc.ReferencedByName}else c=oc.ReferencedByName;n=new bc(this.span(e),this.sourceSpan(e,o),n,s,a,c,i)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let r=this.parsePipe(),s;if(this.consumeOptionalCharacter(cn))s=this.parsePipe();else{let i=this.inputIndex,o=this.input.substring(e,i);this.error(`Conditional expression ${o} requires all 3 expressions`),s=new Ge(this.span(e),this.sourceSpan(e))}return new Tc(this.span(e),this.sourceSpan(e),n,r,s)}else return n}parseLogicalOr(){let e=this.inputIndex,n=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let r=this.parseLogicalAnd();n=new Qe(this.span(e),this.sourceSpan(e),"||",n,r)}return n}parseLogicalAnd(){let e=this.inputIndex,n=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let r=this.parseNullishCoalescing();n=new Qe(this.span(e),this.sourceSpan(e),"&&",n,r)}return n}parseNullishCoalescing(){let e=this.inputIndex,n=this.parseEquality();for(;this.consumeOptionalOperator("??");){let r=this.parseEquality();n=new Qe(this.span(e),this.sourceSpan(e),"??",n,r)}return n}parseEquality(){let e=this.inputIndex,n=this.parseRelational();for(;this.next.type==L.Operator;){let r=this.next.strValue;switch(r){case"==":case"===":case"!=":case"!==":this.advance();let s=this.parseRelational();n=new Qe(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseRelational(){let e=this.inputIndex,n=this.parseAdditive();for(;this.next.type==L.Operator||this.next.isKeywordIn;){let r=this.next.strValue;switch(r){case"<":case">":case"<=":case">=":case"in":this.advance();let s=this.parseAdditive();n=new Qe(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseAdditive(){let e=this.inputIndex,n=this.parseMultiplicative();for(;this.next.type==L.Operator;){let r=this.next.strValue;switch(r){case"+":case"-":this.advance();let s=this.parseMultiplicative();n=new Qe(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseMultiplicative(){let e=this.inputIndex,n=this.parseExponentiation();for(;this.next.type==L.Operator;){let r=this.next.strValue;switch(r){case"*":case"%":case"/":this.advance();let s=this.parseExponentiation();n=new Qe(this.span(e),this.sourceSpan(e),r,n,s);continue}break}return n}parseExponentiation(){let e=this.inputIndex,n=this.parsePrefix();for(;this.next.type==L.Operator&&this.next.strValue==="**";){(n instanceof js||n instanceof go||n instanceof vo||n instanceof Eo)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let r=this.parseExponentiation();n=new Qe(this.span(e),this.sourceSpan(e),"**",n,r)}return n}parsePrefix(){if(this.next.type==L.Operator){let e=this.inputIndex,n=this.next.strValue,r;switch(n){case"+":return this.advance(),r=this.parsePrefix(),js.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),js.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new go(this.span(e),this.sourceSpan(e),r)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new vo(this.span(e),this.sourceSpan(e),n)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new Eo(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Ir))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(vt)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(dn)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(dn))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(vt))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new yo(this.span(e),this.sourceSpan(e),n);else if(this.next.isTemplateLiteralEnd())n=this.parseNoInterpolationTaggedTemplateLiteral(n,e);else if(this.next.isTemplateLiteralPart())n=this.parseTaggedTemplateLiteral(n,e);else return n}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(vt)){this.rparensExpected++;let n=this.parsePipe();return this.consumeOptionalCharacter(Re)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(Re)),this.rparensExpected--,new xo(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isKeywordNull())return this.advance(),new it(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new it(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new it(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new it(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new it(this.span(e),this.sourceSpan(e),"in");if(this.next.isKeywordThis())return this.advance(),new fo(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(dn))return this.parseLiteralArray(e);if(this.next.isCharacter(Ut))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new vn(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new it(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===$r.Plain){let n=this.next.toString();return this.advance(),new it(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ge(this.span(e),this.sourceSpan(e))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Ge(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Ge(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let n=[];do if(this.next.isOperator("..."))n.push(this.parseSpreadElement());else if(!this.next.isCharacter(An))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(at));return this.rbracketsExpected--,this.expectCharacter(An),new mo(this.span(e),this.sourceSpan(e),n)}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(Ut),!this.consumeOptionalCharacter(Ye)){this.rbracesExpected++;do{let s=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(s),sourceSpan:this.sourceSpan(s)}),n.push(this.parsePipe());continue}let i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a=this.span(s),c=this.sourceSpan(s),l={kind:"property",key:o,quoted:i,span:a,sourceSpan:c};e.push(l),i?(this.expectCharacter(cn),n.push(this.parsePipe())):this.consumeOptionalCharacter(cn)?n.push(this.parsePipe()):(l.isShorthandInitialized=!0,n.push(new un(a,c,c,new vn(a,c),o)))}while(this.consumeOptionalCharacter(at)&&!this.next.isCharacter(Ye));this.rbracesExpected--,this.expectCharacter(Ye)}return new Yr(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(Yi.Writable,()=>{let a=this.expectIdentifierOrKeyword()??"";return a.length===0&&this.error("Expected identifier for property access",e.span.end),a}),o=this.sourceSpan(s);if(r)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new Ge(this.span(n),this.sourceSpan(n))):new po(this.span(n),this.sourceSpan(n),o,e,i);if(this.isAssignmentOperator(this.next)){let a=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new Ge(this.span(n),this.sourceSpan(n));let c=new un(this.span(n),this.sourceSpan(n),o,e,i);this.advance();let l=this.parseConditional();return new Qe(this.span(n),this.sourceSpan(n),a,c,l)}else return new un(this.span(n),this.sourceSpan(n),o,e,i)}parseCall(e,n,r){let s=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(s,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Re),this.rparensExpected--;let a=this.span(n),c=this.sourceSpan(n);return r?new _c(a,c,e,i,o):new Zs(a,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Re))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(at));return e}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let e=this.inputIndex;this.advance();let n=this.parsePipe(),r=this.span(e),s=this.sourceSpan(e);return new Dc(r,s,n)}expectTemplateBindingKey(){let e="",n=!1,r=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),n=this.consumeOptionalOperator("-"),n&&(e+="-");while(n);return{source:e,span:new gt(r,r+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof Ge&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(An),this.isAssignmentOperator(this.next)){let i=this.next.strValue;if(r)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let o=new Qr(this.span(n),this.sourceSpan(n),e,s);this.advance();let a=this.parseConditional();return new Qe(this.span(n),this.sourceSpan(n),i,o,a)}}else return r?new ho(this.span(n),this.sourceSpan(n),e,s):new Qr(this.span(n),this.sourceSpan(n),e,s);return new Ge(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(cn);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new gt(e.span.start,s);return n.push(new kd(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Ya||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new ot(e,s,Jn(this.parseSourceSpan),this.absoluteOffset+n,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let n=this.expectTemplateBindingKey();this.consumeStatementTerminator();let r=new gt(e.span.start,this.currentAbsoluteOffset);return new Co(r,n,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let n=this.expectTemplateBindingKey(),r=null;this.consumeOptionalOperator("=")&&(r=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let s=new gt(e,this.currentAbsoluteOffset);return new Co(s,n,r)}parseNoInterpolationTaggedTemplateLiteral(e,n){let r=this.parseNoInterpolationTemplateLiteral();return new wo(this.span(n),this.sourceSpan(n),e,r)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,n=this.inputIndex;this.advance();let r=this.span(n),s=this.sourceSpan(n);return new So(r,s,[new Ac(r,s,e)],[])}parseTaggedTemplateLiteral(e,n){let r=this.parseTemplateLiteral();return new wo(this.span(n),this.sourceSpan(n),e,r)}parseTemplateLiteral(){let e=[],n=[],r=this.inputIndex;for(;this.next!==Ya;){let s=this.next;if(s.isTemplateLiteralPart()||s.isTemplateLiteralEnd()){let i=this.inputIndex;if(this.advance(),e.push(new Ac(this.span(i),this.sourceSpan(i),s.strValue)),s.isTemplateLiteralEnd())break}else if(s.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let i=this.parsePipe();i instanceof Ge?this.error("Template literal interpolation cannot be empty"):n.push(i),this.rbracesExpected--}else this.advance()}return new So(this.span(r),this.sourceSpan(r),e,n)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new Ge(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let n=null;if(this.next.isRegExpFlags()){n=this.next,this.advance();let i=new Set;for(let o=0;o`"${c}"`).join(", "),n.index+o)}}let r=e.index,s=n?n.end:e.end;return new Nc(this.span(r,s),this.sourceSpan(r,s),e.strValue,n?n.strValue:null)}consumeStatementTerminator(){this.consumeOptionalCharacter(ht)||this.consumeOptionalCharacter(at)}error(e,n=this.index){this.errors.push(Vs(e,this.input,this.getErrorLocationText(n),this.parseSourceSpan)),this.skip()}getErrorLocationText(e){return e0&&(n=` ${n} `);let s=Jn(r),i=`Parser Error: ${t}${n}[${e}] in ${s}`;return new R(r,i)}var yf=class extends Xs{errors=[];visitPipe(){this.errors.push("pipes")}};function AD(t){let e=new Map,n=0,r=0,s=0;for(;sa+c.length,0);r+=o,n+=o}e.set(r,n),s++}return e}function ND(t){return t.visit(new wf)}var wf=class{visitUnary(e,n){return`${e.operator}${e.expr.visit(this,n)}`}visitBinary(e,n){return`${e.left.visit(this,n)} ${e.operation} ${e.right.visit(this,n)}`}visitChain(e,n){return e.expressions.map(r=>r.visit(this,n)).join("; ")}visitConditional(e,n){return`${e.condition.visit(this,n)} ? ${e.trueExp.visit(this,n)} : ${e.falseExp.visit(this,n)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(e,n){return MD(e.strings,e.expressions.map(r=>r.visit(this,n))).join("")}visitKeyedRead(e,n){return`${e.receiver.visit(this,n)}[${e.key.visit(this,n)}]`}visitLiteralArray(e,n){return`[${e.expressions.map(r=>r.visit(this,n)).join(", ")}]`}visitLiteralMap(e,n){return`{${kD(e.keys.map(r=>r.kind==="spread"?"...":r.quoted?`'${r.key}'`:r.key),e.values.map(r=>r.visit(this,n))).map(([r,s])=>`${r}: ${s}`).join(", ")}}`}visitLiteralPrimitive(e){if(e.value===null)return"null";switch(typeof e.value){case"number":case"boolean":return e.value.toString();case"undefined":return"undefined";case"string":return`'${e.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${e.value}`)}}visitPipe(e,n){return`${e.exp.visit(this,n)} | ${e.name}`}visitPrefixNot(e,n){return`!${e.expression.visit(this,n)}`}visitNonNullAssert(e,n){return`${e.expression.visit(this,n)}!`}visitPropertyRead(e,n){return e.receiver instanceof vn||e.receiver instanceof fo?e.name:`${e.receiver.visit(this,n)}.${e.name}`}visitSafePropertyRead(e,n){return`${e.receiver.visit(this,n)}?.${e.name}`}visitSafeKeyedRead(e,n){return`${e.receiver.visit(this,n)}?.[${e.key.visit(this,n)}]`}visitCall(e,n){return`${e.receiver.visit(this,n)}(${e.args.map(r=>r.visit(this,n)).join(", ")})`}visitSafeCall(e,n){return`${e.receiver.visit(this,n)}?.(${e.args.map(r=>r.visit(this,n)).join(", ")})`}visitTypeofExpression(e,n){return`typeof ${e.expression.visit(this,n)}`}visitVoidExpression(e,n){return`void ${e.expression.visit(this,n)}`}visitRegularExpressionLiteral(e,n){return`/${e.body}/${e.flags||""}`}visitASTWithSource(e,n){return e.ast.visit(this,n)}visitTemplateLiteral(e,n){let r="";for(let s=0;s[n,e[r]])}function MD(t,e){let n=[];for(let r=0;r(t.set(e,n),t),new Map),ci=class extends Sf{_schema=new Map;_eventSchema=new Map;constructor(){super(),FD.forEach(e=>{let n=new Map,r=new Set,[s,i]=e.split("|"),o=i.split(","),[a,c]=s.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),n),this._eventSchema.set(u.toLowerCase(),r)});let l=c&&this._schema.get(c.toLowerCase());if(l){for(let[u,f]of l)n.set(u,f);for(let u of this._eventSchema.get(c.toLowerCase()))r.add(u)}o.forEach(u=>{if(u.length>0)switch(u[0]){case"*":r.add(u.substring(1));break;case"!":n.set(u.substring(1),RD);break;case"#":n.set(u.substring(1),PD);break;case"%":n.set(u.substring(1),OD);break;default:n.set(u,LD)}})})}hasProperty(e,n,r){if(r.some(i=>i.name===og.name))return!0;if(e.indexOf("-")>-1){if(Eg(e)||Rd(e))return!1;if(r.some(i=>i.name===ig.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(n)}hasElement(e,n){return n.some(r=>r.name===og.name)||e.indexOf("-")>-1&&(Eg(e)||Rd(e)||n.some(r=>r.name===ig.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,n,r){r&&(n=this.getMappedPropName(n)),e=e.toLowerCase(),n=n.toLowerCase();let s=iv()[e+"|"+n];return s||(s=iv()["*|"+n],s||se.NONE)}getMappedPropName(e){return QE.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let n=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(n.keys()).map(r=>BD.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return PC(e)}normalizeAnimationStyleValue(e,n,r){let s="",i=r.toString().trim(),o=null;if($D(e)&&r!==0&&r!=="0")if(typeof r=="number")s="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(o=`Please provide a CSS unit value for ${n}:${r}`)}return{error:o,value:i+s}}};function $D(t){switch(t){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}}var H=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=an.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:c=!1}={}){e&&e.length>0&&e.forEach(l=>this.closedByChildren[l]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=n||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=c??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},ov,Rs;function xf(t){return Rs||(ov=new H({canSelfClose:!0}),Rs=Object.assign(Object.create(null),{base:new H({isVoid:!0}),meta:new H({isVoid:!0}),area:new H({isVoid:!0}),embed:new H({isVoid:!0}),link:new H({isVoid:!0}),img:new H({isVoid:!0}),input:new H({isVoid:!0}),param:new H({isVoid:!0}),hr:new H({isVoid:!0}),br:new H({isVoid:!0}),source:new H({isVoid:!0}),track:new H({isVoid:!0}),wbr:new H({isVoid:!0}),p:new H({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 H({closedByChildren:["tbody","tfoot"]}),tbody:new H({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new H({closedByChildren:["tbody"],closedByParent:!0}),tr:new H({closedByChildren:["tr"],closedByParent:!0}),td:new H({closedByChildren:["td","th"],closedByParent:!0}),th:new H({closedByChildren:["td","th"],closedByParent:!0}),col:new H({isVoid:!0}),svg:new H({implicitNamespacePrefix:"svg"}),foreignObject:new H({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new H({implicitNamespacePrefix:"math"}),li:new H({closedByChildren:["li"],closedByParent:!0}),dt:new H({closedByChildren:["dt","dd"]}),dd:new H({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new H({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new H({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new H({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new H({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new H({closedByChildren:["optgroup"],closedByParent:!0}),option:new H({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new H({ignoreFirstLf:!0}),listing:new H({ignoreFirstLf:!0}),style:new H({contentType:an.RAW_TEXT}),script:new H({contentType:an.RAW_TEXT}),title:new H({contentType:{default:an.ESCAPABLE_RAW_TEXT,svg:an.PARSABLE_DATA}}),textarea:new H({contentType:an.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new ci().allKnownElementNames().forEach(e=>{!Rs[e]&&Pd(e)===null&&(Rs[e]=new H({canSelfClose:!1}))})),Rs[t]??Rs[t.toLowerCase()]??ov}var av={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"},Cf=class{_placeHolderNameCounts={};_signatureToName={};getStartTagPlaceholderName(e,n,r){let s=this._hashTag(e,n,r);if(this._signatureToName[s])return this._signatureToName[s];let i=e.toUpperCase(),o=av[i]||`TAG_${i}`,a=this._generateUniqueName(r?o:`START_${o}`);return this._signatureToName[s]=a,a}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let r=e.toUpperCase(),s=av[r]||`TAG_${r}`,i=this._generateUniqueName(`CLOSE_${s}`);return this._signatureToName[n]=i,i}getPlaceholderName(e,n){let r=e.toUpperCase(),s=`PH: ${r}=${n}`;if(this._signatureToName[s])return this._signatureToName[s];let i=this._generateUniqueName(r);return this._signatureToName[s]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,n){let r=this._hashBlock(e,n);if(this._signatureToName[r])return this._signatureToName[r];let s=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[r]=s,s}getCloseBlockPlaceholderName(e){let n=this._hashClosingBlock(e);if(this._signatureToName[n])return this._signatureToName[n];let r=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=r,r}_hashTag(e,n,r){let s=`<${e}`,i=Object.keys(n).sort().map(a=>` ${a}=${n[a]}`).join(""),o=r?"/>":`>`;return s+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,n){let r=n.length===0?"":` (${n.sort().join("; ")})`;return`@${e}${r} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let r=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=r+1,`${e}_${r}`}},VD=new cl(new Zo);function HD(t,e){let n=new If(VD,t,e);return(r,s,i,o,a)=>n.toI18nMessage(r,s,i,o,a)}function jD(t,e){return e}var If=class{_expressionParser;_retainEmptyTokens;_preserveExpressionWhitespace;constructor(e,n,r){this._expressionParser=e,this._retainEmptyTokens=n,this._preserveExpressionWhitespace=r}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof Br,icuDepth:0,placeholderRegistry:new Cf,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||jD},a=fe(this,e,o);return new Je(a,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){return this._visitElementLike(e,n)}visitComponent(e,n){return this._visitElementLike(e,n)}visitDirective(e,n){throw new Error("Unreachable code")}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new Vi(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,r)}visitText(e,n){let r=e.tokens.length===1?new Vi(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,n,e.i18n);return n.visitNodeFn(e,r)}visitComment(e,n){return null}visitExpansion(e,n){n.icuDepth++;let r={},s=new $c(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(a=>{r[a.value]=new kn(a.expression.map(c=>c.visit(this,n)),a.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){let a=n.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return s.expressionPlaceholder=a,n.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},n.visitNodeFn(e,s)}let i=n.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());n.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new ni(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){let r=fe(this,e.children,n);if(e.name==="switch")return new kn(r,e.sourceSpan);let s=e.parameters.map(c=>c.expression),i=n.placeholderRegistry.getStartBlockPlaceholderName(e.name,s),o=n.placeholderRegistry.getCloseBlockPlaceholderName(e.name);n.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},n.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let a=new ar(e.name,s,i,o,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,a)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitElementLike(e,n){let r=fe(this,e.children,n),s={},i=f=>{s[f.name]=f.value},o,a;e instanceof _t?(o=e.name,a=xf(e.name).isVoid):(o=e.fullName,a=e.tagName?xf(e.tagName).isVoid:!1),e.attrs.forEach(i),e.directives.forEach(f=>f.attrs.forEach(i));let c=n.placeholderRegistry.getStartTagPlaceholderName(o,s,a);n.placeholderToContent[c]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let l="";a||(l=n.placeholderRegistry.getCloseTagPlaceholderName(o),n.placeholderToContent[l]={text:``,sourceSpan:e.endSourceSpan??e.sourceSpan});let u=new or(o,s,c,l,r,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,u)}_visitTextWithInterpolation(e,n,r,s){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let[c,l,u]=a.parts,f=GD(l)||"INTERPOLATION",p=r.placeholderRegistry.getPlaceholderName(f,l);if(this._preserveExpressionWhitespace)r.placeholderToContent[p]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Mo(l,p,a.sourceSpan));else{let m=this.normalizeExpression(a);r.placeholderToContent[p]={text:`${c}${m}${u}`,sourceSpan:a.sourceSpan},i.push(new Mo(m,p,a.sourceSpan))}break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let m=i[i.length-1];m instanceof Vi?(m.value+=a.parts[0],m.sourceSpan=new O(m.sourceSpan.start,a.sourceSpan.end,m.sourceSpan.fullStart,m.sourceSpan.details)):i.push(new Vi(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new Vi(a.parts[0],a.sourceSpan));break}return o?(UD(i,s),new kn(i,n)):i[0]}normalizeExpression(e){let n=e.parts[1],r=this._expressionParser.parseBinding(n,e.sourceSpan,e.sourceSpan.start.offset);return ND(r)}};function UD(t,e){if(e instanceof Je&&(qD(e),e=e.nodes[0]),e instanceof kn){WD(e.children,t);for(let n=0;n`"${n.sourceSpan.toString()}"`).join(` `)} Second pass (${e.length} tokens): ${e.map(n=>`"${n.sourceSpan.toString()}"`).join(` `)} `.trim());if(t.some((n,r)=>e[r].constructor!==n.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var zD=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function GD(t){return t.split(zD)[2]}var cv=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function lv(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),cv.has(t+"|"+e)||cv.has("*|"+e)}var QD=t=>(e,n)=>{let r=t.get(e)??e;return r instanceof Pn&&(n instanceof ni&&r.i18n instanceof Je&&(n.previousMessage=r.i18n),r.i18n=n),n},ll=class{keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(e=!1,n=!1,r=!0,s=!r){this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=n,this.preserveSignificantWhitespace=r,this.retainEmptyTokens=s}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),c=HD(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,s,i,o,r);return this._setMessageId(c,n),this._setLegacyIds(c,n),c}visitAllWithErrors(e){let n=e.map(r=>r.visit(this,null));return new ol(n,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,n){return this._visitElementLike(e),e}visitExpansion(e,n){let r,s=e.i18n;if(this.hasI18nMeta=!0,s instanceof ni){let i=s.name;r=this._generateI18nMessage([e],s);let o=oE(r);o.name=i,n!==null&&(n.placeholderToMessage[i]=r)}else r=this._generateI18nMessage([e],n||s);return e.i18n=r,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,n){return fe(this,e.children,n),e}visitBlockParameter(e,n){return e}visitLetDeclaration(e,n){return e}visitDirective(e,n){return e}_visitElementLike(e){let n;if(cI(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===sE){let o=e.i18n||i.value,a=new Map,c=this.preserveSignificantWhitespace?e.children:rn(new al(!1,a),e.children);n=this._generateI18nMessage(c,o,QD(a)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(Ud)){let o=i.name.slice(Ud.length),a;e instanceof st?a=e.tagName===null?!1:lv(e.tagName,o):a=lv(e.name,o),a?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):s[o]=i.value}else r.push(i);if(Object.keys(s).length)for(let i of r){let o=s[i.name];o!==void 0&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=r)}fe(this,e.children,n)}_parseMetadata(e){return typeof e=="string"?XD(e):e instanceof Je?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof Je&&n.id||uC(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[lC(e),Yv(e)];else if(typeof n!="string"){let r=n instanceof Je?n:n instanceof ni?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new R(e.sourceSpan,n))}},YD="|",ZD="@@";function XD(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(ZD),i=t.indexOf(YD),o;[o,e]=s>-1?[t.slice(0,s),t.slice(s+2)]:[t,""],[n,r]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:n,description:r}}function JD(t){let e=[];return t.description?e.push({tagName:"desc",text:t.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&e.push({tagName:"meaning",text:t.meaning}),TC(e)}var KD="goog.getMsg";function e_(t,e,n,r){let s=n_(e),i=[E(s)];Object.keys(r).length&&(i.push(af(np(r,!0),!0)),i.push(af({original_code:Pt(Object.keys(r).map(c=>({key:ra(c),quoted:!0,value:e.placeholders[c]?E(e.placeholders[c].sourceSpan.toString()):E(e.placeholderToMessage[c].nodes.map(l=>l.sourceSpan.toString()).join(""))})))})));let o=new De(n.name,z(KD).callFn(i),qt,Le.Final);o.addLeadingComment(JD(e));let a=new qe(t.set(n));return[o,a]}var Tf=class{formatPh(e){return`{$${ra(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return HE(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(n=>n.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,n){return this.formatPh(e.name)}},t_=new Tf;function n_(t){return t.nodes.map(e=>e.visit(t_,null)).join("")}function r_(t,e,n){let{messageParts:r,placeHolders:s}=s_(e),i=i_(e),o=s.map(l=>n[l.text]),a=_C(e,r,s,o,i),c=t.set(a);return[new qe(c)]}var bf=class{placeholderToMessage;pieces;constructor(e,n){this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Pr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new O(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Pr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new Pr(HE(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(n=>n.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(n=>n.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,n,r){return new Hs(ra(e,!1),n,r)}};function s_(t){let e=[],n=new bf(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),o_(e)}function i_(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new O(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function o_(t){let e=[],n=[];t[0]instanceof Hs&&e.push(ld(t[0].sourceSpan.start));for(let r=0;r{let x=p.has(v.name);return p.add(v.name),!x});let m=f.flatMap(v=>{let x=o.get(v.context);if(x===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[E(v.name),x]});u.i18nAttributesConfig=t.addConst(new mn(m))}for(let c of t.units)for(let l of c.create)if(l.kind===d.I18nStart){let u=a.get(l.root);if(u===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");l.messageIndex=u}}function YE(t,e,n,r){let s=[],i=new Map;for(let l of r.subMessages){let u=n.get(l),{mainVar:f,statements:p}=YE(t,e,n,u);s.push(...p);let m=i.get(u.messagePlaceholder)??[];m.push(f),i.set(u.messagePlaceholder,m)}f_(r,i),r.params=new Map([...r.params.entries()].sort());let o=z(t.pool.uniqueName(a_)),a=m_(t.pool,r.message.id,e,t.i18nUseExternalIds),c;if(r.needsPostprocessing||r.postprocessingParams.size>0){let l=Object.fromEntries([...r.postprocessingParams.entries()].sort()),u=np(l,!1),f=[];r.postprocessingParams.size>0&&f.push(af(u,!0)),c=p=>k(h.i18nPostprocess).callFn([p,...f])}return s.push(...p_(r.message,o,a,r.params,c)),{mainVar:o,statements:s}}function f_(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,E(`${dv}${c_}${n}${dv}`)),t.postprocessingParams.set(n,te(r)))}function p_(t,e,n,r,s){let i=Object.fromEntries(r),o=[u_(e),xl(h_(),e_(e,t,n,i),r_(e,t,np(i,!1)))];return s&&o.push(new qe(e.set(s(e)))),o}function h_(){return ta(z(uv)).notIdentical(E("undefined",Kf)).and(z(uv))}function m_(t,e,n,r){let s,i=n;if(r){let o=fv("EXTERNAL_"),a=t.uniqueName(i);s=`${o}${_r(e)}$$${a}`}else{let o=fv(i);s=t.uniqueName(o)}return z(s)}function g_(t){for(let e of t.units){let n=null,r=null,s=new Map,i=new Map,o=new Map;for(let a of e.create)switch(a.kind){case d.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");n=a;break;case d.I18nEnd:n=null;break;case d.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");r=a;break;case d.IcuEnd:r=null;break;case d.Text:if(n!==null)if(s.set(a.xref,n),i.set(a.xref,r),a.icuPlaceholder!==null){let c=jT(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);w.replace(a,c),o.set(a.xref,c)}else w.remove(a);break}for(let a of e.update)switch(a.kind){case d.InterpolateText:if(!s.has(a.target))continue;let c=s.get(a.target),l=i.get(a.target),u=o.get(a.target),f=l?l.context:c.context,p=l?$o.Postproccessing:$o.Creation,m=[];for(let v=0;v0){let r=E_(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function E_(t){let e=[];for(let n of t)e.push(E(n.name),E(n.target));return te(e)}function y_(t){for(let e of t.units){let n=Ue.HTML;for(let r of e.create)r.kind===d.ElementStart&&r.namespace!==n&&(w.insertBefore(PT(r.namespace),r),n=r.namespace)}}function w_(t){let e=[],n=0,r=0,s=0,i=0,o=0,a=null;for(;n0&&r===0&&s===0){let l=t.substring(i,n-1).trim();e.push(a,l),o=n,i=0,a=null}break}if(a&&i){let c=t.slice(i).trim();e.push(a,c)}return e}function ZE(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function S_(t){let e=new Map;for(let n of t.units)for(let r of n.create)pr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)if(r.kind===d.ExtractedAttribute&&r.bindingKind===N.Attribute&&DE(r.expression)){let s=e.get(r.target);if(s!==void 0&&(s.kind===d.Template||s.kind===d.ConditionalCreate||s.kind===d.ConditionalBranchCreate)&&s.templateKind===ct.Structural)continue;if(r.name==="style"){let i=w_(r.expression.value);for(let o=0;o{if(!(!(o instanceof Mn)||o.name!==null)){if(!s.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=s.get(o.xref)}})}function C_(t,e,n){if(e.name===null)switch(e.kind){case Ae.Context:e.name=`ctx_r${n.index++}`;break;case Ae.Identifier:if(t.job.compatibility===xt.TemplateDefinitionBuilder){let r=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${r}r${++n.index}`}else e.name=`${e.identifier}_i${n.index++}`;break;default:e.name=`_r${++n.index}`;break}return e.name}function I_(t){return t.startsWith("--")?t:ZE(t)}function pv(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function T_(t){for(let e of t.units){for(let n of e.create)(n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener)&&hv(n.handlerOps);hv(e.update)}}function hv(t){for(let e of t){if(e.kind!==d.Statement||!(e.statement instanceof qe)||!(e.statement.expr instanceof Gc))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==d.ListEnd&&r;s=s.next)Ne(s,(i,o)=>{if(!wn(i))return i;if(r&&!(o&Y.InChildOperation))switch(i.kind){case M.NextContext:i.steps+=n,w.remove(e),r=!1;break;case M.GetCurrentView:case M.Reference:case M.ContextLetReference:r=!1;break}})}}var b_="ng-container";function D_(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===d.ElementStart&&r.tag===b_&&(r.kind=d.ContainerStart,n.add(r.xref)),r.kind===d.ElementEnd&&n.has(r.xref)&&(r.kind=d.ContainerEnd)}}function __(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an element-like target.");return n}function A_(t){let e=new Map;for(let n of t.units)for(let r of n.create)pr(r)&&e.set(r.xref,r);for(let n of t.units)for(let r of n.create)(r.kind===d.ElementStart||r.kind===d.ContainerStart)&&r.nonBindable&&w.insertAfter(NT(r.xref),r),(r.kind===d.ElementEnd||r.kind===d.ContainerEnd)&&__(e,r.xref).nonBindable&&w.insertBefore(kT(r.xref),r)}function ln(t){return e=>e.kind===t}function to(t,e){return n=>n.kind===t&&e===n.expression instanceof ve}function N_(t){return t.kind===d.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===d.TwoWayListener||t.kind===d.Animation||t.kind===d.AnimationListener}function k_(t){return(t.kind===d.Property||t.kind===d.TwoWayProperty)&&!(t.expression instanceof ve)}var M_=[{test:t=>t.kind===d.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:N_}],R_=[{test:ln(d.StyleMap),transform:ul},{test:ln(d.ClassMap),transform:ul},{test:ln(d.StyleProp)},{test:ln(d.ClassProp)},{test:to(d.Attribute,!0)},{test:to(d.Property,!0)},{test:k_},{test:to(d.Attribute,!1)},{test:ln(d.Control)}],P_=[{test:to(d.DomProperty,!0)},{test:to(d.DomProperty,!1)},{test:ln(d.Attribute)},{test:ln(d.StyleMap),transform:ul},{test:ln(d.ClassMap),transform:ul},{test:ln(d.StyleProp)},{test:ln(d.ClassProp)}],mv=new Set([d.Listener,d.TwoWayListener,d.AnimationListener,d.StyleMap,d.ClassMap,d.StyleProp,d.ClassProp,d.Property,d.TwoWayProperty,d.DomProperty,d.Attribute,d.Animation,d.Control]);function L_(t){for(let e of t.units){gv(e.create,M_);let n=e.job.kind===b.Host?P_:R_;gv(e.update,n)}}function gv(t,e){let n=[],r=null;for(let s of t){let i=Vo(s)?s.target:null;(!mv.has(s.kind)||i!==r&&r!==null&&i!==null)&&(w.insertBefore(vv(n,e),s),n=[],r=null),mv.has(s.kind)&&(n.push(s),w.remove(s),r=i??r)}t.push(vv(n,e))}function vv(t,e){let n=Array.from(e,()=>new Array);for(let r of t){let s=e.findIndex(i=>i.test(r));n[s].push(r)}return n.flatMap((r,s)=>{let i=e[s].transform;return i?i(r):r})}function ul(t){return t.slice(t.length-1)}function O_(t){for(let e of t.units){let n=FE(e);for(let r of e.ops())if(r.kind===d.Binding){let s=B_(n,r.target);F_(r.name)&&s.kind===d.Projection&&w.remove(r)}}}function F_(t){return t.toLowerCase()==="select"}function B_(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function $_(t){for(let e of t.units)V_(e)}function V_(t){for(let e of t.update)Ne(e,(n,r)=>{if(wn(n)&&n.kind===M.PipeBinding){if(r&Y.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(t.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");H_(t,e.target,n)}else t.create.push(PE(n.target,n.targetSlot,n.name))}})}function H_(t,e,n){for(let r=t.create.head.next;r.kind!==d.ListEnd;r=r.next){if(!pi(r)||r.xref!==e)continue;for(;r.next.kind===d.Pipe;)r=r.next;let s=PE(n.target,n.targetSlot,n.name);w.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function j_(t){for(let e of t.units)for(let n of e.update)ye(n,r=>!(r instanceof es)||r.args.length<=4?r:new Uo(r.target,r.targetSlot,r.name,te(r.args),r.args.length),Y.None)}function U_(t){XE(t.root,0)}function XE(t,e){let n=null;for(let r of t.create)switch(r.kind){case d.I18nStart:r.subTemplateIndex=e===0?null:e,n=r;break;case d.I18nEnd:n.subTemplateIndex===null&&(e=0),n=null;break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:e=Za(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case d.RepeaterCreate:let s=t.job.views.get(r.xref);e=Za(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=Za(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break;case d.Projection:r.fallbackView!==null&&(e=Za(t.job.views.get(r.fallbackView),n,r.fallbackViewI18nPlaceholder,e));break}return e}function Za(t,e,n,r){if(n!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");r++,q_(t,e)}return XE(t,r)}function q_(t,e){if(t.create.head.next?.kind!==d.I18nStart){let n=t.job.allocateXrefId();w.insertAfter(Dl(n,e.message,e.root,null),t.create.head),w.insertBefore(_l(n,null),t.create.tail)}}function W_(t){for(let e of t.units)for(let n of e.ops())Ne(n,r=>{if(!(r instanceof Kr)||r.body===null)return;let s=new Df(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var Df=class extends lo{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof dr?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,n){let r=[];for(let i=0;ii instanceof dr?z("a"+i.index):i,Y.None);return new De(e,new Ur(r,s),void 0,Le.Final)}};function z_(t){for(let e of t.units)for(let n of e.update)ye(n,(r,s)=>s&Y.InChildOperation?r:r instanceof mn?G_(r):r instanceof Gt?Q_(r):r,Y.None)}function G_(t){let e=[],n=[];for(let r of t.entries){if(r instanceof Wr){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new Wr(new dr(s)))}continue}if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new dr(s))}}return new Kr(te(e),n)}function Q_(t){let e=[],n=[];for(let r of t.entries){if(r instanceof rr){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new rr(new dr(s)))}continue}if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new Gs(r.key,new dr(s),r.quoted))}}return new Kr(new Gt(e),n)}function Y_(t){for(let e of t.units)for(let n of e.ops())ye(n,r=>r instanceof zs&&(r.flags===null||!r.flags.includes("g"))?t.pool.getSharedConstant(new _f,r):r,Y.None)}var _f=class extends lo{toSharedConstantDeclaration(e,n){return new De(e,n,void 0,Le.Final)}};function Z_(t,e,n,r,s){return gr(h.element,t,e,n,r,s)}function X_(t,e,n,r,s){return gr(h.elementStart,t,e,n,r,s)}function gr(t,e,n,r,s,i){let o=[E(e)];return n!==null&&o.push(E(n)),s!==null?o.push(E(r),E(s)):r!==null&&o.push(E(r)),B(t,o,i)}function JE(t,e,n,r,s,i,o,a,c){let l=[E(e),n,E(r),E(s),E(i),E(o)];for(a!==null&&(l.push(E(a)),l.push(k(h.templateRefExtractor)));l[l.length-1].isEquivalent(Qs);)l.pop();return B(t,l,c)}function pp(t,e,n,r,s){let i=[E(e)];return n instanceof ve?i.push(rs(n,s)):i.push(n),r!==null&&i.push(r),B(t,i,s)}function J_(t){return B(h.elementEnd,[],t)}function K_(t,e,n,r){return gr(h.elementContainerStart,t,null,e,n,r)}function e0(t,e,n,r){return gr(h.elementContainer,t,null,e,n,r)}function t0(){return B(h.elementContainerEnd,[],null)}function n0(t,e,n,r,s,i,o,a){return JE(h.templateCreate,t,e,n,r,s,i,o,a)}function r0(){return B(h.disableBindings,[],null)}function s0(){return B(h.enableBindings,[],null)}function i0(t,e,n,r,s){let i=[E(t),e];return n!==null&&i.push(k(n)),B(r?h.syntheticHostListener:h.listener,i,s)}function Ev(t,e){return k(h.twoWayBindingSet).callFn([t,e])}function o0(t,e,n){return B(h.twoWayListener,[E(t),e],n)}function a0(t,e){return B(h.pipe,[E(t),E(e)],null)}function c0(){return B(h.namespaceHTML,[],null)}function l0(){return B(h.namespaceSVG,[],null)}function u0(){return B(h.namespaceMathML,[],null)}function d0(t,e){return B(h.advance,t>1?[E(t)]:[],e)}function f0(t){return k(h.reference).callFn([E(t)])}function p0(t){return k(h.nextContext).callFn(t===1?[]:[E(t)])}function h0(){return k(h.getCurrentView).callFn([])}function m0(t){return k(h.restoreView).callFn([t])}function g0(t){return k(h.resetView).callFn([t])}function v0(t,e,n){let r=[E(t,null)];return e!==""&&r.push(E(e)),B(h.text,r,n)}function E0(t,e,n,r,s,i,o,a,c,l,u){let f=[E(t),E(e),n??E(null),E(r),E(s),E(i),o??E(null),a??E(null),c?k(h.deferEnableTimerScheduling):E(null),E(u)],p;for(;(p=f[f.length-1])!==null&&p instanceof Be&&p.value===null;)f.pop();return B(h.defer,f,l)}var y0=new Map([[re.Idle,{none:h.deferOnIdle,prefetch:h.deferPrefetchOnIdle,hydrate:h.deferHydrateOnIdle}],[re.Immediate,{none:h.deferOnImmediate,prefetch:h.deferPrefetchOnImmediate,hydrate:h.deferHydrateOnImmediate}],[re.Timer,{none:h.deferOnTimer,prefetch:h.deferPrefetchOnTimer,hydrate:h.deferHydrateOnTimer}],[re.Hover,{none:h.deferOnHover,prefetch:h.deferPrefetchOnHover,hydrate:h.deferHydrateOnHover}],[re.Interaction,{none:h.deferOnInteraction,prefetch:h.deferPrefetchOnInteraction,hydrate:h.deferHydrateOnInteraction}],[re.Viewport,{none:h.deferOnViewport,prefetch:h.deferPrefetchOnViewport,hydrate:h.deferHydrateOnViewport}],[re.Never,{none:h.deferHydrateNever,prefetch:h.deferHydrateNever,hydrate:h.deferHydrateNever}]]);function w0(t,e,n,r){let s=y0.get(t)?.[n];if(s===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return B(s,e,r)}function S0(t){return B(h.projectionDef,t?[t]:[],null)}function x0(t,e,n,r,s,i,o){let a=[E(t)];return(e!==0||n!==null||r!==null)&&(a.push(E(e)),n!==null&&a.push(n),r!==null&&(n===null&&a.push(E(null)),a.push(z(r),E(s),E(i)))),B(h.projection,a,o)}function C0(t,e,n,r){let s=[E(t),E(e)];return n!==null&&s.push(E(n)),B(h.i18nStart,s,r)}function I0(t,e,n,r,s,i,o,a){let c=[E(t),e,E(n),E(r),E(s),E(i)];for(o!==null&&(c.push(E(o)),c.push(k(h.templateRefExtractor)));c[c.length-1].isEquivalent(Qs);)c.pop();return B(h.conditionalCreate,c,a)}function T0(t,e,n,r,s,i,o,a){let c=[E(t),e,E(n),E(r),E(s),E(i)];for(o!==null&&(c.push(E(o)),c.push(k(h.templateRefExtractor)));c[c.length-1].isEquivalent(Qs);)c.pop();return B(h.conditionalBranchCreate,c,a)}function b0(t,e,n,r,s,i,o,a,c,l,u,f,p,m){let v=[E(t),z(e),E(n),E(r),E(s),E(i),o];return(a||c!==null)&&(v.push(E(a)),c!==null&&(v.push(z(c),E(l),E(u)),(f!==null||p!==null)&&v.push(E(f)),p!==null&&v.push(E(p)))),B(h.repeaterCreate,v,m)}function D0(t,e){return B(h.repeater,[t],e)}function _0(t,e,n){return t==="prefetch"?B(h.deferPrefetchWhen,[e],n):t==="hydrate"?B(h.deferHydrateWhen,[e],n):B(h.deferWhen,[e],n)}function A0(t,e){return B(h.declareLet,[E(t)],e)}function N0(t,e){return k(h.storeLet).callFn([t],e)}function k0(t){return k(h.readContextLet).callFn([E(t)])}function M0(t,e,n,r){let s=[E(t),E(e)];return n&&s.push(E(n)),B(h.i18n,s,r)}function R0(t){return B(h.i18nEnd,[],t)}function P0(t,e){let n=[E(t),E(e)];return B(h.i18nAttributes,n,null)}function L0(t,e,n){return pp(h.ariaProperty,t,e,null,n)}function O0(t,e,n,r){return pp(h.property,t,e,n,r)}function F0(t,e,n,r){let s=[];return e instanceof ve?s.push(rs(e,r)):s.push(e),s.push(E(t)),n!==null&&s.push(n),B(h.control,s,r)}function B0(t){return B(h.controlCreate,[],t)}function $0(t,e,n,r){let s=[E(t),e];return n!==null&&s.push(n),B(h.twoWayProperty,s,r)}function V0(t,e,n,r,s){let i=[E(t)];return e instanceof ve?i.push(rs(e,s)):i.push(e),(n!==null||r!==null)&&i.push(n??E(null)),r!==null&&i.push(E(r)),B(h.attribute,i,null)}function H0(t,e,n,r){let s=[E(t)];return e instanceof ve?s.push(rs(e,r)):s.push(e),n!==null&&s.push(E(n)),B(h.styleProp,s,r)}function j0(t,e,n){return B(h.classProp,[E(t),e],n)}function U0(t,e){let n=t instanceof ve?rs(t,e):t;return B(h.styleMap,[n],e)}function q0(t,e){let n=t instanceof ve?rs(t,e):t;return B(h.classMap,[n],e)}function W0(t,e,n,r,s){return gr(h.domElement,t,e,n,r,s)}function z0(t,e,n,r,s){return gr(h.domElementStart,t,e,n,r,s)}function G0(t){return B(h.domElementEnd,[],t)}function Q0(t,e,n,r){return gr(h.domElementContainerStart,t,null,e,n,r)}function Y0(t,e,n,r){return gr(h.domElementContainer,t,null,e,n,r)}function Z0(){return B(h.domElementContainerEnd,[],null)}function X0(t,e,n,r){let s=[E(t),e];return n!==null&&s.push(k(n)),B(h.domListener,s,r)}function J0(t,e,n,r,s,i,o,a){return JE(h.domTemplate,t,e,n,r,s,i,o,a)}var yv=[h.pipeBind1,h.pipeBind2,h.pipeBind3,h.pipeBind4];function K0(t,e,n){if(n.length<1||n.length>yv.length)throw new Error("pipeBind() argument count out of bounds");let r=yv[n.length-1];return k(r).callFn([E(t),E(e),...n])}function eA(t,e,n){return k(h.pipeBindV).callFn([E(t),E(e),n])}function tA(t,e,n){let r=KE(t,e);return mA(fA,[],r,n)}function nA(t,e){return B(h.i18nExp,[t],e)}function rA(t,e){return B(h.i18nApply,[E(t)],e)}function sA(t,e,n,r){return pp(h.domProperty,t,e,n,r)}function iA(t,e,n,r){let s=[e];n!==null&&s.push(n);let i=t==="enter"?h.animationEnter:h.animationLeave;return B(i,s,r)}function oA(t,e,n,r){let i=[e instanceof ve?rs(e,r):e];n!==null&&i.push(n);let o=t==="enter"?h.animationEnter:h.animationLeave;return B(o,i,r)}function aA(t,e,n,r){let s=[e],i=t==="enter"?h.animationEnterListener:h.animationLeaveListener;return B(i,s,r)}function cA(t,e,n){return B(h.syntheticHostProperty,[E(t),e],n)}function lA(t,e,n){return hp(hA,[E(t),e],n,null)}function uA(t,e){return B(h.attachSourceLocations,[E(t),e],null)}function KE(t,e){if(t.length<1||e.length!==t.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let n=[];if(e.length===1&&t[0]===""&&t[1]==="")n.push(e[0]);else{let r;for(r=0;r{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},pA={constant:[h.interpolate,h.interpolate1,h.interpolate2,h.interpolate3,h.interpolate4,h.interpolate5,h.interpolate6,h.interpolate7,h.interpolate8],variable:h.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},hA={constant:[h.pureFunction0,h.pureFunction1,h.pureFunction2,h.pureFunction3,h.pureFunction4,h.pureFunction5,h.pureFunction6,h.pureFunction7,h.pureFunction8],variable:h.pureFunctionV,mapping:t=>t};function hp(t,e,n,r){let s=t.mapping(n.length),i=n.at(-1);if(n.length>1&&i instanceof Be&&i.value===""&&n.pop(),s{if($.slot===null)throw new Error("No slot was assigned for source location");return te([E($.slot),E(Ht),E(Bi),E(eC)])}));w.replace(n,uA(n.templatePath,K));break;case d.ControlCreate:w.replace(n,B0(n.sourceSpan));break;case d.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${d[n.kind]}`)}}function mp(t,e){for(let n of e)switch(ye(n,ey,Y.None),n.kind){case d.Advance:w.replace(n,d0(n.delta,n.sourceSpan));break;case d.Property:w.replace(n,t.job.mode===rt.DomOnly&&n.bindingKind!==N.LegacyAnimation&&n.bindingKind!==N.Animation?wv(n):wA(n));break;case d.Control:w.replace(n,SA(n));break;case d.TwoWayProperty:w.replace(n,$0(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case d.StyleProp:w.replace(n,H0(n.name,n.expression,n.unit,n.sourceSpan));break;case d.ClassProp:w.replace(n,j0(n.name,n.expression,n.sourceSpan));break;case d.StyleMap:w.replace(n,U0(n.expression,n.sourceSpan));break;case d.ClassMap:w.replace(n,q0(n.expression,n.sourceSpan));break;case d.I18nExpression:w.replace(n,nA(n.expression,n.sourceSpan));break;case d.I18nApply:w.replace(n,rA(n.handle.slot,n.sourceSpan));break;case d.InterpolateText:w.replace(n,tA(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case d.Attribute:w.replace(n,V0(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case d.DomProperty:if(n.expression instanceof ve)throw new Error("not yet handled");n.bindingKind===N.LegacyAnimation||n.bindingKind===N.Animation?w.replace(n,cA(n.name,n.expression,n.sourceSpan)):w.replace(n,wv(n));break;case d.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);w.replace(n,Lt(new De(n.variable.name,n.initializer,void 0,Le.Final)));break;case d.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");w.replace(n,dA(n.processed,n.contextValue,n.sourceSpan));break;case d.Repeater:w.replace(n,D0(n.collection,n.sourceSpan));break;case d.DeferWhen:w.replace(n,_0(n.modifier,n.expr,n.sourceSpan));break;case d.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${n.declaredName}`);case d.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${d[n.kind]}`)}}function wv(t){return sA(vA.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function wA(t){return BE(t.name)?L0(t.name,t.expression,t.sourceSpan):O0(t.name,t.expression,t.sanitizer,t.sourceSpan)}function SA(t){return F0(t.name,t.expression,t.sanitizer,t.sourceSpan)}function ey(t){if(!wn(t))return t;switch(t.kind){case M.NextContext:return p0(t.steps);case M.Reference:return f0(t.targetSlot.slot+1+t.offset);case M.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case M.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case M.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return m0(t.view);case M.ResetView:return g0(t.expr);case M.GetCurrentView:return h0();case M.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return z(t.name);case M.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return z(t.name);case M.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return z(t.name).set(t.expr);case M.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return lA(t.varOffset,t.fn,t.args);case M.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case M.PipeBinding:return K0(t.targetSlot.slot,t.varOffset,t.args);case M.PipeBindingVariadic:return eA(t.targetSlot.slot,t.varOffset,t.args);case M.SlotLiteralExpr:return E(t.slot.slot);case M.ContextLetReference:return k0(t.targetSlot.slot);case M.StoreLet:return N0(t.value,t.sourceSpan);case M.TrackContext:return z("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${M[t.kind]}`)}}function Xa(t,e,n,r){mp(t,n);let s=[];for(let o of n){if(o.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[o.kind]}`);s.push(o.statement)}let i=[];return r&&i.push(new Pe("$event")),sr(i,s,void 0,void 0,e)}function xA(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new Pe("$index"),new Pe("$item")],r;if(e.trackByOps===null)r=e.usesComponentInstance?sr(n,[new Oe(e.track)]):gn(n,e.track);else{mp(t,e.trackByOps);let s=[];for(let i of e.trackByOps){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${d[i.kind]}`);s.push(i.statement)}r=e.usesComponentInstance||s.length!==1||!(s[0]instanceof Oe)?sr(n,s):gn(n,s[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(r,"_forTrack"),e.trackByFn}function CA(t){for(let e of t.units)for(let n of e.update)switch(n.kind){case d.Attribute:case d.Binding:case d.ClassProp:case d.ClassMap:case d.Property:case d.StyleProp:case d.StyleMap:n.expression instanceof qo&&w.remove(n);break}}function IA(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case d.I18nContext:w.remove(n);break;case d.I18nStart:n.context=null;break}}function TA(t){for(let e of t.units)for(let n of e.update){if(n.kind!==d.Variable||n.variable.kind!==Ae.Identifier||!(n.initializer instanceof Ho))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==d.ListEnd;)ye(s,i=>i instanceof Me&&i.name===r?E(void 0):i,Y.None),s=s.prev}}function bA(t){for(let e of t.units){let n=new Set;for(let r of e.update)r.kind===d.I18nExpression&&n.add(r.i18nOwner);for(let r of e.create)switch(r.kind){case d.I18nAttributes:if(n.has(r.xref))continue;w.remove(r)}}}function DA(t){for(let e of t.units)dl(e,e.create),dl(e,e.update)}function dl(t,e){let n=new Map;n.set(t.xref,z("ctx"));for(let r of e)switch(r.kind){case d.Variable:r.variable.kind===Ae.Context&&n.set(r.variable.view,new Mn(r.xref));break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:dl(t,r.handlerOps);break;case d.RepeaterCreate:r.trackByOps!==null&&dl(t,r.trackByOps);break}t===t.job.root&&n.set(t.xref,z("ctx"));for(let r of e)ye(r,s=>{if(s instanceof ur){if(!n.has(s.view))throw new Error(`No context found for reference to view ${s.view} from view ${t.xref}`);return n.get(s.view)}else return s},Y.None)}function _A(t){for(let e of t.units)for(let n of e.create)if(n.kind===d.Defer){if(n.resolverFn!==null)continue;if(n.ownResolverFn!==null){if(n.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let r=e.fnName?.replace("_Template","");n.resolverFn=t.pool.getSharedFunctionReference(n.ownResolverFn,`${r}_Defer_${n.handle.slot}_DepsFn`,!1)}}}function AA(t){for(let e of t.units)Sv(e.create),Sv(e.update)}function Sv(t){for(let e of t)(e.kind===d.Listener||e.kind===d.TwoWayListener||e.kind===d.AnimationListener)&&ye(e,n=>n instanceof Me&&n.name==="$event"?((e.kind===d.Listener||e.kind===d.AnimationListener)&&(e.consumesDollarEvent=!0),new Wt(n.name)):n,Y.InChildOperation)}function NA(t){let e=new Map,n=new Map;for(let r of t.units)for(let s of r.create)switch(s.kind){case d.I18nContext:e.set(s.xref,s);break;case d.ElementStart:n.set(s.xref,s);break}sn(t,t.root,e,n)}function sn(t,e,n,r,s){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case d.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:n.get(a.context)};break;case d.I18nEnd:i=null;break;case d.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");xv(a,i.i18nContext,i.i18nBlock,s),s&&a.i18nPlaceholder.closeName&&o.set(a.xref,s),s=void 0}break;case d.ElementEnd:let c=r.get(a.xref);if(c&&c.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Cv(c,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case d.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");xv(a,i.i18nContext,i.i18nBlock,s),Cv(a,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.fallbackView!==null){let p=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)sn(t,p,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Ja(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),sn(t,p,n,r),Ka(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break;case d.ConditionalCreate:case d.ConditionalBranchCreate:case d.Template:let l=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)sn(t,l,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===ct.Structural?sn(t,l,n,r,a):(Ja(t,l,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),sn(t,l,n,r),Ka(t,l,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0)}break;case d.RepeaterCreate:if(s!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let u=a.handle.slot+1,f=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)sn(t,f,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Ja(t,f,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),sn(t,f,n,r),Ka(t,f,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.emptyView!==null){let p=a.handle.slot+2,m=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)sn(t,m,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Ja(t,m,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),sn(t,m,n,r),Ka(t,m,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function xv(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=oe.ElementTag|oe.OpenTag,a=t.handle.slot;r!==void 0&&(o|=oe.TemplateTag,a={element:a,template:r.handle.slot}),i||(o|=oe.CloseTag),li(e.params,s,a,n.subTemplateIndex,o)}function Cv(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=oe.ElementTag|oe.CloseTag,o=t.handle.slot;r!==void 0&&(i|=oe.TemplateTag,o={element:o,template:r.handle.slot}),li(e.params,s,o,n.subTemplateIndex,i)}}function Ja(t,e,n,r,s,i,o){let{startName:a,closeName:c}=r,l=oe.TemplateTag|oe.OpenTag;c||(l|=oe.CloseTag),o!==void 0&&li(s.params,a,o.handle.slot,i.subTemplateIndex,l),li(s.params,a,n,ty(t,i,e),l)}function Ka(t,e,n,r,s,i,o){let{closeName:a}=r,c=oe.TemplateTag|oe.CloseTag;a&&(li(s.params,a,n,ty(t,i,e),c),o!==void 0&&li(s.params,a,o.handle.slot,i.subTemplateIndex,c))}function ty(t,e,n){for(let r of n.create)if(r.kind===d.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function li(t,e,n,r,s){let i=t.get(e)??[];i.push({value:n,subTemplateIndex:r,flags:s}),t.set(e,i)}function kA(t){let e=new Map,n=new Map,r=new Map;for(let o of t.units)for(let a of o.create)switch(a.kind){case d.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case d.I18nContext:n.set(a.xref,a);break;case d.IcuPlaceholder:r.set(a.xref,a);break}let s=new Map,i=o=>o.usage===di.I18nText?o.i18nOwner:o.context;for(let o of t.units)for(let a of o.update)if(a.kind===d.I18nExpression){let c=s.get(i(a))||0,l=e.get(a.i18nOwner)??null,u={value:c,subTemplateIndex:l,flags:oe.ExpressionIndex};MA(a,u,n,r),s.set(i(a),c+1)}}function MA(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===$o.Creation?s.params:s.postprocessingParams,o=i.get(t.i18nPlaceholder)||[];o.push(e),i.set(t.i18nPlaceholder,o)}t.icuPlaceholder!==null&&r.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function RA(t){for(let e of t.units)fl(e,e.create,null),fl(e,e.update,null)}function fl(t,e,n){let r=new Map,s=new Map;for(let i of e)switch(i.kind){case d.Variable:switch(i.variable.kind){case Ae.Identifier:if(i.variable.local){if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref)}else if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Ae.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Ae.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case d.Animation:case d.AnimationListener:case d.Listener:case d.TwoWayListener:fl(t,i.handlerOps,n);break;case d.RepeaterCreate:i.trackByOps!==null&&fl(t,i.trackByOps,n);break}for(let i of e)i.kind==d.Listener||i.kind===d.TwoWayListener||i.kind===d.Animation||i.kind===d.AnimationListener||ye(i,o=>{if(o instanceof Me)return s.has(o.name)?new Mn(s.get(o.name)):r.has(o.name)?new Mn(r.get(o.name)):new wt(new ur(t.job.root.xref),o.name);if(o instanceof Qc&&typeof o.view=="number"){if(n===null||n.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new Mn(n.variable),o}else return o},Y.None);for(let i of e)Ne(i,o=>{if(o instanceof Me)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var PA=new Map([[se.HTML,h.sanitizeHtml],[se.RESOURCE_URL,h.sanitizeResourceUrl],[se.SCRIPT,h.sanitizeScript],[se.STYLE,h.sanitizeStyle],[se.URL,h.sanitizeUrl],[se.ATTRIBUTE_NO_BINDING,h.validateAttribute]]),LA=new Map([[se.HTML,h.trustConstantHtml],[se.RESOURCE_URL,h.trustConstantResourceUrl]]);function OA(t){for(let e of t.units){if(t.kind!==b.Host){for(let n of e.create)if(n.kind===d.ExtractedAttribute){let r=LA.get(Iv(n.securityContext))??null;n.trustedValueFn=r!==null?k(r):null}}for(let n of e.update)switch(n.kind){case d.Property:case d.Attribute:case d.DomProperty:let r=null;Array.isArray(n.securityContext)&&n.securityContext.length===2&&n.securityContext.includes(se.URL)&&n.securityContext.includes(se.RESOURCE_URL)?r=h.sanitizeUrlOrResourceUrl:r=PA.get(Iv(n.securityContext))??null,n.sanitizer=r!==null?k(r):null;break}}}function Iv(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||se.NONE}return t}function FA(t){for(let e of t.units){e.create.prepend([Kn(e.job.allocateXrefId(),{kind:Ae.SavedView,name:null,view:e.xref},new tf,kt.None)]);for(let n of e.create){if(n.kind!==d.Listener&&n.kind!==d.TwoWayListener&&n.kind!==d.Animation&&n.kind!==d.AnimationListener)continue;let r=e!==t.root;if(!r)for(let s of n.handlerOps)Ne(s,i=>{(i instanceof zc||i instanceof jo)&&(r=!0)});r&&BA(e,n)}}}function BA(t,e){e.handlerOps.prepend([Kn(t.job.allocateXrefId(),{kind:Ae.Context,name:null,view:t.xref},new Qc(t.xref),kt.None)]);for(let n of e.handlerOps)n.kind===d.Statement&&n.statement instanceof Oe&&(n.statement.value=new nf(n.statement.value))}function $A(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)pi(s)&&(s.handle.slot=r,e.set(s.xref,s.handle.slot),r+=s.numSlotsUsed);n.decls=r}for(let n of t.units)for(let r of n.ops())if(r.kind===d.Template||r.kind===d.ConditionalCreate||r.kind===d.ConditionalBranchCreate||r.kind===d.RepeaterCreate){let s=t.views.get(r.xref);r.decls=s.decls}}function VA(t){let e=new Set,n=new Map;for(let r of t.units)for(let s of r.ops())s.kind===d.DeclareLet&&n.set(s.xref,s),Ne(s,i=>{i instanceof jo&&e.add(i.target)});for(let r of t.units)for(let s of r.update)ye(s,i=>i instanceof Ho&&!e.has(i.target)?(HA(i)||w.remove(n.get(i.target)),i.value):i,Y.None)}function HA(t){let e=!1;return A(t,n=>((n instanceof es||n instanceof Uo)&&(e=!0),n),Y.None),e}function jA(t){let e=new Set;for(let n of t.units)for(let r of n.ops())Ne(r,s=>{if(s instanceof G)switch(s.operator){case C.Exponentiation:UA(s,e);break;case C.NullishCoalesce:qA(s,e);break;case C.And:case C.Or:WA(s,e)}});for(let n of t.units)for(let r of n.ops())ye(r,s=>s instanceof zt?e.has(s)?s:s.expr:s,Y.None)}function UA(t,e){t.lhs instanceof zt&&t.lhs.expr instanceof qr&&e.add(t.lhs)}function qA(t,e){t.lhs instanceof zt&&(Tv(t.lhs.expr)||t.lhs.expr instanceof hn)&&e.add(t.lhs),t.rhs instanceof zt&&(Tv(t.rhs.expr)||t.rhs.expr instanceof hn)&&e.add(t.rhs)}function WA(t,e){t.lhs instanceof zt&&t.lhs.expr instanceof G&&t.lhs.expr.operator===C.NullishCoalesce&&e.add(t.lhs)}function Tv(t){return t instanceof G&&(t.operator===C.And||t.operator===C.Or)}function zA(t){for(let e of t.units)for(let n of e.update)if(n.kind===d.Binding)switch(n.bindingKind){case N.ClassName:if(n.expression instanceof ve)throw new Error("Unexpected interpolation in ClassName binding");w.replace(n,vT(n.target,n.name,n.expression,n.sourceSpan));break;case N.StyleProperty:w.replace(n,gT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case N.Property:case N.Template:n.name==="style"?w.replace(n,ET(n.target,n.expression,n.sourceSpan)):n.name==="class"&&w.replace(n,yT(n.target,n.expression,n.sourceSpan));break}}function GA(t){for(let e of t.units)e.create.prepend(pl(e.create)),e.update.prepend(pl(e.update))}function pl(t){let e=0,n=[];for(let r of t){let s=new Map;Ne(r,(l,u)=>{u&Y.InChildOperation||l instanceof fr&&s.set(l.xref,l)});let i=0,o=new Set,a=new Set,c=new Map;Ne(r,(l,u)=>{u&Y.InChildOperation||(l instanceof Sn?(o.has(l.xref)||(o.add(l.xref),c.set(l.xref,`tmp_${e}_${i++}`)),bv(c,l)):l instanceof fr&&(s.get(l.xref)===l&&(a.add(l.xref),i--),bv(c,l)))}),n.push(...Array.from(new Set(c.values())).map(l=>Lt(new De(l)))),e++,r.kind===d.Listener||r.kind===d.Animation||r.kind===d.AnimationListener||r.kind===d.TwoWayListener?r.handlerOps.prepend(pl(r.handlerOps)):r.kind===d.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(pl(r.trackByOps))}return n}function bv(t,e){let n=t.get(e.xref);if(n===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=n}function QA(t){for(let e of t.units)for(let n of e.create)if(n.kind===d.RepeaterCreate)if(n.track instanceof Wt&&n.track.name==="$index")n.trackByFn=k(h.repeaterTrackByIndex);else if(n.track instanceof Wt&&n.track.name==="$item")n.trackByFn=k(h.repeaterTrackByIdentity);else if(YA(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=k(h.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=A(n.track,s=>{if(s instanceof es||s instanceof Uo)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof ur?(n.usesComponentInstance=!0,new ef(s.view)):s},Y.None);let r=new w;r.push(Lt(new Oe(n.track,n.track.sourceSpan))),n.trackByOps=r}}function YA(t,e){if(!(e instanceof lt)||e.args.length===0||e.args.length>2||!(e.receiver instanceof wt&&e.receiver.receiver instanceof ur)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof Wt)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof Wt)||r.name!=="$item")}function ZA(t){for(let e of t.units)for(let n of e.create)n.kind===d.RepeaterCreate&&(n.track=A(n.track,r=>{if(r instanceof Me){if(n.varNames.$index.has(r.name))return z("$index");if(r.name===n.varNames.$implicit)return z("$item")}return r},Y.None))}function XA(t){for(let e of t.units)for(let n of e.create)n.kind===d.TwoWayListener&&ye(n,r=>{if(!(r instanceof Yc))return r;let{target:s,value:i}=r;if(s instanceof wt||s instanceof Rn)return Ev(s,i).or(s.set(i));if(s instanceof Mn)return Ev(s,i);throw new Error("Unsupported expression in two-way action binding.")},Y.InChildOperation)}function JA(t){for(let e of t.units){let n=0;for(let r of e.ops())id(r)&&(n+=KA(r));for(let r of e.ops())Ne(r,s=>{wn(s)&&(t.compatibility===xt.TemplateDefinitionBuilder&&s instanceof Kr||(Pg(s)&&(s.varOffset=n),id(s)&&(n+=Dv(s))))});if(t.compatibility===xt.TemplateDefinitionBuilder)for(let r of e.ops())Ne(r,s=>{!wn(s)||!(s instanceof Kr)||(Pg(s)&&(s.varOffset=n),id(s)&&(n+=Dv(s)))});e.vars=n}if(t instanceof zo)for(let e of t.units)for(let n of e.create){if(n.kind!==d.Template&&n.kind!==d.RepeaterCreate&&n.kind!==d.ConditionalCreate&&n.kind!==d.ConditionalBranchCreate)continue;let r=t.views.get(n.xref);n.vars=r.vars}}function KA(t){let e;switch(t.kind){case d.Attribute:return e=1,t.expression instanceof ve&&!eN(t.expression)&&(e+=t.expression.expressions.length),e;case d.Property:case d.DomProperty:return e=1,t.expression instanceof ve&&(e+=t.expression.expressions.length),e;case d.Control:return 2;case d.TwoWayProperty:return 1;case d.StyleProp:case d.ClassProp:case d.StyleMap:case d.ClassMap:return e=2,t.expression instanceof ve&&(e+=t.expression.expressions.length),e;case d.InterpolateText:return t.interpolation.expressions.length;case d.I18nExpression:case d.Conditional:case d.DeferWhen:case d.StoreLet:return 1;case d.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${d[t.kind]}`)}}function Dv(t){switch(t.kind){case M.PureFunctionExpr:return 1+t.args.length;case M.PipeBinding:return 1+t.args.length;case M.PipeBindingVariadic:return 1+t.numArgs;case M.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function eN(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function tN(t){for(let e of t.units){ec(e.create),ec(e.update);for(let n of e.create)n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener?ec(n.handlerOps):n.kind===d.RepeaterCreate&&n.trackByOps!==null&&ec(n.trackByOps);tc(e.create,t.compatibility),tc(e.update,t.compatibility);for(let n of e.create)n.kind===d.Listener||n.kind===d.Animation||n.kind===d.AnimationListener||n.kind===d.TwoWayListener?tc(n.handlerOps,t.compatibility):n.kind===d.RepeaterCreate&&n.trackByOps!==null&&tc(n.trackByOps,t.compatibility)}}var be=(function(t){return t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful",t})(be||{});function ec(t){let e=new Map;for(let n of t)n.kind===d.Variable&&n.flags&kt.AlwaysInline&&(Ne(n,r=>{if(wn(r)&&gp(r)!==be.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),ye(n,r=>r instanceof Mn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,Y.None);for(let n of e.values())w.remove(n)}function tc(t,e){let n=new Map,r=new Map,s=new Set,i=new Map;for(let l of t){if(l.kind===d.Variable){if(n.has(l.xref)||r.has(l.xref))throw new Error(`Should not see two declarations of the same variable: ${l.xref}`);n.set(l.xref,l),r.set(l.xref,0)}i.set(l,nN(l)),rN(l,r,s)}let o=!1;for(let l of t.reversed()){let u=i.get(l);if(l.kind===d.Variable&&r.get(l.xref)===0){if(o&&u.fences&be.ViewContextWrite||u.fences&be.SideEffectful){let f=Lt(l.initializer.toStmt());i.set(f,u),w.replace(l,f)}else sN(l,r),w.remove(l);i.delete(l),n.delete(l.xref),r.delete(l.xref);continue}u.fences&be.ViewContextRead&&(o=!0)}let a=[];for(let[l,u]of r){let p=!!(n.get(l).flags&kt.AlwaysInline);u!==1||p||s.has(l)||a.push(l)}let c;for(;c=a.pop();){let l=n.get(c),u=i.get(l);if(!!(l.flags&kt.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let p=l.next;p.kind!==d.ListEnd;p=p.next){let m=i.get(p);if(m.variablesUsed.has(c)){if(e===xt.TemplateDefinitionBuilder&&!oN(l,p))break;if(iN(c,l.initializer,p,u.fences)){m.variablesUsed.delete(c);for(let v of u.variablesUsed)m.variablesUsed.add(v);m.fences|=u.fences,n.delete(c),r.delete(c),i.delete(l),w.remove(l)}break}if(!ny(m.fences,u.fences))break}}}function gp(t){switch(t.kind){case M.NextContext:return be.ViewContextRead|be.ViewContextWrite;case M.RestoreView:return be.ViewContextRead|be.ViewContextWrite|be.SideEffectful;case M.StoreLet:return be.SideEffectful;case M.Reference:case M.ContextLetReference:return be.ViewContextRead;default:return be.None}}function nN(t){let e=be.None,n=new Set;return Ne(t,r=>{wn(r)&&(r.kind===M.ReadVariable?n.add(r.xref):e|=gp(r))}),{fences:e,variablesUsed:n}}function rN(t,e,n){Ne(t,(r,s)=>{if(!wn(r)||r.kind!==M.ReadVariable)return;let i=e.get(r.xref);i!==void 0&&(e.set(r.xref,i+1),s&Y.InChildOperation&&n.add(r.xref))})}function sN(t,e){Ne(t,n=>{if(!wn(n)||n.kind!==M.ReadVariable)return;let r=e.get(n.xref);if(r!==void 0){if(r===0)throw new Error(`Inaccurate variable count: ${n.xref} - found another read but count is already 0`);e.set(n.xref,r-1)}})}function ny(t,e){if(t&be.ViewContextWrite){if(e&be.ViewContextRead)return!1}else if(t&be.ViewContextRead&&e&be.ViewContextWrite)return!1;return!0}function iN(t,e,n,r){let s=!1,i=!0;return ye(n,(o,a)=>{if(!wn(o)||s||!i)return o;if(a&Y.InChildOperation&&r&be.ViewContextRead)return o;switch(o.kind){case M.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let c=gp(o);i=i&&ny(c,r);break}return o},Y.None),s}function oN(t,e){switch(t.variable.kind){case Ae.Identifier:return t.initializer instanceof Wt&&t.initializer.name==="ctx";case Ae.Context:return e.kind===d.Variable;default:return!0}}function aN(t){for(let e of t.units){let n=null,r=null;for(let s of e.create)switch(s.kind){case d.I18nStart:n=s;break;case d.I18nEnd:n=null;break;case d.IcuStart:n===null&&(r=t.allocateXrefId(),w.insertBefore(Dl(r,s.message,void 0,null),s));break;case d.IcuEnd:r!==null&&(w.insertAfter(_l(r,null),s),r=null);break}}}var cN=[{kind:b.Tmpl,fn:O_},{kind:b.Both,fn:Y_},{kind:b.Host,fn:Yb},{kind:b.Tmpl,fn:y_},{kind:b.Tmpl,fn:U_},{kind:b.Tmpl,fn:aN},{kind:b.Both,fn:gb},{kind:b.Both,fn:zA},{kind:b.Both,fn:tb},{kind:b.Both,fn:fb},{kind:b.Both,fn:JT},{kind:b.Tmpl,fn:mb},{kind:b.Both,fn:S_},{kind:b.Tmpl,fn:CA},{kind:b.Both,fn:sb},{kind:b.Both,fn:L_},{kind:b.Tmpl,fn:ib},{kind:b.Tmpl,fn:$_},{kind:b.Tmpl,fn:vb},{kind:b.Tmpl,fn:j_},{kind:b.Both,fn:z_},{kind:b.Tmpl,fn:qb},{kind:b.Tmpl,fn:Ub},{kind:b.Tmpl,fn:Wb},{kind:b.Tmpl,fn:FA},{kind:b.Both,fn:zT},{kind:b.Both,fn:AA},{kind:b.Tmpl,fn:ZA},{kind:b.Tmpl,fn:TA},{kind:b.Both,fn:RA},{kind:b.Tmpl,fn:Eb},{kind:b.Tmpl,fn:XA},{kind:b.Tmpl,fn:QA},{kind:b.Both,fn:DA},{kind:b.Both,fn:OA},{kind:b.Tmpl,fn:v_},{kind:b.Both,fn:Cb},{kind:b.Both,fn:jA},{kind:b.Both,fn:GA},{kind:b.Both,fn:tN},{kind:b.Both,fn:VA},{kind:b.Tmpl,fn:g_},{kind:b.Tmpl,fn:hb},{kind:b.Tmpl,fn:bA},{kind:b.Tmpl,fn:ZT},{kind:b.Tmpl,fn:QT},{kind:b.Tmpl,fn:$A},{kind:b.Tmpl,fn:NA},{kind:b.Tmpl,fn:kA},{kind:b.Tmpl,fn:Bb},{kind:b.Tmpl,fn:d_},{kind:b.Tmpl,fn:Gb},{kind:b.Both,fn:lb},{kind:b.Tmpl,fn:IA},{kind:b.Both,fn:JA},{kind:b.Tmpl,fn:jb},{kind:b.Both,fn:x_},{kind:b.Tmpl,fn:_A},{kind:b.Tmpl,fn:T_},{kind:b.Tmpl,fn:D_},{kind:b.Tmpl,fn:xb},{kind:b.Tmpl,fn:XT},{kind:b.Tmpl,fn:A_},{kind:b.Both,fn:W_},{kind:b.Both,fn:EA},{kind:b.Both,fn:rb}];function ry(t,e){for(let n of cN)(n.kind===e||n.kind===b.Both)&&n.fn(t)}function lN(t,e){let n=iy(t.root);return sy(t.root,e),n}function sy(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;sy(n,e);let r=iy(n);e.statements.push(r.toDeclStmt(r.name))}}function iy(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let i of t.create){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${d[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.update){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${d[i.kind]}`);n.push(i.statement)}let r=hl(1,e),s=hl(2,n);return sr([new Pe("rf"),new Pe("ctx")],[...r,...s],void 0,void 0,t.fnName)}function hl(t,e){return e.length===0?[]:[xl(new G(C.BitwiseAnd,z("rf"),E(t)),e)]}function uN(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let i of t.root.create){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${d[i.kind]}`);e.push(i.statement)}let n=[];for(let i of t.root.update){if(i.kind!==d.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${d[i.kind]}`);n.push(i.statement)}if(e.length===0&&n.length===0)return null;let r=hl(1,e),s=hl(2,n);return sr([new Pe("rf"),new Pe("ctx")],[...r,...s],void 0,void 0,t.root.fnName)}var oy=xt.TemplateDefinitionBuilder,Vr=new ci,Hr="ng-template",dN="animate.";function uc(t){return t instanceof Je}function fN(t){return uc(t)&&t.nodes.length===1&&t.nodes[0]instanceof $c}function pN(t,e,n,r,s,i,o,a,c,l){let u=new zo(t,n,oy,r,s,i,o,a,c,l);return Ln(u.root,e),u}function hN(t,e,n){let r=new tl(t.componentName,n,oy,rt.DomOnly);for(let s of t.properties??[]){let i=N.Property;s.name.startsWith("attr.")&&(s.name=s.name.substring(5),i=N.Attribute),s.isLegacyAnimation&&(i=N.LegacyAnimation),s.isAnimation&&(i=N.Animation);let o=e.calcPossibleSecurityContexts(t.componentSelector,s.name,i===N.Attribute).filter(a=>a!==se.NONE);mN(r,s,i,o)}for(let[s,i]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,s,!0).filter(a=>a!==se.NONE);gN(r,s,i,o)}for(let s of t.events??[])vN(r,s);return r}function mN(t,e,n,r){let s,i=e.expression.ast;i instanceof na?s=new ve(i.strings,i.expressions.map(o=>V(o,t,e.sourceSpan)),[]):s=V(i,t,e.sourceSpan),t.root.update.push(Jr(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function gN(t,e,n,r){let s=Jr(t.root.xref,N.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function vN(t,e){let n;if(e.type===Xe.Animation)n=ME(t.root.xref,new $e,e.name,null,Xo(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[r,s]=e.type!==Xe.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];n=fp(t.root.xref,new $e,e.name,null,Xo(t.root,e.handler,e.handlerSpan),r,s,!0,e.sourceSpan)}t.root.create.push(n)}function Ln(t,e){for(let n of e)if(n instanceof En)EN(t,n);else if(n instanceof Et)yN(t,n);else if(n instanceof ti)wN(t,n);else if(n instanceof Mr)ay(t,n,null);else if(n instanceof Js)cy(t,n,null);else if(n instanceof Fc)SN(t,n);else if(n instanceof Oc)xN(t,n);else if(n instanceof Zr)CN(t,n);else if(n instanceof rE)TN(t,n);else if(n instanceof ei)bN(t,n);else if(n instanceof tp)_N(t,n);else if(!(n instanceof Ji))throw new Error(`Unsupported template node: ${n.constructor.name}`)}function EN(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Je||e.i18n instanceof or))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=Qt(e.name),i=DT(s,n,$E(r),e.i18n instanceof or?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),NN(t,i,e),dy(i,e);let o=null;e.i18n instanceof Je&&(o=t.job.allocateXrefId(),t.create.push(Dl(o,e.i18n,void 0,e.startSourceSpan))),Ln(t,e.children);let a=AT(n,e.endSourceSpan??e.startSourceSpan);t.create.push(a);let c=e.inputs.find(l=>l.name==="formField"&&l.type===Q.Property);c&&t.create.push(qT(c.sourceSpan)),o!==null&&w.insertBefore(_l(o,e.endSourceSpan??e.startSourceSpan),a)}function yN(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Je||e.i18n instanceof or))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let n=t.job.allocateView(t.xref),r=e.tagName,s="";e.tagName&&([s,r]=Qt(e.tagName));let i=e.i18n instanceof or?e.i18n:void 0,o=$E(s),a=r===null?"":cb(r,o),c=AN(e)?ct.NgTemplate:ct.Structural,l=_E(n.xref,c,r,a,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(l),kN(t,l,e,c),dy(l,e),Ln(n,e.children);for(let{name:u,value:f}of e.variables)n.contextVariables.set(u,f!==""?f:"$implicit");if(c===ct.NgTemplate&&e.i18n instanceof Je){let u=t.job.allocateXrefId();w.insertAfter(Dl(u,e.i18n,void 0,e.startSourceSpan),n.create.head),w.insertBefore(_l(u,e.endSourceSpan??e.startSourceSpan),n.create.tail)}}function wN(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof or))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(i=>!(i instanceof Il)&&(!(i instanceof Mr)||i.value.trim().length>0))&&(n=t.job.allocateView(t.xref),Ln(n,e.children));let r=t.job.allocateXrefId(),s=OT(r,e.selector,e.i18n,n?.xref??null,e.sourceSpan);for(let i of e.attributes){let o=Vr.securityContext(e.name,i.name,!0);t.update.push(Jr(s.xref,N.Attribute,i.name,E(i.value),null,o,!0,!1,null,Nn(i.i18n),i.sourceSpan))}t.create.push(s)}function ay(t,e,n){t.create.push(kE(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function cy(t,e,n){let r=e.value;if(r instanceof ot&&(r=r.ast),!(r instanceof na))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof kn))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let s=e.i18n instanceof kn?e.i18n.children.filter(a=>a instanceof Mo).map(a=>a.name):[];if(s.length>0&&s.length!==r.expressions.length)throw Error(`Unexpected number of i18n placeholders (${r.expressions.length}) for BoundText with ${r.expressions.length} expressions`);let i=t.job.allocateXrefId();t.create.push(kE(i,"",n,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(pT(i,new ve(r.strings,r.expressions.map(a=>V(a,t.job,o)),s),e.sourceSpan))}function SN(t,e){let n=null,r=[];for(let s=0;sp.modifier==="none")||u.some(p=>p.modifier==="none")||l.push(Zn(a,{kind:re.Idle},"none",null)),t.create.push(l),t.update.push(u)}function IN(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function ud(t,e,n,r,s,i){if(e.idle!==void 0){let o=Zn(i,{kind:re.Idle},t,e.idle.sourceSpan);n.push(o)}if(e.immediate!==void 0){let o=Zn(i,{kind:re.Immediate},t,e.immediate.sourceSpan);n.push(o)}if(e.timer!==void 0){let o=Zn(i,{kind:re.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(o)}if(e.hover!==void 0){let o=Zn(i,{kind:re.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);n.push(o)}if(e.interaction!==void 0){let o=Zn(i,{kind:re.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);n.push(o)}if(e.viewport!==void 0){let o=Zn(i,{kind:re.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?V(e.viewport.options,s.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);n.push(o)}if(e.never!==void 0){let o=Zn(i,{kind:re.Never},t,e.never.sourceSpan);n.push(o)}if(e.when!==void 0){if(e.when.value instanceof na)throw new Error("Unexpected interpolation in defer block when trigger");let o=xT(i,V(e.when.value,s.job,e.when.sourceSpan),t,e.when.sourceSpan);r.push(o)}}function TN(t,e){if(e.i18n instanceof Je&&fN(e.i18n)){let n=t.job.allocateXrefId();t.create.push(VT(n,e.i18n,oE(e.i18n).name,null));for(let[r,s]of Object.entries(y(y({},e.vars),e.placeholders)))s instanceof Js?cy(t,s,r):ay(t,s,r);t.create.push(HT(n))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function bN(t,e){let n=t.job.allocateView(t.xref),r=`\u0275$index_${n.xref}`,s=`\u0275$count_${n.xref}`,i=new Set;n.contextVariables.set(e.item.name,e.item.value);for(let T of e.contextVariables)T.value==="$index"&&i.add(T.name),T.name==="$index"?n.contextVariables.set("$index",T.value).set(r,T.value):T.name==="$count"?n.contextVariables.set("$count",T.value).set(s,T.value):n.aliases.add({kind:Ae.Alias,name:null,identifier:T.name,expression:DN(T,r,s)});let o=Ie(e.trackBy.span,e.sourceSpan),a=V(e.trackBy,t.job,o);Ln(n,e.children);let c=null,l=null;e.empty!==null&&(c=t.job.allocateView(t.xref),Ln(c,e.empty.children),l=ml(t,c.xref,e.empty));let u={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof ar))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof ar))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let f=e.i18n,p=e.empty?.i18n,m=ml(t,n.xref,e),v=_T(n.xref,c?.xref??null,m,a,u,l,f,p,e.startSourceSpan,e.sourceSpan);t.create.push(v);let x=V(e.expression,t.job,Ie(e.expression.span,e.sourceSpan)),_=ST(v.xref,v.handle,x,e.sourceSpan);t.update.push(_)}function DN(t,e,n){switch(t.value){case"$index":return new Me(e);case"$count":return new Me(n);case"$first":return new Me(e).identical(E(0));case"$last":return new Me(e).identical(new Me(n).minus(E(1)));case"$even":return new Me(e).modulo(E(2)).identical(E(0));case"$odd":return new Me(e).modulo(E(2)).notIdentical(E(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function _N(t,e){let n=t.job.allocateXrefId();t.create.push(BT(n,e.name,e.sourceSpan)),t.update.push(IT(n,e.name,V(e.value,t.job,e.valueSpan),e.sourceSpan))}function V(t,e,n){if(t instanceof ot)return V(t.ast,e,n);if(t instanceof un)return t.receiver instanceof vn?new Me(t.name):new wt(V(t.receiver,e,n),t.name,null,Ie(t.span,n));if(t instanceof Zs){if(t.receiver instanceof vn)throw new Error("Unexpected ImplicitReceiver");return new lt(V(t.receiver,e,n),t.args.map(r=>V(r,e,n)),void 0,Ie(t.span,n))}else{if(t instanceof it)return E(t.value,void 0,Ie(t.span,n));if(t instanceof js)switch(t.operator){case"+":return new qr(ro.Plus,V(t.expr,e,n),void 0,Ie(t.span,n));case"-":return new qr(ro.Minus,V(t.expr,e,n),void 0,Ie(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Qe){let r=ob.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new G(r,V(t.left,e,n),V(t.right,e,n),void 0,Ie(t.span,n))}else{if(t instanceof fo)return new ur(e.root.xref);if(t instanceof Qr)return new Rn(V(t.receiver,e,n),V(t.key,e,n),void 0,Ie(t.span,n));if(t instanceof Ys)throw new Error("AssertionError: Chain in unknown context");if(t instanceof Yr){let r=t.keys.map((s,i)=>{let o=V(t.values[i],e,n);return s.kind==="spread"?new rr(o):new Gs(s.key,o,s.quoted)});return new Gt(r,void 0,Ie(t.span,n))}else{if(t instanceof mo)return new mn(t.expressions.map(r=>V(r,e,n)));if(t instanceof Tc)return new hn(V(t.condition,e,n),V(t.trueExp,e,n),V(t.falseExp,e,n),void 0,Ie(t.span,n));if(t instanceof yo)return V(t.expression,e,n);if(t instanceof bc)return new es(e.allocateXrefId(),new $e,t.name,[V(t.exp,e,n),...t.args.map(r=>V(r,e,n))]);if(t instanceof ho)return new ii(V(t.receiver,e,n),V(t.key,e,n),Ie(t.span,n));if(t instanceof po)return new si(V(t.receiver,e,n),t.name);if(t instanceof _c)return new ts(V(t.receiver,e,n),t.args.map(r=>V(r,e,n)));if(t instanceof Ge)return new qo(Ie(t.span,n));if(t instanceof go)return bC(V(t.expression,e,n),Ie(t.span,n));if(t instanceof vo)return ta(V(t.expression,e,n));if(t instanceof Eo)return new gc(V(t.expression,e,n),void 0,Ie(t.span,n));if(t instanceof So)return _v(t,e,n);if(t instanceof wo)return new so(V(t.tag,e,n),_v(t.template,e,n),void 0,Ie(t.span,n));if(t instanceof xo)return new zt(V(t.expression,e,n),void 0,Ie(t.span,n));if(t instanceof Nc)return new zs(t.body,t.flags,n);if(t instanceof Dc)return new Wr(V(t.expression,e,n));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n?.start.file.url}"`)}}}}function _v(t,e,n){return new oo(t.elements.map(r=>new vc(r.text,Ie(r.span,n))),t.expressions.map(r=>V(r,e,n)),Ie(t.span,n))}function Af(t,e,n,r){let s;return e instanceof na?s=new ve(e.strings,e.expressions.map(i=>V(i,t,null)),Object.keys(Nn(n)?.placeholders??{})):e instanceof ae?s=V(e,t,null):s=E(e),s}var ly=new Map([[Q.Property,N.Property],[Q.TwoWay,N.TwoWayProperty],[Q.Attribute,N.Attribute],[Q.Class,N.ClassName],[Q.Style,N.StyleProperty],[Q.LegacyAnimation,N.LegacyAnimation],[Q.Animation,N.Animation]]);function AN(t){return Qt(t.tagName??"")[1]===Hr}function Nn(t){if(t==null)return null;if(!(t instanceof Je))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function NN(t,e,n){let r=new Array,s=new Set;for(let i of n.attributes){let o=Vr.securityContext(n.name,i.name,!0);r.push(Jr(e.xref,N.Attribute,i.name,Af(t.job,i.value,i.i18n),null,o,!0,!1,null,Nn(i.i18n),i.sourceSpan)),i.i18n&&s.add(i.name)}for(let i of n.inputs)s.has(i.name)&&console.error(`On component ${t.job.componentName}, the binding ${i.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),r.push(Jr(e.xref,ly.get(i.type),i.name,Af(t.job,Jo(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,Nn(i.i18n)??null,i.sourceSpan));t.create.push(r.filter(i=>i?.kind===d.ExtractedAttribute)),t.update.push(r.filter(i=>i?.kind===d.Binding));for(let i of n.outputs){if(i.type===Xe.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");i.type===Xe.TwoWay?t.create.push(RE(e.xref,e.handle,i.name,e.tag,uy(t,i.handler,i.handlerSpan),i.sourceSpan)):i.type===Xe.Animation?t.create.push(ME(e.xref,e.handle,i.name,e.tag,Xo(t,i.handler,i.handlerSpan),i.name.endsWith("enter")?"enter":"leave",i.target,!1,i.sourceSpan)):t.create.push(fp(e.xref,e.handle,i.name,e.tag,Xo(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}r.some(i=>i?.i18nMessage)!==null&&t.create.push(LE(t.job.allocateXrefId(),new $e,e.xref))}function kN(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof Ks){let o=Vr.securityContext(Hr,i.name,!0);s.push(rc(t,e.xref,Q.Attribute,i.name,i.value,null,o,!0,r,Nn(i.i18n),i.sourceSpan))}else s.push(rc(t,e.xref,i.type,i.name,Jo(i.value),i.unit,i.securityContext,!0,r,Nn(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=Vr.securityContext(Hr,i.name,!0);s.push(rc(t,e.xref,Q.Attribute,i.name,i.value,null,o,!1,r,Nn(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(rc(t,e.xref,i.type,i.name,Jo(i.value),i.unit,i.securityContext,!1,r,Nn(i.i18n),i.sourceSpan));t.create.push(s.filter(i=>i?.kind===d.ExtractedAttribute)),t.update.push(s.filter(i=>i?.kind===d.Binding));for(let i of n.outputs){if(i.type===Xe.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===ct.NgTemplate&&(i.type===Xe.TwoWay?t.create.push(RE(e.xref,e.handle,i.name,e.tag,uy(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(fp(e.xref,e.handle,i.name,e.tag,Xo(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===ct.Structural&&i.type!==Xe.LegacyAnimation){let o=Vr.securityContext(Hr,i.name,!1);t.create.push(pt(e.xref,N.Property,null,i.name,null,null,null,o))}}s.some(i=>i?.i18nMessage)!==null&&t.create.push(LE(t.job.allocateXrefId(),new $e,e.xref))}function rc(t,e,n,r,s,i,o,a,c,l,u){let f=typeof s=="string";if(c===ct.Structural){if(!a)switch(n){case Q.Property:case Q.Class:case Q.Style:return pt(e,N.Property,null,r,null,null,l,o);case Q.TwoWay:return pt(e,N.TwoWayProperty,null,r,null,null,l,o)}if(!f&&(n===Q.Attribute||n===Q.LegacyAnimation||n===Q.Animation))return null}let p=ly.get(n);return c===ct.NgTemplate&&(n===Q.Class||n===Q.Style||n===Q.Attribute&&!f)&&(p=N.Property),Jr(e,p,r,Af(t.job,s,l),i,o,f,a,c,l,u)}function Xo(t,e,n){e=Jo(e);let r=new Array,s=e instanceof Ys?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(a=>V(a,t.job,n)),o=i.pop();return r.push(...i.map(a=>Lt(new qe(a,a.sourceSpan)))),r.push(Lt(new Oe(o,o.sourceSpan))),r}function uy(t,e,n){e=Jo(e);let r=new Array;if(e instanceof Ys)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=V(e,t.job,n),i=new Me("$event"),o=new Yc(s,i);return r.push(Lt(new qe(o))),r.push(Lt(new Oe(i))),r}function Jo(t){return t instanceof ot?t.ast:t}function dy(t,e){MN(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function MN(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function Ie(t,e){if(e===null)return null;let n=e.start.moveBy(t.start),r=e.start.moveBy(t.end),s=e.fullStart.moveBy(t.start);return new O(n,r,s)}function ml(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof Il||s instanceof tp)){if(r!==null)return null;if(s instanceof En||s instanceof Et&&s.tagName!==null)r=s;else return null}if(r!==null){for(let i of r.attributes)if(!i.name.startsWith(dN)){let o=Vr.securityContext(Hr,i.name,!0);t.update.push(Jr(e,N.Attribute,i.name,E(i.value),null,o,!0,!1,null,Nn(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==Q.LegacyAnimation&&i.type!==Q.Animation&&i.type!==Q.Attribute){let o=Vr.securityContext(Hr,i.name,!0);t.create.push(pt(e,N.Property,null,i.name,null,null,null,o))}let s=r instanceof En?r.name:r.tagName;return s===Hr?null:s}return null}var RN=!1;function PN(){return RN}function gl(t,e){return xl(z(sp).bitwiseAnd(E(t),null),e)}function LN(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function ON(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(r=>{let s=r.split(",").map(i=>E(i.trim()));n.push(...s)}),e.getConstLiteral(te(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return k(h.resolveForwardRef).callFn([t.predicate.expression])}}function fy(t,e,n){let r=[];return n!==void 0&&r.push(...n),t.isSignal&&r.push(new wt(z(Ro),t.propertyName)),r.push(ON(t,e),E(LN(t))),t.read&&r.push(t.read),r}var vp=Symbol("queryAdvancePlaceholder");function py(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(k(h.queryAdvance).callFn(n===1?[]:[E(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===vp?n++:(r(),e.unshift(i))}return r(),e}function FN(t,e,n){let r=[],s=[],i=aE(l=>s.push(l),rp),o=null,a=null;t.forEach(l=>{let u=fy(l,e);if(l.isSignal?(o??=k(h.viewQuerySignal),o=o.callFn(u)):(a??=k(h.viewQuery),a=a.callFn(u)),l.isSignal){s.push(vp);return}let f=i(),p=k(h.loadQuery).callFn([]),m=k(h.queryRefresh).callFn([f.set(p)]),v=z(Ro).prop(l.propertyName).set(l.first?f.prop("first"):f);s.push(m.and(v).toStmt())}),o!==null&&r.push(new qe(o)),a!==null&&r.push(new qe(a));let c=n?`${n}_Query`:null;return sr([new Pe(sp,Jf),new Pe(Ro,null)],[gl(1,r),gl(2,py(s))],qt,null,c)}function BN(t,e,n){let r=[],s=[],i=aE(l=>s.push(l),rp),o=null,a=null;for(let l of t){let u=fy(l,e,[z("dirIndex")]);if(l.isSignal?(o??=k(h.contentQuerySignal),o=o.callFn(u)):(a??=k(h.contentQuery),a=a.callFn(u)),l.isSignal){s.push(vp);continue}let f=i(),p=k(h.loadQuery).callFn([]),m=k(h.queryRefresh).callFn([f.set(p)]),v=z(Ro).prop(l.propertyName).set(l.first?f.prop("first"):f);s.push(m.and(v).toStmt())}o!==null&&r.push(new qe(o)),a!==null&&r.push(new qe(a));let c=n?`${n}_ContentQueries`:null;return sr([new Pe(sp,Jf),new Pe(Ro,null),new Pe("dirIndex",null)],[gl(1,r),gl(2,py(s))],qt,null,c)}var Nf=class extends uD{constructor(){super(xf)}parse(e,n,r){return super.parse(e,n,r)}},sc=".",$N="attr",dd="animate",VN="class",HN="style",jN="*",fd="animate-",kf=class{_exprParser;_schemaRegistry;errors;constructor(e,n,r){this._exprParser=e,this._schemaRegistry=n,this.errors=r}createBoundHostProperties(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parsePropertyBinding(s,i,!0,!1,n,n.start.offset,void 0,[],r,n):this._reportError(`Value of the host property binding "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}createDirectiveHostEventAsts(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parseEvent(s,i,!1,n,n,[],r,n):this._reportError(`Value of the host listener "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}parseInterpolation(e,n,r){let s=n.fullStart.offset;try{let i=this._exprParser.parseInterpolation(e,n,s,r);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}parseInterpolationExpression(e,n){let r=n.start.offset;try{let s=this._exprParser.parseInterpolationExpression(e,n,r);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInlineTemplateBinding(e,n,r,s,i,o,a,c){let l=r.start.offset+jN.length,u=this._parseTemplateBindings(e,n,r,l,s);for(let f of u){let p=Qn(r,f.sourceSpan),m=f.key.source,v=Qn(r,f.key.span);if(f instanceof Co){let x=f.value?f.value.source:"$implicit",_=f.value?Qn(r,f.value.span):void 0;a.push(new Md(m,x,p,v,_))}else if(f.value){let x=c?p:r,_=Qn(r,f.value.ast.sourceSpan);this._parsePropertyAst(m,f.value,!1,x,v,_,i,o)}else i.push([m,""]),this.parseLiteralAttr(m,null,v,s,void 0,i,o,v)}}_parseTemplateBindings(e,n,r,s,i){try{let o=this._exprParser.parseTemplateBindings(e,n,r,s,i);return o.errors.forEach(a=>this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,r,er.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,a,c){pd(e)?(e=e.substring(1),c!==void 0&&(c=Qn(c,new gt(c.start.offset+1,c.end.offset))),n&&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.',r,er.ERROR),this._parseLegacyAnimation(e,n,r,s,c,i,o,a)):a.push(new Os(e,this._exprParser.wrapLiteralPrimitive(n,"",s),on.LITERAL_ATTR,r,c,i))}parsePropertyBinding(e,n,r,s,i,o,a,c,l,u){e.length===0&&this._reportError("Property name is missing in binding",i);let f=!1;e.startsWith(fd)?(f=!0,e=e.substring(fd.length),u!==void 0&&(u=Qn(u,new gt(u.start.offset+fd.length,u.end.offset)))):pd(e)&&(f=!0,e=e.substring(1),u!==void 0&&(u=Qn(u,new gt(u.start.offset+1,u.end.offset)))),f?this._parseLegacyAnimation(e,n,i,o,u,a,c,l):e.startsWith(`${dd}${sc}`)?this._parseAnimation(e,this.parseBinding(n,r,a||i,o),i,u,a,c,l):this._parsePropertyAst(e,this.parseBinding(n,r,a||i,o),s,i,u,a,c,l)}parsePropertyInterpolation(e,n,r,s,i,o,a,c){let l=this.parseInterpolation(n,s||r,c);return l?(this._parsePropertyAst(e,l,!1,r,a,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,a,c){a.push([e,n.source]),c.push(new Os(e,n,r?on.TWO_WAY:on.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,a){o.push([e,n.source]),a.push(new Os(e,n,on.ANIMATION,r,s,i))}_parseLegacyAnimation(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Animation trigger is missing",r);let l=this.parseBinding(n||"undefined",!1,o||r,s);a.push([e,l.source]),c.push(new Os(e,l,on.LEGACY_ANIMATION,r,i,o))}parseBinding(e,n,r,s){try{let i=n?this._exprParser.parseSimpleBinding(e,r,s):this._exprParser.parseBinding(e,r,s);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,s)}}createBoundElementProperty(e,n,r=!1,s=!0){if(n.isLegacyAnimation)return new Mc(n.name,Q.LegacyAnimation,se.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,a=null,c=n.name.split(sc),l;if(c.length>1)if(c[0]==$N){a=c.slice(1).join(sc),r||this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),l=hd(this._schemaRegistry,e,a,!0);let u=a.indexOf(":");if(u>-1){let f=a.substring(0,u),p=a.substring(u+1);a=ac(f,p)}o=Q.Attribute}else c[0]==VN?(a=c[1],o=Q.Class,l=[se.NONE]):c[0]==HN?(i=c.length>2?c[2]:null,a=c[1],o=Q.Style,l=[se.STYLE]):c[0]==dd&&(a=n.name,o=Q.Animation,l=[se.NONE]);if(a===null){let u=this._schemaRegistry.getMappedPropName(n.name);a=s?u:n.name,l=hd(this._schemaRegistry,e,u,!1),o=n.type===on.TWO_WAY?Q.TwoWay:Q.Property,r||this._validatePropertyOrAttributeName(u,n.sourceSpan,!1)}return new Mc(a,o,l[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Event name is missing in binding",s),pd(e)?(e=e.slice(1),c!==void 0&&(c=Qn(c,new gt(c.start.offset+1,c.end.offset))),this._parseLegacyAnimationEvent(e,n,s,i,a,c)):this._parseRegularEvent(e,n,r,s,i,o,a,c)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return hd(this._schemaRegistry,e,s,r)}parseEventListenerName(e){let[n,r]=LC(e,[null,e]);return{eventName:r,target:n}}parseLegacyAnimationEventName(e){let n=OC(e,[e,null]);return{eventName:n[0],phase:n[1]===null?null:n[1].toLowerCase()}}_parseLegacyAnimationEvent(e,n,r,s,i,o){let{eventName:a,phase:c}=this.parseLegacyAnimationEventName(e),l=this._parseAction(n,s);i.push(new kc(a,c,Xe.LegacyAnimation,l,r,s,o)),a.length===0&&this._reportError("Animation event name is missing in binding",r),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${a}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,a,c){let{eventName:l,target:u}=this.parseEventListenerName(e),f=this.errors.length,p=this._parseAction(n,i),m=this.errors.length===f;o.push([e,p.source]),r&&m&&!this._isAllowedAssignmentEvent(p)&&this._reportError("Unsupported expression in a two-way binding",s);let v=Xe.Regular;r&&(v=Xe.TwoWay),e.startsWith(`${dd}${sc}`)&&(v=Xe.Animation),a.push(new kc(l,u,v,p,s,i,c))}_parseAction(e,n){let r=n&&n.start?n.start.offset:0;try{let s=this._exprParser.parseAction(e,n,r);return s&&this.errors.push(...s.errors),!s||s.ast instanceof Ge?(this._reportError("Empty expressions are not allowed",n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}_reportError(e,n,r=er.ERROR){this.errors.push(new R(n,e,r))}_validatePropertyOrAttributeName(e,n,r){let s=r?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);s.error&&this._reportError(s.msg,n,er.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof ot?this._isAllowedAssignmentEvent(e.ast):e instanceof yo?this._isAllowedAssignmentEvent(e.expression):e instanceof Zs&&e.args.length===1&&e.receiver instanceof un&&e.receiver.name==="$any"&&e.receiver.receiver instanceof vn?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof un||e instanceof Qr)&&!Mf(e)}};function Mf(t){return t instanceof po||t instanceof ho?!0:t instanceof xo?Mf(t.expression):t instanceof un||t instanceof Qr||t instanceof Zs?Mf(t.receiver):!1}function pd(t){return t[0]=="@"}function hd(t,e,n,r){let s,i=o=>t.securityContext(o,n,r);return e===null?s=t.allKnownElementNames().map(i):(s=[],qs.parse(e).forEach(o=>{let a=o.element?[o.element]:t.allKnownElementNames(),c=new Set(o.notSelectors.filter(u=>u.isElementSelector()).map(u=>u.element)),l=a.filter(u=>!c.has(u));s.push(...l.map(i))})),s.length===0?[se.NONE]:Array.from(new Set(s)).sort()}function Qn(t,e){let n=e.start-t.start.offset,r=e.end-t.end.offset;return new O(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function UN(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(qN);return e===null||e[1]=="package"||e[1]=="asset"}var qN=/^([^:/?#]+):/,WN="select",zN="link",GN="rel",QN="href",YN="stylesheet",ZN="style",XN="script",JN="ngNonBindable",KN="ngProjectAs";function hy(t){let e=null,n=null,r=null,s=!1,i="";t.attrs.forEach(c=>{let l=c.name.toLowerCase();l==WN?e=c.value:l==QN?n=c.value:l==GN?r=c.value:c.name==JN?s=!0:c.name==KN&&c.value.length>0&&(i=c.value)}),e=ek(e);let o=t.name.toLowerCase(),a=mt.OTHER;return Rd(o)?a=mt.NG_CONTENT:o==ZN?a=mt.STYLE:o==XN?a=mt.SCRIPT:o==zN&&r==YN&&(a=mt.STYLESHEET),new Rf(a,e,n,s,i)}var mt=(function(t){return t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER",t})(mt||{}),Rf=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,n,r,s,i){this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}};function ek(t){return t===null||t.length===0?"*":t}var tk=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,nk=/^track\s+([\S\s]*)/,rk=/^(as\s+)(.*)/,Al=/^else[^\S\r\n]+if/,sk=/^let\s+([\S\s]*)/,ik=/^[$A-Z_][0-9A-Z_$]*$/i,Av=/(\s*)(\S+)(\s*)/,no=new Set(["$index","$first","$last","$even","$odd","$count"]);function Nv(t){return t==="empty"}function kv(t){return t==="else"||Al.test(t)}function ok(t,e,n,r){let s=fk(e),i=[],o=Mv(t,s,r);o!==null&&i.push(new Lr(o.expression,fe(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let f of e)if(Al.test(f.name)){let p=Mv(f,s,r);if(p!==null){let m=fe(n,f.children,f.children);i.push(new Lr(p.expression,m,p.expressionAlias,f.sourceSpan,f.startSourceSpan,f.endSourceSpan,f.nameSpan,f.i18n))}}else if(f.name==="else"){let p=fe(n,f.children,f.children);i.push(new Lr(null,p,null,f.sourceSpan,f.startSourceSpan,f.endSourceSpan,f.nameSpan,f.i18n))}let a=i.length>0?i[0].startSourceSpan:t.startSourceSpan,c=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,l=t.sourceSpan,u=i[i.length-1];return u!==void 0&&(l=new O(a.start,u.sourceSpan.end)),{node:new Fc(i,l,t.startSourceSpan,c,t.nameSpan),errors:s}}function ak(t,e,n,r){let s=[],i=lk(t,s,r),o=null,a=null;for(let c of e)c.name==="empty"?a!==null?s.push(new R(c.sourceSpan,"@for loop can only have one @empty block")):c.parameters.length>0?s.push(new R(c.sourceSpan,"@empty block cannot have parameters")):a=new Ao(fe(n,c.children,c.children),c.sourceSpan,c.startSourceSpan,c.endSourceSpan,c.nameSpan,c.i18n):s.push(new R(c.sourceSpan,`Unrecognized @for loop block "${c.name}"`));if(i!==null)if(i.trackBy===null)s.push(new R(t.startSourceSpan,'@for loop must have a "track" expression'));else{let c=a?.endSourceSpan??t.endSourceSpan,l=new O(t.sourceSpan.start,c?.end??t.sourceSpan.end);uk(i.trackBy.expression,i.trackBy.keywordSpan,s),o=new ei(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,fe(n,t.children,t.children),a,l,t.sourceSpan,t.startSourceSpan,c,t.nameSpan,t.i18n)}return{node:o,errors:s}}function ck(t,e,n){let r=pk(t),s=t.parameters.length>0?Ko(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],a=[],c=null;for(let u of t.children){if(!(u instanceof Nt))continue;if((u.name!=="case"||u.parameters.length===0)&&u.name!=="default"){o.push(new Bc(u.name,u.sourceSpan,u.nameSpan));continue}let f=u.name==="case",p=null;f&&(p=Ko(u.parameters[0],n));let m=new Hd(p,u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan);if(a.push(m),u.children.length===0&&u.endSourceSpan!==null&&u.endSourceSpan.start.offset===u.endSourceSpan.end.offset){c===null&&(c=u.sourceSpan);continue}let x=u.sourceSpan,_=u.startSourceSpan;c!==null&&(x=new O(c.start,u.sourceSpan.end),_=new O(c.start,u.startSourceSpan.end),c=null);let T=new _o(a,fe(e,u.children,u.children),x,_,u.endSourceSpan,u.nameSpan,u.i18n);i.push(T),a=[]}return{node:new Oc(s,i,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function lk(t,e,n){if(t.parameters.length===0)return e.push(new R(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=hk(r,e)?.match(tk);if(!i||i[2].trim().length===0)return e.push(new R(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern " of "')),null;let[,o,a]=i;no.has(o)&&e.push(new R(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(no).join(", ")}.`));let c=r.expression.split(" ")[0],l=new O(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),u={itemName:new ir(o,"$implicit",l,l),trackBy:null,expression:Ko(r,n,a),context:Array.from(no,f=>{let p=new O(t.startSourceSpan.end,t.startSourceSpan.end);return new ir(f,f,p,p)})};for(let f of s){let p=f.expression.match(sk);if(p!==null){let v=new O(f.sourceSpan.start.moveBy(p[0].length-p[1].length),f.sourceSpan.end);dk(f.sourceSpan,p[1],v,o,u.context,e);continue}let m=f.expression.match(nk);if(m!==null){if(u.trackBy!==null)e.push(new R(f.sourceSpan,'@for loop can only have one "track" expression'));else{let v=Ko(f,n,m[1]);v.ast instanceof Ge&&e.push(new R(t.startSourceSpan,'@for loop must have a "track" expression'));let x=new O(f.sourceSpan.start,f.sourceSpan.start.moveBy(5));u.trackBy={expression:v,keywordSpan:x}}continue}e.push(new R(f.sourceSpan,`Unrecognized @for loop parameter "${f.expression}"`))}return u}function uk(t,e,n){let r=new Pf;t.ast.visit(r),r.hasPipe&&n.push(new R(e,"Cannot use pipes in track expressions"))}function dk(t,e,n,r,s,i){let o=e.split(","),a=n.start;for(let c of o){let l=c.split("="),u=l.length===2?l[0].trim():"",f=l.length===2?l[1].trim():"";if(u.length===0||f.length===0)i.push(new R(t,'Invalid @for loop "let" parameter. Parameter should match the pattern " = "'));else if(!no.has(f))i.push(new R(t,`Unknown "let" parameter variable "${f}". The allowed variables are: ${Array.from(no).join(", ")}`));else if(u===r)i.push(new R(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(p=>p.name===u))i.push(new R(t,`Duplicate "let" parameter variable "${f}"`));else{let[,p,m]=l[0].match(Av)??[],v=p!==void 0&&l.length===2?new O(a.moveBy(p.length),a.moveBy(p.length+m.length)):n,x;if(l.length===2){let[,T,P]=l[1].match(Av)??[];x=T!==void 0?new O(a.moveBy(l[0].length+1+T.length),a.moveBy(l[0].length+1+T.length+P.length)):void 0}let _=new O(v.start,x?.end??v.end);s.push(new ir(u,f,_,v,x))}a=a.moveBy(c.length+1)}}function fk(t){let e=[],n=!1;for(let r=0;r1&&r0&&e.push(new R(s.startSourceSpan,"@else block cannot have parameters")),n=!0):Al.test(s.name)||e.push(new R(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function pk(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new R(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof Go||r instanceof ns&&r.value.trim().length===0)){if(!(r instanceof Nt)||r.name!=="case"&&r.name!=="default"){e.push(new R(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default"?(n?e.push(new R(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new R(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new R(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function Ko(t,e,n){let r,s;return typeof n=="string"?(r=Math.max(0,t.expression.lastIndexOf(n)),s=r+n.length):(r=0,s=t.expression.length),e.parseBinding(t.expression.slice(r,s),!1,t.sourceSpan,t.sourceSpan.start.offset+r)}function Mv(t,e,n){if(t.parameters.length===0)return e.push(new R(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=Ko(t.parameters[0],n),s=null;for(let i=1;i-1;a--){let c=n[a];if(c===")"){if(o=a,s--,s===0)break}else{if(r.test(c))continue;break}}return s!==0?(e.push(new R(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var Pf=class extends Xs{hasPipe=!1;visitPipe(){this.hasPipe=!0}},mk=/^\d+\.?\d*(ms|s)?$/,gk=/^\s$/,Rv=new Map([[Ut,Ye],[dn,An],[vt,Re]]),Ze=(function(t){return t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never",t})(Ze||{});function vk({expression:t,sourceSpan:e},n,r){let s=t.indexOf("never"),i=new O(e.start.moveBy(s),e.start.moveBy(s+5)),o=Ep(t,e),a=yp(t,e);s===-1?r.push(new R(e,'Could not find "never" keyword in expression')):wp("never",n,r,new Fd(i,e,o,null,a))}function md({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new O(e.start.moveBy(i),e.start.moveBy(i+4)),a=Ep(t,e),c=yp(t,e);if(i===-1)s.push(new R(e,'Could not find "when" keyword in expression'));else{let l=ea(t,i+1),u=n.parseBinding(t.slice(l),!1,e,e.start.offset+l);wp("when",r,s,new Rc(u,e,a,o,c))}}function gd({expression:t,sourceSpan:e},n,r,s,i){let o=t.indexOf("on"),a=new O(e.start.moveBy(o),e.start.moveBy(o+2)),c=Ep(t,e),l=yp(t,e);if(o===-1)s.push(new R(e,'Could not find "on" keyword in expression'));else{let u=ea(t,o+1),f=t.startsWith("hydrate");new Lf(t,n,u,e,r,s,f?Tk:Ik,f,c,a,l).parse()}}function Ep(t,e){return t.startsWith("prefetch")?new O(e.start,e.start.moveBy(8)):null}function yp(t,e){return t.startsWith("hydrate")?new O(e.start,e.start.moveBy(7)):null}var Lf=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,n,r,s,i,o,a,c,l,u,f){this.expression=e,this.bindingParser=n,this.start=r,this.span=s,this.triggers=i,this.errors=o,this.validator=a,this.isHydrationTrigger=c,this.prefetchSpan=l,this.onSourceSpan=u,this.hydrateSpan=f,this.tokens=new Zo().tokenize(e.slice(r))}parse(){for(;this.tokens.length>0&&this.index0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(at)&&r.length>0){e.push({expression:this.tokenRangeText(r),start:r[0].index}),this.advance(),r=[];continue}r.push(s),this.advance()}return(!this.token().isCharacter(Re)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index0)throw new Error(`"${Ze.IDLE}" trigger cannot have parameters`);return new Bd(e,n,r,s,i)}function yk(t,e,n,r,s,i){if(t.length!==1)throw new Error(`"${Ze.TIMER}" trigger must have exactly one parameter`);let o=vl(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${Ze.TIMER}"`);return new Vd(o,e,n,r,s,i)}function wk(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${Ze.IMMEDIATE}" trigger cannot have parameters`);return new $d(e,n,r,s,i)}function Sk(t,e,n,r,s,i,o){return o(Ze.HOVER,t),new Pc(t[0]?.expression??null,e,n,r,s,i)}function xk(t,e,n,r,s,i,o){return o(Ze.INTERACTION,t),new Lc(t[0]?.expression??null,e,n,r,s,i)}function Ck(t,e,n,r,s,i,o,a,c,l){l(Ze.VIEWPORT,r);let u,f;if(r.length===0)u=f=null;else if(!r[0].expression.startsWith("{"))u=r[0].expression,f=null;else{let p=n.parseBinding(r[0].expression,!1,i,i.start.offset+t+r[0].start);if(p.ast instanceof Yr){if(p.ast.keys.some(v=>v.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(p.ast.keys.some(v=>v.kind==="property"&&v.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let m=p.ast.keys.findIndex(v=>v.kind==="property"&&v.key==="trigger");if(m===-1)u=null,f=p.ast;else{let v=p.ast.values[m],x=(_,T)=>T!==m;if(!(v instanceof un)||!(v.receiver instanceof vn))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');u=v.name,f=new Yr(p.ast.span,p.ast.sourceSpan,p.ast.keys.filter(x),p.ast.values.filter(x))}}if(e&&u!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(f){let p=Of.findDynamicNode(f);if(p!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${p.constructor.name}" was found`)}return new Io(u,f,s,i,o,a,c)}function Ik(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Tk(t,e){if(t===Ze.VIEWPORT){if(e.length>1)throw new Error(`Hydration trigger "${t}" cannot have more than one parameter`);return}if(e.length>0)throw new Error(`Hydration trigger "${t}" cannot have parameters`)}function ea(t,e=0){let n=!1;for(let r=e;r0){let x=e[e.length-1];f=x.endSourceSpan,p=x.sourceSpan.end}let m=new O(t.sourceSpan.start,p);return{node:new Zr(fe(n,t.children,t.children),c,l,u,i,o,a,t.nameSpan,m,t.sourceSpan,t.startSourceSpan,f,t.i18n),errors:s}}function Lk(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!Ff(o.name)){e.push(new R(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=Ok(o,n);break;case"loading":s!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @loading block")):s=Fk(o,n);break;case"error":i!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @error block")):i=Bk(o,n);break}}catch(a){e.push(new R(o.startSourceSpan,a.message))}return{placeholder:r,loading:s,error:i}}function Ok(t,e){let n=null;for(let r of t.parameters)if(my.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=vl(r.expression.slice(ea(r.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @placeholder block: "${r.expression}"`);return new To(fe(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Fk(t,e){let n=null,r=null;for(let s of t.parameters)if(kk.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=vl(s.expression.slice(ea(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(my.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=vl(s.expression.slice(ea(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @loading block: "${s.expression}"`);return new bo(fe(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Bk(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Do(fe(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function $k(t,e,n,r){let s={},i={},o={};for(let a of t.parameters)Mk.test(a.expression)?md(a,e,s,n):Rk.test(a.expression)?gd(a,e,s,n):bk.test(a.expression)?md(a,e,i,n):Dk.test(a.expression)?gd(a,e,i,n):_k.test(a.expression)?md(a,e,o,n):Ak.test(a.expression)?gd(a,e,o,n):Nk.test(a.expression)?vk(a,o,n):n.push(new R(a.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new R(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:o}}var Vk=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Pv=1,Lv=2,Ov=3,Fv=4,Bv=5,Hk=6,Wi=7,Yn={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},vd="*",jk=new Set(["link","style","script","ng-template","ng-container","ng-content"]),Uk=new Set(["ngProjectAs","ngNonBindable"]);function qk(t,e,n){let r=new Bf(e,n),s=fe(r,t,t),i=e.errors.concat(r.errors),o={nodes:s,errors:i,styleUrls:r.styleUrls,styles:r.styles,ngContentSelectors:r.ngContentSelectors};return n.collectCommentNodes&&(o.commentNodes=r.commentNodes),o}var Bf=class{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(e,n){this.bindingParser=e,this.options=n}visitElement(e){let n=uc(e.i18n);n&&(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);let r=hy(e);if(r.type===mt.SCRIPT)return null;if(r.type===mt.STYLE){let T=Wk(e);return T!==null&&this.styles.push(T),null}else if(r.type===mt.STYLESHEET&&UN(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=rI(e.name),{attributes:i,boundEvents:o,references:a,variables:c,templateVariables:l,elementHasInlineTemplate:u,parsedProperties:f,templateParsedProperties:p,i18nAttrsMeta:m}=this.prepareAttributes(e.attrs,s),v=this.extractDirectives(e),x;r.nonBindable?x=fe($v,e.children).flat(1/0):x=fe(this,e.children,e.children);let _;if(r.type===mt.NG_CONTENT){let T=r.selectAttr,P=e.attrs.map(K=>this.visitAttribute(K));_=new ti(T,P,x,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(T)}else if(s){let T=this.categorizePropertyAttributes(e.name,f,m);_=new Et(e.name,i,T.bound,o,v,[],x,a,c,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let T=this.categorizePropertyAttributes(e.name,f,m);if(e.name==="ng-container")for(let P of T.bound)P.type===Q.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",P.sourceSpan);_=new En(e.name,i,T.bound,o,v,x,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return u&&(_=this.wrapInTemplate(_,p,l,m,s,n)),n&&(this.inI18nBlock=!1),_}visitAttribute(e){return new Ks(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!uc(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let n=e.i18n,r={},s={};return Object.keys(n.placeholders).forEach(i=>{let o=n.placeholders[i];if(i.startsWith(aI)){let a=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[a]=new Js(c,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new rE(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Il(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,n){let r=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return r.errors.length===0&&r.ast instanceof Ge&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new tp(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let n=uc(e.i18n);if(n&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0),e.tagName!==null&&jk.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:r,boundEvents:s,references:i,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:c,templateParsedProperties:l,i18nAttrsMeta:u}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(i);let f=this.extractDirectives(e),p;e.attrs.find(x=>x.name==="ngNonBindable")?p=fe($v,e.children).flat(1/0):p=fe(this,e.children,e.children);let m=this.categorizePropertyAttributes(e.tagName,c,u),v=new Ji(e.componentName,e.tagName,e.fullName,r,m.bound,s,f,p,i,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(v=this.wrapInTemplate(v,l,o,u,!1,n)),n&&(this.inI18nBlock=!1),v}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,n){let r=Array.isArray(n)?n.indexOf(e):-1;if(r===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let s=null;switch(e.name){case"defer":s=Pk(e,this.findConnectedBlocks(r,n,Ff),this,this.bindingParser);break;case"switch":s=ck(e,this,this.bindingParser);break;case"for":s=ak(e,this.findConnectedBlocks(r,n,Nv),this,this.bindingParser);break;case"if":s=ok(e,this.findConnectedBlocks(r,n,kv),this,this.bindingParser);break;default:let i;Ff(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Nv(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):kv(e.name)?(i=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):i=`Unrecognized block @${e.name}.`,s={node:new Bc(e.name,e.sourceSpan,e.nameSpan),errors:[new R(e.sourceSpan,i)]};break}return this.errors.push(...s.errors),s.node}findConnectedBlocks(e,n,r){let s=[];for(let i=e+1;i{let a=r[o.name];if(o.isLiteral)i.push(new Ks(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let c=this.bindingParser.createBoundElementProperty(e,o,!0,!1);s.push(Ld.fromBoundElementProperty(c,a))}}),{bound:s,literal:i}}prepareAttributes(e,n){let r=[],s=[],i=[],o=[],a=[],c={},l=[],u=[],f=!1;for(let p of e){let m=!1,v=Vv(p.name),x=!1;if(p.i18n&&(c[p.name]=p.i18n),v.startsWith(vd)){f&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",p.sourceSpan),x=!0,f=!0;let _=p.value,T=v.substring(vd.length),P=[],K=p.valueSpan?p.valueSpan.fullStart.offset:p.sourceSpan.fullStart.offset+p.name.length;this.bindingParser.parseInlineTemplateBinding(T,_,p.sourceSpan,K,[],l,P,!0),u.push(...P.map($=>new ir($.name,$.value,$.sourceSpan,$.keySpan,$.valueSpan)))}else m=this.parseAttribute(n,p,[],r,s,i,o);!m&&!x&&a.push(this.visitAttribute(p))}return{attributes:a,boundEvents:s,references:o,variables:i,templateVariables:u,elementHasInlineTemplate:f,parsedProperties:r,templateParsedProperties:l,i18nAttrsMeta:c}}parseAttribute(e,n,r,s,i,o,a){let c=Vv(n.name),l=n.value,u=n.sourceSpan,f=n.valueSpan?n.valueSpan.fullStart.offset:u.fullStart.offset;function p(T,P,K){let $=n.name.length-c.length,Ht=T.start.moveBy(P.length+$),Bi=Ht.moveBy(K.length);return new O(Ht,Bi,Ht,K)}let m=c.match(Vk);if(m){if(m[Pv]!=null){let T=m[Wi],P=p(u,m[Pv],T);this.bindingParser.parsePropertyBinding(T,l,!1,!1,u,f,n.valueSpan,r,s,P)}else if(m[Lv])if(e){let T=m[Wi],P=p(u,m[Lv],T);this.parseVariable(T,l,u,P,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(m[Ov]){let T=m[Wi],P=p(u,m[Ov],T);this.parseReference(T,l,u,P,n.valueSpan,a)}else if(m[Fv]){let T=[],P=m[Wi],K=p(u,m[Fv],P);this.bindingParser.parseEvent(P,l,!1,u,n.valueSpan||u,r,T,K),Ed(T,i)}else if(m[Bv]){let T=m[Wi],P=p(u,m[Bv],T);this.bindingParser.parsePropertyBinding(T,l,!1,!0,u,f,n.valueSpan,r,s,P),this.parseAssignmentEvent(T,l,u,n.valueSpan,r,i,P,f)}else if(m[Hk]){let T=p(u,"",c);this.bindingParser.parseLiteralAttr(c,l,u,f,n.valueSpan,r,s,T)}return!0}let v=null;if(c.startsWith(Yn.BANANA_BOX.start)?v=Yn.BANANA_BOX:c.startsWith(Yn.PROPERTY.start)?v=Yn.PROPERTY:c.startsWith(Yn.EVENT.start)&&(v=Yn.EVENT),v!==null&&c.endsWith(v.end)&&c.length>v.start.length+v.end.length){let T=c.substring(v.start.length,c.length-v.end.length),P=p(u,v.start,T);if(v.start===Yn.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(T,l,!1,!0,u,f,n.valueSpan,r,s,P),this.parseAssignmentEvent(T,l,u,n.valueSpan,r,i,P,f);else if(v.start===Yn.PROPERTY.start)this.bindingParser.parsePropertyBinding(T,l,!1,!1,u,f,n.valueSpan,r,s,P);else{let K=[];this.bindingParser.parseEvent(T,l,!1,u,n.valueSpan||u,r,K,P),Ed(K,i)}return!0}let x=p(u,"",c);return this.bindingParser.parsePropertyInterpolation(c,l,u,n.valueSpan,r,s,x,n.valueTokens??null)}extractDirectives(e){let n=e instanceof st?e.tagName:e.name,r=[],s=new Set;for(let i of e.directives){let o=!1;for(let m of i.attrs)m.name.startsWith(vd)?(o=!0,this.reportError(`Shorthand template syntax "${m.name}" is not supported inside a directive context`,m.sourceSpan)):Uk.has(m.name)&&(o=!0,this.reportError(`Attribute "${m.name}" is not supported in a directive context`,m.sourceSpan));if(!o&&s.has(i.name)&&(o=!0,this.reportError(`Cannot apply directive "${i.name}" multiple times on the same element`,i.sourceSpan)),o)continue;let{attributes:a,parsedProperties:c,boundEvents:l,references:u,i18nAttrsMeta:f}=this.prepareAttributes(i.attrs,!1);this.validateSelectorlessReferences(u);let{bound:p}=this.categorizePropertyAttributes(n,c,f);for(let m of p)m.type!==Q.Property&&m.type!==Q.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",m.sourceSpan));o||(s.add(i.name),r.push(new nE(i.name,a,p,l,u,i.sourceSpan,i.startSourceSpan,i.endSourceSpan,void 0)))}return r}filterAnimationAttributes(e){return e.filter(n=>!n.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(n=>n.type!==Q.Animation)}wrapInTemplate(e,n,r,s,i,o){let a=this.categorizePropertyAttributes("ng-template",n,s),c=[];a.literal.forEach(p=>c.push(p)),a.bound.forEach(p=>c.push(p));let l={attributes:[],inputs:[],outputs:[]};(e instanceof En||e instanceof Ji)&&(l.attributes.push(...this.filterAnimationAttributes(e.attributes)),l.inputs.push(...this.filterAnimationInputs(e.inputs)),l.outputs.push(...e.outputs));let u=i&&o?void 0:e.i18n,f;return e instanceof Ji?f=e.tagName:e instanceof Et?f=null:f=e.name,new Et(f,l.attributes,l.inputs,l.outputs,[],c,[e],[],r,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,u)}_visitTextWithInterpolation(e,n,r,s){let i=WE(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new Js(o,n,s):new Mr(i,n)}parseVariable(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',r):e.length===0&&this.reportError("Variable does not have a name",r),o.push(new ir(e,n,r,s,i))}parseReference(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',r):e.length===0?this.reportError("Reference does not have a name",r):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,r),o.push(new No(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,a,c){let l=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,l,a),Ed(l,o)}validateSelectorlessReferences(e){if(e.length===0)return;let n=new Set;for(let r of e)r.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",r.valueSpan||r.sourceSpan):n.has(r.name)?this.reportError("Duplicate reference names are not allowed",r.sourceSpan):n.add(r.name)}reportError(e,n,r=er.ERROR){this.errors.push(new R(n,e,r))}},$f=class{visitElement(e){let n=hy(e);if(n.type===mt.SCRIPT||n.type===mt.STYLE||n.type===mt.STYLESHEET)return null;let r=fe(this,e.children,null);return new En(e.name,fe(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new Ks(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Mr(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new Mr(e.startSourceSpan.toString(),e.startSourceSpan),...fe(this,e.children)];return e.endSourceSpan!==null&&r.push(new Mr(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new Mr(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,n){let r=fe(this,e.children,null);return new En(e.fullName,fe(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,n){return null}},$v=new $f;function Vv(t){return/^data-/i.test(t)?t.substring(5):t}function Ed(t,e){e.push(...t.map(n=>Od.fromParsedEvent(n)))}function Wk(t){return t.children.length!==1||!(t.children[0]instanceof ns)?null:t.children[0].value}var zk=[" ",` `,"\r"," "];function Gk(t,e,n={}){let{preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:s}=n,i=n.enableSelectorless??!1,o=El(i),c=new Nf().parse(t,e,ee(y({leadingTriviaChars:zk},n),{tokenizeExpansionForms:!0,tokenizeBlocks:n.enableBlockSyntax??!0,tokenizeLet:n.enableLetSyntax??!0,selectorlessEnabled:i}));if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let $={preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&($.commentNodes=[]),$}let l=c.rootNodes,u=!(n.preserveSignificantWhitespace??!0),f=new ll(!r,s,n.preserveSignificantWhitespace,u),p=f.visitAllWithErrors(l);if(!n.alwaysAttemptHtmlToR3AstConversion&&p.errors&&p.errors.length>0){let $={preserveWhitespaces:r,errors:p.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&($.commentNodes=[]),$}l=p.rootNodes,r||(l=fe(new al(!0,void 0,!1),l),f.hasI18nMeta&&(l=fe(new ll(!1,void 0,!0,u),l)));let{nodes:m,errors:v,styleUrls:x,styles:_,ngContentSelectors:T,commentNodes:P}=qk(l,o,{collectCommentNodes:!!n.collectCommentNodes});v.push(...c.errors,...p.errors);let K={preserveWhitespaces:r,errors:v.length>0?v:null,nodes:m,styleUrls:x,styles:_,ngContentSelectors:T};return n.collectCommentNodes&&(K.commentNodes=P),K}var Qk=new ci;function El(t=!1){return new kf(new cl(new Zo,t),Qk,[])}var gy="%COMP%",Yk=`_nghost-${gy}`,Zk=`_ngcontent-${gy}`;function vy(t,e,n){let r=new cr,s=Zf(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Fs(s)),t.queries.length>0&&r.set("contentQueries",BN(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",FN(t.viewQueries,e,t.name)),r.set("hostBindings",s2(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r)),r.set("inputs",yg(t.inputs,!0)),r.set("outputs",yg(t.outputs)),t.exportAs!==null&&r.set("exportAs",te(t.exportAs.map(i=>E(i)))),t.isStandalone===!1&&r.set("standalone",E(!1)),t.isSignal&&r.set("signals",E(!0)),r}function Ey(t,e){let n=[],r=e.providers,s=e.viewProviders;if(r||s){let i=[r||new mn([])];s&&i.push(s),n.push(k(h.ProvidersFeature).callFn(i))}if(e.hostDirectives?.length&&n.push(k(h.HostDirectivesFeature).callFn([l2(e.hostDirectives)])),e.usesInheritance&&n.push(k(h.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(k(h.NgOnChangesFeature)),"externalStyles"in e&&e.externalStyles?.length){let i=e.externalStyles.map(o=>E(o));n.push(k(h.ExternalStylesFeature).callFn([te(i)]))}n.length&&t.set("features",te(n))}function Xk(t,e,n){let r=vy(t,e,n);Ey(r,t);let s=k(h.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=r2(t);return{expression:s,type:i,statements:[]}}function Jk(t,e,n){let r=vy(t,e,n);Ey(r,t);let s=t.selector&&qs.parse(t.selector),i=s&&s[0];if(i){let v=i.getAttrs();v.length&&r.set("attrs",e.getConstLiteral(te(v.map(x=>x!=null?E(x):E(void 0))),!0))}let o=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let v=`${o}_DeferFn`;e.statements.push(new De(v,t.defer.dependenciesFn,void 0,Le.Final)),a=z(v)}let c=t.isStandalone&&!t.hasDirectiveDependencies?rt.DomOnly:rt.Full,l=pN(t.name,t.template.nodes,e,c,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,PN());ry(l,b.Tmpl);let u=lN(l,e);if(l.contentSelectors!==null&&r.set("ngContentSelectors",l.contentSelectors),r.set("decls",E(l.root.decls)),r.set("vars",E(l.root.vars)),l.consts.length>0&&(l.constsInitializers.length>0?r.set("consts",gn([],[...l.constsInitializers,new Oe(te(l.consts))])):r.set("consts",te(l.consts))),r.set("template",u),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",e2(te(t.declarations.map(v=>v.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let v=[t.type.value];t.rawImports&&v.push(t.rawImports),r.set("dependencies",k(h.getComponentDepsFactory).callFn(v))}t.encapsulation===null&&(t.encapsulation=br.Emulated);let f=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let x=(t.encapsulation==br.Emulated?c2(t.styles,Zk,Yk):t.styles).reduce((_,T)=>(T.trim().length>0&&_.push(e.getConstLiteral(E(T))),_),[]);x.length>0&&(f=!0,r.set("styles",te(x)))}!f&&t.encapsulation===br.Emulated&&(t.encapsulation=br.None),t.encapsulation!==br.Emulated&&r.set("encapsulation",E(t.encapsulation)),t.animations!==null&&r.set("data",Pt([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Yf.Default?r.set("changeDetection",E(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let p=k(h.defineComponent).callFn([r.toLiteralMap()],void 0,!0),m=Kk(t);return{expression:p,type:m,statements:[]}}function Kk(t){let e=yy(t);return e.push(Hf(t.template.ngContentSelectors)),e.push(Fe(E(t.isStandalone))),e.push(wy(t)),t.isSignal&&e.push(Fe(E(t.isSignal))),Fe(k(h.ComponentDeclaration,e))}function e2(t,e){switch(e){case 0:return t;case 1:return gn([],t);case 2:let n=t.prop("map").callFn([k(h.resolveForwardRef)]);return gn([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function t2(t){return Fe(E(t))}function Vf(t){let e=Object.keys(t).map(n=>{let r=Array.isArray(t[n])?t[n][0]:t[n];return{key:n,value:E(r),quoted:!0}});return Pt(e)}function Hf(t){return t.length>0?Fe(te(t.map(e=>E(e)))):pn}function yy(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[Cl(t.type.type,t.typeArgumentCount),e!==null?t2(e):pn,t.exportAs!==null?Hf(t.exportAs):pn,Fe(n2(t)),Fe(Vf(t.outputs)),Hf(t.queries.map(n=>n.propertyName))]}function n2(t){return Pt(Object.keys(t.inputs).map(e=>{let n=t.inputs[e],r=[{key:"alias",value:E(n.bindingPropertyName),quoted:!0},{key:"required",value:E(n.required),quoted:!0}];return n.isSignal&&r.push({key:"isSignal",value:E(n.isSignal),quoted:!0}),{key:e,value:Pt(r),quoted:!0}}))}function r2(t){let e=yy(t);return e.push(pn),e.push(Fe(E(t.isStandalone))),e.push(wy(t)),t.isSignal&&e.push(Fe(E(t.isSignal))),Fe(k(h.DirectiveDeclaration,e))}function s2(t,e,n,r,s,i,o){let a=n.createBoundHostProperties(t.properties,e),c=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=E(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=E(t.specialAttributes.classAttr));let l=hN({componentName:i,componentSelector:s,properties:a,events:c,attributes:t.attributes},n,r);ry(l,b.Host),o.set("hostAttrs",l.root.attributes);let u=l.root.vars;return u!==null&&u>0&&o.set("hostVars",E(u)),uN(l)}var i2=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function o2(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i],a=i.match(i2);if(a===null)switch(i){case"class":if(typeof o!="string")throw new Error("Class binding must be string");s.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");s.styleAttr=o;break;default:typeof o=="string"?e[i]=E(o):e[i]=o}else if(a[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");r[a[1]]=o}else if(a[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");n[a[2]]=o}}return{attributes:e,listeners:n,properties:r,specialAttributes:s}}function a2(t,e){let n=El();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),n.errors}function c2(t,e,n){let r=new Zd;return t.map(s=>r.shimCssText(s,e,n))}function wy(t){return t.hostDirectives?.length?Fe(te(t.hostDirectives.map(e=>Pt([{key:"directive",value:ta(e.directive.type),quoted:!1},{key:"inputs",value:Vf(e.inputs||{}),quoted:!1},{key:"outputs",value:Vf(e.outputs||{}),quoted:!1}])))):pn}function l2(t){let e=[],n=!1;for(let r of t){if(!r.inputs&&!r.outputs)e.push(r.directive.type);else{let s=[{key:"directive",value:r.directive.type,quoted:!1}];if(r.inputs){let i=Hv(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=Hv(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(Pt(s))}r.isForwardReference&&(n=!0)}return n?new nr([],[new Oe(te(e))]):te(e)}function Hv(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(E(n),E(t[n]));return e.length>0?te(e):null}var jf=class extends Xs{visit(e){e instanceof ot?this.visit(e.ast):e.visit(this)}visitElement(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitTemplate(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.templateAttrs),this.visitAllTemplateNodes(e.variables),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitContent(e){this.visitAllTemplateNodes(e.children)}visitBoundAttribute(e){this.visit(e.value)}visitBoundEvent(e){this.visit(e.handler)}visitBoundText(e){this.visit(e.value)}visitIcu(e){Object.keys(e.vars).forEach(n=>this.visit(e.vars[n])),Object.keys(e.placeholders).forEach(n=>this.visit(e.placeholders[n]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof Rc?this.visit(e.value):e instanceof Io&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.groups)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitForLoopBlock(e){e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){e.expression&&this.visit(e.expression),e.expressionAlias?.visit(this),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let n of e)this.visit(n)}};var Uf=class{directiveMatcher;constructor(e){this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let n=new Map,r=[],s=new Set,i=new Map,o=new Map,a=new Map,c=new Map,l=new Map,u=new Map,f=new Set,p=new Set,m=[];if(e.template){let v=yl.apply(e.template);u2(v,a),qf.apply(e.template,this.directiveMatcher,n,r,s,i,o),wl.applyWithScope(e.template,v,c,l,u,f,p,m)}return e.host&&(n.set(e.host.node,e.host.directives),wl.applyWithScope(e.host.node,yl.apply(e.host.node),c,l,u,f,p,m)),new Wf(e,n,r,s,i,o,c,l,u,a,f,p,m)}},yl=class t{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(e,n){this.parentScope=e,this.rootNode=n,this.isDeferred=e!==null&&e.isDeferred?!0:n instanceof Zr}static newRootScope(){return new t(null,null)}static apply(e){let n=t.newRootScope();return n.ingest(e),n}ingest(e){e instanceof Et?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Lr?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof ei?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof _o||e instanceof Ao||e instanceof Zr||e instanceof Do||e instanceof To||e instanceof bo||e instanceof ti?e.children.forEach(n=>n.visit(this)):e instanceof ko||e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){this.ingestScopedNode(e)}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitComponent(e){this.visitElementLike(e)}visitDirective(e){e.references.forEach(n=>this.visitReference(n))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(n=>n.visit(this)),e.references.forEach(n=>this.visitReference(n)),e.children.forEach(n=>n.visit(this)),this.elementLikeInScope.add(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):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let n=this.childScopes.get(e);if(n===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return n}ingestScopedNode(e){let n=new t(this,e);n.ingest(e),this.childScopes.set(e,n)}},qf=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,n,r,s,i,o){this.directiveMatcher=e,this.directives=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=o}static apply(e,n,r,s,i,o,a){new t(n,r,s,i,o,a).ingest(e)}ingest(e){e.forEach(n=>n.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){let n=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(r=>r.visit(this)),this.isInDeferBlock=n,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockError(e){e.children.forEach(n=>n.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(n=>n.visit(this))}visitSwitchBlock(e){e.groups.forEach(n=>n.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(n=>n.visit(this))}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(n=>n.visit(this))}visitIfBlock(e){e.branches.forEach(n=>n.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(n=>n.visit(this))}visitContent(e){e.children.forEach(n=>n.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof fc){let n=this.directiveMatcher.match(e.componentName);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.componentName)}e.directives.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof fc){let n=this.directiveMatcher.match(e.name);n.length>0?this.trackSelectorlessMatchesAndDirectives(e,n):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof dc){let n=[],r=uI(e);this.directiveMatcher.match(r,(s,i)=>n.push(...i)),this.trackSelectorBasedBindingsAndDirectives(e,n)}else e.references.forEach(n=>{n.value.trim()===""&&this.references.set(n,e)});e.directives.forEach(n=>n.visit(this)),e.children.forEach(n=>n.visit(this))}trackMatchedDirectives(e,n){n.length>0&&(this.directives.set(e,n),this.isInDeferBlock||this.eagerDirectives.push(...n))}trackSelectorlessMatchesAndDirectives(e,n){if(n.length===0)return;this.trackMatchedDirectives(e,n);let r=(s,i,o)=>{s[o].hasBindingPropertyName(i.name)&&this.bindings.set(i,s)};for(let s of n)e.inputs.forEach(i=>r(s,i,"inputs")),e.attributes.forEach(i=>r(s,i,"inputs")),e.outputs.forEach(i=>r(s,i,"outputs"));e.references.forEach(s=>this.references.set(s,{directive:n[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,n){this.trackMatchedDirectives(e,n),e.references.forEach(s=>{let i=null;if(s.value.trim()==="")i=n.find(o=>o.isComponent)||null;else if(i=n.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===s.value))||null,i===null)return;i!==null?this.references.set(s,{directive:i,node:e}):this.references.set(s,e)});let r=(s,i)=>{let o=n.find(c=>c[i].hasBindingPropertyName(s.name)),a=o!==void 0?o:e;this.bindings.set(s,a)};e.inputs.forEach(s=>r(s,"inputs")),e.attributes.forEach(s=>r(s,"inputs")),e instanceof Et&&e.templateAttrs.forEach(s=>r(s,"inputs")),e.outputs.forEach(s=>r(s,"outputs"))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},wl=class t extends jf{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,n,r,s,i,o,a,c,l){super(),this.bindings=e,this.symbols=n,this.usedPipes=r,this.eagerPipes=s,this.deferBlocks=i,this.nestingLevel=o,this.scope=a,this.rootNode=c,this.level=l}static applyWithScope(e,n,r,s,i,o,a,c){let l=e instanceof Et?e:null;new t(r,s,o,a,c,i,n,l,0).ingest(e)}ingest(e){if(e instanceof Et)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Lr)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof ei)this.visitNode(e.item),e.contextVariables.forEach(n=>this.visitNode(n)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Zr){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(n=>n.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof _o||e instanceof Ao||e instanceof Do||e instanceof To||e instanceof bo||e instanceof ti?(e.children.forEach(n=>n.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof ko?this.nestingLevel.set(e,0):e.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.directives.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.hydrateTriggers.when?.value.visit(this),e.hydrateTriggers.never?.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlockCase(e){e.expression?.visit(this)}visitSwitchBlockCaseGroup(e){e.cases.forEach(n=>n.visit(this)),this.ingestScopedNode(e)}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){super.visitLetDeclaration(e),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,n){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,n)}visitPropertyRead(e,n){return this.maybeMap(e,e.name),super.visitPropertyRead(e,n)}visitSafePropertyRead(e,n){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,n)}ingestScopedNode(e){let n=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,n,e,this.level+1).ingest(e)}maybeMap(e,n){if(!(e.receiver instanceof vn))return;let r=this.scope.lookup(n);r!==null&&this.bindings.set(e,r)}},Wf=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,n,r,s,i,o,a,c,l,u,f,p,m){this.target=e,this.directives=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=o,this.exprTargets=a,this.symbols=c,this.nestingLevel=l,this.scopedNodeEntities=u,this.usedPipes=f,this.eagerPipes=p,this.deferredBlocks=m.map(v=>v[0]),this.deferredScopes=new Map(m)}getEntitiesInScope(e){return this.scopedNodeEntities.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}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(n=>n.forEach(r=>e.add(r))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,n){if(!(n instanceof Lc)&&!(n instanceof Io)&&!(n instanceof Pc))return null;let r=n.reference;if(r===null){let i=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof Il)){if(i!==null)return null;o instanceof En&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof No&&this.getDefinitionNodeOfSymbol(s)!==e){let i=this.getReferenceTarget(s);if(i!==null)return this.referenceTargetToElement(i)}if(e.placeholder!==null){let i=this.findEntityInScope(e.placeholder,r),o=i instanceof No?this.getReferenceTarget(i):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let n of this.deferredBlocks){if(!this.deferredScopes.has(n))continue;let r=[this.deferredScopes.get(n)];for(;r.length>0;){let s=r.pop();if(s.elementLikeInScope.has(e))return!0;r.push(...s.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}findEntityInScope(e,n){let r=this.getEntitiesInScope(e);for(let s of r)if(s.name===n)return s;return null}referenceTargetToElement(e){return e instanceof En?e:e instanceof Et||e.node instanceof Ji||e.node instanceof nE||e.node instanceof ko?null:this.referenceTargetToElement(e.node)}};function u2(t,e){let n=new Map;function r(i){if(n.has(i.rootNode))return n.get(i.rootNode);let o=i.namedEntities,a;return i.parentScope!==null?a=new Map([...r(i.parentScope),...o]):a=new Map(o),n.set(i.rootNode,a),a}let s=[t];for(;s.length>0;){let i=s.pop();for(let o of i.childScopes.values())s.push(o);r(i)}for(let[i,o]of n)e.set(i,new Set(o.values()))}var zf=class{},Gf=class{jitEvaluator;FactoryTarget=_n;ResourceLoader=zf;elementSchemaRegistry=new ci;constructor(e=new Gd){this.jitEvaluator=e}compilePipe(e,n,r){let s={name:r.name,type:Te(r.type),typeArgumentCount:0,deps:null,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=Ng(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=D2(r),i=Ng(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){let{expression:s,statements:i}=wg({name:r.name,type:Te(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:Gv(r.providedIn),useClass:Ps(r,"useClass"),useFactory:zv(r,"useFactory"),useValue:Ps(r,"useValue"),useExisting:Ps(r,"useExisting"),deps:r.deps?.map(Iy)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){let{expression:s,statements:i}=wg({name:r.type.name,type:Te(r.type),typeArgumentCount:0,providedIn:Gv(r.providedIn),useClass:Ps(r,"useClass"),useFactory:zv(r,"useFactory"),useValue:Ps(r,"useValue"),useExisting:Ps(r,"useExisting"),deps:r.deps?.map(Qv)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={name:r.name,type:Te(r.type),providers:r.providers&&r.providers.length>0?new U(r.providers):null,imports:r.imports.map(o=>new U(o))},i=Ag(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=_2(r),i=Ag(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:tr.Global,type:Te(r.type),bootstrap:r.bootstrap.map(Te),declarations:r.declarations.map(Te),publicDeclarationTypes:null,imports:r.imports.map(Te),includeImportTypes:!0,exports:r.exports.map(Te),selectorScopeMode:qc.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Te):null,id:r.id?new U(r.id):null},i=NI(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=kI(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=qv(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=xy(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new xc,i=El(),o=Xk(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){let{template:s,defer:i}=Cy(r.template,r.name,n,r.preserveWhitespaces,void 0),o=ee(y(y({},r),qv(r)),{selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(h2),declarationListEmitMode:0,defer:i,styles:[...r.styles,...s.styles],encapsulation:r.encapsulation,changeDetection:r.changeDetection??null,animations:r.animations!=null?new U(r.animations):null,viewProviders:r.viewProviders!=null?new U(r.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),a=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=p2(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new xc,i=El(),o=Jk(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=Dr({name:r.name,type:Te(r.type),typeArgumentCount:r.typeArgumentCount,deps:v2(r.deps),target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}compileFactoryDeclaration(e,n,r){let s=Dr({name:r.type.name,type:Te(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(Qv):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return CI(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new De("$def",e,void 0,Le.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new Yd(n),!0).$def}};function jv(t){return ee(y({},t),{isSignal:t.isSignal,predicate:Sy(t.predicate),read:t.read?new U(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function Uv(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:Sy(t.predicate),descendants:t.descendants??!1,read:t.read?new U(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function Sy(t){return Array.isArray(t)?t:ep(new U(t),1)}function qv(t){let e=b2(t.inputs||[]),n=wd(t.outputs||[]),r=t.propMetadata,s={},i={};for(let a in r)r.hasOwnProperty(a)&&r[a].forEach(c=>{x2(c)?s[a]={bindingPropertyName:c.alias||a,classPropertyName:a,required:c.required||!1,isSignal:!!c.isSignal,transformFunction:c.transform!=null?new U(c.transform):null}:C2(c)&&(i[a]=c.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Te(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Te(a.directive),isForwardReference:!1,inputs:a.inputs?wd(a.inputs):null,outputs:a.outputs?wd(a.outputs):null}):null;return ee(y({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Te(t.type),deps:null,host:y({},y2(t.propMetadata,t.typeSourceSpan,t.host)),inputs:y(y({},e),s),outputs:y(y({},n),i),queries:t.queries.map(jv),providers:t.providers!=null?new U(t.providers):null,viewQueries:t.viewQueries.map(jv),hostDirectives:o})}function xy(t,e){let n=t.hostDirectives?.length?t.hostDirectives.map(r=>({directive:Te(r.directive),isForwardReference:!1,inputs:r.inputs?Wv(r.inputs):null,outputs:r.outputs?Wv(r.outputs):null})):null;return{name:t.type.name,type:Te(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?I2(t.inputs):{},outputs:t.outputs??{},host:d2(t.host),queries:(t.queries??[]).map(Uv),viewQueries:(t.viewQueries??[]).map(Uv),providers:t.providers!==void 0?new U(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:t.isStandalone??tE(t.version),isSignal:t.isSignal??!1,hostDirectives:n}}function d2(t={}){return{attributes:f2(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function Wv(t){let e=null;for(let n=1;nyd(a,!0))),t.directives&&i.push(...t.directives.map(a=>yd(a))),t.pipes&&i.push(...m2(t.pipes)));let o=i.some(({kind:a})=>a===ri.Directive||a===ri.NgModule);return ee(y({},xy(t,e)),{template:r,styles:t.styles??[],declarations:i,viewProviders:t.viewProviders!==void 0?new U(t.viewProviders):null,animations:t.animations!==void 0?new U(t.animations):null,defer:s,changeDetection:t.changeDetection??Yf.Default,encapsulation:t.encapsulation??br.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o})}function h2(t){return ee(y({},t),{type:new U(t.type)})}function yd(t,e=null){return{kind:ri.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new U(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function m2(t){return t?Object.keys(t).map(e=>({kind:ri.Pipe,name:e,type:new U(t[e])})):[]}function g2(t){return{kind:ri.Pipe,name:t.name,type:new U(t.type)}}function Cy(t,e,n,r,s){let i=Gk(t,n,{preserveWhitespaces:r});if(i.errors!==null){let c=i.errors.map(l=>l.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${c}`)}let a=new Uf(null).bind({template:i.nodes});return{template:i,defer:E2(a,s)}}function Ps(t,e){if(t.hasOwnProperty(e))return ep(new U(t[e]),0)}function zv(t,e){if(t.hasOwnProperty(e))return new U(t[e])}function Gv(t){let e=typeof t=="function"?new U(t):new Be(t??null);return ep(e,0)}function v2(t){return t==null?null:t.map(Iy)}function Iy(t){let e=t.attribute!=null,n=t.token===null?null:new U(t.token),r=e?new U(t.attribute):n;return Ty(r,e,t.host,t.optional,t.self,t.skipSelf)}function Qv(t){let e=t.attribute??!1,n=t.token===null?null:new U(t.token);return Ty(n,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function Ty(t,e,n,r,s,i){let o=e?E("unknown"):null;return{token:t,attributeNameType:o,host:n,optional:r,self:s,skipSelf:i}}function E2(t,e){let n=t.getDeferBlocks(),r=new Map;for(let s=0;si.msg).join(` `));for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{w2(o)?r.properties[o.hostPropertyName||i]=zC("this",i):S2(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return r}function w2(t){return t.ngMetadataName==="HostBinding"}function S2(t){return t.ngMetadataName==="HostListener"}function x2(t){return t.ngMetadataName==="Input"}function C2(t){return t.ngMetadataName==="Output"}function I2(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=T2(r):e[n]={bindingPropertyName:r.publicName,classPropertyName:n,transformFunction:r.transformFunction!==null?new U(r.transformFunction):null,required:r.isRequired,isSignal:r.isSignal},e},{})}function T2(t){return typeof t=="string"?{bindingPropertyName:t,classPropertyName:t,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:t[0],classPropertyName:t[1],transformFunction:t[2]?new U(t[2]):null,required:!1,isSignal:!1}}function b2(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=by(n);e[s]={bindingPropertyName:r,classPropertyName:s,required:!1,isSignal:!1,transformFunction:null}}else e[n.name]={bindingPropertyName:n.alias||n.name,classPropertyName:n.name,required:n.required||!1,isSignal:!1,transformFunction:n.transform!=null?new U(n.transform):null};return e},{})}function wd(t){return t.reduce((e,n)=>{let[r,s]=by(n);return e[s]=r,e},{})}function by(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n??e,e]}function D2(t){return{name:t.type.name,type:Te(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??tE(t.version)}}function _2(t){return{name:t.type.name,type:Te(t.type),providers:t.providers!==void 0&&t.providers.length>0?new U(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new U(e)):[]}}function A2(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new Gf}var Qf=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return an.PARSABLE_DATA}},VL=new Qf;var HL=new bd("21.1.3");A2(Xi);var We=null,Nl=!1,xp=1,N2=null,xn=Symbol("SIGNAL");function j(t){let e=We;return We=t,e}function kl(){return We}var Ml={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Dy(t){if(Nl)throw new Error("");if(We===null)return;We.consumerOnSignalRead(t);let e=We.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=We.recomputing;if(r&&(n=e!==void 0?e.nextProducer:We.producers,n!==void 0&&n.producer===t)){We.producersTail=n,n.lastReadVersion=t.version;return}let s=t.consumersTail;if(s!==void 0&&s.consumer===We&&(!r||M2(s,We)))return;let i=hi(We),o={producer:t,consumer:We,nextProducer:n,prevConsumer:s,lastReadVersion:t.version,nextConsumer:void 0};We.producersTail=o,e!==void 0?e.nextProducer=o:We.producers=o,i&&Ry(t,o)}function _y(){xp++}function Ay(t){if(!(hi(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===xp)){if(!t.producerMustRecompute(t)&&!bp(t)){Sp(t);return}t.producerRecomputeValue(t),Sp(t)}}function Cp(t){if(t.consumers===void 0)return;let e=Nl;Nl=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||k2(r)}}finally{Nl=e}}function Ip(){return We?.consumerAllowSignalWrites!==!1}function k2(t){t.dirty=!0,Cp(t),t.consumerMarkedDirty?.(t)}function Sp(t){t.dirty=!1,t.lastCleanEpoch=xp}function Tp(t){return t&&Ny(t),j(t)}function Ny(t){t.producersTail=void 0,t.recomputing=!0}function ky(t,e){j(e),t&&My(t)}function My(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(hi(t))do n=Dp(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function bp(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(Ay(n),r!==n.version))return!0}return!1}function Rl(t){if(hi(t)){let e=t.producers;for(;e!==void 0;)e=Dp(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Ry(t,e){let n=t.consumersTail,r=hi(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let s=t.producers;s!==void 0;s=s.nextProducer)Ry(s.producer,s)}function Dp(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,s=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=s:e.consumersTail=s,s!==void 0)s.nextConsumer=r;else if(e.consumers=r,!hi(e)){let i=e.producers;for(;i!==void 0;)i=Dp(i)}return n}function hi(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Py(t){N2?.(t)}function M2(t,e){let n=e.producersTail;if(n!==void 0){let r=e.producers;do{if(r===t)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Ly(t,e){return Object.is(t,e)}function R2(){throw new Error}var Oy=R2;function Fy(t){Oy(t)}function _p(t){Oy=t}var P2=null;function Ap(t,e){let n=Object.create(Vy);n.value=t,e!==void 0&&(n.equal=e);let r=()=>By(n);return r[xn]=n,Py(n),[r,o=>Np(n,o),o=>$y(n,o)]}function By(t){return Dy(t),t.value}function Np(t,e){Ip()||Fy(t),t.equal(t.value,e)||(t.value=e,L2(t))}function $y(t,e){Ip()||Fy(t),Np(t,e(t.value))}var Vy=ee(y({},Ml),{equal:Ly,value:void 0,kind:"signal"});function L2(t){t.version++,_y(),Cp(t),P2?.(t)}function dt(t){return typeof t=="function"}function Pl(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ll=Pl(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,s)=>`${s+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ia(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var et=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(dt(r))try{r()}catch(i){e=i instanceof Ll?i.errors:[i]}let{_finalizers:s}=this;if(s){this._finalizers=null;for(let i of s)try{Hy(i)}catch(o){e=e??[],o instanceof Ll?e=[...e,...o.errors]:e.push(o)}}if(e)throw new Ll(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Hy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&ia(n,e)}remove(e){let{_finalizers:n}=this;n&&ia(n,e),e instanceof t&&e._removeParent(this)}};et.EMPTY=(()=>{let t=new et;return t.closed=!0,t})();var kp=et.EMPTY;function Ol(t){return t instanceof et||t&&"closed"in t&&dt(t.remove)&&dt(t.add)&&dt(t.unsubscribe)}function Hy(t){dt(t)?t():t.unsubscribe()}var Yt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var mi={setTimeout(t,e,...n){let{delegate:r}=mi;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=mi;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function jy(t){mi.setTimeout(()=>{let{onUnhandledError:e}=Yt;if(e)e(t);else throw t})}function Mp(){}var Uy=Rp("C",void 0,void 0);function qy(t){return Rp("E",void 0,t)}function Wy(t){return Rp("N",t,void 0)}function Rp(t,e,n){return{kind:t,value:e,error:n}}var ss=null;function gi(t){if(Yt.useDeprecatedSynchronousErrorHandling){let e=!ss;if(e&&(ss={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=ss;if(ss=null,n)throw r}}else t()}function zy(t){Yt.useDeprecatedSynchronousErrorHandling&&ss&&(ss.errorThrown=!0,ss.error=t)}var is=class extends et{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ol(e)&&e.add(this)):this.destination=B2}static create(e,n,r){return new vi(e,n,r)}next(e){this.isStopped?Lp(Wy(e),this):this._next(e)}error(e){this.isStopped?Lp(qy(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Lp(Uy,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},O2=Function.prototype.bind;function Pp(t,e){return O2.call(t,e)}var Op=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Fl(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Fl(r)}else Fl(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Fl(n)}}},vi=class extends is{constructor(e,n,r){super();let s;if(dt(e)||!e)s={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Yt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),s={next:e.next&&Pp(e.next,i),error:e.error&&Pp(e.error,i),complete:e.complete&&Pp(e.complete,i)}):s=e}this.destination=new Op(s)}};function Fl(t){Yt.useDeprecatedSynchronousErrorHandling?zy(t):jy(t)}function F2(t){throw t}function Lp(t,e){let{onStoppedNotification:n}=Yt;n&&mi.setTimeout(()=>n(t,e))}var B2={closed:!0,next:Mp,error:F2,complete:Mp};var Gy=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Qy(t){return t}function Yy(t){return t.length===0?Qy:t.length===1?t[0]:function(n){return t.reduce((r,s)=>s(r),n)}}var Ei=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,s){let i=V2(n)?n:new vi(n,r,s);return gi(()=>{let{operator:o,source:a}=this;i.add(o?o.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Zy(r),new r((s,i)=>{let o=new vi({next:a=>{try{n(a)}catch(c){i(c),o.unsubscribe()}},error:i,complete:s});this.subscribe(o)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Gy](){return this}pipe(...n){return Yy(n)(this)}toPromise(n){return n=Zy(n),new n((r,s)=>{let i;this.subscribe(o=>i=o,o=>s(o),()=>r(i))})}}return t.create=e=>new t(e),t})();function Zy(t){var e;return(e=t??Yt.Promise)!==null&&e!==void 0?e:Promise}function $2(t){return t&&dt(t.next)&&dt(t.error)&&dt(t.complete)}function V2(t){return t&&t instanceof is||$2(t)&&Ol(t)}function H2(t){return dt(t?.lift)}function Xy(t){return e=>{if(H2(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Jy(t,e,n,r,s){return new Fp(t,e,n,r,s)}var Fp=class extends is{constructor(e,n,r,s,i,o){super(e),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=s?function(a){try{s(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};var Ky=Pl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var vr=(()=>{class t extends Ei{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Bl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ky}next(n){gi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){gi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){gi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:s,observers:i}=this;return r||s?kp:(this.currentObservers=null,i.push(n),new et(()=>{this.currentObservers=null,ia(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:s,isStopped:i}=this;r?n.error(s):i&&n.complete()}asObservable(){let n=new Ei;return n.source=this,n}}return t.create=(e,n)=>new Bl(e,n),t})(),Bl=class extends vr{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:kp}};var oa=class extends vr{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};function Bp(t,e){return Xy((n,r)=>{let s=0;n.subscribe(Jy(r,i=>{r.next(t.call(e,i,s++))}))})}var $p;function $l(){return $p}function Cn(t){let e=$p;return $p=t,e}var ew=Symbol("NotFound");function yi(t){return t===ew||t?.name==="\u0275NotFound"}var th="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",J=class extends Error{code;constructor(e,n){super(nh(e,n)),this.code=e}};function z2(t){return`NG0${Math.abs(t)}`}function nh(t,e){return`${z2(t)}${e?": "+e:""}`}function le(t){for(let e in t)if(t[e]===le)return e;throw Error("")}function as(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(as).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(` `);return r>=0?n.slice(0,r):n}function Wl(t,e){return t?e?`${t} ${e}`:t:e||""}var G2=le({__forward_ref__:le});function zl(t){return t.__forward_ref__=zl,t.toString=function(){return as(this())},t}function Tt(t){return iw(t)?t():t}function iw(t){return typeof t=="function"&&t.hasOwnProperty(G2)&&t.__forward_ref__===zl}function xe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Gl(t){return Q2(t,Ql)}function Q2(t,e){return t.hasOwnProperty(e)&&t[e]||null}function Y2(t){let e=t?.[Ql]??null;return e||null}function Hp(t){return t&&t.hasOwnProperty(Hl)?t[Hl]:null}var Ql=le({\u0275prov:le}),Hl=le({\u0275inj:le}),ne=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=xe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function rh(t){return t&&!!t.\u0275providers}var sh=le({\u0275cmp:le}),ih=le({\u0275dir:le}),oh=le({\u0275pipe:le});var jp=le({\u0275fac:le}),ds=le({__NG_ELEMENT_ID__:le}),tw=le({__NG_ENV_ID__:le});function da(t){return ch(t,"@Component"),t[sh]||null}function ah(t){return ch(t,"@Directive"),t[ih]||null}function ow(t){return ch(t,"@Pipe"),t[oh]||null}function ch(t,e){if(t==null)throw new J(-919,!1)}function Yl(t){return typeof t=="string"?t:t==null?"":String(t)}var aw=le({ngErrorCode:le}),Z2=le({ngErrorMessage:le}),X2=le({ngTokenPath:le});function lh(t,e){return cw("",-200,e)}function Zl(t,e){throw new J(-201,!1)}function cw(t,e,n){let r=new J(e,t);return r[aw]=e,r[Z2]=t,n&&(r[X2]=n),r}function J2(t){return t[aw]}var Up;function lw(){return Up}function It(t){let e=Up;return Up=t,e}function uh(t,e,n){let r=Gl(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;Zl(t,"")}var K2={},os=K2,e1="__NG_DI_FLAG__",qp=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=cs(n)||0;try{return this.injector.get(e,r&8?null:os,r)}catch(s){if(yi(s))return s;throw s}}};function t1(t,e=0){let n=$l();if(n===void 0)throw new J(-203,!1);if(n===null)return uh(t,void 0,e);{let r=n1(e),s=n.retrieve(t,r);if(yi(s)){if(r.optional)return null;throw s}return s}}function ue(t,e=0){return(lw()||t1)(Tt(t),e)}function pe(t,e){return ue(t,cs(e))}function cs(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function n1(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function Wp(t){let e=[];for(let n=0;nArray.isArray(n)?Xl(n,e):e(n))}function uw(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function dh(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dw(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(s===1)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;){let i=s-2;t[s]=t[i],s--}t[e]=n,t[e+1]=r}}function Jl(t,e,n){let r=Ci(t,e);return r>=0?t[r|1]=n:(r=~r,dw(t,r,e,n)),r}function Kl(t,e){let n=Ci(t,e);if(n>=0)return t[n|1]}function Ci(t,e){return s1(t,e,1)}function s1(t,e,n){let r=0,s=t.length>>n;for(;s!==r;){let i=r+(s-r>>1),o=t[i<e?s=i:r=i+1}return~(s<{n.push(o)};return Xl(e,o=>{let a=o;jl(a,i,[],r)&&(s||=[],s.push(a))}),s!==void 0&&pw(s,i),n}function pw(t,e){for(let n=0;n{e(i,r)})}}function jl(t,e,n,r){if(t=Tt(t),!t)return!1;let s=null,i=Hp(t),o=!i&&da(t);if(!i&&!o){let c=t.ngModule;if(i=Hp(c),i)s=c;else return!1}else{if(o&&!o.standalone)return!1;s=t}let a=r.has(s);if(o){if(a)return!1;if(r.add(s),o.dependencies){let c=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let l of c)jl(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(s);let l;Xl(i.imports,u=>{jl(u,e,n,r)&&(l||=[],l.push(u))}),l!==void 0&&pw(l,e)}if(!a){let l=Si(s)||(()=>new s);e({provide:s,useFactory:l,deps:In},s),e({provide:ph,useValue:s,multi:!0},s),e({provide:fa,useValue:()=>ue(s),multi:!0},s)}let c=i.providers;if(c!=null&&!a){let l=t;gh(c,u=>{e(u,l)})}}else return!1;return s!==t&&t.providers!==void 0}function gh(t,e){for(let n of t)rh(n)&&(n=n.\u0275providers),Array.isArray(n)?gh(n,e):e(n)}var i1=le({provide:String,useValue:le});function hw(t){return t!==null&&typeof t=="object"&&i1 in t}function o1(t){return!!(t&&t.useExisting)}function a1(t){return!!(t&&t.useFactory)}function Ul(t){return typeof t=="function"}var pa=new ne(""),Vl={},nw={},Vp;function ha(){return Vp===void 0&&(Vp=new ca),Vp}var Zt=class{},ls=class extends Zt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,s){super(),this.parent=n,this.source=r,this.scopes=s,Gp(e,o=>this.processProvider(o)),this.records.set(fh,wi(void 0,this)),s.has("environment")&&this.records.set(Zt,wi(void 0,this));let i=this.records.get(pa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ph,In,{self:!0}))}retrieve(e,n){let r=cs(n)||0;try{return this.get(e,os,r)}catch(s){if(yi(s))return s;throw s}}destroy(){aa(this),this._destroyed=!0;let e=j(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(e)}}onDestroy(e){return aa(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){aa(this);let n=Cn(this),r=It(void 0),s;try{return e()}finally{Cn(n),It(r)}}get(e,n=os,r){if(aa(this),e.hasOwnProperty(tw))return e[tw](this);let s=cs(r),i,o=Cn(this),a=It(void 0);try{if(!(s&4)){let l=this.records.get(e);if(l===void 0){let u=f1(e)&&Gl(e);u&&this.injectableDefInScope(u)?l=wi(zp(e),Vl):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,s)}let c=s&2?ha():this.parent;return n=s&8&&n===os?null:n,c.get(e,n)}catch(c){let l=J2(c);throw l===-200||l===-201?new J(l,null):c}finally{It(a),Cn(o)}}resolveInjectorInitializers(){let e=j(null),n=Cn(this),r=It(void 0),s;try{let i=this.get(fa,In,{self:!0});for(let o of i)o()}finally{Cn(n),It(r),j(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(as(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=Tt(e);let n=Ul(e)?e:Tt(e&&e.provide),r=l1(e);if(!Ul(e)&&e.multi===!0){let s=this.records.get(n);s||(s=wi(void 0,Vl,!0),s.factory=()=>Wp(s.multi),this.records.set(n,s)),n=e,s.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let s=j(null);try{if(n.value===nw)throw lh(as(e));return n.value===Vl&&(n.value=nw,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&d1(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{j(s)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Tt(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function zp(t){let e=Gl(t),n=e!==null?e.factory:Si(t);if(n!==null)return n;if(t instanceof ne)throw new J(204,!1);if(t instanceof Function)return c1(t);throw new J(204,!1)}function c1(t){if(t.length>0)throw new J(204,!1);let n=Y2(t);return n!==null?()=>n.factory(t):()=>new t}function l1(t){if(hw(t))return wi(void 0,t.useValue);{let e=mw(t);return wi(e,Vl)}}function mw(t,e,n){let r;if(Ul(t)){let s=Tt(t);return Si(s)||zp(s)}else if(hw(t))r=()=>Tt(t.useValue);else if(a1(t))r=()=>t.useFactory(...Wp(t.deps||[]));else if(o1(t))r=(s,i)=>ue(Tt(t.useExisting),i!==void 0&&i&8?8:void 0);else{let s=Tt(t&&(t.useClass||t.provide));if(u1(t))r=()=>new s(...Wp(t.deps));else return Si(s)||zp(s)}return r}function aa(t){if(t.destroyed)throw new J(205,!1)}function wi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function u1(t){return!!t.deps}function d1(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function f1(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function Gp(t,e){for(let n of t)Array.isArray(n)?Gp(n,e):n&&rh(n)?Gp(n.\u0275providers,e):e(n)}function eu(t,e){let n;t instanceof ls?(aa(t),n=t):n=new qp(t);let r,s=Cn(n),i=It(void 0);try{return e()}finally{Cn(s),It(i)}}function gw(){return lw()!==void 0||$l()!=null}var Xt=0,W=1,q=2,tt=3,Bt=4,Jt=5,Ii=6,tu=7,ke=8,yr=9,Vn=10,ze=11,Ti=12,vh=13,bi=14,$t=15,ps=16,hs=17,ms=18,Hn=19,Eh=20,Bn=21,nu=22,ma=23,bt=24,ru=25,gs=26,Ve=27,vw=1,yh=6,Di=7,Ew=8,ga=9,Ce=10;function jn(t){return Array.isArray(t)&&typeof t[vw]=="object"}function Un(t){return Array.isArray(t)&&t[vw]===!0}function wh(t){return(t.flags&4)!==0}function va(t){return t.componentOffset>-1}function Sh(t){return(t.flags&1)===1}function vs(t){return!!t.template}function _i(t){return(t[q]&512)!==0}function Es(t){return(t[q]&256)===256}var xh="svg",yw="math";function Tn(t){for(;Array.isArray(t);)t=t[Xt];return t}function Ch(t,e){return Tn(e[t])}function ys(t,e){return Tn(e[t.index])}function su(t,e){return t.data[e]}function wr(t,e){let n=e[t];return jn(n)?n:n[Xt]}function iu(t){return(t[q]&128)===128}function bn(t,e){return e==null?null:t[e]}function Ih(t){t[hs]=0}function Th(t){t[q]&1024||(t[q]|=1024,iu(t)&&ya(t))}function Ea(t){return!!(t[q]&9216||t[bt]?.dirty)}function ou(t){t[Vn].changeDetectionScheduler?.notify(8),t[q]&64&&(t[q]|=1024),Ea(t)&&ya(t)}function ya(t){t[Vn].changeDetectionScheduler?.notify(0);let e=Er(t);for(;e!==null&&!(e[q]&8192||(e[q]|=8192,!iu(e)));)e=Er(e)}function bh(t,e){if(Es(t))throw new J(911,!1);t[Bn]===null&&(t[Bn]=[]),t[Bn].push(e)}function ww(t,e){if(t[Bn]===null)return;let n=t[Bn].indexOf(e);n!==-1&&t[Bn].splice(n,1)}function Er(t){let e=t[tt];return Un(e)?e[tt]:e}var Z={lFrame:Pw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Qp=!1;function Sw(){return Z.lFrame.elementDepthCount}function xw(){Z.lFrame.elementDepthCount++}function Dh(){Z.lFrame.elementDepthCount--}function Cw(){return Z.bindingsEnabled}function Iw(){return Z.skipHydrationRootTNode!==null}function _h(t){return Z.skipHydrationRootTNode===t}function Ah(){Z.skipHydrationRootTNode=null}function we(){return Z.lFrame.lView}function Sr(){return Z.lFrame.tView}function ws(){let t=Nh();for(;t!==null&&t.type===64;)t=t.parent;return t}function Nh(){return Z.lFrame.currentTNode}function Tw(){let t=Z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ai(t,e){let n=Z.lFrame;n.currentTNode=t,n.isParent=e}function kh(){return Z.lFrame.isParent}function bw(){Z.lFrame.isParent=!1}function Mh(){return Qp}function Rh(t){let e=Qp;return Qp=t,e}function Dw(){return Z.lFrame.bindingIndex}function _w(t){return Z.lFrame.bindingIndex=t}function au(){return Z.lFrame.bindingIndex++}function Ph(t){let e=Z.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Aw(){return Z.lFrame.inI18n}function Nw(t,e){let n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=t,cu(e)}function kw(){return Z.lFrame.currentDirectiveIndex}function cu(t){Z.lFrame.currentDirectiveIndex=t}function Mw(t){let e=Z.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Lh(t){Z.lFrame.currentQueryIndex=t}function p1(t){let e=t[W];return e.type===2?e.declTNode:e.type===1?t[Jt]:null}function Oh(t,e,n){if(n&4){let s=e,i=t;for(;s=s.parent,s===null&&!(n&1);)if(s=p1(i),s===null||(i=i[bi],s.type&10))break;if(s===null)return!1;e=s,t=i}let r=Z.lFrame=Rw();return r.currentTNode=e,r.lView=t,!0}function lu(t){let e=Rw(),n=t[W];Z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Rw(){let t=Z.lFrame,e=t===null?null:t.child;return e===null?Pw(t):e}function Pw(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Lw(){let t=Z.lFrame;return Z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Fh=Lw;function uu(){let t=Lw();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function qn(){return Z.lFrame.selectedIndex}function xr(t){Z.lFrame.selectedIndex=t}function he(){Z.lFrame.currentNamespace=xh}function Ee(){h1()}function h1(){Z.lFrame.currentNamespace=null}function Ow(){return Z.lFrame.currentNamespace}var Fw=!0;function du(){return Fw}function fu(t){Fw=t}function Yp(t,e=null,n=null,r){let s=Bw(t,e,n,r);return s.resolveInjectorInitializers(),s}function Bw(t,e=null,n=null,r,s=new Set){let i=[n||In,fw(t)];return r=r||(typeof t=="object"?void 0:as(t)),new ls(i,e||ha(),r||null,s)}var us=class t{static THROW_IF_NOT_FOUND=os;static NULL=new ca;static create(e,n){if(Array.isArray(e))return Yp({name:""},n,e,"");{let r=e.name??"";return Yp({name:r},e.parent,e.providers,r)}}static \u0275prov=xe({token:t,providedIn:"any",factory:()=>ue(fh)});static __NG_ELEMENT_ID__=-1},Kt=new ne(""),pu=(()=>{class t{static __NG_ELEMENT_ID__=m1;static __NG_ENV_ID__=n=>n}return t})(),Zp=class extends pu{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Es(this._lView)}onDestroy(e){let n=this._lView;return bh(n,e),()=>ww(n,e)}};function m1(){return new Zp(we())}var $w=!1,Vw=new ne(""),Ni=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new oa(!1);debugTaskTracker=pe(Vw,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Ei(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=xe({token:t,providedIn:"root",factory:()=>new t})}return t})(),Xp=class extends vr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,gw()&&(this.destroyRef=pe(pu,{optional:!0})??void 0,this.pendingTasks=pe(Ni,{optional:!0})??void 0)}emit(e){let n=j(null);try{super.next(e)}finally{j(n)}}subscribe(e,n,r){let s=e,i=n||(()=>null),o=r;if(e&&typeof e=="object"){let c=e;s=c.next?.bind(c),i=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),s&&(s=this.wrapInTimeout(s)),o&&(o=this.wrapInTimeout(o)));let a=super.subscribe({next:s,error:i,complete:o});return e instanceof et&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Fn=Xp;function ql(...t){}function Bh(t){let e,n;function r(){t=ql;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Hw(t){return queueMicrotask(()=>t()),()=>{t=ql}}var $h="isAngularZone",la=$h+"_ID",g1=0,Ft=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Fn(!1);onMicrotaskEmpty=new Fn(!1);onStable=new Fn(!1);onError=new Fn(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:s=!1,scheduleInRootZone:i=$w}=e;if(typeof Zone>"u")throw new J(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!s&&r,o.shouldCoalesceRunChangeDetection=s,o.callbackScheduled=!1,o.scheduleInRootZone=i,y1(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get($h)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new J(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new J(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,s){let i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+s,e,v1,ql,ql);try{return i.runTask(o,n,r)}finally{i.cancelTask(o)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},v1={};function Vh(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function E1(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Bh(()=>{t.callbackScheduled=!1,Jp(t),t.isCheckStableRunning=!0,Vh(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Jp(t)}function y1(t){let e=()=>{E1(t)},n=g1++;t._inner=t._inner.fork({name:"angular",properties:{[$h]:!0,[la]:n,[la+n]:!0},onInvokeTask:(r,s,i,o,a,c)=>{if(w1(c))return r.invokeTask(i,o,a,c);try{return rw(t),r.invokeTask(i,o,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),sw(t)}},onInvoke:(r,s,i,o,a,c,l)=>{try{return rw(t),r.invoke(i,o,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!S1(c)&&e(),sw(t)}},onHasTask:(r,s,i,o)=>{r.hasTask(i,o),s===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Jp(t),Vh(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,s,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Jp(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function rw(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function sw(t){t._nesting--,Vh(t)}var ua=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Fn;onMicrotaskEmpty=new Fn;onStable=new Fn;onError=new Fn;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,s){return e.apply(n,r)}};function w1(t){return jw(t,"__ignore_ng_zone__")}function S1(t){return jw(t,"__scheduler_tick__")}function jw(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var $n=class{_console=console;handleError(e){this._console.error("ERROR",e)}},wa=new ne("",{factory:()=>{let t=pe(Ft),e=pe(Zt),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r}):(n??=e.get($n),n.handleError(r))})}}}),Uw={provide:fa,useValue:()=>{let t=pe($n,{optional:!0})},multi:!0};function ki(t,e){let[n,r,s]=Ap(t,e?.equal),i=n,o=i[xn];return i.set=r,i.update=s,i.asReadonly=qw.bind(i),i}function qw(){let t=this[xn];if(t.readonlyFn===void 0){let e=()=>this();e[xn]=t,t.readonlyFn=e}return t.readonlyFn}var xi=class{},Sa=new ne("",{factory:()=>!0});var Hh=new ne("");var jh=(()=>{class t{static \u0275prov=xe({token:t,providedIn:"root",factory:()=>new Kp})}return t})(),Kp=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},eh=class{[xn];constructor(e){this[xn]=e}destroy(){this[xn].destroy()}};function mS(t){return{toString:t}.toString()}function gS(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var Eu=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function L1(t){return t.type.prototype.ngOnChanges&&(t.setInput=F1),O1}function O1(){let t=ES(this),e=t?.current;if(e){let n=t.previous;if(n===fs)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function F1(t,e,n,r,s){let i=this.declaredInputs[r],o=ES(t)||B1(t,{previous:fs,current:null}),a=o.current||(o.current={}),c=o.previous,l=c[i];a[i]=new Eu(l&&l.currentValue,n,c===fs),gS(t,e,s,n)}var vS="__ngSimpleChanges__";function ES(t){return t[vS]||null}function B1(t,e){return t[vS]=e}var Ww=[];var me=function(t,e=null,n){for(let r=0;r=r)break}else e[c]<0&&(t[hs]+=65536),(a>14>16&&(t[q]&3)===e&&(t[q]+=16384,zw(a,i)):zw(a,i)}var Ri=-1,Ia=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,s){this.factory=e,this.name=s,this.canSeeViewProviders=n,this.injectImpl=r}};function j1(t){return(t.flags&8)!==0}function U1(t){return(t.flags&16)!==0}function q1(t,e,n){let r=0;for(;re){o=i-1;break}}}for(;i>16}function Zh(t,e){let n=Q1(t),r=e;for(;n>0;)r=r[bi],n--;return r}var Xh=!0;function Qw(t){let e=Xh;return Xh=t,e}var Y1=256,wS=Y1-1,SS=5,Z1=0,Dn={};function X1(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ds)&&(r=n[ds]),r==null&&(r=n[ds]=Z1++);let s=r&wS,i=1<>SS)]|=i}function xS(t,e){let n=CS(t,e);if(n!==-1)return n;let r=e[W];r.firstCreatePass&&(t.injectorIndex=e.length,qh(r.data,t),qh(e,null),qh(r.blueprint,null));let s=IS(t,e),i=t.injectorIndex;if(G1(s)){let o=Yh(s),a=Zh(s,e),c=a[W].data;for(let l=0;l<8;l++)e[i+l]=a[o+l]|c[o+l]}return e[i+8]=s,i}function qh(t,e){t.push(0,0,0,0,0,0,0,0,e)}function CS(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function IS(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;s!==null;){if(r=AS(s),r===null)return Ri;if(n++,s=s[bi],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ri}function J1(t,e,n){X1(t,e,n)}function TS(t,e,n){if(n&8||t!==void 0)return t;Zl(e,"NodeInjector")}function bS(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let s=t[yr],i=It(void 0);try{return s?s.get(e,r,n&8):uh(e,r,n&8)}finally{It(i)}}return TS(r,e,n)}function DS(t,e,n,r=0,s){if(t!==null){if(e[q]&2048&&!(r&2)){let o=rM(t,e,n,r,Dn);if(o!==Dn)return o}let i=_S(t,e,n,r,Dn);if(i!==Dn)return i}return bS(e,n,r,s)}function _S(t,e,n,r,s){let i=tM(n);if(typeof i=="function"){if(!Oh(e,t,r))return r&1?TS(s,n,r):bS(e,n,r,s);try{let o;if(o=i(r),o==null&&!(r&8))Zl(n);else return o}finally{Fh()}}else if(typeof i=="number"){let o=null,a=CS(t,e),c=Ri,l=r&1?e[$t][Jt]:null;for((a===-1||r&4)&&(c=a===-1?IS(t,e):e[a+8],c===Ri||!Zw(r,!1)?a=-1:(o=e[W],a=Yh(c),e=Zh(c,e)));a!==-1;){let u=e[W];if(Yw(i,a,u.data)){let f=K1(a,e,n,o,r,l);if(f!==Dn)return f}c=e[a+8],c!==Ri&&Zw(r,e[W].data[a+8]===l)&&Yw(i,a,e)?(o=u,a=Yh(c),e=Zh(c,e)):a=-1}}return s}function K1(t,e,n,r,s,i){let o=e[W],a=o.data[t+8],c=r==null?va(a)&&Xh:r!=o&&(a.type&3)!==0,l=s&1&&i===a,u=eM(a,o,n,c,l);return u!==null?Jh(e,o,u,a,s):Dn}function eM(t,e,n,r,s){let i=t.providerIndexes,o=e.data,a=i&1048575,c=t.directiveStart,l=t.directiveEnd,u=i>>20,f=r?a:a+u,p=s?a+u:l;for(let m=f;m=c&&v.type===n)return m}if(s){let m=o[c];if(m&&vs(m)&&m.type===n)return c}return null}function Jh(t,e,n,r,s){let i=t[n],o=e.data;if(i instanceof Ia){let a=i;if(a.resolving)throw lh("");let c=Qw(a.canSeeViewProviders);a.resolving=!0;let l=o[n].type||o[n],u,f=a.injectImpl?It(a.injectImpl):null,p=Oh(t,r,0);try{i=t[n]=a.factory(void 0,s,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&$1(n,o[n],e)}finally{f!==null&&It(f),Qw(c),a.resolving=!1,Fh()}}return i}function tM(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ds)?t[ds]:void 0;return typeof e=="number"?e>=0?e&wS:nM:e}function Yw(t,e,n){let r=1<>SS)]&r)}function Zw(t,e){return!(t&2)&&!(t&1&&e)}var yu=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return DS(this._tNode,this._lView,e,cs(r),n)}};function nM(){return new yu(ws(),we())}function rM(t,e,n,r,s){let i=t,o=e;for(;i!==null&&o!==null&&o[q]&2048&&!_i(o);){let a=_S(i,o,n,r|2,Dn);if(a!==Dn)return a;let c=i.parent;if(!c){let l=o[Eh];if(l){let u=l.get(n,Dn,r);if(u!==Dn)return u}c=AS(o),o=o[bi]}i=c}return s}function AS(t){let e=t[W],n=e.type;return n===2?e.declTNode:n===1?t[Jt]:null}function sM(){return NS(ws(),we())}function NS(t,e){return new kS(ys(t,e))}var kS=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=sM}return t})();function MS(t){return(t.flags&128)===128}var ym=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(ym||{}),RS=new Map,iM=0;function oM(){return iM++}function aM(t){RS.set(t[Hn],t)}function Kh(t){RS.delete(t[Hn])}var Xw="__ngContext__";function Pi(t,e){jn(e)?(t[Xw]=e[Hn],aM(e)):t[Xw]=e}function PS(t){return OS(t[Ti])}function LS(t){return OS(t[Bt])}function OS(t){for(;t!==null&&!Un(t);)t=t[Bt];return t}var cM;function wm(t){cM=t}var Nu=new ne("",{factory:()=>lM}),lM="ng";var ku=new ne(""),_a=new ne("",{providedIn:"platform",factory:()=>"unknown"});var Mu=new ne("",{factory:()=>pe(Kt).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var FS="r";var BS="di";var $S=!1,VS=new ne("",{factory:()=>$S});function Sm(t){return(t.flags&32)===32}var uM=()=>null;function HS(t,e,n=!1){return uM(t,e,n)}function jS(t,e){let n=t.contentQueries;if(n!==null){let r=j(null);try{for(let s=0;s-1){let i;for(;++si?f="":f=s[u+1].toLowerCase(),r&2&&l!==f){if(en(r))return!1;o=!0}}}}return en(r)||o}function en(t){return(t&1)===0}function yM(t,e,n,r){if(e===null)return-1;let s=0;if(r||!n){let i=!1;for(;s-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?s+="."+o:r&4&&(s+=" "+o);else s!==""&&!en(o)&&(e+=Kw(i,s),s=""),r=o,i=i||!en(r);n++}return s!==""&&(e+=Kw(i,s)),e}function IM(t){return t.map(CM).join(",")}function TM(t){let e=[],n=[],r=1,s=2;for(;r{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=xe({token:t,providedIn:"root",factory:()=>new t})}return t})();var Dm=new ne("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:pe(Zt)})});function tx(t,e,n){let r=t.get(Dm);if(Array.isArray(e))for(let s of e)r.queue.add(s),n?.detachedLeaveAnimationFns?.push(s);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function NM(t,e){let n=t.get(Dm);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function kM(t,e){for(let[n,r]of e)tx(t,r.animateFns)}function MM(t,e){let n=t.get(Dm);if(Array.isArray(e))for(let r of e)n.queue.delete(r);else n.queue.delete(e)}function tS(t,e,n,r){let s=t?.[gs]?.enter;e!==null&&s&&s.has(n.index)&&kM(r,s)}function Mi(t,e,n,r,s,i,o,a){if(s!=null){let c,l=!1;Un(s)?c=s:jn(s)&&(l=!0,s=s[Xt]);let u=Tn(s);t===0&&r!==null?(tS(a,r,i,n),o==null?zS(e,r,u):nm(e,r,u,o||null,!0)):t===1&&r!==null?(tS(a,r,i,n),nm(e,r,u,o||null,!0)):t===2?nS(a,i,n,f=>{GS(e,u,l,f)}):t===3&&nS(a,i,n,()=>{e.destroyNode(u)}),c!=null&&WM(e,t,n,c,i,r,o)}}function RM(t,e){nx(t,e),e[Xt]=null,e[Jt]=null}function PM(t,e,n,r,s,i){r[Xt]=s,r[Jt]=e,Pu(t,r,n,1,s,i)}function nx(t,e){e[Vn].changeDetectionScheduler?.notify(9),Pu(t,e,e[ze],2,null,null)}function LM(t){let e=t[Ti];if(!e)return Wh(t[W],t);for(;e;){let n=null;if(jn(e))n=e[Ti];else{let r=e[Ce];r&&(n=r)}if(!n){for(;e&&!e[Bt]&&e!==t;)jn(e)&&Wh(e[W],e),e=e[tt];e===null&&(e=t),jn(e)&&Wh(e[W],e),n=e&&e[Bt]}e=n}}function _m(t,e){let n=t[ga],r=n.indexOf(e);n.splice(r,1)}function Am(t,e){if(Es(e))return;let n=e[ze];n.destroyNode&&Pu(t,e,n,3,null,null),LM(e)}function Wh(t,e){if(Es(e))return;let n=j(null);try{e[q]&=-129,e[q]|=256,e[bt]&&Rl(e[bt]),BM(t,e),FM(t,e),e[W].type===1&&e[ze].destroy();let r=e[ps];if(r!==null&&Un(e[tt])){r!==e[tt]&&_m(r,e);let s=e[ms];s!==null&&s.detachView(t)}Kh(e)}finally{j(n)}}function nS(t,e,n,r){let s=t?.[gs];if(s?.enter?.has(e.index)&&MM(n,s.enter.get(e.index).animateFns),s==null||s.leave==null||!s.leave.has(e.index))return r(!1);t&&Ss.add(t[Hn]),tx(n,()=>{if(s.leave&&s.leave.has(e.index)){let o=s.leave.get(e.index),a=[];if(o){for(let c=0;c{t[gs].running=void 0,Ss.delete(t[Hn]),e(!0)});return}e(!1)}function FM(t,e){let n=t.cleanup,r=e[tu];if(n!==null)for(let o=0;o=0?r[a]():r[-a].unsubscribe(),o+=2}else{let a=r[n[o+1]];n[o].call(a)}r!==null&&(e[tu]=null);let s=e[Bn];if(s!==null){e[Bn]=null;for(let o=0;oVe&&KS(t,e,Ve,!1);let a=o?ce.TemplateUpdateStart:ce.TemplateCreateStart;me(a,s,n),n(r,s)}finally{xr(i);let a=o?ce.TemplateUpdateEnd:ce.TemplateCreateEnd;me(a,s,n)}}function ix(t,e,n){ZM(t,e,n),(n.flags&64)===64&&XM(t,e,n)}function Mm(t,e,n=ys){let r=e.localNames;if(r!==null){let s=e.index+1;for(let i=0;inull;function ZM(t,e,n){let r=n.directiveStart,s=n.directiveEnd;va(n)&&_M(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||xS(n,e);let i=n.initialInputs;for(let o=r;o{ya(t.lView)},consumerOnSignalRead(){this.lView[bt]=this}});function cR(t){let e=t[bt]??Object.create(lR);return e.lView=t,e}var lR=ee(y({},Ml),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=Er(t.lView);for(;e&&!fx(e[W]);)e=Er(e);e&&Th(e)},consumerOnSignalRead(){this.lView[bt]=this}});function fx(t){return t.type!==2}function px(t){if(t[ma]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[ma])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[q]&8192)}}var uR=100;function hx(t,e=0){let r=t[Vn].rendererFactory,s=!1;s||r.begin?.();try{dR(t,e)}finally{s||r.end?.()}}function dR(t,e){let n=Mh();try{Rh(!0),im(t,e);let r=0;for(;Ea(t);){if(r===uR)throw new J(103,!1);r++,im(t,1)}}finally{Rh(n)}}function fR(t,e,n,r){if(Es(e))return;let s=e[q],i=!1,o=!1;lu(e);let a=!0,c=null,l=null;i||(fx(t)?(l=sR(e),c=Tp(l)):kl()===null?(a=!1,l=cR(e),c=Tp(l)):e[bt]&&(Rl(e[bt]),e[bt]=null));try{Ih(e),_w(t.bindingStartIndex),n!==null&&sx(t,e,n,2,r);let u=(s&3)===3;if(!i)if(u){let m=t.preOrderCheckHooks;m!==null&&mu(e,m,null)}else{let m=t.preOrderHooks;m!==null&&gu(e,m,0,null),Uh(e,0)}if(o||pR(e),px(e),mx(e,0),t.contentQueries!==null&&jS(t,e),!i)if(u){let m=t.contentCheckHooks;m!==null&&mu(e,m)}else{let m=t.contentHooks;m!==null&&gu(e,m,1),Uh(e,1)}mR(t,e);let f=t.components;f!==null&&vx(e,f,0);let p=t.viewQuery;if(p!==null&&em(2,p,r),!i)if(u){let m=t.viewCheckHooks;m!==null&&mu(e,m)}else{let m=t.viewHooks;m!==null&&gu(e,m,2),Uh(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[nu]){for(let m of e[nu])m();e[nu]=null}i||(ux(e),e[q]&=-73)}catch(u){throw i||ya(e),u}finally{l!==null&&(ky(l,c),a&&oR(l)),uu()}}function mx(t,e){for(let n=PS(t);n!==null;n=LS(n))for(let r=Ce;r0&&(t[n-1][Bt]=r[Bt]);let i=dh(t,Ce+e);RM(r[W],r);let o=i[ms];o!==null&&o.detachView(i[W]),r[tt]=null,r[Bt]=null,r[q]&=-129}return r}function vR(t,e,n,r){let s=Ce+r,i=n.length;r>0&&(n[s-1][Bt]=e),r-1&&(Fm(e,r),dh(n,r))}this._attachedToViewContainer=!1}Am(this._lView[W],this._lView)}onDestroy(e){bh(this._lView,e)}markForCheck(){Ex(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[q]&=-129}reattach(){ou(this._lView),this._lView[q]|=128}detectChanges(){this._lView[q]|=1024,hx(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new J(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=_i(this._lView),n=this._lView[ps];n!==null&&!e&&_m(n,this._lView),nx(this._lView[W],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new J(902,!1);this._appRef=e;let n=_i(this._lView),r=this._lView[ps];r!==null&&!n&&Sx(r,this._lView),ou(this._lView)}};function Lu(t,e,n,r,s){let i=t.data[e];if(i===null)i=ER(t,e,n,r,s),Aw()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=s;let o=Tw();i.injectorIndex=o===null?-1:o.injectorIndex}return Ai(i,!0),i}function ER(t,e,n,r,s){let i=Nh(),o=kh(),a=o?i:i&&i.parent,c=t.data[e]=wR(t,a,n,e,r,s);return yR(t,c,i,o),c}function yR(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function wR(t,e,n,r,s,i){let o=e?e.injectorIndex:-1,a=0;return Iw()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:s,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function SR(t){let e=t[yh]??[],r=t[tt][ze],s=[];for(let i of e)i.data[BS]!==void 0?s.push(i):xR(i,r);t[yh]=s}function xR(t,e){let n=0,r=t.firstChild;if(r){let s=t.data[FS];for(;nnull,IR=()=>null;function TR(t,e){return CR(t,e)}function xx(t,e,n){return IR(t,e,n)}var Cx=class{},Ou=class{},om=class{resolveComponentFactory(e){throw new J(917,!1)}},Fu=class{static NULL=new om},xs=class{};var Ix=(()=>{class t{static \u0275prov=xe({token:t,providedIn:"root",factory:()=>null})}return t})();var vu={},am=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let s=this.injector.get(e,vu,r);return s!==vu||n===vu?s:this.parentInjector.get(e,n,r)}};function Su(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,i=0;if(e!==null)for(let o=0;o0&&(n.directiveToIndex=new Map);for(let p=0;p0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function PR(t,e,n){if(n){if(e.exportAs)for(let r=0;r{let[n,r,s]=t[e],i={propName:n,templateName:e,isSignal:(r&Ru.SignalBased)!==0};return s&&(i.transform=s),i})}function $R(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function VR(t,e,n){let r=e instanceof Zt?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new am(n,r):n}function HR(t){let e=t.get(xs,null);if(e===null)throw new J(407,!1);let n=t.get(Ix,null),r=t.get(xi,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function jR(t,e){let n=Ax(t);return WS(e,n,n==="svg"?xh:n==="math"?yw:null)}function Ax(t){return(t.selectors[0][0]||"div").toLowerCase()}var xu=class extends Ou{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=BR(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=$R(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=IM(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,s,i,o){me(ce.DynamicComponentStart);let a=j(null);try{let c=this.componentDef,l=UR(r,c,o,i),u=VR(c,s||this.ngModule,e),f=HR(u),p=f.rendererFactory.createRenderer(null,c),m=r?GM(p,r,c.encapsulation,u):jR(c,p),v=o?.some(aS)||i?.some(T=>typeof T!="function"&&T.bindings.some(aS)),x=Im(null,l,null,512|ZS(c),null,null,f,p,u,null,HS(m,u,!0));x[Ve]=m,lu(x);let _=null;try{let T=Dx(Ve,x,2,"#host",()=>l.directiveRegistry,!0,0);QS(p,m,T),Pi(m,x),ix(l,x,T),US(l,T,x),_x(l,T),n!==void 0&&WR(T,this.ngContentSelectors,n),_=wr(T.index,x),x[ke]=_[ke],Rm(l,x,null)}catch(T){throw _!==null&&Kh(_),Kh(x),T}finally{me(ce.DynamicComponentEnd),uu()}return new Cu(this.componentType,x,!!v)}finally{j(a)}}};function UR(t,e,n,r){let s=t?["ng-version","21.1.3"]:TM(e.selectors[0]),i=null,o=null,a=0;if(n)for(let u of n)a+=u[cm].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(o??=[]).push(u));if(r)for(let u=0;u{if(n&1&&t)for(let r of t)r.create();if(n&2&&e)for(let r of e)r.update()}}function aS(t){let e=t[cm].kind;return e==="input"||e==="twoWay"}var Cu=class extends Cx{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=su(n[W],Ve),this.location=NS(this._tNode,n),this.instance=wr(this._tNode.index,n)[ke],this.hostView=this.changeDetectorRef=new wu(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let s=this._rootLView,i=cx(r,s[W],s,e,n);this.previousInputValues.set(e,n);let o=wr(r.index,s);Ex(o,1)}get injector(){return new yu(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function WR(t,e,n){let r=t.projection=[];for(let s=0;s!1;function GR(t,e,n){return zR(t,e,n)}var Iu=class{};var ba=class extends Iu{injector;componentFactoryResolver=new lm(this);instance=null;constructor(e){super();let n=new ls([...e.providers,{provide:Iu,useValue:this},{provide:Fu,useValue:this.componentFactoryResolver}],e.parent||ha(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Nx(t,e,n=null){return new ba({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var QR=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=mh(!1,n.type),s=r.length>0?Nx([r],this._injector,""):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=xe({token:t,providedIn:"environment",factory:()=>new t(ue(Zt))})}return t})();function nt(t){return mS(()=>{let e=JR(t),n=ee(y({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ym.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?s=>s.get(QR).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||nn.Emulated,styles:t.styles||In,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Is("NgStandalone"),KR(n);let r=t.dependencies;return n.directiveDefs=cS(r,YR),n.pipeDefs=cS(r,ow),n.id=eP(n),n})}function YR(t){return da(t)||ah(t)}function ZR(t,e){if(t==null)return fs;let n={};for(let r in t)if(t.hasOwnProperty(r)){let s=t[r],i,o,a,c;Array.isArray(s)?(a=s[0],i=s[1],o=s[2]??i,c=s[3]||null):(i=s,o=s,a=Ru.None,c=null),n[i]=[r,a,c],e[i]=o}return n}function XR(t){if(t==null)return fs;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function JR(t){let e={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||fs,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||In,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:ZR(t.inputs,e),outputs:XR(t.outputs),debugInfo:null}}function KR(t){t.features?.forEach(e=>e(t))}function cS(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let s of n){let i=e(s);i!==null&&r.push(i)}return r}:null}function eP(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function tP(t,e,n,r,s,i,o,a){if(n.firstCreatePass){t.mergedAttrs=Au(t.mergedAttrs,t.attrs);let u=t.tView=Cm(2,t,s,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),Ai(t,!1);let c=nP(n,e,t,r);du()&&Nm(n,e,c,t),Pi(c,e);let l=gR(c,e,c,t);e[r+Ve]=l,JS(e,l),GR(l,t,e)}function Tu(t,e,n,r,s,i,o,a,c,l,u){let f=n+Ve,p;if(e.firstCreatePass){if(p=Lu(e,f,4,o||null,a||null),l!=null){let m=bn(e.consts,l);p.localNames=[];for(let v=0;v{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=pe(Mx,{optional:!0})??[];injector=pe(us);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let s of this.appInits){let i=eu(this.injector,s);if($m(i))n.push(i);else if(kx(i)){let o=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(o)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rx=new ne("");function Px(){_p(()=>{let t="";throw new J(600,t)})}function Lx(t){return t.isBoundToModule}var sP=10;var Bu=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=pe(wa);afterRenderManager=pe(ex);zonelessEnabled=pe(Sa);rootEffectScheduler=pe(jh);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new vr;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=pe(Ni);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Bp(n=>!n))}constructor(){pe(Aa,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:s=>{s&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=pe(Zt);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,s=us.NULL){return this._injector.get(Ft).run(()=>{me(ce.BootstrapComponentStart);let o=n instanceof Ou;if(!this._injector.get(Vm).done){let v="";throw new J(405,v)}let c;o?c=n:c=this._injector.get(Fu).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Lx(c)?void 0:this._injector.get(Iu),u=r||c.selector,f=c.create(s,[],u,l),p=f.location.nativeElement,m=f.injector.get(Bm,null);return m?.registerApplication(p),f.onDestroy(()=>{this.detachView(f.hostView),Ca(this.components,f),m?.unregisterApplication(p)}),this._loadComponent(f),me(ce.BootstrapComponentEnd,f),f})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){me(ce.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(bm.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw me(ce.ChangeDetectionEnd),new J(101,!1);let n=j(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,j(n),this.afterTick.next(),me(ce.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(xs,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++Ea(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ca(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(s){this.internalErrorHandler(s)}this.components.push(n),this._injector.get(Rx,[]).forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ca(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new J(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ca(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}var r$=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var um=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),s=Math.max(e,n),i=this.detach(s);if(s-r>1){let o=this.detach(r);this.attach(r,i),this.attach(s,o)}else this.attach(r,i)}move(e,n){this.attach(n,this.detach(e))}};function zh(t,e,n,r,s){return t===n&&Object.is(e,r)?1:Object.is(s(t,e),s(n,r))?-1:0}function iP(t,e,n,r){let s,i,o=0,a=t.length-1,c=void 0;if(Array.isArray(e)){j(r);let l=e.length-1;for(j(null);o<=a&&o<=l;){let u=t.at(o),f=e[o],p=zh(o,u,o,f,n);if(p!==0){p<0&&t.updateValue(o,f),o++;continue}let m=t.at(a),v=e[l],x=zh(a,m,l,v,n);if(x!==0){x<0&&t.updateValue(a,v),a--,l--;continue}let _=n(o,u),T=n(a,m),P=n(o,f);if(Object.is(P,T)){let K=n(l,v);Object.is(K,_)?(t.swap(o,a),t.updateValue(a,v),l--,a--):t.move(a,o),t.updateValue(o,f),o++;continue}if(s??=new bu,i??=uS(t,o,a,n),dm(t,s,o,P))t.updateValue(o,f),o++,a++;else if(i.has(P))s.set(_,t.detach(o)),a--;else{let K=t.create(o,e[o]);t.attach(o,K),o++,a++}}for(;o<=l;)lS(t,s,n,o,e[o]),o++}else if(e!=null){j(r);let l=e[Symbol.iterator]();j(null);let u=l.next();for(;!u.done&&o<=a;){let f=t.at(o),p=u.value,m=zh(o,f,o,p,n);if(m!==0)m<0&&t.updateValue(o,p),o++,u=l.next();else{s??=new bu,i??=uS(t,o,a,n);let v=n(o,p);if(dm(t,s,o,v))t.updateValue(o,p),o++,a++,u=l.next();else if(!i.has(v))t.attach(o,t.create(o,p)),o++,a++,u=l.next();else{let x=n(o,f);s.set(x,t.detach(o)),a--}}}for(;!u.done;)lS(t,s,n,t.length,u.value),u=l.next()}for(;o<=a;)t.destroy(t.detach(a--));s?.forEach(l=>{t.destroy(l)})}function dm(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function lS(t,e,n,r,s){if(dm(t,e,r,n(r,s)))t.updateValue(r,s);else{let i=t.create(r,s);t.attach(r,i)}}function uS(t,e,n,r){let s=new Set;for(let i=e;i<=n;i++)s.add(r(i,t.at(i)));return s}var bu=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let s=this._vMap;for(;s.has(r);)r=s.get(r);s.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let s=this._vMap;for(;s.has(r);)r=s.get(r),e(r,n)}}};function Na(t,e,n,r,s,i,o,a){Is("NgControlFlow");let c=we(),l=Sr(),u=bn(l.consts,i);return Tu(c,l,t,e,n,r,s,u,256,o,a),Hm}function Hm(t,e,n,r,s,i,o,a){Is("NgControlFlow");let c=we(),l=Sr(),u=bn(l.consts,i);return Tu(c,l,t,e,n,r,s,u,512,o,a),Hm}function ka(t,e){Is("NgControlFlow");let n=we(),r=au(),s=n[r]!==Vt?n[r]:-1,i=s!==-1?Du(n,Ve+s):void 0,o=0;if(Li(n,r,t)){let a=j(null);try{if(i!==void 0&&wx(i,o),t!==-1){let c=Ve+t,l=Du(n,c),u=mm(n[W],c),f=xx(l,u,n),p=Pm(n,u,e,{dehydratedView:f});Om(l,p,o,Lm(u,f))}}finally{j(a)}}else if(i!==void 0){let a=yx(i,o);a!==void 0&&(a[ke]=e)}}var fm=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Ce}};var pm=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function Ma(t,e,n,r,s,i,o,a,c,l,u,f,p){Is("NgControlFlow");let m=we(),v=Sr(),x=c!==void 0,_=we(),T=a?o.bind(_[$t][ke]):o,P=new pm(x,T);_[Ve+t]=P,Tu(m,v,t+1,e,n,r,s,bn(v.consts,i),256),x&&Tu(m,v,t+2,c,l,u,f,bn(v.consts,p),512)}var hm=class extends um{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Ce}at(e){return this.getLView(e)[ke].$implicit}attach(e,n){let r=n[Ii];this.needsIndexUpdate||=e!==this.length,Om(this.lContainer,n,e,Lm(this.templateTNode,r)),oP(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,aP(this.lContainer,e),cP(this.lContainer,e)}create(e,n){let r=TR(this.lContainer,this.templateTNode.tView.ssrId);return Pm(this.hostLView,this.templateTNode,new fm(this.lContainer,n,e),{dehydratedView:r})}destroy(e){Am(e[W],e)}updateValue(e,n){this.getLView(e)[ke].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e0){let i=r[yr];NM(i,s),Ss.delete(r[Hn]),s.detachedLeaveAnimationFns=void 0}}function aP(t,e){if(t.length<=Ce)return;let n=Ce+e,r=t[n],s=r?r[gs]:void 0;s&&s.leave&&s.leave.size>0&&(s.detachedLeaveAnimationFns=[])}function cP(t,e){return Fm(t,e)}function lP(t,e){return yx(t,e)}function mm(t,e){return su(t,e)}function gm(t,e,n,r,s){cx(e,t,n,s?"class":"style",r)}function Pa(t,e,n,r){let s=we(),i=s[W],o=t+Ve,a=i.firstCreatePass?Dx(o,s,2,e,KM,Cw(),n,r):i.data[o];if(ox(a,s,t,e,Ox),Sh(a)){let c=s[W];ix(c,s,a),US(c,a,s)}return r!=null&&Mm(s,a),Pa}function La(){let t=Sr(),e=ws(),n=ax(e);return t.firstCreatePass&&_x(t,n),_h(n)&&Ah(),Dh(),n.classesWithoutHost!=null&&j1(n)&&gm(t,n,we(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&U1(n)&&gm(t,n,we(),n.stylesWithoutHost,!1),La}function Fi(t,e,n,r){return Pa(t,e,n,r),La(),Fi}function S(t,e,n,r){let s=we(),i=s[W],o=t+Ve,a=i.firstCreatePass?OR(o,i,2,e,n,r):i.data[o];return ox(a,s,t,e,Ox),r!=null&&Mm(s,a),S}function I(){let t=ws(),e=ax(t);return _h(e)&&Ah(),Dh(),I}function de(t,e,n,r){return S(t,e,n,r),I(),de}var Ox=(t,e,n,r,s)=>(fu(!0),WS(e[ze],r,Ow()));var Oa="en-US";var uP=Oa;function Fx(t){typeof t=="string"&&(uP=t.toLowerCase().replace(/_/g,"-"))}function hu(t,e){return t<<17|e<<2}function Cs(t){return t>>17&32767}function dP(t){return(t&2)==2}function fP(t,e){return t&131071|e<<17}function vm(t){return t|2}function Oi(t){return(t&131068)>>2}function Gh(t,e){return t&-131069|e<<2}function pP(t){return(t&1)===1}function Em(t){return t|1}function hP(t,e,n,r,s,i){let o=i?e.classBindings:e.styleBindings,a=Cs(o),c=Oi(o);t[r]=n;let l=!1,u;if(Array.isArray(n)){let f=n;u=f[1],(u===null||Ci(f,u)>0)&&(l=!0)}else u=n;if(s)if(c!==0){let p=Cs(t[a+1]);t[r+1]=hu(p,a),p!==0&&(t[p+1]=Gh(t[p+1],r)),t[a+1]=fP(t[a+1],r)}else t[r+1]=hu(a,0),a!==0&&(t[a+1]=Gh(t[a+1],r)),a=r;else t[r+1]=hu(c,0),a===0?a=r:t[c+1]=Gh(t[c+1],r),c=r;l&&(t[r+1]=vm(t[r+1])),dS(t,u,r,!0),dS(t,u,r,!1),mP(e,u,t,r,i),o=hu(a,c),i?e.classBindings=o:e.styleBindings=o}function mP(t,e,n,r,s){let i=s?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Ci(i,e)>=0&&(n[r+1]=Em(n[r+1]))}function dS(t,e,n,r){let s=t[n+1],i=e===null,o=r?Cs(s):Oi(s),a=!1;for(;o!==0&&(a===!1||i);){let c=t[o],l=t[o+1];gP(c,e)&&(a=!0,t[o+1]=r?Em(l):vm(l)),o=r?Cs(l):Oi(l)}a&&(t[n+1]=r?vm(s):Em(s))}function gP(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Ci(t,e)>=0:!1}var tn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vP(t){return t.substring(tn.key,tn.keyEnd)}function EP(t){return yP(t),Bx(t,$x(t,0,tn.textEnd))}function Bx(t,e){let n=tn.textEnd;return n===e?-1:(e=tn.keyEnd=wP(t,tn.key=e,n),$x(t,e,n))}function yP(t){tn.key=0,tn.keyEnd=0,tn.value=0,tn.valueEnd=0,tn.textEnd=t.length}function $x(t,e,n){for(;e32;)e++;return e}function $u(t){xP(AP,SP,t,!0)}function SP(t,e){for(let n=EP(e);n>=0;n=Bx(e,n))Jl(t,vP(e),!0)}function xP(t,e,n,r){let s=Sr(),i=Ph(2);s.firstUpdatePass&&CP(s,null,i,r);let o=we();if(n!==Vt&&Li(o,i,n)){let a=s.data[qn()];if(Hx(a,r)&&!Vx(s,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Wl(c,n||"")),gm(s,a,o,n,r)}else NP(s,a,o,o[ze],o[i+1],o[i+1]=_P(t,e,n),r,i)}}function Vx(t,e){return e>=t.expandoStartIndex}function CP(t,e,n,r){let s=t.data;if(s[n+1]===null){let i=s[qn()],o=Vx(t,n);Hx(i,r)&&e===null&&!o&&(e=!1),e=IP(s,i,e,r),hP(s,i,e,n,o,r)}}function IP(t,e,n,r){let s=Mw(t),i=r?e.residualClasses:e.residualStyles;if(s===null)(r?e.classBindings:e.styleBindings)===0&&(n=Qh(null,t,e,n,r),n=Da(n,e.attrs,r),i=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==s)if(n=Qh(s,t,e,n,r),i===null){let c=TP(t,e,r);c!==void 0&&Array.isArray(c)&&(c=Qh(null,t,e,c[1],r),c=Da(c,e.attrs,r),bP(t,e,r,c))}else i=DP(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function TP(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Oi(r)!==0)return t[Cs(r)]}function bP(t,e,n,r){let s=n?e.classBindings:e.styleBindings;t[Cs(s)]=r}function DP(t,e,n){let r,s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let c=t[s],l=Array.isArray(c),u=l?c[1]:c,f=u===null,p=n[s+1];p===Vt&&(p=f?In:void 0);let m=f?Kl(p,r):u===r?p:void 0;if(l&&!_u(m)&&(m=Kl(c,r)),_u(m)&&(a=m,o))return a;let v=t[s+1];s=o?Cs(v):Oi(v)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=Kl(c,r))}return a}function _u(t){return t!==void 0}function Hx(t,e){return(t.flags&(e?8:16))!==0}function D(t,e=""){let n=we(),r=Sr(),s=t+Ve,i=r.firstCreatePass?Lu(r,s,1,e,null):r.data[s],o=MP(r,n,i,e);n[s]=o,du()&&Nm(r,n,o,i),Ai(i,!1)}var MP=(t,e,n,r)=>(fu(!0),dM(e[ze],r));function RP(t,e,n,r=""){return Li(t,au(),n)?e+Yl(n)+r:Vt}function PP(t,e,n,r,s,i=""){let o=Dw(),a=FR(t,o,n,s);return Ph(2),a?e+Yl(n)+r+Yl(s)+i:Vt}function zn(t){return Ts("",t),zn}function Ts(t,e,n){let r=we(),s=RP(r,t,e,n);return s!==Vt&&jx(r,qn(),s),Ts}function Vu(t,e,n,r,s){let i=we(),o=PP(i,t,e,n,r,s);return o!==Vt&&jx(i,qn(),o),Vu}function jx(t,e,n){let r=Ch(e,t);fM(t[ze],r,n)}var Ux=(()=>{class t{applicationErrorHandler=pe(wa);appRef=pe(Bu);taskService=pe(Ni);ngZone=pe(Ft);zonelessEnabled=pe(Sa);tracing=pe(Aa,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new et;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(la):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(pe(Hh,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Hw:Bh;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(la+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jm(){return Is("NgZoneless"),hh([...Um(),[]])}function Um(){return[{provide:xi,useExisting:Ux},{provide:Ft,useClass:ua},{provide:Sa,useValue:!0}]}function LP(){return typeof $localize<"u"&&$localize.locale||Oa}var qm=new ne("",{factory:()=>pe(qm,{optional:!0,skipSelf:!0})||LP()});var Wm=new ne(""),jP=new ne("");function Fa(t){return!t.moduleRef}function UP(t){let e=Fa(t)?t.r3Injector:t.moduleRef.injector,n=e.get(Ft);return n.run(()=>{Fa(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(wa),s;if(n.runOutsideAngular(()=>{s=n.onError.subscribe({next:r})}),Fa(t)){let i=()=>e.destroy(),o=t.platformInjector.get(Wm);o.add(i),e.onDestroy(()=>{s.unsubscribe(),o.delete(i)})}else{let i=()=>t.moduleRef.destroy(),o=t.platformInjector.get(Wm);o.add(i),t.moduleRef.onDestroy(()=>{Ca(t.allPlatformModules,t.moduleRef),s.unsubscribe(),o.delete(i)})}return WP(r,n,()=>{let i=e.get(Ni),o=i.add(),a=e.get(Vm);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(qm,Oa);if(Fx(c||Oa),!e.get(jP,!0))return Fa(t)?e.get(Bu):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Fa(t)){let u=e.get(Bu);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return qP?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(o)})})})}var qP;function WP(t,e,n){try{let r=n();return $m(r)?r.catch(s=>{throw e.runOutsideAngular(()=>t(s)),s}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var Hu=null;function zP(t=[],e){return us.create({name:e,providers:[{provide:pa,useValue:"platform"},{provide:Wm,useValue:new Set([()=>Hu=null])},...t]})}function GP(t=[]){if(Hu)return Hu;let e=zP(t);return Hu=e,Px(),QP(e),e}function QP(t){let e=t.get(ku,null);eu(t,()=>{e?.forEach(n=>n())})}var YP=1e4;var m5=YP-1e3;function qx(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:s}=t;me(ce.BootstrapApplicationStart);try{let i=s?.injector??GP(r),o=[Um(),Uw,...n||[]],a=new ba({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return UP({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{me(ce.BootstrapApplicationEnd)}}var Wx=null;function $a(){return Wx}function zm(t){Wx??=t}var Ba=class{};function Gm(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[s,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}var Va=class{};var zx="browser";var Ha=class{_doc;constructor(e){this._doc=e}manager},ju=(()=>{class t extends Ha{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s,i){return n.addEventListener(r,s,i),()=>this.removeEventListener(n,r,s,i)}removeEventListener(n,r,s,i){return n.removeEventListener(r,s,i)}static \u0275fac=function(r){return new(r||t)(ue(Kt))};static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),Wu=new ne(""),Xm=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this});let s=n.filter(o=>!(o instanceof ju));this._plugins=s.slice().reverse();let i=n.find(o=>o instanceof ju);i&&this._plugins.push(i)}addEventListener(n,r,s,i){return this._findPluginFor(r).addEventListener(n,r,s,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new J(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||t)(ue(Wu),ue(Ft))};static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),Qm="ng-app-id";function Gx(t){for(let e of t)e.remove()}function Qx(t,e){let n=e.createElement("style");return n.textContent=t,n}function ZP(t,e,n,r){let s=t.head?.querySelectorAll(`style[${Qm}="${e}"],link[${Qm}="${e}"]`);if(s)for(let i of s)i.removeAttribute(Qm),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Zm(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var Jm=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,s,i={}){this.doc=n,this.appId=r,this.nonce=s,ZP(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let s of n)this.addUsage(s,this.inline,Qx);r?.forEach(s=>this.addUsage(s,this.external,Zm))}removeStyles(n,r){for(let s of n)this.removeUsage(s,this.inline);r?.forEach(s=>this.removeUsage(s,this.external))}addUsage(n,r,s){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,s(n,this.doc)))})}removeUsage(n,r){let s=r.get(n);s&&(s.usage--,s.usage<=0&&(Gx(s.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Gx(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:s}]of this.inline)s.push(this.addElement(n,Qx(r,this.doc)));for(let[r,{elements:s}]of this.external)s.push(this.addElement(n,Zm(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||t)(ue(Kt),ue(Nu),ue(Mu,8),ue(_a))};static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),Ym={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Km=/%COMP%/g;var Zx="%COMP%",XP=`_nghost-${Zx}`,JP=`_ngcontent-${Zx}`,KP=!0,eL=new ne("",{factory:()=>KP});function tL(t){return JP.replace(Km,t)}function nL(t){return XP.replace(Km,t)}function Xx(t,e){return e.map(n=>n.replace(Km,t))}var eg=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,s,i,o,a,c=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=i,this.doc=o,this.ngZone=a,this.nonce=c,this.tracingService=l,this.defaultRenderer=new ja(n,o,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let s=this.getOrCreateRenderer(n,r);return s instanceof qu?s.applyToHost(n):s instanceof Ua&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,i=s.get(r.id);if(!i){let o=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.tracingService;switch(r.encapsulation){case nn.Emulated:i=new qu(c,l,r,this.appId,u,o,a,f);break;case nn.ShadowDom:return new Uu(c,n,r,o,a,this.nonce,f,l);case nn.ExperimentalIsolatedShadowDom:return new Uu(c,n,r,o,a,this.nonce,f);default:i=new Ua(c,l,r,u,o,a,f);break}s.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||t)(ue(Xm),ue(Jm),ue(Nu),ue(eL),ue(Kt),ue(Ft),ue(Mu),ue(Aa,8))};static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),ja=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,n,r,s){this.eventManager=e,this.doc=n,this.ngZone=r,this.tracingService=s}destroy(){}destroyNode=null;createElement(e,n){return n?this.doc.createElementNS(Ym[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(Yx(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(Yx(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new J(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,s){if(s){n=s+":"+n;let i=Ym[s];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let s=Ym[r];s?e.removeAttributeNS(s,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,s){s&(Wn.DashCase|Wn.Important)?e.style.setProperty(n,r,s&Wn.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Wn.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r,s){if(typeof e=="string"&&(e=$a().getGlobalEventTarget(this.doc,e),!e))throw new J(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,n,i)),this.eventManager.addEventListener(e,n,i,s)}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;e(n)===!1&&n.preventDefault()}}};function Yx(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Uu=class extends ja{hostEl;sharedStylesHost;shadowRoot;constructor(e,n,r,s,i,o,a,c){super(e,s,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Xx(r.id,l);for(let f of l){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=f,this.shadowRoot.appendChild(p)}let u=r.getExternalStyles?.();if(u)for(let f of u){let p=Zm(f,s);o&&p.setAttribute("nonce",o),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Ua=class extends ja{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,n,r,s,i,o,a,c){super(e,i,o,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=s;let l=r.styles;this.styles=c?Xx(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Ss.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qu=class extends Ua{contentAttr;hostAttr;constructor(e,n,r,s,i,o,a,c){let l=s+"-"+r.id;super(e,n,r,i,o,a,c,l),this.contentAttr=tL(l),this.hostAttr=nL(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}};var zu=class t extends Ba{supportsDOMEvents=!0;static makeCurrent(){zm(new t)}onAndCancel(e,n,r,s){return e.addEventListener(n,r,s),()=>{e.removeEventListener(n,r,s)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=rL();return n==null?null:sL(n)}resetBaseElement(){qa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Gm(document.cookie,e)}},qa=null;function rL(){return qa=qa||document.head.querySelector("base"),qa?qa.getAttribute("href"):null}function sL(t){return new URL(t,document.baseURI).pathname}var iL=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),Jx=["alt","control","meta","shift"],oL={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},aL={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Kx=(()=>{class t extends Ha{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,s,i){let o=t.parseEventName(r),a=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$a().onAndCancel(n,o.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let i=t._normalizeKey(r.pop()),o="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),Jx.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),o+=l+".")}),o+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=s,c.fullKey=o,c}static matchEventFullKeyCode(n,r){let s=oL[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(s=n.code,i="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Jx.forEach(o=>{if(o!==s){let a=aL[o];a(n)&&(i+=o+".")}}),i+=s,i===r)}static eventCallback(n,r,s){return i=>{t.matchEventFullKeyCode(i,n)&&s.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||t)(ue(Kt))};static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();async function tg(t,e,n){let r=y({rootComponent:t},cL(e,n));return qx(r)}function cL(t,e){return{platformRef:e?.platformRef,appProviders:[...pL,...t?.providers??[]],platformProviders:fL}}function lL(){zu.makeCurrent()}function uL(){return new $n}function dL(){return wm(document),document}var fL=[{provide:_a,useValue:zx},{provide:ku,useValue:lL,multi:!0},{provide:Kt,useFactory:dL}];var pL=[{provide:pa,useValue:"root"},{provide:$n,useFactory:uL},{provide:Wu,useClass:ju,multi:!0},{provide:Wu,useClass:Kx,multi:!0},eg,Jm,Xm,{provide:xs,useExisting:eg},{provide:Va,useClass:iL},[]];var Gu=class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=nt({type:t,selectors:[["app-header"]],decls:10,vars:0,consts:[[1,"sticky","top-0","z-50","bg-white/90","backdrop-blur-lg","border-b","border-gray-200"],[1,"container","mx-auto","px-6","py-4","flex","justify-between","items-center"],["href","#",1,"flex","items-center"],[1,"text-2xl","font-bold","text-gray-900"],[1,"hidden","md:flex","items-center","space-x-4"],["href","https://avony.betteruptime.com/fr","target","_blank","rel","noopener noreferrer",1,"bg-green-600","hover:bg-green-700","text-white","font-semibold","py-2","px-4","rounded-lg","transition-colors"],["href","#contact",1,"bg-green-600","hover:bg-green-700","text-white","font-semibold","py-2","px-4","rounded-lg","transition-colors"]],template:function(n,r){n&1&&(S(0,"header",0)(1,"nav",1)(2,"a",2)(3,"h1",3),D(4,"Avony"),I()(),S(5,"div",4)(6,"a",5),D(7," Status "),I(),S(8,"a",6),D(9," Contactez-moi "),I()()()())},encapsulation:2,changeDetection:0})}};var Qu=class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=nt({type:t,selectors:[["app-hero"]],decls:9,vars:0,consts:[[1,"relative","py-32","md:py-48","bg-gray-50"],[1,"container","mx-auto","px-6","text-center","relative","z-10"],[1,"text-5xl","md:text-7xl","font-extrabold","text-gray-900","leading-tight"],[1,"text-green-600"],[1,"mt-8","max-w-3xl","mx-auto","text-xl","md:text-2xl","text-gray-600"]],template:function(n,r){n&1&&(S(0,"section",0)(1,"div",1)(2,"h2",2),D(3," Prenez le contr\xF4le de votre "),S(4,"span",3),D(5,"bureau num\xE9rique"),I(),D(6,". "),I(),S(7,"p",4),D(8," L'alternative 100% europ\xE9enne, s\xE9curis\xE9e et abordable pour d\xE9velopper l'informatique de votre TPE. "),I()()())},encapsulation:2,changeDetection:0})}};var hL=(t,e)=>e.id;function mL(t,e){t&1&&(he(),S(0,"svg",9),de(1,"path",25),I())}function gL(t,e){t&1&&(he(),S(0,"svg",9),de(1,"path",26),I())}function vL(t,e){t&1&&(he(),S(0,"svg",9),de(1,"path",27),I())}function EL(t,e){t&1&&(he(),S(0,"svg",9),de(1,"path",28),I())}function yL(t,e){if(t&1&&(S(0,"div",18)(1,"div",19)(2,"div",20),Na(3,mL,2,0,":svg:svg",9)(4,gL,2,0,":svg:svg",9)(5,vL,2,0,":svg:svg",9)(6,EL,2,0,":svg:svg",9),I(),S(7,"div")(8,"p",21),D(9),I(),S(10,"h3",22),D(11),I()()(),S(12,"p",23),D(13),I(),S(14,"p",24),D(15),I()()),t&2){let n,r=e.$implicit;He(3),ka((n=r.id)===1?3:n===2?4:n===3?5:n===4?6:-1),He(6),Vu("",r.countryCode," ",r.country),He(2),zn(r.title),He(2),zn(r.description),He(2),zn(r.details)}}var Yu=class t{constructor(){this.features=ki([{id:1,title:"Vos Donn\xE9es en Suisse, pas en Californie",description:"Je migre tout votre travail chez Infomaniak, le leader suisse du Cloud \xE9cologique et priv\xE9.",details:"Vos emails et fichiers sont prot\xE9g\xE9s par le droit suisse, l'un des plus stricts au monde. Vous avez la certitude que personne ne scanne vos emails vous cibler avec de la publicit\xE9. Respecte le RGPD \xE0 la lettre.",country:"Suisse",countryCode:"ch"},{id:2,title:"La Productivit\xE9 sans Licences Co\xFBteuses",description:"Oubliez les abonnements Word ou Excel. Vous disposez d'une suite bureautique compl\xE8te (kSuite).",details:"Co-\xE9ditez des documents en temps r\xE9el avec vos collaborateurs. Prenez une photo d'un ticket de caisse, elle arrive instantan\xE9ment sur l'ordinateur du bureau dans le bon dossier. La mobilit\xE9 et l'efficacit\xE9 \xE0 port\xE9e de main.",country:"Suisse",countryCode:"ch"},{id:3,title:"La S\xE9curit\xE9 Invisible (Z\xE9ro Stress)",description:"J'utilise le meilleur de la technologie europ\xE9enne pour vous prot\xE9ger sans vous ralentir.",details:"Navigation filtr\xE9e contre le phishing, et coffre-fort \xE0 mots de passe pour un partage s\xE9curis\xE9 des acc\xE8s. Fini les post-it sous le clavier.",country:"Italie",countryCode:"it"},{id:4,title:"Une Direction Informatique Externalis\xE9e",description:"Vous n'achetez pas un logiciel, vous achetez de la tranquillit\xE9 d'esprit.",details:"Je g\xE8re la configuration, les mises \xE0 jour et les utilisateurs. Les sauvegardes sont automatiques. Votre domaine, vos emails, votre s\xE9curit\xE9 : tout est centralis\xE9 chez un interlocuteur unique.",country:"Suisse",countryCode:"ch"}])}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=nt({type:t,selectors:[["app-features"]],decls:48,vars:0,consts:[["id","features",1,"py-20","sm:py-28","bg-white"],[1,"container","mx-auto","px-6"],[1,"text-center","max-w-3xl","mx-auto"],[1,"text-3xl","md:text-4xl","font-bold","text-gray-900"],[1,"text-green-600"],[1,"mt-4","text-gray-600","text-lg"],[1,"mt-12","flex","flex-wrap","justify-center","gap-4"],[1,"flex","flex-col","items-center","justify-center","p-4","bg-gray-50","rounded-lg","border","border-gray-200","text-center","w-52","h-40","hover:shadow-lg","hover:border-gray-300","transition-all","duration-300"],[1,"bg-green-100","p-3","rounded-full","text-green-600"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"w-8","h-8"],["stroke-linecap","round","stroke-linejoin","round","d","M16.5 12a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm0 0c0 1.657 1.007 3 2.25 3S21 13.657 21 12a9 9 0 1 0-2.636 6.364M16.5 12V8.25"],[1,"mt-3","font-semibold","text-gray-700"],["stroke-linecap","round","stroke-linejoin","round","d","M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v.462c0 .323-.042.636-.123.932A3.001 3.001 0 0 0 9 11.25c0 2.848 2.089 5.216 4.875 5.488V18a1.875 1.875 0 0 1-1.875 1.875h-1.5a1.875 1.875 0 0 1-1.875-1.875v-1.125c0-.621-.504-1.125-1.125-1.125s-1.125.504-1.125 1.125v1.125c0 1.724 1.401 3.125 3.125 3.125h1.5c1.724 0 3.125-1.401 3.125-3.125V16.738c2.786-.272 4.875-2.64 4.875-5.488a3.001 3.001 0 0 0-3.375-2.753.978.978 0 0 1-.123-.932v-.462Z"],["stroke-linecap","round","stroke-linejoin","round","d","M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm4.5 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Z"],["stroke-linecap","round","stroke-linejoin","round","d","M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"],["stroke-linecap","round","stroke-linejoin","round","d","M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"],[1,"mt-16"],[1,"mt-12","grid","md:grid-cols-2","gap-8"],[1,"bg-gray-50","p-8","rounded-2xl","border","border-gray-200","hover:border-green-500","hover:-translate-y-1","transition-all","duration-300","flex","flex-col"],[1,"flex","items-center","space-x-4"],[1,"bg-green-100","p-3","rounded-lg","text-green-600"],[1,"text-sm","font-semibold","text-gray-500"],[1,"text-xl","font-bold","text-gray-900"],[1,"mt-4","text-gray-700"],[1,"mt-3","text-gray-500","text-sm","flex-grow"],["stroke-linecap","round","stroke-linejoin","round","d","M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"],["stroke-linecap","round","stroke-linejoin","round","d","M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h12A2.25 2.25 0 0 0 20.25 14.25V3M3.75 21h16.5M16.5 3.75h.008v.008h-.008V3.75Z"],["stroke-linecap","round","stroke-linejoin","round","d","M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.286Zm0 13.036h.008v.008h-.008v-.008Z"],["stroke-linecap","round","stroke-linejoin","round","d","M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"]],template:function(n,r){n&1&&(S(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),D(4,"L'informatique "),S(5,"span",4),D(6,"freine"),I(),D(7," votre croissance ?"),I(),S(8,"p",5),D(9," Pour une TPE, l'informatique est souvent un casse-t\xEAte co\xFBteux et n\xE9glig\xE9. Pourtant, une adresse email @gmail.com ou des donn\xE9es \xE9parpill\xE9es sur des services gratuits nuisent \xE0 votre cr\xE9dibilit\xE9 et exposent votre entreprise \xE0 des risques de s\xE9curit\xE9 majeurs. "),I()(),S(10,"div",6)(11,"div",7)(12,"div",8),he(),S(13,"svg",9),de(14,"path",10),I()(),Ee(),S(15,"p",11),D(16,"Gmail.com"),I()(),S(17,"div",7)(18,"div",8),he(),S(19,"svg",9),de(20,"path",12),I()(),Ee(),S(21,"p",11),D(22,"Outils informatiques dispers\xE9s"),I()(),S(23,"div",7)(24,"div",8),he(),S(25,"svg",9),de(26,"path",13),I()(),Ee(),S(27,"p",11),D(28,"L'informatique est une corv\xE9e"),I()(),S(29,"div",7)(30,"div",8),he(),S(31,"svg",9),de(32,"path",14),I()(),Ee(),S(33,"p",11),D(34,"Vous travaillez sans filet de s\xE9curit\xE9"),I()(),S(35,"div",7)(36,"div",8),he(),S(37,"svg",9),de(38,"path",15),I()(),Ee(),S(39,"p",11),D(40,"Aux normes, vraiment ?"),I()()(),S(41,"div",16)(42,"div",2)(43,"h2",3),D(44,"Reprenez le contr\xF4le. Simplement."),I()(),S(45,"div",17),Ma(46,yL,16,6,"div",18,hL),I()()()()),n&2&&(He(46),Ra(r.features()))},encapsulation:2,changeDetection:0})}};var wL=(t,e)=>e.name;function SL(t,e){t&1&&(S(0,"div",29)(1,"span",36),D(2,"Le plus populaire"),I()())}function xL(t,e){if(t&1&&(S(0,"div",28),Na(1,SL,3,0,"div",29),S(2,"h3",12),D(3),I(),S(4,"p",30),D(5),I(),de(6,"div",31),S(7,"div",32)(8,"p",33),D(9),I(),S(10,"p",34),D(11,"HT / mois / utilisateur"),I()(),S(12,"a",35),D(13," Choisir ce plan "),I()()),t&2){let n=e.$implicit;$u(n.isPopular?"bg-white border-green-500 scale-105":"bg-white border-gray-200 hover:border-gray-300"),He(),ka(n.isPopular?1:-1),He(2),zn(n.name),He(2),zn(n.description),He(4),Ts("",n.price,"\u20AC"),He(3),$u(n.isPopular?"bg-green-600 hover:bg-green-700 text-white":"bg-gray-800 hover:bg-gray-700 text-white")}}var Zu=class t{constructor(){this.plans=ki([{name:"Engagement 6 mois",price:60,description:"Flexibilit\xE9 maximale pour tester mon infrastructure.",isPopular:!1},{name:"Engagement 1 an",price:50,description:"L'\xE9quilibre parfait entre engagement et tarif avantageux.",isPopular:!1},{name:"Engagement 2 ans",price:40,description:"Mon offre la plus avantageuse pour un partenariat durable.",isPopular:!0}])}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=nt({type:t,selectors:[["app-pricing"]],decls:81,vars:0,consts:[["id","pricing",1,"py-20","sm:py-28","bg-gray-50"],[1,"container","mx-auto","px-6"],[1,"text-center","max-w-3xl","mx-auto"],[1,"text-3xl","md:text-4xl","font-bold","text-gray-900"],[1,"mt-4","text-gray-600","text-lg"],[1,"mt-12","text-center"],[1,"bg-white","inline-block","p-4","rounded-xl","border","border-gray-200"],[1,"text-lg","font-semibold","text-gray-900"],[1,"text-3xl","font-bold","text-green-600","mt-2"],[1,"text-base","font-normal","text-gray-500"],[1,"text-sm","text-gray-500","mt-2","max-w-sm","mx-auto"],[1,"mt-16","text-center"],[1,"text-2xl","font-bold","text-gray-900"],[1,"mt-8","grid","lg:grid-cols-3","gap-8","max-w-5xl","mx-auto"],[1,"relative","flex","flex-col","p-8","rounded-2xl","border","transition-all","duration-300",3,"class"],[1,"mt-20","max-w-3xl","mx-auto","text-center","bg-white","p-8","rounded-2xl","border","border-gray-200"],[1,"text-green-600","font-semibold","mt-2"],[1,"text-gray-500","font-normal"],[1,"mt-4","text-gray-600"],[1,"mt-12","max-w-3xl","mx-auto","text-center","bg-white","p-8","rounded-2xl","border","border-gray-200"],[1,"text-green-600"],[1,"mt-20","max-w-5xl","mx-auto"],[1,"text-center","text-3xl","font-bold","text-gray-900"],[1,"mt-8","bg-white","p-8","rounded-2xl","border","border-gray-200"],[1,"grid","md:grid-cols-2","gap-x-8","gap-y-6","text-gray-700","text-lg"],[1,"flex","items-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"w-6","h-6","mr-4","text-green-500","flex-shrink-0"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],[1,"relative","flex","flex-col","p-8","rounded-2xl","border","transition-all","duration-300"],[1,"absolute","top-0","-translate-y-1/2","w-full","flex","justify-center"],[1,"mt-2","text-gray-500","min-h-[40px]"],[1,"flex-grow"],[1,"mt-6"],[1,"text-5xl","font-extrabold","text-gray-900"],[1,"text-gray-500"],["href","#contact",1,"mt-8","block","w-full","text-center","font-semibold","py-3","px-6","rounded-lg","transition-colors"],[1,"bg-green-600","text-white","text-xs","font-bold","px-4","py-1","rounded-full","uppercase"]],template:function(n,r){n&1&&(S(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),D(4,"Un tarif simple et pr\xE9visible."),I(),S(5,"p",4),D(6," Une tarification transparente et abordable, con\xE7ue pour les TPE. Ma\xEEtrisez votre budget et profitez des services de grandes soci\xE9t\xE9s \xE0 prix r\xE9duit. "),I()(),S(7,"div",5)(8,"div",6)(9,"h3",7),D(10,"Frais de mise en service (Setup)"),I(),S(11,"p",8),D(12,"150\u20AC "),S(13,"span",9),D(14,"HT / utilisateur"),I()(),S(15,"p",10),D(16," Inclus: Achat domaine (Si disponible et a prix classique), configuration kSuite, migration des emails, script de s\xE9curit\xE9 PC, et formation au outils. "),I()()(),S(17,"div",11)(18,"h3",12),D(19,"Choisissez votre dur\xE9e d'engagement"),I()(),S(20,"div",13),Ma(21,xL,14,8,"div",14,wL),I(),S(23,"div",15)(24,"h3",12),D(25,'Option suppl\xE9mentaire : "Tranquillit\xE9 R\xE9seau"'),I(),S(26,"p",16),D(27,"+15\u20AC HT / mois "),S(28,"span",17),D(29,"(location mat\xE9riel)"),I(),D(30," + 100\u20AC HT Setup"),I(),S(31,"p",18),D(32," Renforcez et s\xE9curisez votre r\xE9seau Wi-Fi professionnel. Id\xE9al pour un Wi-Fi invit\xE9 s\xE9par\xE9, et une maintenance \xE0 distance incluse pour un diagnostic Rapide. "),I()(),S(33,"div",19)(34,"h3",12)(35,"span",20),D(36,"Pr\xE9cision :"),I(),D(37," Des tarifs si bas, comment c'est possible ?"),I(),S(38,"p",4),D(39," \xC0 l'inverse d'un IT classique, je ne vous propose pas de support. Ce qui vous permet de d\xE9velopper votre informatique \xE0 moindre co\xFBt. Je vous aide \xE9videmment en cas de questions (outils, information, renseignement sur l'achat de mat\xE9riel, etc...). "),I()(),S(40,"div",21)(41,"h3",22),D(42,"Un service unique, tout inclus."),I(),S(43,"div",23)(44,"div",24)(45,"div",25),he(),S(46,"svg",26),de(47,"path",27),I(),Ee(),S(48,"span")(49,"strong"),D(50,"Suite bureautique compl\xE8te"),I()()(),S(51,"div",25),he(),S(52,"svg",26),de(53,"path",27),I(),Ee(),S(54,"span")(55,"strong"),D(56,"Emails professionnels s\xE9curis\xE9s"),I()()(),S(57,"div",25),he(),S(58,"svg",26),de(59,"path",27),I(),Ee(),S(60,"span")(61,"strong"),D(62,"Stockage Cloud Souverain"),I()()(),S(63,"div",25),he(),S(64,"svg",26),de(65,"path",27),I(),Ee(),S(66,"span")(67,"strong"),D(68,"S\xE9curit\xE9 PC renforc\xE9e"),I()()(),S(69,"div",25),he(),S(70,"svg",26),de(71,"path",27),I(),Ee(),S(72,"span")(73,"strong"),D(74,"S\xE9curit\xE9 Web proactive"),I()()(),S(75,"div",25),he(),S(76,"svg",26),de(77,"path",27),I(),Ee(),S(78,"span")(79,"strong"),D(80,"Gestionnaire de mots de passe"),I()()()()()()()()),n&2&&(He(21),Ra(r.plans()))},encapsulation:2,changeDetection:0})}};var Xu=class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=nt({type:t,selectors:[["app-philosophy"]],decls:66,vars:0,consts:[["id","philosophy",1,"py-20","sm:py-28","bg-white"],[1,"container","mx-auto","px-6"],[1,"grid","lg:grid-cols-2","gap-12","items-center"],[1,"text-green-600","font-semibold"],[1,"text-3xl","md:text-4xl","font-bold","text-gray-900","mt-2"],[1,"mt-4","text-gray-600","text-lg"],[1,"mt-8","space-y-6"],[1,"flex","items-start","space-x-4"],[1,"bg-green-100","p-3","rounded-lg","text-green-600","mt-1"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"w-6","h-6"],["stroke-linecap","round","stroke-linejoin","round","d","M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"],[1,"text-xl","font-semibold","text-gray-900"],[1,"text-gray-500","mt-1"],["stroke-linecap","round","stroke-linejoin","round","d","M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25A2.25 2.25 0 0 1 5.25 3h4.5M12 3v13.5"],["stroke-linecap","round","stroke-linejoin","round","d","M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"],[1,"bg-gray-50","p-8","rounded-2xl","border","border-gray-200"],[1,"text-3xl","font-bold","text-gray-900","mt-2"],[1,"mt-4","text-gray-600"],[1,"mt-6","space-y-3","text-gray-700"],[1,"flex","items-start"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"w-5","h-5","mr-3","text-green-500","flex-shrink-0"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"]],template:function(n,r){n&1&&(S(0,"section",0)(1,"div",1)(2,"div",2)(3,"div")(4,"span",3),D(5,"Ma Philosophie"),I(),S(6,"h2",4),D(7,"La Forteresse Intelligente"),I(),S(8,"p",5),D(9,` "Je ne vous vends pas des outils de multinationale qui triplent la facture. Vous \xEAtes la cible de robots, pas d'espions." `),I(),S(10,"div",6)(11,"div",7)(12,"div",8),he(),S(13,"svg",9),de(14,"path",10),I()(),Ee(),S(15,"div")(16,"h3",11),D(17,"Navigation S\xE9curis\xE9e"),I(),S(18,"p",12),D(19,"Filtrage DNS (FlashStart \u{1F1EE}\u{1F1F9}) pour bloquer les sites malveillants avant m\xEAme qu'ils ne se chargent."),I()()(),S(20,"div",7)(21,"div",8),he(),S(22,"svg",9),de(23,"path",13),I()(),Ee(),S(24,"div")(25,"h3",11),D(26,"PC Verrouill\xE9"),I(),S(27,"p",12),D(28,"Durcissement de Windows Defender via script pour activer l'anti-ransomware et r\xE9duire la surface d'attaque."),I()()(),S(29,"div",7)(30,"div",8),he(),S(31,"svg",9),de(32,"path",14),I()(),Ee(),S(33,"div")(34,"h3",11),D(35,"Identit\xE9 Prot\xE9g\xE9e"),I(),S(36,"p",12),D(37,"Coffre-fort \xE0 mots de passe (Bitwarden) pour g\xE9rer et partager les acc\xE8s de mani\xE8re 100% s\xE9curis\xE9e."),I()()()()(),S(38,"div",15)(39,"span",3),D(40,"Mon Engagement"),I(),S(41,"h2",16),D(42,"La tech, simplement humaine."),I(),S(43,"p",17),D(44," Mon r\xF4le est de construire pour vous un environnement de travail fiable et performant. En s\xE9lectionnant et configurant les meilleurs outils, je vous offre une base solide pour am\xE9liorer votre productivit\xE9 et vous concentrer sur votre m\xE9tier, le tout \xE0 un tarif avantageux. "),I(),S(45,"ul",18)(46,"li",19),he(),S(47,"svg",20),de(48,"path",21),I(),Ee(),S(49,"span"),D(50,"Page de statut publique pour une transparence totale."),I()(),S(51,"li",19),he(),S(52,"svg",20),de(53,"path",21),I(),Ee(),S(54,"span"),D(55,"Des outils uniquement europ\xE9ens et suisse"),I()(),S(56,"li",19),he(),S(57,"svg",20),de(58,"path",21),I(),Ee(),S(59,"span"),D(60,"Un conseiller pour vos questions informatiques"),I()(),S(61,"li",19),he(),S(62,"svg",20),de(63,"path",21),I(),Ee(),S(64,"span"),D(65,"Un soutien concret : vous g\xE9rez votre projet, je pilote vos outils."),I()()()()()()())},encapsulation:2,changeDetection:0})}};var Ju=class t{constructor(){this.currentYear=new Date().getFullYear()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=nt({type:t,selectors:[["app-footer"]],decls:20,vars:1,consts:[["id","contact",1,"bg-gray-900","border-t","border-gray-800"],[1,"container","mx-auto","px-6","py-12"],[1,"text-center"],[1,"text-3xl","font-bold","text-white"],[1,"mt-4","max-w-2xl","mx-auto","text-gray-300"],[1,"mt-8"],["href","mailto:arthur@avony.be",1,"bg-green-600","hover:bg-green-700","text-white","font-bold","py-3","px-8","rounded-lg","transition-transform","hover:scale-105","inline-block"],[1,"mt-12","pt-8","border-t","border-gray-800"],[1,"font-semibold","text-white"],[1,"mt-2","max-w-lg","mx-auto","text-gray-400","text-sm"],[1,"mt-12","pt-8","border-t","border-gray-800","text-center","text-gray-400","text-sm"],[1,"mt-1"]],template:function(n,r){n&1&&(S(0,"footer",0)(1,"div",1)(2,"div",2)(3,"h2",3),D(4,"Pr\xEAt \xE0 reprendre le contr\xF4le ?"),I(),S(5,"p",4),D(6," Discutons de votre projet. Contactez-moi pour une analyse gratuite et d\xE9couvrez comment Avony peut vous aider \xE0 vous d\xE9velopper, avec une solution informatique puissante et abordable. "),I(),S(7,"div",5)(8,"a",6),D(9," Contactez-moi "),I()(),S(10,"div",7)(11,"h3",8),D(12,"Il vous en faut plus ?"),I(),S(13,"p",9),D(14," Vous n'\xEAtes plus une TPE ? Je peux vous rediriger vers des confr\xE8res qui sauront vous aider, avec du support en direct par exemple. "),I()()(),S(15,"div",10)(16,"p"),D(17),I(),S(18,"p",11),D(19,"Con\xE7u et d\xE9velopp\xE9 pour les TPE Belges."),I()()()()),n&2&&(He(17),Ts("\xA9 ",r.currentYear," Avony. Tous droits r\xE9serv\xE9s."))},encapsulation:2,changeDetection:0})}};var Ku=class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=nt({type:t,selectors:[["app-root"]],decls:7,vars:0,template:function(n,r){n&1&&(Fi(0,"app-header"),Pa(1,"main"),Fi(2,"app-hero")(3,"app-features")(4,"app-pricing")(5,"app-philosophy"),La(),Fi(6,"app-footer"))},dependencies:[Gu,Qu,Yu,Zu,Xu,Ju],encapsulation:2,changeDetection:0})}};tg(Ku,{providers:[jm()]}).catch(t=>console.error(t));