planx 20.48.0 → 20.48.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.main.mjs +1 -1
- package/blob.main.mjs +2 -2
- package/config.main.mjs +2 -2
- package/domain.main.mjs +2 -2
- package/exit.main.mjs +2 -2
- package/explorer.main.mjs +1 -1
- package/filesystem.main.mjs +2 -2
- package/llm.main.mjs +1 -1
- package/log.main.mjs +1 -1
- package/package.json +6 -6
- package/planx-networkd.main.mjs +1 -1
- package/presentation.main.mjs +1 -1
- package/session.main.mjs +1 -1
- package/transport.main.mjs +1 -1
package/config.main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
globalThis.__PLANX_SERVICE_VERSION__="20.48.
|
|
1
|
+
globalThis.__PLANX_SERVICE_VERSION__="20.48.8";
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
import _nodeUrl from "url";
|
|
4
4
|
import _nodePath from "path";
|
|
@@ -262,7 +262,7 @@ ${e.map(r=>`"${r.sourceSpan.toString()}"`).join(`
|
|
|
262
262
|
`)}
|
|
263
263
|
`.trim());if(t.some((r,n)=>e[n].constructor!==r.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var ltt=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function dtt(t){return t.split(ltt)[2]}var xme=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Cme(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),xme.has(t+"|"+e)||xme.has("*|"+e)}var ftt=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof wd&&(r instanceof J_&&n.i18n instanceof Ki&&(r.previousMessage=n.i18n),n.i18n=r),r},bM=class{keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(e=!1,r=!1,n=!0,i=!n){this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=r,this.preserveSignificantWhitespace=n,this.retainEmptyTokens=i}_generateI18nMessage(e,r="",n){let{meaning:i,description:s,customId:o}=this._parseMetadata(r),u=stt(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,i,s,o,n);return this._setMessageId(u,r),this._setLegacyIds(u,r),u}visitAllWithErrors(e){let r=e.map(n=>n.visit(this,null));return new yM(r,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,r){return this._visitElementLike(e),e}visitExpansion(e,r){let n,i=e.i18n;if(this.hasI18nMeta=!0,i instanceof J_){let s=i.name;n=this._generateI18nMessage([e],i);let o=wge(n);o.name=s,r!==null&&(r.placeholderToMessage[s]=n)}else n=this._generateI18nMessage([e],r||i);return e.i18n=n,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,r){return Sr(this,e.children,r),e}visitBlockParameter(e,r){return e}visitLetDeclaration(e,r){return e}visitDirective(e,r){return e}_visitElementLike(e){let r;if(IZe(e)){this.hasI18nMeta=!0;let n=[],i={};for(let s of e.attrs)if(s.name===Tge){let o=e.i18n||s.value,a=new Map,u=this.preserveSignificantWhitespace?e.children:Kc(new vM(!1,a),e.children);r=this._generateI18nMessage(u,o,ftt(a)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(s.name.startsWith(kU)){let o=s.name.slice(kU.length),a;e instanceof vs?a=e.tagName===null?!1:Cme(e.tagName,o):a=Cme(e.name,o),a?this._reportError(s,`Translating attribute '${o}' is disallowed for security reasons.`):i[o]=s.value}else n.push(s);if(Object.keys(i).length)for(let s of n){let o=i[s.name];o!==void 0&&s.value&&(s.i18n=this._generateI18nMessage([s],s.i18n||o))}this.keepI18nAttrs||(e.attrs=n)}Sr(this,e.children,r)}_parseMetadata(e){return typeof e=="string"?mtt(e):e instanceof Ki?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof Ki&&r.id||AYe(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[wYe(e),mge(e)];else if(typeof r!="string"){let n=r instanceof Ki?r:r instanceof J_?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new Re(e.sourceSpan,r))}},ptt="|",htt="@@";function mtt(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(htt),s=t.indexOf(ptt),o;[o,e]=i>-1?[t.slice(0,i),t.slice(i+2)]:[t,""],[r,n]=s>-1?[o.slice(0,s),o.slice(s+1)]:["",o]}return{customId:e,meaning:r,description:n}}function gtt(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}),BYe(e)}var ytt="goog.getMsg";function vtt(t,e,r,n){let i=btt(e),s=[C(i)];Object.keys(n).length&&(s.push(XU(HV(n,!0),!0)),s.push(XU({original_code:qo(Object.keys(n).map(u=>({key:wI(u),quoted:!0,value:e.placeholders[u]?C(e.placeholders[u].sourceSpan.toString()):C(e.placeholderToMessage[u].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=new Pn(r.name,vt(ytt).callFn(s),Ca,Vn.Final);o.addLeadingComment(gtt(e));let a=new wi(t.set(r));return[o,a]}var mV=class{formatPh(e){return`{$${wI(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return o0e(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,r){return this.formatPh(e.name)}},_tt=new mV;function btt(t){return t.nodes.map(e=>e.visit(_tt,null)).join("")}function Ett(t,e,r){let{messageParts:n,placeHolders:i}=Stt(e),s=Ttt(e),o=i.map(c=>r[c.text]),a=HYe(e,n,i,o,s),u=t.set(a);return[new wi(u)]}var gV=class{placeholderToMessage;pieces;constructor(e,r){this.placeholderToMessage=e,this.pieces=r}visitText(e){if(this.pieces[this.pieces.length-1]instanceof qg)this.pieces[this.pieces.length-1].text+=e.value;else{let r=new je(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new qg(e.value,r))}}visitContainer(e){e.children.forEach(r=>r.visit(this))}visitIcu(e){this.pieces.push(new qg(o0e(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(r=>r.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(r=>r.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,r,n){return new $_(wI(e,!1),r,n)}};function Stt(t){let e=[],r=new gV(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),Itt(e)}function Ttt(t){let e=t.nodes[0],r=t.nodes[t.nodes.length-1];return new je(e.sourceSpan.fullStart,r.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function Itt(t){let e=[],r=[];t[0]instanceof $_&&e.push(eU(t[0].sourceSpan.start));for(let n=0;n<t.length;n++){let i=t[n];i instanceof qg?e.push(i):(r.push(i),t[n-1]instanceof $_&&e.push(eU(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof $_&&e.push(eU(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function eU(t){return new qg("",new je(t,t))}var Ome="ngI18nClosureMode",wtt="i18n_",Att="I18N_EXP_",Pme="\uFFFD",xtt="MSG_";function Nme(t){return`${xtt}${t}`.toUpperCase()}function Ctt(t){return new Pn(t.name,void 0,Ca,void 0,t.sourceSpan)}function Ott(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",r=new Map,n=new Map,i=new Map,s=new Map;for(let u of t.units)for(let c of u.ops())if(c.kind===v.ExtractedAttribute&&c.i18nContext!==null){let l=r.get(c.i18nContext)??[];l.push(c),r.set(c.i18nContext,l)}else if(c.kind===v.I18nAttributes)n.set(c.target,c);else if(c.kind===v.I18nExpression&&c.usage===i0.I18nAttribute){let l=i.get(c.target)??[];l.push(c),i.set(c.target,l)}else c.kind===v.I18nMessage&&s.set(c.xref,c);let o=new Map,a=new Map;for(let u of t.units)for(let c of u.create)if(c.kind===v.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:l,statements:d}=h0e(t,e,s,c);if(c.i18nBlock!==null){let f=t.addConst(l,d);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...d),o.set(c.i18nContext,l);let f=r.get(c.i18nContext);if(f!==void 0)for(let p of f)p.expression=l.clone()}}L.remove(c)}for(let u of t.units)for(let c of u.create)if(qp(c)){let l=n.get(c.xref);if(l===void 0)continue;let d=i.get(c.xref);if(d===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;d=d.filter(m=>{let g=f.has(m.name);return f.add(m.name),!g});let p=d.flatMap(m=>{let g=o.get(m.context);if(g===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[C(m.name),g]});l.i18nAttributesConfig=t.addConst(new il(p))}for(let u of t.units)for(let c of u.create)if(c.kind===v.I18nStart){let l=a.get(c.root);if(l===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?");c.messageIndex=l}}function h0e(t,e,r,n){let i=[],s=new Map;for(let c of n.subMessages){let l=r.get(c),{mainVar:d,statements:f}=h0e(t,e,r,l);i.push(...f);let p=s.get(l.messagePlaceholder)??[];p.push(d),s.set(l.messagePlaceholder,p)}Ptt(n,s),n.params=new Map([...n.params.entries()].sort());let o=vt(t.pool.uniqueName(wtt)),a=Mtt(t.pool,n.message.id,e,t.i18nUseExternalIds),u;if(n.needsPostprocessing||n.postprocessingParams.size>0){let c=Object.fromEntries([...n.postprocessingParams.entries()].sort()),l=HV(c,!1),d=[];n.postprocessingParams.size>0&&d.push(XU(l,!0)),u=f=>Ee(T.i18nPostprocess).callFn([f,...d])}return i.push(...Ntt(n.message,o,a,n.params,u)),{mainVar:o,statements:i}}function Ptt(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,C(`${Pme}${Att}${r}${Pme}`)),t.postprocessingParams.set(r,nr(n)))}function Ntt(t,e,r,n,i){let s=Object.fromEntries(n),o=[Ctt(e),MM(Dtt(),vtt(e,t,r,s),Ett(e,t,HV(s,!1)))];return i&&o.push(new wi(e.set(i(e)))),o}function Dtt(){return TI(vt(Ome)).notIdentical(C("undefined",BV)).and(vt(Ome))}function Mtt(t,e,r,n){let i,s=r;if(n){let o=Nme("EXTERNAL_"),a=t.uniqueName(s);i=`${o}${kg(e)}$$${a}`}else{let o=Nme(s);i=t.uniqueName(o)}return vt(i)}function Rtt(t){for(let e of t.units){let r=null,n=null,i=new Map,s=new Map,o=new Map;for(let a of e.create)switch(a.kind){case v.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");r=a;break;case v.I18nEnd:r=null;break;case v.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");n=a;break;case v.IcuEnd:n=null;break;case v.Text:if(r!==null)if(i.set(a.xref,r),s.set(a.xref,n),a.icuPlaceholder!==null){let u=iJe(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);L.replace(a,u),o.set(a.xref,u)}else L.remove(a);break}for(let a of e.update)switch(a.kind){case v.InterpolateText:if(!i.has(a.target))continue;let u=i.get(a.target),c=s.get(a.target),l=o.get(a.target),d=c?c.context:u.context,f=c?eb.Postproccessing:eb.Creation,p=[];for(let m=0;m<a.interpolation.expressions.length;m++){let g=a.interpolation.expressions[m];p.push(Gge(d,u.xref,u.xref,u.handle,g,l?.xref??null,a.interpolation.i18nPlaceholders[m]??null,f,i0.I18nText,"",g.sourceSpan??a.sourceSpan))}L.replaceWithMany(a,p),l!==void 0&&(l.strings=a.interpolation.strings);break}}}function ktt(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case v.ElementStart:case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(r.numSlotsUsed+=r.localRefs.length,r.localRefs.length>0){let n=Ltt(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function Ltt(t){let e=[];for(let r of t)e.push(C(r.name),C(r.target));return nr(e)}function $tt(t){for(let e of t.units){let r=ii.HTML;for(let n of e.create)n.kind===v.ElementStart&&n.namespace!==r&&(L.insertBefore(YXe(n.namespace),n),r=n.namespace)}}function Ftt(t){let e=[],r=0,n=0,i=0,s=0,o=0,a=null;for(;r<t.length;)switch(t.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&t.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&t.charCodeAt(r-1)!==92&&(i=0);break;case 58:!a&&n===0&&i===0&&(a=m0e(t.substring(o,r-1).trim()),s=r);break;case 59:if(a&&s>0&&n===0&&i===0){let c=t.substring(s,r-1).trim();e.push(a,c),o=r,s=0,a=null}break}if(a&&s){let u=t.slice(s).trim();e.push(a,u)}return e}function m0e(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function jtt(t){let e=new Map;for(let r of t.units)for(let n of r.create)qp(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)if(n.kind===v.ExtractedAttribute&&n.bindingKind===ge.Attribute&&Wge(n.expression)){let i=e.get(n.target);if(i!==void 0&&(i.kind===v.Template||i.kind===v.ConditionalCreate||i.kind===v.ConditionalBranchCreate)&&i.templateKind===zi.Structural)continue;if(n.name==="style"){let s=Ftt(n.expression.value);for(let o=0;o<s.length-1;o+=2)L.insertBefore(eo(n.target,ge.StyleProperty,null,s[o],C(s[o+1]),null,null,rr.STYLE),n);L.remove(n)}else if(n.name==="class"){let s=n.expression.value.trim().split(/\s+/g);for(let o of s)L.insertBefore(eo(n.target,ge.ClassName,null,o,null,null,null,rr.NONE),n);L.remove(n)}}}function qtt(t){vT(t.root,t.componentName,{index:0},t.compatibility===Is.TemplateDefinitionBuilder)}function vT(t,e,r,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(kg(`${e}_${t.job.fnSuffix}`),!1));let i=new Map;for(let s of t.ops())switch(s.kind){case v.Property:case v.DomProperty:s.bindingKind===ge.LegacyAnimation&&(s.name="@"+s.name);break;case v.Animation:if(s.handlerFnName===null){let l=s.name.replace(".","");s.handlerFnName=`${t.fnName}_${l}_cb`,s.handlerFnName=kg(s.handlerFnName)}break;case v.AnimationListener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o=s.name.replace(".","");s.hostListener?s.handlerFnName=`${e}_${o}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${o}_${s.targetSlot.slot}_listener`,s.handlerFnName=kg(s.handlerFnName);break;case v.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let a="";s.isLegacyAnimationListener&&(s.name=`@${s.name}.${s.legacyAnimationPhase}`,a="animation"),s.hostListener?s.handlerFnName=`${e}_${a}${s.name}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${a}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=kg(s.handlerFnName);break;case v.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=kg(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case v.Variable:i.set(s.xref,Btt(t,s.variable,r));break;case v.RepeaterCreate:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let l=t.job.views.get(s.emptyView);vT(l,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,r,n)}vT(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,r,n);break;case v.Projection:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let l=t.job.views.get(s.fallbackView);vT(l,`${e}_ProjectionFallback_${s.handle.slot}`,r,n)}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");let u=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;vT(u,`${e}${c}_${s.handle.slot}`,r,n);break;case v.StyleProp:s.name=Utt(s.name),n&&(s.name=Dme(s.name));break;case v.ClassProp:n&&(s.name=Dme(s.name));break}for(let s of t.ops())Hn(s,o=>{if(!(!(o instanceof Td)||o.name!==null)){if(!i.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=i.get(o.xref)}})}function Btt(t,e,r){if(e.name===null)switch(e.kind){case On.Context:e.name=`ctx_r${r.index++}`;break;case On.Identifier:if(t.job.compatibility===Is.TemplateDefinitionBuilder){let n=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${n}r${++r.index}`}else e.name=`${e.identifier}_i${r.index++}`;break;default:e.name=`_r${++r.index}`;break}return e.name}function Utt(t){return t.startsWith("--")?t:m0e(t)}function Dme(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function Vtt(t){for(let e of t.units){for(let r of e.create)(r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener)&&Mme(r.handlerOps);Mme(e.update)}}function Mme(t){for(let e of t){if(e.kind!==v.Statement||!(e.statement instanceof wi)||!(e.statement.expr instanceof nM))continue;let r=e.statement.expr.steps,n=!0;for(let i=e.next;i.kind!==v.ListEnd&&n;i=i.next)Hn(i,(s,o)=>{if(!cl(s))return s;if(n&&!(o&Ct.InChildOperation))switch(s.kind){case Se.NextContext:s.steps+=r,L.remove(e),n=!1;break;case Se.GetCurrentView:case Se.Reference:case Se.ContextLetReference:n=!1;break}})}}var Htt="ng-container";function Gtt(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===v.ElementStart&&n.tag===Htt&&(n.kind=v.ContainerStart,r.add(n.xref)),n.kind===v.ElementEnd&&r.has(n.xref)&&(n.kind=v.ContainerEnd)}}function Wtt(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an element-like target.");return r}function Ktt(t){let e=new Map;for(let r of t.units)for(let n of r.create)qp(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)(n.kind===v.ElementStart||n.kind===v.ContainerStart)&&n.nonBindable&&L.insertAfter(WXe(n.xref),n),(n.kind===v.ElementEnd||n.kind===v.ContainerEnd)&&Wtt(e,n.xref).nonBindable&&L.insertBefore(KXe(n.xref),n)}function Zc(t){return e=>e.kind===t}function IT(t,e){return r=>r.kind===t&&e===r.expression instanceof Br}function ztt(t){return t.kind===v.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===v.TwoWayListener||t.kind===v.Animation||t.kind===v.AnimationListener}function Qtt(t){return(t.kind===v.Property||t.kind===v.TwoWayProperty)&&!(t.expression instanceof Br)}var Ytt=[{test:t=>t.kind===v.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:ztt}],Ztt=[{test:Zc(v.StyleMap),transform:EM},{test:Zc(v.ClassMap),transform:EM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)},{test:IT(v.Attribute,!0)},{test:IT(v.Property,!0)},{test:Qtt},{test:IT(v.Attribute,!1)},{test:Zc(v.Control)}],Xtt=[{test:IT(v.DomProperty,!0)},{test:IT(v.DomProperty,!1)},{test:Zc(v.Attribute)},{test:Zc(v.StyleMap),transform:EM},{test:Zc(v.ClassMap),transform:EM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)}],Rme=new Set([v.Listener,v.TwoWayListener,v.AnimationListener,v.StyleMap,v.ClassMap,v.StyleProp,v.ClassProp,v.Property,v.TwoWayProperty,v.DomProperty,v.Attribute,v.Animation,v.Control]);function Jtt(t){for(let e of t.units){kme(e.create,Ytt);let r=e.job.kind===ue.Host?Xtt:Ztt;kme(e.update,r)}}function kme(t,e){let r=[],n=null;for(let i of t){let s=uI(i)?i.target:null;(!Rme.has(i.kind)||s!==n&&n!==null&&s!==null)&&(L.insertBefore(Lme(r,e),i),r=[],n=null),Rme.has(i.kind)&&(r.push(i),L.remove(i),n=s??n)}t.push(Lme(r,e))}function Lme(t,e){let r=Array.from(e,()=>new Array);for(let n of t){let i=e.findIndex(s=>s.test(n));r[i].push(n)}return r.flatMap((n,i)=>{let s=e[i].transform;return s?s(n):n})}function EM(t){return t.slice(t.length-1)}function ert(t){for(let e of t.units){let r=r0e(e);for(let n of e.ops())if(n.kind===v.Binding){let i=rrt(r,n.target);trt(n.name)&&i.kind===v.Projection&&L.remove(n)}}}function trt(t){return t.toLowerCase()==="select"}function rrt(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function nrt(t){for(let e of t.units)irt(e)}function irt(t){for(let e of t.update)Hn(e,(r,n)=>{if(cl(r)&&r.kind===Se.PipeBinding){if(n&Ct.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");srt(t,e.target,r)}else t.create.push(Jge(r.target,r.targetSlot,r.name))}})}function srt(t,e,r){for(let n=t.create.head.next;n.kind!==v.ListEnd;n=n.next){if(!cb(n)||n.xref!==e)continue;for(;n.next.kind===v.Pipe;)n=n.next;let i=Jge(r.target,r.targetSlot,r.name);L.insertBefore(i,n.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${r.name}`)}function ort(t){for(let e of t.units)for(let r of e.update)ln(r,n=>!(n instanceof a0)||n.args.length<=4?n:new dI(n.target,n.targetSlot,n.name,nr(n.args),n.args.length),Ct.None)}function art(t){g0e(t.root,0)}function g0e(t,e){let r=null;for(let n of t.create)switch(n.kind){case v.I18nStart:n.subTemplateIndex=e===0?null:e,r=n;break;case v.I18nEnd:r.subTemplateIndex===null&&(e=0),r=null;break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:e=aD(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case v.RepeaterCreate:let i=t.job.views.get(n.xref);e=aD(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=aD(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case v.Projection:n.fallbackView!==null&&(e=aD(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function aD(t,e,r,n){if(r!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");n++,urt(t,e)}return g0e(t,n)}function urt(t,e){if(t.create.head.next?.kind!==v.I18nStart){let r=t.job.allocateXrefId();L.insertAfter(FM(r,e.message,e.root,null),t.create.head),L.insertBefore(jM(r,null),t.create.tail)}}function crt(t){for(let e of t.units)for(let r of e.ops())Hn(r,n=>{if(!(n instanceof o0)||n.body===null)return;let i=new yV(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var yV=class extends NT{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Fp?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,r){let n=[];for(let s=0;s<this.numArgs;s++)n.push(new si("a"+s));let i=fe(r,s=>s instanceof Fp?vt("a"+s.index):s,Ct.None);return new Pn(e,new zg(n,i),void 0,Vn.Final)}};function lrt(t){for(let e of t.units)for(let r of e.update)ln(r,(n,i)=>i&Ct.InChildOperation?n:n instanceof il?drt(n):n instanceof Na?frt(n):n,Ct.None)}function drt(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Yg){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Yg(new Fp(i)))}continue}if(n.isConstant())e.push(n);else{let i=r.length;r.push(n),e.push(new Fp(i))}}return new o0(nr(e),r)}function frt(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Pp){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Pp(new Fp(i)))}continue}if(n.value.isConstant())e.push(n);else{let i=r.length;r.push(n.value),e.push(new H_(n.key,new Fp(i),n.quoted))}}return new o0(new Na(e),r)}function prt(t){for(let e of t.units)for(let r of e.ops())ln(r,n=>n instanceof V_&&(n.flags===null||!n.flags.includes("g"))?t.pool.getSharedConstant(new vV,n):n,Ct.None)}var vV=class extends NT{toSharedConstantDeclaration(e,r){return new Pn(e,r,void 0,Vn.Final)}};function hrt(t,e,r,n,i){return Vp(T.element,t,e,r,n,i)}function mrt(t,e,r,n,i){return Vp(T.elementStart,t,e,r,n,i)}function Vp(t,e,r,n,i,s){let o=[C(e)];return r!==null&&o.push(C(r)),i!==null?o.push(C(n),C(i)):n!==null&&o.push(C(n)),ze(t,o,s)}function y0e(t,e,r,n,i,s,o,a,u){let c=[C(e),r,C(n),C(i),C(s),C(o)];for(a!==null&&(c.push(C(a)),c.push(Ee(T.templateRefExtractor)));c[c.length-1].isEquivalent(G_);)c.pop();return ze(t,c,u)}function tH(t,e,r,n,i){let s=[C(e)];return r instanceof Br?s.push(l0(r,i)):s.push(r),n!==null&&s.push(n),ze(t,s,i)}function grt(t){return ze(T.elementEnd,[],t)}function yrt(t,e,r,n){return Vp(T.elementContainerStart,t,null,e,r,n)}function vrt(t,e,r,n){return Vp(T.elementContainer,t,null,e,r,n)}function _rt(){return ze(T.elementContainerEnd,[],null)}function brt(t,e,r,n,i,s,o,a){return y0e(T.templateCreate,t,e,r,n,i,s,o,a)}function Ert(){return ze(T.disableBindings,[],null)}function Srt(){return ze(T.enableBindings,[],null)}function Trt(t,e,r,n,i){let s=[C(t),e];return r!==null&&s.push(Ee(r)),ze(n?T.syntheticHostListener:T.listener,s,i)}function $me(t,e){return Ee(T.twoWayBindingSet).callFn([t,e])}function Irt(t,e,r){return ze(T.twoWayListener,[C(t),e],r)}function wrt(t,e){return ze(T.pipe,[C(t),C(e)],null)}function Art(){return ze(T.namespaceHTML,[],null)}function xrt(){return ze(T.namespaceSVG,[],null)}function Crt(){return ze(T.namespaceMathML,[],null)}function Ort(t,e){return ze(T.advance,t>1?[C(t)]:[],e)}function Prt(t){return Ee(T.reference).callFn([C(t)])}function Nrt(t){return Ee(T.nextContext).callFn(t===1?[]:[C(t)])}function Drt(){return Ee(T.getCurrentView).callFn([])}function Mrt(t){return Ee(T.restoreView).callFn([t])}function Rrt(t){return Ee(T.resetView).callFn([t])}function krt(t,e,r){let n=[C(t,null)];return e!==""&&n.push(C(e)),ze(T.text,n,r)}function Lrt(t,e,r,n,i,s,o,a,u,c,l){let d=[C(t),C(e),r??C(null),C(n),C(i),C(s),o??C(null),a??C(null),u?Ee(T.deferEnableTimerScheduling):C(null),C(l)],f;for(;(f=d[d.length-1])!==null&&f instanceof ui&&f.value===null;)d.pop();return ze(T.defer,d,c)}var $rt=new Map([[tr.Idle,{none:T.deferOnIdle,prefetch:T.deferPrefetchOnIdle,hydrate:T.deferHydrateOnIdle}],[tr.Immediate,{none:T.deferOnImmediate,prefetch:T.deferPrefetchOnImmediate,hydrate:T.deferHydrateOnImmediate}],[tr.Timer,{none:T.deferOnTimer,prefetch:T.deferPrefetchOnTimer,hydrate:T.deferHydrateOnTimer}],[tr.Hover,{none:T.deferOnHover,prefetch:T.deferPrefetchOnHover,hydrate:T.deferHydrateOnHover}],[tr.Interaction,{none:T.deferOnInteraction,prefetch:T.deferPrefetchOnInteraction,hydrate:T.deferHydrateOnInteraction}],[tr.Viewport,{none:T.deferOnViewport,prefetch:T.deferPrefetchOnViewport,hydrate:T.deferHydrateOnViewport}],[tr.Never,{none:T.deferHydrateNever,prefetch:T.deferHydrateNever,hydrate:T.deferHydrateNever}]]);function Frt(t,e,r,n){let i=$rt.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return ze(i,e,n)}function jrt(t){return ze(T.projectionDef,t?[t]:[],null)}function qrt(t,e,r,n,i,s,o){let a=[C(t)];return(e!==0||r!==null||n!==null)&&(a.push(C(e)),r!==null&&a.push(r),n!==null&&(r===null&&a.push(C(null)),a.push(vt(n),C(i),C(s)))),ze(T.projection,a,o)}function Brt(t,e,r,n){let i=[C(t),C(e)];return r!==null&&i.push(C(r)),ze(T.i18nStart,i,n)}function Urt(t,e,r,n,i,s,o,a){let u=[C(t),e,C(r),C(n),C(i),C(s)];for(o!==null&&(u.push(C(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(G_);)u.pop();return ze(T.conditionalCreate,u,a)}function Vrt(t,e,r,n,i,s,o,a){let u=[C(t),e,C(r),C(n),C(i),C(s)];for(o!==null&&(u.push(C(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(G_);)u.pop();return ze(T.conditionalBranchCreate,u,a)}function Hrt(t,e,r,n,i,s,o,a,u,c,l,d,f,p){let m=[C(t),vt(e),C(r),C(n),C(i),C(s),o];return(a||u!==null)&&(m.push(C(a)),u!==null&&(m.push(vt(u),C(c),C(l)),(d!==null||f!==null)&&m.push(C(d)),f!==null&&m.push(C(f)))),ze(T.repeaterCreate,m,p)}function Grt(t,e){return ze(T.repeater,[t],e)}function Wrt(t,e,r){return t==="prefetch"?ze(T.deferPrefetchWhen,[e],r):t==="hydrate"?ze(T.deferHydrateWhen,[e],r):ze(T.deferWhen,[e],r)}function Krt(t,e){return ze(T.declareLet,[C(t)],e)}function zrt(t,e){return Ee(T.storeLet).callFn([t],e)}function Qrt(t){return Ee(T.readContextLet).callFn([C(t)])}function Yrt(t,e,r,n){let i=[C(t),C(e)];return r&&i.push(C(r)),ze(T.i18n,i,n)}function Zrt(t){return ze(T.i18nEnd,[],t)}function Xrt(t,e){let r=[C(t),C(e)];return ze(T.i18nAttributes,r,null)}function Jrt(t,e,r){return tH(T.ariaProperty,t,e,null,r)}function ent(t,e,r,n){return tH(T.property,t,e,r,n)}function tnt(t,e,r,n){let i=[];return e instanceof Br?i.push(l0(e,n)):i.push(e),i.push(C(t)),r!==null&&i.push(r),ze(T.control,i,n)}function rnt(t){return ze(T.controlCreate,[],t)}function nnt(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(r),ze(T.twoWayProperty,i,n)}function int(t,e,r,n,i){let s=[C(t)];return e instanceof Br?s.push(l0(e,i)):s.push(e),(r!==null||n!==null)&&s.push(r??C(null)),n!==null&&s.push(C(n)),ze(T.attribute,s,null)}function snt(t,e,r,n){let i=[C(t)];return e instanceof Br?i.push(l0(e,n)):i.push(e),r!==null&&i.push(C(r)),ze(T.styleProp,i,n)}function ont(t,e,r){return ze(T.classProp,[C(t),e],r)}function ant(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.styleMap,[r],e)}function unt(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.classMap,[r],e)}function cnt(t,e,r,n,i){return Vp(T.domElement,t,e,r,n,i)}function lnt(t,e,r,n,i){return Vp(T.domElementStart,t,e,r,n,i)}function dnt(t){return ze(T.domElementEnd,[],t)}function fnt(t,e,r,n){return Vp(T.domElementContainerStart,t,null,e,r,n)}function pnt(t,e,r,n){return Vp(T.domElementContainer,t,null,e,r,n)}function hnt(){return ze(T.domElementContainerEnd,[],null)}function mnt(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(Ee(r)),ze(T.domListener,i,n)}function gnt(t,e,r,n,i,s,o,a){return y0e(T.domTemplate,t,e,r,n,i,s,o,a)}var Fme=[T.pipeBind1,T.pipeBind2,T.pipeBind3,T.pipeBind4];function ynt(t,e,r){if(r.length<1||r.length>Fme.length)throw new Error("pipeBind() argument count out of bounds");let n=Fme[r.length-1];return Ee(n).callFn([C(t),C(e),...r])}function vnt(t,e,r){return Ee(T.pipeBindV).callFn([C(t),C(e),r])}function _nt(t,e,r){let n=v0e(t,e);return Mnt(Pnt,[],n,r)}function bnt(t,e){return ze(T.i18nExp,[t],e)}function Ent(t,e){return ze(T.i18nApply,[C(t)],e)}function Snt(t,e,r,n){return tH(T.domProperty,t,e,r,n)}function Tnt(t,e,r,n){let i=[e];r!==null&&i.push(r);let s=t==="enter"?T.animationEnter:T.animationLeave;return ze(s,i,n)}function Int(t,e,r,n){let s=[e instanceof Br?l0(e,n):e];r!==null&&s.push(r);let o=t==="enter"?T.animationEnter:T.animationLeave;return ze(o,s,n)}function wnt(t,e,r,n){let i=[e],s=t==="enter"?T.animationEnterListener:T.animationLeaveListener;return ze(s,i,n)}function Ant(t,e,r){return ze(T.syntheticHostProperty,[C(t),e],r)}function xnt(t,e,r){return rH(Dnt,[C(t),e],r,null)}function Cnt(t,e){return ze(T.attachSourceLocations,[C(t),e],null)}function v0e(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 r=[];if(e.length===1&&t[0]===""&&t[1]==="")r.push(e[0]);else{let n;for(n=0;n<e.length;n++)r.push(C(t[n]),e[n]);r.push(C(t[n]))}return r}function l0(t,e){let r=v0e(t.strings,t.expressions);return rH(Nnt,[],r,e)}function ze(t,e,r){let n=Ee(t).callFn(e,r);return Bo(new wi(n,r))}function Ont(t,e,r){let n=[t];return e!==null&&n.push(e),ze(T.conditional,n,r)}var Pnt={constant:[T.textInterpolate,T.textInterpolate1,T.textInterpolate2,T.textInterpolate3,T.textInterpolate4,T.textInterpolate5,T.textInterpolate6,T.textInterpolate7,T.textInterpolate8],variable:T.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Nnt={constant:[T.interpolate,T.interpolate1,T.interpolate2,T.interpolate3,T.interpolate4,T.interpolate5,T.interpolate6,T.interpolate7,T.interpolate8],variable:T.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Dnt={constant:[T.pureFunction0,T.pureFunction1,T.pureFunction2,T.pureFunction3,T.pureFunction4,T.pureFunction5,T.pureFunction6,T.pureFunction7,T.pureFunction8],variable:T.pureFunctionV,mapping:t=>t};function rH(t,e,r,n){let i=t.mapping(r.length),s=r.at(-1);if(r.length>1&&s instanceof ui&&s.value===""&&r.pop(),i<t.constant.length)return Ee(t.constant[i]).callFn([...e,...r],n);if(t.variable!==null)return Ee(t.variable).callFn([...e,nr(r)],n);throw new Error("AssertionError: unable to call variadic function")}function Mnt(t,e,r,n){return Bo(rH(t,e,r,n).toStmt())}var Rnt=new Map([["window",T.resolveWindow],["document",T.resolveDocument],["body",T.resolveBody]]),knt=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function Lnt(t){for(let e of t.units)$nt(e,e.create),nH(e,e.update)}function $nt(t,e){for(let r of e)switch(ln(r,_0e,Ct.None),r.kind){case v.Text:L.replace(r,krt(r.handle.slot,r.initialValue,r.sourceSpan));break;case v.ElementStart:L.replace(r,t.job.mode===Gi.DomOnly?lnt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):mrt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Element:L.replace(r,t.job.mode===Gi.DomOnly?cnt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):hrt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ElementEnd:L.replace(r,t.job.mode===Gi.DomOnly?dnt(r.sourceSpan):grt(r.sourceSpan));break;case v.ContainerStart:L.replace(r,t.job.mode===Gi.DomOnly?fnt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):yrt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Container:L.replace(r,t.job.mode===Gi.DomOnly?pnt(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):vrt(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ContainerEnd:L.replace(r,t.job.mode===Gi.DomOnly?hnt():_rt());break;case v.I18nStart:L.replace(r,Brt(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nEnd:L.replace(r,Zrt(r.sourceSpan));break;case v.I18n:L.replace(r,Yrt(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nAttributes:if(r.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");L.replace(r,Xrt(r.handle.slot,r.i18nAttributesConfig));break;case v.Template:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let n=t.job.views.get(r.xref);L.replace(r,r.templateKind===zi.Block||t.job.mode===Gi.DomOnly?gnt(r.handle.slot,vt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):brt(r.handle.slot,vt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.DisableBindings:L.replace(r,Ert());break;case v.EnableBindings:L.replace(r,Srt());break;case v.Pipe:L.replace(r,wrt(r.handle.slot,r.name));break;case v.DeclareLet:L.replace(r,Krt(r.handle.slot,r.sourceSpan));break;case v.AnimationString:L.replace(r,Int(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case v.Animation:let i=uD(t,r.handlerFnName,r.handlerOps,!1);L.replace(r,Tnt(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case v.AnimationListener:let s=uD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);L.replace(r,wnt(r.animationKind,s,null,r.sourceSpan));break;case v.Listener:let o=uD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),a=r.eventTarget?Rnt.get(r.eventTarget):null;if(a===void 0)throw new Error(`Unexpected global target '${r.eventTarget}' defined for '${r.name}' event. Supported list of global targets: window,document,body.`);L.replace(r,t.job.mode===Gi.DomOnly&&!r.hostListener&&!r.isLegacyAnimationListener?mnt(r.name,o,a,r.sourceSpan):Trt(r.name,o,a,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case v.TwoWayListener:L.replace(r,Irt(r.name,uD(t,r.handlerFnName,r.handlerOps,!0),r.sourceSpan));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,Bo(new Pn(r.variable.name,r.initializer,void 0,Vn.Final)));break;case v.Namespace:switch(r.active){case ii.HTML:L.replace(r,Art());break;case ii.SVG:L.replace(r,xrt());break;case ii.Math:L.replace(r,Crt());break}break;case v.Defer:let u=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;L.replace(r,Lrt(r.handle.slot,r.mainSlot.slot,r.resolverFn,r.loadingSlot?.slot??null,r.placeholderSlot?.slot??null,r.errorSlot?.slot??null,r.loadingConfig,r.placeholderConfig,u,r.sourceSpan,r.flags));break;case v.DeferOn:let c=[];switch(r.trigger.kind){case tr.Never:case tr.Idle:case tr.Immediate:break;case tr.Timer:c=[C(r.trigger.delay)];break;case tr.Viewport:r.modifier==="hydrate"?c=r.trigger.options?[r.trigger.options]:[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0?c.push(C(r.trigger.targetSlotViewSteps)):r.trigger.options&&c.push(C(null)),r.trigger.options&&c.push(r.trigger.options));break;case tr.Interaction:case tr.Hover:r.modifier==="hydrate"?c=[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0&&c.push(C(r.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${r.trigger.kind}`)}L.replace(r,Frt(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case v.ProjectionDef:L.replace(r,jrt(r.def));break;case v.Projection:if(r.handle.slot===null)throw new Error("No slot was assigned for project instruction");let l=null,d=null,f=null;if(r.fallbackView!==null){if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");let x=t.job.views.get(r.fallbackView);if(x===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(x.fnName===null||x.decls===null||x.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");l=x.fnName,d=x.decls,f=x.vars}L.replace(r,qrt(r.handle.slot,r.projectionSlotIndex,r.attributes,l,d,f,r.sourceSpan));break;case v.ConditionalCreate:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let p=t.job.views.get(r.xref);L.replace(r,Urt(r.handle.slot,vt(p.fnName),p.decls,p.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.ConditionalBranchCreate:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let m=t.job.views.get(r.xref);L.replace(r,Vrt(r.handle.slot,vt(m.fnName),m.decls,m.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.RepeaterCreate:if(r.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");let g=t.job.views.get(r.xref);if(g.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let y=null,_=null,b=null;if(r.emptyView!==null){let x=t.job.views.get(r.emptyView);if(x===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(x.fnName===null||x.decls===null||x.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");y=x.fnName,_=x.decls,b=x.vars}L.replace(r,Hrt(r.handle.slot,g.fnName,r.decls,r.vars,r.tag,r.attributes,qnt(t,r),r.usesComponentInstance,y,_,b,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case v.SourceLocation:let S=nr(r.locations.map(({targetSlot:x,offset:M,line:se,column:ye})=>{if(x.slot===null)throw new Error("No slot was assigned for source location");return nr([C(x.slot),C(M),C(se),C(ye)])}));L.replace(r,Cnt(r.templatePath,S));break;case v.ControlCreate:L.replace(r,rnt(r.sourceSpan));break;case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${v[r.kind]}`)}}function nH(t,e){for(let r of e)switch(ln(r,_0e,Ct.None),r.kind){case v.Advance:L.replace(r,Ort(r.delta,r.sourceSpan));break;case v.Property:L.replace(r,t.job.mode===Gi.DomOnly&&r.bindingKind!==ge.LegacyAnimation&&r.bindingKind!==ge.Animation?jme(r):Fnt(r));break;case v.Control:L.replace(r,jnt(r));break;case v.TwoWayProperty:L.replace(r,nnt(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case v.StyleProp:L.replace(r,snt(r.name,r.expression,r.unit,r.sourceSpan));break;case v.ClassProp:L.replace(r,ont(r.name,r.expression,r.sourceSpan));break;case v.StyleMap:L.replace(r,ant(r.expression,r.sourceSpan));break;case v.ClassMap:L.replace(r,unt(r.expression,r.sourceSpan));break;case v.I18nExpression:L.replace(r,bnt(r.expression,r.sourceSpan));break;case v.I18nApply:L.replace(r,Ent(r.handle.slot,r.sourceSpan));break;case v.InterpolateText:L.replace(r,_nt(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case v.Attribute:L.replace(r,int(r.name,r.expression,r.sanitizer,r.namespace,r.sourceSpan));break;case v.DomProperty:if(r.expression instanceof Br)throw new Error("not yet handled");r.bindingKind===ge.LegacyAnimation||r.bindingKind===ge.Animation?L.replace(r,Ant(r.name,r.expression,r.sourceSpan)):L.replace(r,jme(r));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,Bo(new Pn(r.variable.name,r.initializer,void 0,Vn.Final)));break;case v.Conditional:if(r.processed===null)throw new Error("Conditional test was not set.");L.replace(r,Ont(r.processed,r.contextValue,r.sourceSpan));break;case v.Repeater:L.replace(r,Grt(r.collection,r.sourceSpan));break;case v.DeferWhen:L.replace(r,Wrt(r.modifier,r.expr,r.sourceSpan));break;case v.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${r.declaredName}`);case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${v[r.kind]}`)}}function jme(t){return Snt(knt.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function Fnt(t){return n0e(t.name)?Jrt(t.name,t.expression,t.sourceSpan):ent(t.name,t.expression,t.sanitizer,t.sourceSpan)}function jnt(t){return tnt(t.name,t.expression,t.sanitizer,t.sourceSpan)}function _0e(t){if(!cl(t))return t;switch(t.kind){case Se.NextContext:return Nrt(t.steps);case Se.Reference:return Prt(t.targetSlot.slot+1+t.offset);case Se.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case Se.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case Se.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return Mrt(t.view);case Se.ResetView:return Rrt(t.expr);case Se.GetCurrentView:return Drt();case Se.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return vt(t.name);case Se.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return vt(t.name);case Se.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return vt(t.name).set(t.expr);case Se.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return xnt(t.varOffset,t.fn,t.args);case Se.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case Se.PipeBinding:return ynt(t.targetSlot.slot,t.varOffset,t.args);case Se.PipeBindingVariadic:return vnt(t.targetSlot.slot,t.varOffset,t.args);case Se.SlotLiteralExpr:return C(t.slot.slot);case Se.ContextLetReference:return Qrt(t.targetSlot.slot);case Se.StoreLet:return zrt(t.value,t.sourceSpan);case Se.TrackContext:return vt("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${Se[t.kind]}`)}}function uD(t,e,r,n){nH(t,r);let i=[];for(let o of r){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[o.kind]}`);i.push(o.statement)}let s=[];return n&&s.push(new si("$event")),Np(s,i,void 0,void 0,e)}function qnt(t,e){if(e.trackByFn!==null)return e.trackByFn;let r=[new si("$index"),new si("$item")],n;if(e.trackByOps===null)n=e.usesComponentInstance?Np(r,[new oi(e.track)]):sl(r,e.track);else{nH(t,e.trackByOps);let i=[];for(let s of e.trackByOps){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[s.kind]}`);i.push(s.statement)}n=e.usesComponentInstance||i.length!==1||!(i[0]instanceof oi)?Np(r,i):sl(r,i[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(n,"_forTrack"),e.trackByFn}function Bnt(t){for(let e of t.units)for(let r of e.update)switch(r.kind){case v.Attribute:case v.Binding:case v.ClassProp:case v.ClassMap:case v.Property:case v.StyleProp:case v.StyleMap:r.expression instanceof fI&&L.remove(r);break}}function Unt(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case v.I18nContext:L.remove(r);break;case v.I18nStart:r.context=null;break}}function Vnt(t){for(let e of t.units)for(let r of e.update){if(r.kind!==v.Variable||r.variable.kind!==On.Identifier||!(r.initializer instanceof cI))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==v.ListEnd;)ln(i,s=>s instanceof ri&&s.name===n?C(void 0):s,Ct.None),i=i.prev}}function Hnt(t){for(let e of t.units){let r=new Set;for(let n of e.update)n.kind===v.I18nExpression&&r.add(n.i18nOwner);for(let n of e.create)switch(n.kind){case v.I18nAttributes:if(r.has(n.xref))continue;L.remove(n)}}}function Gnt(t){for(let e of t.units)SM(e,e.create),SM(e,e.update)}function SM(t,e){let r=new Map;r.set(t.xref,vt("ctx"));for(let n of e)switch(n.kind){case v.Variable:n.variable.kind===On.Context&&r.set(n.variable.view,new Td(n.xref));break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:SM(t,n.handlerOps);break;case v.RepeaterCreate:n.trackByOps!==null&&SM(t,n.trackByOps);break}t===t.job.root&&r.set(t.xref,vt("ctx"));for(let n of e)ln(n,i=>{if(i instanceof $p){if(!r.has(i.view))throw new Error(`No context found for reference to view ${i.view} from view ${t.xref}`);return r.get(i.view)}else return i},Ct.None)}function Wnt(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.Defer){if(r.resolverFn!==null)continue;if(r.ownResolverFn!==null){if(r.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let n=e.fnName?.replace("_Template","");r.resolverFn=t.pool.getSharedFunctionReference(r.ownResolverFn,`${n}_Defer_${r.handle.slot}_DepsFn`,!1)}}}function Knt(t){for(let e of t.units)qme(e.create),qme(e.update)}function qme(t){for(let e of t)(e.kind===v.Listener||e.kind===v.TwoWayListener||e.kind===v.AnimationListener)&&ln(e,r=>r instanceof ri&&r.name==="$event"?((e.kind===v.Listener||e.kind===v.AnimationListener)&&(e.consumesDollarEvent=!0),new Oa(r.name)):r,Ct.InChildOperation)}function znt(t){let e=new Map,r=new Map;for(let n of t.units)for(let i of n.create)switch(i.kind){case v.I18nContext:e.set(i.xref,i);break;case v.ElementStart:r.set(i.xref,i);break}zc(t,t.root,e,r)}function zc(t,e,r,n,i){let s=null,o=new Map;for(let a of e.create)switch(a.kind){case v.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");s={i18nBlock:a,i18nContext:r.get(a.context)};break;case v.I18nEnd:s=null;break;case v.ElementStart:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Bme(a,s.i18nContext,s.i18nBlock,i),i&&a.i18nPlaceholder.closeName&&o.set(a.xref,i),i=void 0}break;case v.ElementEnd:let u=n.get(a.xref);if(u&&u.i18nPlaceholder!==void 0){if(s===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Ume(u,s.i18nContext,s.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case v.Projection:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Bme(a,s.i18nContext,s.i18nBlock,i),Ume(a,s.i18nContext,s.i18nBlock,i),i=void 0}if(a.fallbackView!==null){let f=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)zc(t,f,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");cD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,f,r,n),lD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:let c=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)zc(t,c,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===zi.Structural?zc(t,c,r,n,a):(cD(t,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,c,r,n),lD(t,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0)}break;case v.RepeaterCreate:if(i!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let l=a.handle.slot+1,d=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)zc(t,d,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");cD(t,d,l,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,d,r,n),lD(t,d,l,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,p=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)zc(t,p,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");cD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,p,r,n),lD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}}break}}function Bme(t,e,r,n){let{startName:i,closeName:s}=t.i18nPlaceholder,o=lr.ElementTag|lr.OpenTag,a=t.handle.slot;n!==void 0&&(o|=lr.TemplateTag,a={element:a,template:n.handle.slot}),s||(o|=lr.CloseTag),ob(e.params,i,a,r.subTemplateIndex,o)}function Ume(t,e,r,n){let{closeName:i}=t.i18nPlaceholder;if(i){let s=lr.ElementTag|lr.CloseTag,o=t.handle.slot;n!==void 0&&(s|=lr.TemplateTag,o={element:o,template:n.handle.slot}),ob(e.params,i,o,r.subTemplateIndex,s)}}function cD(t,e,r,n,i,s,o){let{startName:a,closeName:u}=n,c=lr.TemplateTag|lr.OpenTag;u||(c|=lr.CloseTag),o!==void 0&&ob(i.params,a,o.handle.slot,s.subTemplateIndex,c),ob(i.params,a,r,b0e(t,s,e),c)}function lD(t,e,r,n,i,s,o){let{closeName:a}=n,u=lr.TemplateTag|lr.CloseTag;a&&(ob(i.params,a,r,b0e(t,s,e),u),o!==void 0&&ob(i.params,a,o.handle.slot,s.subTemplateIndex,u))}function b0e(t,e,r){for(let n of r.create)if(n.kind===v.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function ob(t,e,r,n,i){let s=t.get(e)??[];s.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,s)}function Qnt(t){let e=new Map,r=new Map,n=new Map;for(let o of t.units)for(let a of o.create)switch(a.kind){case v.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case v.I18nContext:r.set(a.xref,a);break;case v.IcuPlaceholder:n.set(a.xref,a);break}let i=new Map,s=o=>o.usage===i0.I18nText?o.i18nOwner:o.context;for(let o of t.units)for(let a of o.update)if(a.kind===v.I18nExpression){let u=i.get(s(a))||0,c=e.get(a.i18nOwner)??null,l={value:u,subTemplateIndex:c,flags:lr.ExpressionIndex};Ynt(a,l,r,n),i.set(s(a),u+1)}}function Ynt(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),s=t.resolutionTime===eb.Creation?i.params:i.postprocessingParams,o=s.get(t.i18nPlaceholder)||[];o.push(e),s.set(t.i18nPlaceholder,o)}t.icuPlaceholder!==null&&n.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function Znt(t){for(let e of t.units)TM(e,e.create,null),TM(e,e.update,null)}function TM(t,e,r){let n=new Map,i=new Map;for(let s of e)switch(s.kind){case v.Variable:switch(s.variable.kind){case On.Identifier:if(s.variable.local){if(i.has(s.variable.identifier))continue;i.set(s.variable.identifier,s.xref)}else if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case On.Alias:if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case On.SavedView:r={view:s.variable.view,variable:s.xref};break}break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:TM(t,s.handlerOps,r);break;case v.RepeaterCreate:s.trackByOps!==null&&TM(t,s.trackByOps,r);break}for(let s of e)s.kind==v.Listener||s.kind===v.TwoWayListener||s.kind===v.Animation||s.kind===v.AnimationListener||ln(s,o=>{if(o instanceof ri)return i.has(o.name)?new Td(i.get(o.name)):n.has(o.name)?new Td(n.get(o.name)):new ao(new $p(t.job.root.xref),o.name);if(o instanceof iM&&typeof o.view=="number"){if(r===null||r.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new Td(r.variable),o}else return o},Ct.None);for(let s of e)Hn(s,o=>{if(o instanceof ri)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var Xnt=new Map([[rr.HTML,T.sanitizeHtml],[rr.RESOURCE_URL,T.sanitizeResourceUrl],[rr.SCRIPT,T.sanitizeScript],[rr.STYLE,T.sanitizeStyle],[rr.URL,T.sanitizeUrl],[rr.ATTRIBUTE_NO_BINDING,T.validateAttribute]]),Jnt=new Map([[rr.HTML,T.trustConstantHtml],[rr.RESOURCE_URL,T.trustConstantResourceUrl]]);function eit(t){for(let e of t.units){if(t.kind!==ue.Host){for(let r of e.create)if(r.kind===v.ExtractedAttribute){let n=Jnt.get(Vme(r.securityContext))??null;r.trustedValueFn=n!==null?Ee(n):null}}for(let r of e.update)switch(r.kind){case v.Property:case v.Attribute:case v.DomProperty:let n=null;Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.includes(rr.URL)&&r.securityContext.includes(rr.RESOURCE_URL)?n=T.sanitizeUrlOrResourceUrl:n=Xnt.get(Vme(r.securityContext))??null,r.sanitizer=n!==null?Ee(n):null;break}}}function Vme(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||rr.NONE}return t}function tit(t){for(let e of t.units){e.create.prepend([Ap(e.job.allocateXrefId(),{kind:On.SavedView,name:null,view:e.xref},new KU,ro.None)]);for(let r of e.create){if(r.kind!==v.Listener&&r.kind!==v.TwoWayListener&&r.kind!==v.Animation&&r.kind!==v.AnimationListener)continue;let n=e!==t.root;if(!n)for(let i of r.handlerOps)Hn(i,s=>{(s instanceof rM||s instanceof lI)&&(n=!0)});n&&rit(e,r)}}}function rit(t,e){e.handlerOps.prepend([Ap(t.job.allocateXrefId(),{kind:On.Context,name:null,view:t.xref},new iM(t.xref),ro.None)]);for(let r of e.handlerOps)r.kind===v.Statement&&r.statement instanceof oi&&(r.statement.value=new zU(r.statement.value))}function nit(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)cb(i)&&(i.handle.slot=n,e.set(i.xref,i.handle.slot),n+=i.numSlotsUsed);r.decls=n}for(let r of t.units)for(let n of r.ops())if(n.kind===v.Template||n.kind===v.ConditionalCreate||n.kind===v.ConditionalBranchCreate||n.kind===v.RepeaterCreate){let i=t.views.get(n.xref);n.decls=i.decls}}function iit(t){let e=new Set,r=new Map;for(let n of t.units)for(let i of n.ops())i.kind===v.DeclareLet&&r.set(i.xref,i),Hn(i,s=>{s instanceof lI&&e.add(s.target)});for(let n of t.units)for(let i of n.update)ln(i,s=>s instanceof cI&&!e.has(s.target)?(sit(s)||L.remove(r.get(s.target)),s.value):s,Ct.None)}function sit(t){let e=!1;return fe(t,r=>((r instanceof a0||r instanceof dI)&&(e=!0),r),Ct.None),e}function oit(t){let e=new Set;for(let r of t.units)for(let n of r.ops())Hn(n,i=>{if(i instanceof Tt)switch(i.operator){case H.Exponentiation:ait(i,e);break;case H.NullishCoalesce:uit(i,e);break;case H.And:case H.Or:cit(i,e)}});for(let r of t.units)for(let n of r.ops())ln(n,i=>i instanceof Pa?e.has(i)?i:i.expr:i,Ct.None)}function ait(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Qg&&e.add(t.lhs)}function uit(t,e){t.lhs instanceof Pa&&(Hme(t.lhs.expr)||t.lhs.expr instanceof nl)&&e.add(t.lhs),t.rhs instanceof Pa&&(Hme(t.rhs.expr)||t.rhs.expr instanceof nl)&&e.add(t.rhs)}function cit(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Tt&&t.lhs.expr.operator===H.NullishCoalesce&&e.add(t.lhs)}function Hme(t){return t instanceof Tt&&(t.operator===H.And||t.operator===H.Or)}function lit(t){for(let e of t.units)for(let r of e.update)if(r.kind===v.Binding)switch(r.bindingKind){case ge.ClassName:if(r.expression instanceof Br)throw new Error("Unexpected interpolation in ClassName binding");L.replace(r,MXe(r.target,r.name,r.expression,r.sourceSpan));break;case ge.StyleProperty:L.replace(r,DXe(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case ge.Property:case ge.Template:r.name==="style"?L.replace(r,RXe(r.target,r.expression,r.sourceSpan)):r.name==="class"&&L.replace(r,kXe(r.target,r.expression,r.sourceSpan));break}}function dit(t){for(let e of t.units)e.create.prepend(IM(e.create)),e.update.prepend(IM(e.update))}function IM(t){let e=0,r=[];for(let n of t){let i=new Map;Hn(n,(c,l)=>{l&Ct.InChildOperation||c instanceof jp&&i.set(c.xref,c)});let s=0,o=new Set,a=new Set,u=new Map;Hn(n,(c,l)=>{l&Ct.InChildOperation||(c instanceof ll?(o.has(c.xref)||(o.add(c.xref),u.set(c.xref,`tmp_${e}_${s++}`)),Gme(u,c)):c instanceof jp&&(i.get(c.xref)===c&&(a.add(c.xref),s--),Gme(u,c)))}),r.push(...Array.from(new Set(u.values())).map(c=>Bo(new Pn(c)))),e++,n.kind===v.Listener||n.kind===v.Animation||n.kind===v.AnimationListener||n.kind===v.TwoWayListener?n.handlerOps.prepend(IM(n.handlerOps)):n.kind===v.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(IM(n.trackByOps))}return r}function Gme(t,e){let r=t.get(e.xref);if(r===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=r}function fit(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.RepeaterCreate)if(r.track instanceof Oa&&r.track.name==="$index")r.trackByFn=Ee(T.repeaterTrackByIndex);else if(r.track instanceof Oa&&r.track.name==="$item")r.trackByFn=Ee(T.repeaterTrackByIdentity);else if(pit(t.root.xref,r.track))r.usesComponentInstance=!0,r.track.receiver.receiver.view===e.xref?r.trackByFn=r.track.receiver:(r.trackByFn=Ee(T.componentInstance).callFn([]).prop(r.track.receiver.name),r.track=r.trackByFn);else{r.track=fe(r.track,i=>{if(i instanceof a0||i instanceof dI)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof $p?(r.usesComponentInstance=!0,new WU(i.view)):i},Ct.None);let n=new L;n.push(Bo(new oi(r.track,r.track.sourceSpan))),r.trackByOps=n}}function pit(t,e){if(!(e instanceof Ts)||e.args.length===0||e.args.length>2||!(e.receiver instanceof ao&&e.receiver.receiver instanceof $p)||e.receiver.receiver.view!==t)return!1;let[r,n]=e.args;return!(r instanceof Oa)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof Oa)||n.name!=="$item")}function hit(t){for(let e of t.units)for(let r of e.create)r.kind===v.RepeaterCreate&&(r.track=fe(r.track,n=>{if(n instanceof ri){if(r.varNames.$index.has(n.name))return vt("$index");if(n.name===r.varNames.$implicit)return vt("$item")}return n},Ct.None))}function mit(t){for(let e of t.units)for(let r of e.create)r.kind===v.TwoWayListener&&ln(r,n=>{if(!(n instanceof sM))return n;let{target:i,value:s}=n;if(i instanceof ao||i instanceof Id)return $me(i,s).or(i.set(s));if(i instanceof Td)return $me(i,s);throw new Error("Unsupported expression in two-way action binding.")},Ct.InChildOperation)}function git(t){for(let e of t.units){let r=0;for(let n of e.ops())YB(n)&&(r+=yit(n));for(let n of e.ops())Hn(n,i=>{cl(i)&&(t.compatibility===Is.TemplateDefinitionBuilder&&i instanceof o0||(Jhe(i)&&(i.varOffset=r),YB(i)&&(r+=Wme(i))))});if(t.compatibility===Is.TemplateDefinitionBuilder)for(let n of e.ops())Hn(n,i=>{!cl(i)||!(i instanceof o0)||(Jhe(i)&&(i.varOffset=r),YB(i)&&(r+=Wme(i)))});e.vars=r}if(t instanceof hI)for(let e of t.units)for(let r of e.create){if(r.kind!==v.Template&&r.kind!==v.RepeaterCreate&&r.kind!==v.ConditionalCreate&&r.kind!==v.ConditionalBranchCreate)continue;let n=t.views.get(r.xref);r.vars=n.vars}}function yit(t){let e;switch(t.kind){case v.Attribute:return e=1,t.expression instanceof Br&&!vit(t.expression)&&(e+=t.expression.expressions.length),e;case v.Property:case v.DomProperty:return e=1,t.expression instanceof Br&&(e+=t.expression.expressions.length),e;case v.Control:return 2;case v.TwoWayProperty:return 1;case v.StyleProp:case v.ClassProp:case v.StyleMap:case v.ClassMap:return e=2,t.expression instanceof Br&&(e+=t.expression.expressions.length),e;case v.InterpolateText:return t.interpolation.expressions.length;case v.I18nExpression:case v.Conditional:case v.DeferWhen:case v.StoreLet:return 1;case v.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${v[t.kind]}`)}}function Wme(t){switch(t.kind){case Se.PureFunctionExpr:return 1+t.args.length;case Se.PipeBinding:return 1+t.args.length;case Se.PipeBindingVariadic:return 1+t.numArgs;case Se.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function vit(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function _it(t){for(let e of t.units){dD(e.create),dD(e.update);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?dD(r.handlerOps):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&dD(r.trackByOps);fD(e.create,t.compatibility),fD(e.update,t.compatibility);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?fD(r.handlerOps,t.compatibility):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&fD(r.trackByOps,t.compatibility)}}var _n;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(_n||(_n={}));function dD(t){let e=new Map;for(let r of t)r.kind===v.Variable&&r.flags&ro.AlwaysInline&&(Hn(r,n=>{if(cl(n)&&iH(n)!==_n.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(r.xref,r)),ln(r,n=>n instanceof Td&&e.has(n.xref)?e.get(n.xref).initializer.clone():n,Ct.None);for(let r of e.values())L.remove(r)}function fD(t,e){let r=new Map,n=new Map,i=new Set,s=new Map;for(let c of t){if(c.kind===v.Variable){if(r.has(c.xref)||n.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);r.set(c.xref,c),n.set(c.xref,0)}s.set(c,bit(c)),Eit(c,n,i)}let o=!1;for(let c of t.reversed()){let l=s.get(c);if(c.kind===v.Variable&&n.get(c.xref)===0){if(o&&l.fences&_n.ViewContextWrite||l.fences&_n.SideEffectful){let d=Bo(c.initializer.toStmt());s.set(d,l),L.replace(c,d)}else Sit(c,n),L.remove(c);s.delete(c),r.delete(c.xref),n.delete(c.xref);continue}l.fences&_n.ViewContextRead&&(o=!0)}let a=[];for(let[c,l]of n){let f=!!(r.get(c).flags&ro.AlwaysInline);l!==1||f||i.has(c)||a.push(c)}let u;for(;u=a.pop();){let c=r.get(u),l=s.get(c);if(!!(c.flags&ro.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let f=c.next;f.kind!==v.ListEnd;f=f.next){let p=s.get(f);if(p.variablesUsed.has(u)){if(e===Is.TemplateDefinitionBuilder&&!Iit(c,f))break;if(Tit(u,c.initializer,f,l.fences)){p.variablesUsed.delete(u);for(let m of l.variablesUsed)p.variablesUsed.add(m);p.fences|=l.fences,r.delete(u),n.delete(u),s.delete(c),L.remove(c)}break}if(!E0e(p.fences,l.fences))break}}}function iH(t){switch(t.kind){case Se.NextContext:return _n.ViewContextRead|_n.ViewContextWrite;case Se.RestoreView:return _n.ViewContextRead|_n.ViewContextWrite|_n.SideEffectful;case Se.StoreLet:return _n.SideEffectful;case Se.Reference:case Se.ContextLetReference:return _n.ViewContextRead;default:return _n.None}}function bit(t){let e=_n.None,r=new Set;return Hn(t,n=>{cl(n)&&(n.kind===Se.ReadVariable?r.add(n.xref):e|=iH(n))}),{fences:e,variablesUsed:r}}function Eit(t,e,r){Hn(t,(n,i)=>{if(!cl(n)||n.kind!==Se.ReadVariable)return;let s=e.get(n.xref);s!==void 0&&(e.set(n.xref,s+1),i&Ct.InChildOperation&&r.add(n.xref))})}function Sit(t,e){Hn(t,r=>{if(!cl(r)||r.kind!==Se.ReadVariable)return;let n=e.get(r.xref);if(n!==void 0){if(n===0)throw new Error(`Inaccurate variable count: ${r.xref} - found another read but count is already 0`);e.set(r.xref,n-1)}})}function E0e(t,e){if(t&_n.ViewContextWrite){if(e&_n.ViewContextRead)return!1}else if(t&_n.ViewContextRead&&e&_n.ViewContextWrite)return!1;return!0}function Tit(t,e,r,n){let i=!1,s=!0;return ln(r,(o,a)=>{if(!cl(o)||i||!s)return o;if(a&Ct.InChildOperation&&n&_n.ViewContextRead)return o;switch(o.kind){case Se.ReadVariable:if(o.xref===t)return i=!0,e;break;default:let u=iH(o);s=s&&E0e(u,n);break}return o},Ct.None),i}function Iit(t,e){switch(t.variable.kind){case On.Identifier:return t.initializer instanceof Oa&&t.initializer.name==="ctx";case On.Context:return e.kind===v.Variable;default:return!0}}function wit(t){for(let e of t.units){let r=null,n=null;for(let i of e.create)switch(i.kind){case v.I18nStart:r=i;break;case v.I18nEnd:r=null;break;case v.IcuStart:r===null&&(n=t.allocateXrefId(),L.insertBefore(FM(n,i.message,void 0,null),i));break;case v.IcuEnd:n!==null&&(L.insertAfter(jM(n,null),i),n=null);break}}}var Ait=[{kind:ue.Tmpl,fn:ert},{kind:ue.Both,fn:prt},{kind:ue.Host,fn:fet},{kind:ue.Tmpl,fn:$tt},{kind:ue.Tmpl,fn:art},{kind:ue.Tmpl,fn:wit},{kind:ue.Both,fn:DJe},{kind:ue.Both,fn:lit},{kind:ue.Both,fn:yJe},{kind:ue.Both,fn:CJe},{kind:ue.Both,fn:hJe},{kind:ue.Tmpl,fn:NJe},{kind:ue.Both,fn:jtt},{kind:ue.Tmpl,fn:Bnt},{kind:ue.Both,fn:bJe},{kind:ue.Both,fn:Jtt},{kind:ue.Tmpl,fn:EJe},{kind:ue.Tmpl,fn:nrt},{kind:ue.Tmpl,fn:MJe},{kind:ue.Tmpl,fn:ort},{kind:ue.Both,fn:lrt},{kind:ue.Tmpl,fn:oet},{kind:ue.Tmpl,fn:set},{kind:ue.Tmpl,fn:aet},{kind:ue.Tmpl,fn:tit},{kind:ue.Both,fn:uJe},{kind:ue.Both,fn:Knt},{kind:ue.Tmpl,fn:hit},{kind:ue.Tmpl,fn:Vnt},{kind:ue.Both,fn:Znt},{kind:ue.Tmpl,fn:RJe},{kind:ue.Tmpl,fn:mit},{kind:ue.Tmpl,fn:fit},{kind:ue.Both,fn:Gnt},{kind:ue.Both,fn:eit},{kind:ue.Tmpl,fn:ktt},{kind:ue.Both,fn:jJe},{kind:ue.Both,fn:oit},{kind:ue.Both,fn:dit},{kind:ue.Both,fn:_it},{kind:ue.Both,fn:iit},{kind:ue.Tmpl,fn:Rtt},{kind:ue.Tmpl,fn:PJe},{kind:ue.Tmpl,fn:Hnt},{kind:ue.Tmpl,fn:fJe},{kind:ue.Tmpl,fn:lJe},{kind:ue.Tmpl,fn:nit},{kind:ue.Tmpl,fn:znt},{kind:ue.Tmpl,fn:Qnt},{kind:ue.Tmpl,fn:eet},{kind:ue.Tmpl,fn:Ott},{kind:ue.Tmpl,fn:cet},{kind:ue.Both,fn:wJe},{kind:ue.Tmpl,fn:Unt},{kind:ue.Both,fn:git},{kind:ue.Tmpl,fn:iet},{kind:ue.Both,fn:qtt},{kind:ue.Tmpl,fn:Wnt},{kind:ue.Tmpl,fn:Vtt},{kind:ue.Tmpl,fn:Gtt},{kind:ue.Tmpl,fn:FJe},{kind:ue.Tmpl,fn:pJe},{kind:ue.Tmpl,fn:Ktt},{kind:ue.Both,fn:crt},{kind:ue.Both,fn:Lnt},{kind:ue.Both,fn:_Je}];function S0e(t,e){for(let r of Ait)(r.kind===e||r.kind===ue.Both)&&r.fn(t)}function xit(t,e){let r=I0e(t.root);return T0e(t.root,e),r}function T0e(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;T0e(r,e);let n=I0e(r);e.statements.push(n.toDeclStmt(n.name))}}function I0e(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let s of t.create){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.update){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[s.kind]}`);r.push(s.statement)}let n=wM(1,e),i=wM(2,r);return Np([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.fnName)}function wM(t,e){return e.length===0?[]:[MM(new Tt(H.BitwiseAnd,vt("rf"),C(t)),e)]}function Cit(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let s of t.root.create){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.root.update){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[s.kind]}`);r.push(s.statement)}if(e.length===0&&r.length===0)return null;let n=wM(1,e),i=wM(2,r);return Np([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.root.fnName)}var w0e=Is.TemplateDefinitionBuilder,Gg=new sb,Wg="ng-template",Oit="animate.";function bD(t){return t instanceof Ki}function Pit(t){return bD(t)&&t.nodes.length===1&&t.nodes[0]instanceof YD}function Nit(t,e,r,n,i,s,o,a,u,c){let l=new hI(t,r,w0e,n,i,s,o,a,u,c);return Ad(l.root,e),l}function Dit(t,e,r){let n=new dM(t.componentName,r,w0e,Gi.DomOnly);for(let i of t.properties??[]){let s=ge.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),s=ge.Attribute),i.isLegacyAnimation&&(s=ge.LegacyAnimation),i.isAnimation&&(s=ge.Animation);let o=e.calcPossibleSecurityContexts(t.componentSelector,i.name,s===ge.Attribute).filter(a=>a!==rr.NONE);Mit(n,i,s,o)}for(let[i,s]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,i,!0).filter(a=>a!==rr.NONE);Rit(n,i,s,o)}for(let i of t.events??[])kit(n,i);return n}function Mit(t,e,r,n){let i,s=e.expression.ast;s instanceof II?i=new Br(s.strings,s.expressions.map(o=>st(o,t,e.sourceSpan)),[]):i=st(s,t,e.sourceSpan),t.root.update.push(s0(t.root.xref,r,e.name,i,null,n,!1,!1,null,null,e.sourceSpan))}function Rit(t,e,r,n){let i=s0(t.root.xref,ge.Attribute,e,r,null,n,!0,!1,null,null,r.sourceSpan);t.root.update.push(i)}function kit(t,e){let r;if(e.type===Ii.Animation)r=Zge(t.root.xref,new ci,e.name,null,_I(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[n,i]=e.type!==Ii.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];r=eH(t.root.xref,new ci,e.name,null,_I(t.root,e.handler,e.handlerSpan),n,i,!0,e.sourceSpan)}t.root.create.push(r)}function Ad(t,e){for(let r of e)if(r instanceof al)Lit(t,r);else if(r instanceof so)$it(t,r);else if(r instanceof X_)Fit(t,r);else if(r instanceof jg)A0e(t,r,null);else if(r instanceof Q_)x0e(t,r,null);else if(r instanceof zD)jit(t,r);else if(r instanceof KD)qit(t,r);else if(r instanceof t0)Bit(t,r);else if(r instanceof Sge)Vit(t,r);else if(r instanceof Z_)Hit(t,r);else if(r instanceof VV)Wit(t,r);else if(!(r instanceof ET))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function Lit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Ki||e.i18n instanceof Mp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=t.job.allocateXrefId(),[n,i]=Da(e.name),s=VXe(i,r,i0e(n),e.i18n instanceof Mp?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(s),zit(t,s,e),P0e(s,e);let o=null;e.i18n instanceof Ki&&(o=t.job.allocateXrefId(),t.create.push(FM(o,e.i18n,void 0,e.startSourceSpan))),Ad(t,e.children);let a=GXe(r,e.endSourceSpan??e.startSourceSpan);t.create.push(a);let u=e.inputs.find(c=>c.name==="formField"&&c.type===It.Property);u&&t.create.push(oJe(u.sourceSpan)),o!==null&&L.insertBefore(jM(o,e.endSourceSpan??e.startSourceSpan),a)}function $it(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Ki||e.i18n instanceof Mp))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let r=t.job.allocateView(t.xref),n=e.tagName,i="";e.tagName&&([i,n]=Da(e.tagName));let s=e.i18n instanceof Mp?e.i18n:void 0,o=i0e(i),a=n===null?"":IJe(n,o),u=Kit(e)?zi.NgTemplate:zi.Structural,c=Kge(r.xref,u,n,a,o,s,e.startSourceSpan,e.sourceSpan);t.create.push(c),Qit(t,c,e,u),P0e(c,e),Ad(r,e.children);for(let{name:l,value:d}of e.variables)r.contextVariables.set(l,d!==""?d:"$implicit");if(u===zi.NgTemplate&&e.i18n instanceof Ki){let l=t.job.allocateXrefId();L.insertAfter(FM(l,e.i18n,void 0,e.startSourceSpan),r.create.head),L.insertBefore(jM(l,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function Fit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Mp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=null;e.children.some(s=>!(s instanceof kM)&&(!(s instanceof jg)||s.value.trim().length>0))&&(r=t.job.allocateView(t.xref),Ad(r,e.children));let n=t.job.allocateXrefId(),i=XXe(n,e.selector,e.i18n,r?.xref??null,e.sourceSpan);for(let s of e.attributes){let o=Gg.securityContext(e.name,s.name,!0);t.update.push(s0(i.xref,ge.Attribute,s.name,C(s.value),null,o,!0,!1,null,Ed(s.i18n),s.sourceSpan))}t.create.push(i)}function A0e(t,e,r){t.create.push(Yge(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function x0e(t,e,r){let n=e.value;if(n instanceof bs&&(n=n.ast),!(n instanceof II))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${n.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Sd))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let i=e.i18n instanceof Sd?e.i18n.children.filter(a=>a instanceof eI).map(a=>a.name):[];if(i.length>0&&i.length!==n.expressions.length)throw Error(`Unexpected number of i18n placeholders (${n.expressions.length}) for BoundText with ${n.expressions.length} expressions`);let s=t.job.allocateXrefId();t.create.push(Yge(s,"",r,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(OXe(s,new Br(n.strings,n.expressions.map(a=>st(a,t.job,o)),i),e.sourceSpan))}function jit(t,e){let r=null,n=[];for(let i=0;i<e.branches.length;i++){let s=e.branches[i],o=t.job.allocateView(t.xref),a=AM(t,o.xref,s);s.expressionAlias!==null&&o.contextVariables.set(s.expressionAlias.name,t0e);let u;if(s.i18n!==void 0){if(!(s.i18n instanceof Rp))throw Error(`Unhandled i18n metadata type for if block: ${s.i18n?.constructor.name}`);u=s.i18n}let l=(i===0?zge:Qge)(o.xref,zi.Block,a,"Conditional",ii.HTML,u,s.startSourceSpan,s.sourceSpan);t.create.push(l),r===null&&(r=o.xref);let d=s.expression?st(s.expression,t.job,null):null,f=new aM(d,l.xref,l.handle,s.expressionAlias);n.push(f),Ad(o,s.children)}t.update.push(Hge(r,null,n,e.sourceSpan))}function qit(t,e){if(e.groups.length===0)return;let r=null,n=[];for(let i=0;i<e.groups.length;i++){let s=e.groups[i],o=t.job.allocateView(t.xref),a=AM(t,o.xref,s),u;if(s.i18n!==void 0){if(!(s.i18n instanceof Rp))throw Error(`Unhandled i18n metadata type for switch block: ${s.i18n?.constructor.name}`);u=s.i18n}let l=(i===0?zge:Qge)(o.xref,zi.Block,a,"Case",ii.HTML,u,s.startSourceSpan,s.sourceSpan);t.create.push(l),r===null&&(r=o.xref);for(let d of s.cases){let f=d.expression?st(d.expression,t.job,e.startSourceSpan):null,p=new aM(f,l.xref,l.handle);n.push(p)}Ad(o,s.children)}t.update.push(Hge(r,st(e.expression,t.job,null),n,e.sourceSpan))}function pD(t,e,r,n,i){if(r!==void 0&&!(r instanceof Rp))throw Error("Unhandled i18n metadata type for defer block");if(n===void 0)return null;let s=t.job.allocateView(t.xref);Ad(s,n);let o=Kge(s.xref,zi.Block,null,`Defer${e}`,ii.HTML,r,i,i);return t.create.push(o),o}function Bit(t,e){let r=null;if(t.job.deferMeta.mode===0){if(!t.job.deferMeta.blocks.has(e))throw new Error("AssertionError: unable to find a dependency function for this deferred block");r=t.job.deferMeta.blocks.get(e)??null}let n=pD(t,"",e.i18n,e.children,e.sourceSpan),i=pD(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),s=pD(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=pD(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=JXe(a,n.xref,n.handle,r,t.job.allDeferrableDepsFn,e.sourceSpan);u.placeholderView=s?.xref??null,u.placeholderSlot=s?.handle??null,u.loadingSlot=i?.handle??null,u.errorSlot=o?.handle??null,u.placeholderMinimumTime=e.placeholder?.minimumTime??null,u.loadingMinimumTime=e.loading?.minimumTime??null,u.loadingAfterTime=e.loading?.afterTime??null,u.flags=Uit(e),t.create.push(u);let c=[],l=[];tU("hydrate",e.hydrateTriggers,c,l,t,a),tU("none",e.triggers,c,l,t,a),tU("prefetch",e.prefetchTriggers,c,l,t,a),c.some(f=>f.modifier==="none")||l.some(f=>f.modifier==="none")||c.push(Sp(a,{kind:tr.Idle},"none",null)),t.create.push(c),t.update.push(l)}function Uit(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function tU(t,e,r,n,i,s){if(e.idle!==void 0){let o=Sp(s,{kind:tr.Idle},t,e.idle.sourceSpan);r.push(o)}if(e.immediate!==void 0){let o=Sp(s,{kind:tr.Immediate},t,e.immediate.sourceSpan);r.push(o)}if(e.timer!==void 0){let o=Sp(s,{kind:tr.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(o)}if(e.hover!==void 0){let o=Sp(s,{kind:tr.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);r.push(o)}if(e.interaction!==void 0){let o=Sp(s,{kind:tr.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);r.push(o)}if(e.viewport!==void 0){let o=Sp(s,{kind:tr.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?st(e.viewport.options,i.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);r.push(o)}if(e.never!==void 0){let o=Sp(s,{kind:tr.Never},t,e.never.sourceSpan);r.push(o)}if(e.when!==void 0){if(e.when.value instanceof II)throw new Error("Unexpected interpolation in defer block when trigger");let o=FXe(s,st(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(o)}}function Vit(t,e){if(e.i18n instanceof Ki&&Pit(e.i18n)){let r=t.job.allocateXrefId();t.create.push(rJe(r,e.i18n,wge(e.i18n).name,null));for(let[n,i]of Object.entries({...e.vars,...e.placeholders}))i instanceof Q_?x0e(t,i,n):A0e(t,i,n);t.create.push(nJe(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function Hit(t,e){let r=t.job.allocateView(t.xref),n=`\u0275$index_${r.xref}`,i=`\u0275$count_${r.xref}`,s=new Set;r.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&s.add(_.name),_.name==="$index"?r.contextVariables.set("$index",_.value).set(n,_.value):_.name==="$count"?r.contextVariables.set("$count",_.value).set(i,_.value):r.aliases.add({kind:On.Alias,name:null,identifier:_.name,expression:Git(_,n,i)});let o=xn(e.trackBy.span,e.sourceSpan),a=st(e.trackBy,t.job,o);Ad(r,e.children);let u=null,c=null;e.empty!==null&&(u=t.job.allocateView(t.xref),Ad(u,e.empty.children),c=AM(t,u.xref,e.empty));let l={$index:s,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Rp))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Rp))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,f=e.empty?.i18n,p=AM(t,r.xref,e),m=HXe(r.xref,u?.xref??null,p,a,l,c,d,f,e.startSourceSpan,e.sourceSpan);t.create.push(m);let g=st(e.expression,t.job,xn(e.expression.span,e.sourceSpan)),y=$Xe(m.xref,m.handle,g,e.sourceSpan);t.update.push(y)}function Git(t,e,r){switch(t.value){case"$index":return new ri(e);case"$count":return new ri(r);case"$first":return new ri(e).identical(C(0));case"$last":return new ri(e).identical(new ri(r).minus(C(1)));case"$even":return new ri(e).modulo(C(2)).identical(C(0));case"$odd":return new ri(e).modulo(C(2)).notIdentical(C(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function Wit(t,e){let r=t.job.allocateXrefId();t.create.push(eJe(r,e.name,e.sourceSpan)),t.update.push(qXe(r,e.name,st(e.value,t.job,e.valueSpan),e.sourceSpan))}function st(t,e,r){if(t instanceof bs)return st(t.ast,e,r);if(t instanceof Xc)return t.receiver instanceof ol?new ri(t.name):new ao(st(t.receiver,e,r),t.name,null,xn(t.span,r));if(t instanceof K_){if(t.receiver instanceof ol)throw new Error("Unexpected ImplicitReceiver");return new Ts(st(t.receiver,e,r),t.args.map(n=>st(n,e,r)),void 0,xn(t.span,r))}else{if(t instanceof _s)return C(t.value,void 0,xn(t.span,r));if(t instanceof F_)switch(t.operator){case"+":return new Qg(B_.Plus,st(t.expr,e,r),void 0,xn(t.span,r));case"-":return new Qg(B_.Minus,st(t.expr,e,r),void 0,xn(t.span,r));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Hi){let n=SJe.get(t.operation);if(n===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new Tt(n,st(t.left,e,r),st(t.right,e,r),void 0,xn(t.span,r))}else{if(t instanceof RT)return new $p(e.root.xref);if(t instanceof Jg)return new Id(st(t.receiver,e,r),st(t.key,e,r),void 0,xn(t.span,r));if(t instanceof W_)throw new Error("AssertionError: Chain in unknown context");if(t instanceof e0){let n=t.keys.map((i,s)=>{let o=st(t.values[s],e,r);return i.kind==="spread"?new Pp(o):new H_(i.key,o,i.quoted)});return new Na(n,void 0,xn(t.span,r))}else{if(t instanceof $T)return new il(t.expressions.map(n=>st(n,e,r)));if(t instanceof LD)return new nl(st(t.condition,e,r),st(t.trueExp,e,r),st(t.falseExp,e,r),void 0,xn(t.span,r));if(t instanceof BT)return st(t.expression,e,r);if(t instanceof $D)return new a0(e.allocateXrefId(),new ci,t.name,[st(t.exp,e,r),...t.args.map(n=>st(n,e,r))]);if(t instanceof LT)return new rb(st(t.receiver,e,r),st(t.key,e,r),xn(t.span,r));if(t instanceof kT)return new tb(st(t.receiver,e,r),t.name);if(t instanceof jD)return new u0(st(t.receiver,e,r),t.args.map(n=>st(n,e,r)));if(t instanceof Vi)return new fI(xn(t.span,r));if(t instanceof FT)return UYe(st(t.expression,e,r),xn(t.span,r));if(t instanceof jT)return TI(st(t.expression,e,r));if(t instanceof qT)return new CD(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof VT)return Kme(t,e,r);if(t instanceof UT)return new AT(st(t.tag,e,r),Kme(t.template,e,r),void 0,xn(t.span,r));if(t instanceof HT)return new Pa(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof BD)return new V_(t.body,t.flags,r);if(t instanceof FD)return new Yg(st(t.expression,e,r));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function Kme(t,e,r){return new CT(t.elements.map(n=>new OD(n.text,xn(n.span,r))),t.expressions.map(n=>st(n,e,r)),xn(t.span,r))}function _V(t,e,r,n){let i;return e instanceof II?i=new Br(e.strings,e.expressions.map(s=>st(s,t,null)),Object.keys(Ed(r)?.placeholders??{})):e instanceof hr?i=st(e,t,null):i=C(e),i}var C0e=new Map([[It.Property,ge.Property],[It.TwoWay,ge.TwoWayProperty],[It.Attribute,ge.Attribute],[It.Class,ge.ClassName],[It.Style,ge.StyleProperty],[It.LegacyAnimation,ge.LegacyAnimation],[It.Animation,ge.Animation]]);function Kit(t){return Da(t.tagName??"")[1]===Wg}function Ed(t){if(t==null)return null;if(!(t instanceof Ki))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function zit(t,e,r){let n=new Array,i=new Set;for(let s of r.attributes){let o=Gg.securityContext(r.name,s.name,!0);n.push(s0(e.xref,ge.Attribute,s.name,_V(t.job,s.value,s.i18n),null,o,!0,!1,null,Ed(s.i18n),s.sourceSpan)),s.i18n&&i.add(s.name)}for(let s of r.inputs)i.has(s.name)&&console.error(`On component ${t.job.componentName}, the binding ${s.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.`),n.push(s0(e.xref,C0e.get(s.type),s.name,_V(t.job,bI(s.value),s.i18n),s.unit,s.securityContext,!1,!1,null,Ed(s.i18n)??null,s.sourceSpan));t.create.push(n.filter(s=>s?.kind===v.ExtractedAttribute)),t.update.push(n.filter(s=>s?.kind===v.Binding));for(let s of r.outputs){if(s.type===Ii.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");s.type===Ii.TwoWay?t.create.push(Xge(e.xref,e.handle,s.name,e.tag,O0e(t,s.handler,s.handlerSpan),s.sourceSpan)):s.type===Ii.Animation?t.create.push(Zge(e.xref,e.handle,s.name,e.tag,_I(t,s.handler,s.handlerSpan),s.name.endsWith("enter")?"enter":"leave",s.target,!1,s.sourceSpan)):t.create.push(eH(e.xref,e.handle,s.name,e.tag,_I(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))}n.some(s=>s?.i18nMessage)!==null&&t.create.push(e0e(t.job.allocateXrefId(),new ci,e.xref))}function Qit(t,e,r,n){let i=new Array;for(let s of r.templateAttrs)if(s instanceof Y_){let o=Gg.securityContext(Wg,s.name,!0);i.push(hD(t,e.xref,It.Attribute,s.name,s.value,null,o,!0,n,Ed(s.i18n),s.sourceSpan))}else i.push(hD(t,e.xref,s.type,s.name,bI(s.value),s.unit,s.securityContext,!0,n,Ed(s.i18n),s.sourceSpan));for(let s of r.attributes){let o=Gg.securityContext(Wg,s.name,!0);i.push(hD(t,e.xref,It.Attribute,s.name,s.value,null,o,!1,n,Ed(s.i18n),s.sourceSpan))}for(let s of r.inputs)i.push(hD(t,e.xref,s.type,s.name,bI(s.value),s.unit,s.securityContext,!1,n,Ed(s.i18n),s.sourceSpan));t.create.push(i.filter(s=>s?.kind===v.ExtractedAttribute)),t.update.push(i.filter(s=>s?.kind===v.Binding));for(let s of r.outputs){if(s.type===Ii.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");if(n===zi.NgTemplate&&(s.type===Ii.TwoWay?t.create.push(Xge(e.xref,e.handle,s.name,e.tag,O0e(t,s.handler,s.handlerSpan),s.sourceSpan)):t.create.push(eH(e.xref,e.handle,s.name,e.tag,_I(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))),n===zi.Structural&&s.type!==Ii.LegacyAnimation){let o=Gg.securityContext(Wg,s.name,!1);t.create.push(eo(e.xref,ge.Property,null,s.name,null,null,null,o))}}i.some(s=>s?.i18nMessage)!==null&&t.create.push(e0e(t.job.allocateXrefId(),new ci,e.xref))}function hD(t,e,r,n,i,s,o,a,u,c,l){let d=typeof i=="string";if(u===zi.Structural){if(!a)switch(r){case It.Property:case It.Class:case It.Style:return eo(e,ge.Property,null,n,null,null,c,o);case It.TwoWay:return eo(e,ge.TwoWayProperty,null,n,null,null,c,o)}if(!d&&(r===It.Attribute||r===It.LegacyAnimation||r===It.Animation))return null}let f=C0e.get(r);return u===zi.NgTemplate&&(r===It.Class||r===It.Style||r===It.Attribute&&!d)&&(f=ge.Property),s0(e,f,n,_V(t.job,i,c),s,o,d,a,u,c,l)}function _I(t,e,r){e=bI(e);let n=new Array,i=e instanceof W_?e.expressions:[e];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let s=i.map(a=>st(a,t.job,r)),o=s.pop();return n.push(...s.map(a=>Bo(new wi(a,a.sourceSpan)))),n.push(Bo(new oi(o,o.sourceSpan))),n}function O0e(t,e,r){e=bI(e);let n=new Array;if(e instanceof W_)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=st(e,t.job,r),s=new ri("$event"),o=new sM(i,s);return n.push(Bo(new wi(o))),n.push(Bo(new oi(s))),n}function bI(t){return t instanceof bs?t.ast:t}function P0e(t,e){Yit(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function Yit(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function xn(t,e){if(e===null)return null;let r=e.start.moveBy(t.start),n=e.start.moveBy(t.end),i=e.fullStart.moveBy(t.start);return new je(r,n,i)}function AM(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof kM||i instanceof VV)){if(n!==null)return null;if(i instanceof al||i instanceof so&&i.tagName!==null)n=i;else return null}if(n!==null){for(let s of n.attributes)if(!s.name.startsWith(Oit)){let o=Gg.securityContext(Wg,s.name,!0);t.update.push(s0(e,ge.Attribute,s.name,C(s.value),null,o,!0,!1,null,Ed(s.i18n),s.sourceSpan))}for(let s of n.inputs)if(s.type!==It.LegacyAnimation&&s.type!==It.Animation&&s.type!==It.Attribute){let o=Gg.securityContext(Wg,s.name,!0);t.create.push(eo(e,ge.Property,null,s.name,null,null,null,o))}let i=n instanceof al?n.name:n.tagName;return i===Wg?null:i}return null}var Zit=!1;function Xit(){return Zit}function xM(t,e){return MM(vt(WV).bitwiseAnd(C(t),null),e)}function Jit(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function est(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(s=>C(s.trim()));r.push(...i)}),e.getConstLiteral(nr(r),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return Ee(T.resolveForwardRef).callFn([t.predicate.expression])}}function N0e(t,e,r){let n=[];return r!==void 0&&n.push(...r),t.isSignal&&n.push(new ao(vt(tI),t.propertyName)),n.push(est(t,e),C(Jit(t))),t.read&&n.push(t.read),n}var sH=Symbol("queryAdvancePlaceholder");function D0e(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(Ee(T.queryAdvance).callFn(r===1?[]:[C(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let s=t[i];s===sH?r++:(n(),e.unshift(s))}return n(),e}function tst(t,e,r){let n=[],i=[],s=Age(c=>i.push(c),GV),o=null,a=null;t.forEach(c=>{let l=N0e(c,e);if(c.isSignal?(o??=Ee(T.viewQuerySignal),o=o.callFn(l)):(a??=Ee(T.viewQuery),a=a.callFn(l)),c.isSignal){i.push(sH);return}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(tI).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}),o!==null&&n.push(new wi(o)),a!==null&&n.push(new wi(a));let u=r?`${r}_Query`:null;return Np([new si(WV,qV),new si(tI,null)],[xM(1,n),xM(2,D0e(i))],Ca,null,u)}function rst(t,e,r){let n=[],i=[],s=Age(c=>i.push(c),GV),o=null,a=null;for(let c of t){let l=N0e(c,e,[vt("dirIndex")]);if(c.isSignal?(o??=Ee(T.contentQuerySignal),o=o.callFn(l)):(a??=Ee(T.contentQuery),a=a.callFn(l)),c.isSignal){i.push(sH);continue}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(tI).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}o!==null&&n.push(new wi(o)),a!==null&&n.push(new wi(a));let u=r?`${r}_ContentQueries`:null;return Np([new si(WV,qV),new si(tI,null),new si("dirIndex",null)],[xM(1,n),xM(2,D0e(i))],Ca,null,u)}var bV=class extends Cet{constructor(){super(fV)}parse(e,r,n){return super.parse(e,r,n)}},mD=".",nst="attr",rU="animate",ist="class",sst="style",ost="*",nU="animate-",EV=class{_exprParser;_schemaRegistry;errors;constructor(e,r,n){this._exprParser=e,this._schemaRegistry=r,this.errors=n}createBoundHostProperties(e,r){let n=[];for(let i of Object.keys(e)){let s=e[i];typeof s=="string"?this.parsePropertyBinding(i,s,!0,!1,r,r.start.offset,void 0,[],n,r):this._reportError(`Value of the host property binding "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,r)}return n}createDirectiveHostEventAsts(e,r){let n=[];for(let i of Object.keys(e)){let s=e[i];typeof s=="string"?this.parseEvent(i,s,!1,r,r,[],n,r):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,r)}return n}parseInterpolation(e,r,n){let i=r.fullStart.offset;try{let s=this._exprParser.parseInterpolation(e,r,i,n);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}parseInterpolationExpression(e,r){let n=r.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,r,n);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}parseInlineTemplateBinding(e,r,n,i,s,o,a,u){let c=n.start.offset+ost.length,l=this._parseTemplateBindings(e,r,n,c,i);for(let d of l){let f=bp(n,d.sourceSpan),p=d.key.source,m=bp(n,d.key.span);if(d instanceof GT){let g=d.value?d.value.source:"$implicit",y=d.value?bp(n,d.value.span):void 0;a.push(new IU(p,g,f,m,y))}else if(d.value){let g=u?f:n,y=bp(n,d.value.ast.sourceSpan);this._parsePropertyAst(p,d.value,!1,g,m,y,s,o)}else s.push([p,""]),this.parseLiteralAttr(p,null,m,i,void 0,s,o,m)}}_parseTemplateBindings(e,r,n,i,s){try{let o=this._exprParser.parseTemplateBindings(e,r,n,i,s);return o.errors.forEach(a=>this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,n,_d.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,n),[]}}parseLiteralAttr(e,r,n,i,s,o,a,u){iU(e)?(e=e.substring(1),u!==void 0&&(u=bp(u,new no(u.start.offset+1,u.end.offset))),r&&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.',n,_d.ERROR),this._parseLegacyAnimation(e,r,n,i,u,s,o,a)):a.push(new N_(e,this._exprParser.wrapLiteralPrimitive(r,"",i),Ia.LITERAL_ATTR,n,u,s))}parsePropertyBinding(e,r,n,i,s,o,a,u,c,l){e.length===0&&this._reportError("Property name is missing in binding",s);let d=!1;e.startsWith(nU)?(d=!0,e=e.substring(nU.length),l!==void 0&&(l=bp(l,new no(l.start.offset+nU.length,l.end.offset)))):iU(e)&&(d=!0,e=e.substring(1),l!==void 0&&(l=bp(l,new no(l.start.offset+1,l.end.offset)))),d?this._parseLegacyAnimation(e,r,s,o,l,a,u,c):e.startsWith(`${rU}${mD}`)?this._parseAnimation(e,this.parseBinding(r,n,a||s,o),s,l,a,u,c):this._parsePropertyAst(e,this.parseBinding(r,n,a||s,o),i,s,l,a,u,c)}parsePropertyInterpolation(e,r,n,i,s,o,a,u){let c=this.parseInterpolation(r,i||n,u);return c?(this._parsePropertyAst(e,c,!1,n,a,i,s,o),!0):!1}_parsePropertyAst(e,r,n,i,s,o,a,u){a.push([e,r.source]),u.push(new N_(e,r,n?Ia.TWO_WAY:Ia.DEFAULT,i,s,o))}_parseAnimation(e,r,n,i,s,o,a){o.push([e,r.source]),a.push(new N_(e,r,Ia.ANIMATION,n,i,s))}_parseLegacyAnimation(e,r,n,i,s,o,a,u){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(r||"undefined",!1,o||n,i);a.push([e,c.source]),u.push(new N_(e,c,Ia.LEGACY_ANIMATION,n,s,o))}parseBinding(e,r,n,i){try{let s=r?this._exprParser.parseSimpleBinding(e,n,i):this._exprParser.parseBinding(e,n,i);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}createBoundElementProperty(e,r,n=!1,i=!0){if(r.isLegacyAnimation)return new VD(r.name,It.LegacyAnimation,rr.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let s=null,o,a=null,u=r.name.split(mD),c;if(u.length>1)if(u[0]==nst){a=u.slice(1).join(mD),n||this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),c=sU(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let d=a.substring(0,l),f=a.substring(l+1);a=yD(d,f)}o=It.Attribute}else u[0]==ist?(a=u[1],o=It.Class,c=[rr.NONE]):u[0]==sst?(s=u.length>2?u[2]:null,a=u[1],o=It.Style,c=[rr.STYLE]):u[0]==rU&&(a=r.name,o=It.Animation,c=[rr.NONE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(r.name);a=i?l:r.name,c=sU(this._schemaRegistry,e,l,!1),o=r.type===Ia.TWO_WAY?It.TwoWay:It.Property,n||this._validatePropertyOrAttributeName(l,r.sourceSpan,!1)}return new VD(a,o,c[0],r.expression,s,r.sourceSpan,r.keySpan,r.valueSpan)}parseEvent(e,r,n,i,s,o,a,u){e.length===0&&this._reportError("Event name is missing in binding",i),iU(e)?(e=e.slice(1),u!==void 0&&(u=bp(u,new no(u.start.offset+1,u.end.offset))),this._parseLegacyAnimationEvent(e,r,i,s,a,u)):this._parseRegularEvent(e,r,n,i,s,o,a,u)}calcPossibleSecurityContexts(e,r,n){let i=this._schemaRegistry.getMappedPropName(r);return sU(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=ZYe(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=XYe(e,[e,null]);return{eventName:r[0],phase:r[1]===null?null:r[1].toLowerCase()}}_parseLegacyAnimationEvent(e,r,n,i,s,o){let{eventName:a,phase:u}=this.parseLegacyAnimationEventName(e),c=this._parseAction(r,i);s.push(new UD(a,u,Ii.LegacyAnimation,c,n,i,o)),a.length===0&&this._reportError("Animation event name is missing in binding",n),u?u!=="start"&&u!=="done"&&this._reportError(`The provided animation output phase value "${u}" for "@${a}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,r,n,i,s,o,a,u){let{eventName:c,target:l}=this.parseEventListenerName(e),d=this.errors.length,f=this._parseAction(r,s),p=this.errors.length===d;o.push([e,f.source]),n&&p&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",i);let m=Ii.Regular;n&&(m=Ii.TwoWay),e.startsWith(`${rU}${mD}`)&&(m=Ii.Animation),a.push(new UD(c,l,m,f,i,s,u))}_parseAction(e,r){let n=r&&r.start?r.start.offset:0;try{let i=this._exprParser.parseAction(e,r,n);return i&&this.errors.push(...i.errors),!i||i.ast instanceof Vi?(this._reportError("Empty expressions are not allowed",r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)):i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}_reportError(e,r,n=_d.ERROR){this.errors.push(new Re(r,e,n))}_validatePropertyOrAttributeName(e,r,n){let i=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);i.error&&this._reportError(i.msg,r,_d.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof bs?this._isAllowedAssignmentEvent(e.ast):e instanceof BT?this._isAllowedAssignmentEvent(e.expression):e instanceof K_&&e.args.length===1&&e.receiver instanceof Xc&&e.receiver.name==="$any"&&e.receiver.receiver instanceof ol?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof Xc||e instanceof Jg)&&!SV(e)}};function SV(t){return t instanceof kT||t instanceof LT?!0:t instanceof HT?SV(t.expression):t instanceof Xc||t instanceof Jg||t instanceof K_?SV(t.receiver):!1}function iU(t){return t[0]=="@"}function sU(t,e,r,n){let i,s=o=>t.securityContext(o,r,n);return e===null?i=t.allKnownElementNames().map(s):(i=[],q_.parse(e).forEach(o=>{let a=o.element?[o.element]:t.allKnownElementNames(),u=new Set(o.notSelectors.filter(l=>l.isElementSelector()).map(l=>l.element)),c=a.filter(l=>!u.has(l));i.push(...c.map(s))})),i.length===0?[rr.NONE]:Array.from(new Set(i)).sort()}function bp(t,e){let r=e.start-t.start.offset,n=e.end-t.end.offset;return new je(t.start.moveBy(r),t.end.moveBy(n),t.fullStart.moveBy(r),t.details)}function ast(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(ust);return e===null||e[1]=="package"||e[1]=="asset"}var ust=/^([^:/?#]+):/,cst="select",lst="link",dst="rel",fst="href",pst="stylesheet",hst="style",mst="script",gst="ngNonBindable",yst="ngProjectAs";function M0e(t){let e=null,r=null,n=null,i=!1,s="";t.attrs.forEach(u=>{let c=u.name.toLowerCase();c==cst?e=u.value:c==fst?r=u.value:c==dst?n=u.value:u.name==gst?i=!0:u.name==yst&&u.value.length>0&&(s=u.value)}),e=vst(e);let o=t.name.toLowerCase(),a=Es.OTHER;return wU(o)?a=Es.NG_CONTENT:o==hst?a=Es.STYLE:o==mst?a=Es.SCRIPT:o==lst&&n==pst&&(a=Es.STYLESHEET),new TV(a,e,r,i,s)}var Es;(function(t){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"})(Es||(Es={}));var TV=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,r,n,i,s){this.type=e,this.selectAttr=r,this.hrefAttr=n,this.nonBindable=i,this.projectAs=s}};function vst(t){return t===null||t.length===0?"*":t}var _st=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,bst=/^track\s+([\S\s]*)/,Est=/^(as\s+)(.*)/,qM=/^else[^\S\r\n]+if/,Sst=/^let\s+([\S\s]*)/,Tst=/^[$A-Z_][0-9A-Z_$]*$/i,zme=/(\s*)(\S+)(\s*)/,wT=new Set(["$index","$first","$last","$even","$odd","$count"]);function Qme(t){return t==="empty"}function Yme(t){return t==="else"||qM.test(t)}function Ist(t,e,r,n){let i=Pst(e),s=[],o=Zme(t,i,n);o!==null&&s.push(new Bg(o.expression,Sr(r,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(qM.test(d.name)){let f=Zme(d,i,n);if(f!==null){let p=Sr(r,d.children,d.children);s.push(new Bg(f.expression,p,f.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let f=Sr(r,d.children,d.children);s.push(new Bg(null,f,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=s.length>0?s[0].startSourceSpan:t.startSourceSpan,u=s.length>0?s[s.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,l=s[s.length-1];return l!==void 0&&(c=new je(a.start,l.sourceSpan.end)),{node:new zD(s,c,t.startSourceSpan,u,t.nameSpan),errors:i}}function wst(t,e,r,n){let i=[],s=xst(t,i,n),o=null,a=null;for(let u of e)u.name==="empty"?a!==null?i.push(new Re(u.sourceSpan,"@for loop can only have one @empty block")):u.parameters.length>0?i.push(new Re(u.sourceSpan,"@empty block cannot have parameters")):a=new ZT(Sr(r,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n):i.push(new Re(u.sourceSpan,`Unrecognized @for loop block "${u.name}"`));if(s!==null)if(s.trackBy===null)i.push(new Re(t.startSourceSpan,'@for loop must have a "track" expression'));else{let u=a?.endSourceSpan??t.endSourceSpan,c=new je(t.sourceSpan.start,u?.end??t.sourceSpan.end);Cst(s.trackBy.expression,s.trackBy.keywordSpan,i),o=new Z_(s.itemName,s.expression,s.trackBy.expression,s.trackBy.keywordSpan,s.context,Sr(r,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,u,t.nameSpan,t.i18n)}return{node:o,errors:i}}function Ast(t,e,r){let n=Nst(t),i=t.parameters.length>0?EI(t.parameters[0],r):r.parseBinding("",!1,t.sourceSpan,0),s=[],o=[],a=[],u=null;for(let l of t.children){if(!(l instanceof $o))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new QD(l.name,l.sourceSpan,l.nameSpan));continue}let d=l.name==="case",f=null;d&&(f=EI(l.parameters[0],r));let p=new MU(f,l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan);if(a.push(p),l.children.length===0&&l.endSourceSpan!==null&&l.endSourceSpan.start.offset===l.endSourceSpan.end.offset){u===null&&(u=l.sourceSpan);continue}let g=l.sourceSpan,y=l.startSourceSpan;u!==null&&(g=new je(u.start,l.sourceSpan.end),y=new je(u.start,l.startSourceSpan.end),u=null);let _=new YT(a,Sr(e,l.children,l.children),g,y,l.endSourceSpan,l.nameSpan,l.i18n);s.push(_),a=[]}return{node:new KD(i,s,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function xst(t,e,r){if(t.parameters.length===0)return e.push(new Re(t.startSourceSpan,"@for loop does not have an expression")),null;let[n,...i]=t.parameters,s=Dst(n,e)?.match(_st);if(!s||s[2].trim().length===0)return e.push(new Re(n.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=s;wT.has(o)&&e.push(new Re(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(wT).join(", ")}.`));let u=n.expression.split(" ")[0],c=new je(n.sourceSpan.start,n.sourceSpan.start.moveBy(u.length)),l={itemName:new Dp(o,"$implicit",c,c),trackBy:null,expression:EI(n,r,a),context:Array.from(wT,d=>{let f=new je(t.startSourceSpan.end,t.startSourceSpan.end);return new Dp(d,d,f,f)})};for(let d of i){let f=d.expression.match(Sst);if(f!==null){let m=new je(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);Ost(d.sourceSpan,f[1],m,o,l.context,e);continue}let p=d.expression.match(bst);if(p!==null){if(l.trackBy!==null)e.push(new Re(d.sourceSpan,'@for loop can only have one "track" expression'));else{let m=EI(d,r,p[1]);m.ast instanceof Vi&&e.push(new Re(t.startSourceSpan,'@for loop must have a "track" expression'));let g=new je(d.sourceSpan.start,d.sourceSpan.start.moveBy(5));l.trackBy={expression:m,keywordSpan:g}}continue}e.push(new Re(d.sourceSpan,`Unrecognized @for loop parameter "${d.expression}"`))}return l}function Cst(t,e,r){let n=new IV;t.ast.visit(n),n.hasPipe&&r.push(new Re(e,"Cannot use pipes in track expressions"))}function Ost(t,e,r,n,i,s){let o=e.split(","),a=r.start;for(let u of o){let c=u.split("="),l=c.length===2?c[0].trim():"",d=c.length===2?c[1].trim():"";if(l.length===0||d.length===0)s.push(new Re(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!wT.has(d))s.push(new Re(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(wT).join(", ")}`));else if(l===n)s.push(new Re(t,`Invalid @for loop "let" parameter. Variable cannot be called "${n}"`));else if(i.some(f=>f.name===l))s.push(new Re(t,`Duplicate "let" parameter variable "${d}"`));else{let[,f,p]=c[0].match(zme)??[],m=f!==void 0&&c.length===2?new je(a.moveBy(f.length),a.moveBy(f.length+p.length)):r,g;if(c.length===2){let[,_,b]=c[1].match(zme)??[];g=_!==void 0?new je(a.moveBy(c[0].length+1+_.length),a.moveBy(c[0].length+1+_.length+b.length)):void 0}let y=new je(m.start,g?.end??m.end);i.push(new Dp(l,d,y,m,g))}a=a.moveBy(u.length+1)}}function Pst(t){let e=[],r=!1;for(let n=0;n<t.length;n++){let i=t[n];i.name==="else"?(r?e.push(new Re(i.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&n<t.length-1?e.push(new Re(i.startSourceSpan,"@else block must be last inside the conditional")):i.parameters.length>0&&e.push(new Re(i.startSourceSpan,"@else block cannot have parameters")),r=!0):qM.test(i.name)||e.push(new Re(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function Nst(t){let e=[],r=!1;if(t.parameters.length!==1)return e.push(new Re(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let n of t.children)if(!(n instanceof mI||n instanceof c0&&n.value.trim().length===0)){if(!(n instanceof $o)||n.name!=="case"&&n.name!=="default"){e.push(new Re(n.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}n.name==="default"?(r?e.push(new Re(n.startSourceSpan,"@switch block can only have one @default block")):n.parameters.length>0&&e.push(new Re(n.startSourceSpan,"@default block cannot have parameters")),r=!0):n.name==="case"&&n.parameters.length!==1&&e.push(new Re(n.startSourceSpan,"@case block must have exactly one parameter"))}return e}function EI(t,e,r){let n,i;return typeof r=="string"?(n=Math.max(0,t.expression.lastIndexOf(r)),i=n+r.length):(n=0,i=t.expression.length),e.parseBinding(t.expression.slice(n,i),!1,t.sourceSpan,t.sourceSpan.start.offset+n)}function Zme(t,e,r){if(t.parameters.length===0)return e.push(new Re(t.startSourceSpan,"Conditional block does not have an expression")),null;let n=EI(t.parameters[0],r),i=null;for(let s=1;s<t.parameters.length;s++){let o=t.parameters[s],a=o.expression.match(Est);if(a===null)e.push(new Re(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!qM.test(t.name))e.push(new Re(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(i!==null)e.push(new Re(o.sourceSpan,'Conditional can only have one "as" expression'));else{let u=a[2].trim();if(Tst.test(u)){let c=o.sourceSpan.start.moveBy(a[1].length),l=new je(c,c.moveBy(u.length));i=new Dp(u,u,l,l)}else e.push(new Re(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:n,expressionAlias:i}}function Dst(t,e){let r=t.expression,n=/^\s$/,i=0,s=0,o=r.length-1;for(let a=0;a<r.length;a++){let u=r[a];if(u==="(")s=a+1,i++;else{if(n.test(u))continue;break}}if(i===0)return r;for(let a=r.length-1;a>-1;a--){let u=r[a];if(u===")"){if(o=a,i--,i===0)break}else{if(n.test(u))continue;break}}return i!==0?(e.push(new Re(t.sourceSpan,"Unclosed parentheses in expression")),null):r.slice(s,o)}var IV=class extends z_{hasPipe=!1;visitPipe(){this.hasPipe=!0}},Mst=/^\d+\.?\d*(ms|s)?$/,Rst=/^\s$/,Xme=new Map([[xa,Wi],[Jc,vd],[io,ni]]),Ti;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Ti||(Ti={}));function kst({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),s=new je(e.start.moveBy(i),e.start.moveBy(i+5)),o=oH(t,e),a=aH(t,e);i===-1?n.push(new Re(e,'Could not find "never" keyword in expression')):uH("never",r,n,new OU(s,e,o,null,a))}function oU({expression:t,sourceSpan:e},r,n,i){let s=t.indexOf("when"),o=new je(e.start.moveBy(s),e.start.moveBy(s+4)),a=oH(t,e),u=aH(t,e);if(s===-1)i.push(new Re(e,'Could not find "when" keyword in expression'));else{let c=SI(t,s+1),l=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);uH("when",n,i,new HD(l,e,a,o,u))}}function aU({expression:t,sourceSpan:e},r,n,i,s){let o=t.indexOf("on"),a=new je(e.start.moveBy(o),e.start.moveBy(o+2)),u=oH(t,e),c=aH(t,e);if(o===-1)i.push(new Re(e,'Could not find "on" keyword in expression'));else{let l=SI(t,o+1),d=t.startsWith("hydrate");new wV(t,r,l,e,n,i,d?Vst:Ust,d,u,a,c).parse()}}function oH(t,e){return t.startsWith("prefetch")?new je(e.start,e.start.moveBy(8)):null}function aH(t,e){return t.startsWith("hydrate")?new je(e.start,e.start.moveBy(7)):null}var wV=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,r,n,i,s,o,a,u,c,l,d){this.expression=e,this.bindingParser=r,this.start=n,this.span=i,this.triggers=s,this.errors=o,this.validator=a,this.isHydrationTrigger=u,this.prefetchSpan=c,this.onSourceSpan=l,this.hydrateSpan=d,this.tokens=new vI().tokenize(e.slice(n))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(Ss))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(io)){this.advance();let r=this.errors.length,n=this.consumeParameters();if(this.errors.length!==r)break;this.consumeTrigger(e,n),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,r){let n=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),i=new je(n,n.moveBy(e.strValue.length)),s=n.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,u=o?this.prefetchSpan:null,c=o?this.hydrateSpan:null,l=new je(o?this.span.start:n,s);try{switch(e.toString()){case Ti.IDLE:this.trackTrigger("idle",Lst(r,i,l,u,a,c));break;case Ti.TIMER:this.trackTrigger("timer",$st(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.INTERACTION:this.trackTrigger("interaction",qst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.IMMEDIATE:this.trackTrigger("immediate",Fst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.HOVER:this.trackTrigger("hover",jst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.VIEWPORT:this.trackTrigger("viewport",Bst(this.start,this.isHydrationTrigger,this.bindingParser,r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(d){this.error(e,d.message)}}consumeParameters(){let e=[];if(!this.token().isCharacter(io))return this.unexpectedToken(this.token()),e;this.advance();let r=[],n=[];for(;this.index<this.tokens.length;){let i=this.token();if(i.isCharacter(ni)&&r.length===0){n.length&&e.push({expression:this.tokenRangeText(n),start:n[0].index});break}if(i.type===$e.Character&&Xme.has(i.numValue)&&r.push(Xme.get(i.numValue)),r.length>0&&i.isCharacter(r[r.length-1])&&r.pop(),r.length===0&&i.isCharacter(Ss)&&n.length>0){e.push({expression:this.tokenRangeText(n),start:n[0].index}),this.advance(),n=[];continue}n.push(i),this.advance()}return(!this.token().isCharacter(ni)||r.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Ss)&&this.unexpectedToken(this.tokens[this.index+1]),e}tokenRangeText(e){return e.length===0?"":this.expression.slice(this.start+e[0].index,this.start+e[e.length-1].end)}trackTrigger(e,r){uH(e,this.triggers,this.errors,r)}error(e,r){let n=this.span.start.moveBy(this.start+e.index),i=n.moveBy(e.end-e.index);this.errors.push(new Re(new je(n,i),r))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function uH(t,e,r,n){e[t]?r.push(new Re(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function Lst(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IDLE}" trigger cannot have parameters`);return new PU(e,r,n,i,s)}function $st(t,e,r,n,i,s){if(t.length!==1)throw new Error(`"${Ti.TIMER}" trigger must have exactly one parameter`);let o=CM(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${Ti.TIMER}"`);return new DU(o,e,r,n,i,s)}function Fst(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IMMEDIATE}" trigger cannot have parameters`);return new NU(e,r,n,i,s)}function jst(t,e,r,n,i,s,o){return o(Ti.HOVER,t),new GD(t[0]?.expression??null,e,r,n,i,s)}function qst(t,e,r,n,i,s,o){return o(Ti.INTERACTION,t),new WD(t[0]?.expression??null,e,r,n,i,s)}function Bst(t,e,r,n,i,s,o,a,u,c){c(Ti.VIEWPORT,n);let l,d;if(n.length===0)l=d=null;else if(!n[0].expression.startsWith("{"))l=n[0].expression,d=null;else{let f=r.parseBinding(n[0].expression,!1,s,s.start.offset+t+n[0].start);if(f.ast instanceof e0){if(f.ast.keys.some(m=>m.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(f.ast.keys.some(m=>m.kind==="property"&&m.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 p=f.ast.keys.findIndex(m=>m.kind==="property"&&m.key==="trigger");if(p===-1)l=null,d=f.ast;else{let m=f.ast.values[p],g=(y,_)=>_!==p;if(!(m instanceof Xc)||!(m.receiver instanceof ol))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');l=m.name,d=new e0(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(g),f.ast.values.filter(g))}}if(e&&l!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let f=AV.findDynamicNode(d);if(f!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${f.constructor.name}" was found`)}return new WT(l,d,i,s,o,a,u)}function Ust(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Vst(t,e){if(t===Ti.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 SI(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(Rst.test(t[n]))r=!0;else if(r)return n;return-1}function CM(t){let e=t.match(Mst);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var AV=class t extends z_{dynamicNode=null;static findDynamicNode(e){let r=new t;return r.visit(e),r.dynamicNode}visit(e){!(e instanceof bs)&&!(e instanceof _s)&&!(e instanceof $T)&&!(e instanceof e0)?this.dynamicNode=e:super.visit(e)}},Hst=/^prefetch\s+when\s/,Gst=/^prefetch\s+on\s/,Wst=/^hydrate\s+when\s/,Kst=/^hydrate\s+on\s/,zst=/^hydrate\s+never(\s*)$/,R0e=/^minimum\s/,Qst=/^after\s/,Yst=/^when\s/,Zst=/^on\s/;function xV(t){return t==="placeholder"||t==="loading"||t==="error"}function Xst(t,e,r,n){let i=[],{placeholder:s,loading:o,error:a}=Jst(e,i,r),{triggers:u,prefetchTriggers:c,hydrateTriggers:l}=not(t,n,i),d=t.endSourceSpan,f=t.sourceSpan.end;if(e.length>0){let g=e[e.length-1];d=g.endSourceSpan,f=g.sourceSpan.end}let p=new je(t.sourceSpan.start,f);return{node:new t0(Sr(r,t.children,t.children),u,c,l,s,o,a,t.nameSpan,p,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:i}}function Jst(t,e,r){let n=null,i=null,s=null;for(let o of t)try{if(!xV(o.name)){e.push(new Re(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":n!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @placeholder block")):n=eot(o,r);break;case"loading":i!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @loading block")):i=tot(o,r);break;case"error":s!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @error block")):s=rot(o,r);break}}catch(a){e.push(new Re(o.startSourceSpan,a.message))}return{placeholder:n,loading:i,error:s}}function eot(t,e){let r=null;for(let n of t.parameters)if(R0e.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=CM(n.expression.slice(SI(n.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @placeholder block: "${n.expression}"`);return new KT(Sr(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function tot(t,e){let r=null,n=null;for(let i of t.parameters)if(Qst.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let s=CM(i.expression.slice(SI(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "after"');r=s}else if(R0e.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let s=CM(i.expression.slice(SI(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new zT(Sr(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function rot(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new QT(Sr(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function not(t,e,r,n){let i={},s={},o={};for(let a of t.parameters)Yst.test(a.expression)?oU(a,e,i,r):Zst.test(a.expression)?aU(a,e,i,r):Hst.test(a.expression)?oU(a,e,s,r):Gst.test(a.expression)?aU(a,e,s,r):Wst.test(a.expression)?oU(a,e,o,r):Kst.test(a.expression)?aU(a,e,o,r):zst.test(a.expression)?kst(a,o,r):r.push(new Re(a.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&r.push(new Re(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:s,hydrateTriggers:o}}var iot=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Jme=1,ege=2,tge=3,rge=4,nge=5,sot=6,mT=7,Ep={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},uU="*",oot=new Set(["link","style","script","ng-template","ng-container","ng-content"]),aot=new Set(["ngProjectAs","ngNonBindable"]);function uot(t,e,r){let n=new CV(e,r),i=Sr(n,t,t),s=e.errors.concat(n.errors),o={nodes:i,errors:s,styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return r.collectCommentNodes&&(o.commentNodes=n.commentNodes),o}var CV=class{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(e,r){this.bindingParser=e,this.options=r}visitElement(e){let r=bD(e.i18n);r&&(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 n=M0e(e);if(n.type===Es.SCRIPT)return null;if(n.type===Es.STYLE){let _=cot(e);return _!==null&&this.styles.push(_),null}else if(n.type===Es.STYLESHEET&&ast(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=_Ze(e.name),{attributes:s,boundEvents:o,references:a,variables:u,templateVariables:c,elementHasInlineTemplate:l,parsedProperties:d,templateParsedProperties:f,i18nAttrsMeta:p}=this.prepareAttributes(e.attrs,i),m=this.extractDirectives(e),g;n.nonBindable?g=Sr(ige,e.children).flat(1/0):g=Sr(this,e.children,e.children);let y;if(n.type===Es.NG_CONTENT){let _=n.selectAttr,b=e.attrs.map(S=>this.visitAttribute(S));y=new X_(_,b,g,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(_)}else if(i){let _=this.categorizePropertyAttributes(e.name,d,p);y=new so(e.name,s,_.bound,o,m,[],g,a,u,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let _=this.categorizePropertyAttributes(e.name,d,p);if(e.name==="ng-container")for(let b of _.bound)b.type===It.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",b.sourceSpan);y=new al(e.name,s,_.bound,o,m,g,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return l&&(y=this.wrapInTemplate(y,f,c,p,i,r)),r&&(this.inI18nBlock=!1),y}visitAttribute(e){return new Y_(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(!bD(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let r=e.i18n,n={},i={};return Object.keys(r.placeholders).forEach(s=>{let o=r.placeholders[s];if(s.startsWith(TZe)){let a=s.trim(),u=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);n[a]=new Q_(u,o.sourceSpan)}else i[s]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Sge(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new kM(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,r){let n=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return n.errors.length===0&&n.ast instanceof Vi&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new VV(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=bD(e.i18n);if(r&&(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&&oot.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:n,boundEvents:i,references:s,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:u,templateParsedProperties:c,i18nAttrsMeta:l}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(s);let d=this.extractDirectives(e),f;e.attrs.find(g=>g.name==="ngNonBindable")?f=Sr(ige,e.children).flat(1/0):f=Sr(this,e.children,e.children);let p=this.categorizePropertyAttributes(e.tagName,u,l),m=new ET(e.componentName,e.tagName,e.fullName,n,p.bound,i,d,f,s,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(m=this.wrapInTemplate(m,c,o,l,!1,r)),r&&(this.inI18nBlock=!1),m}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,r){let n=Array.isArray(r)?r.indexOf(e):-1;if(n===-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 i=null;switch(e.name){case"defer":i=Xst(e,this.findConnectedBlocks(n,r,xV),this,this.bindingParser);break;case"switch":i=Ast(e,this,this.bindingParser);break;case"for":i=wst(e,this.findConnectedBlocks(n,r,Qme),this,this.bindingParser);break;case"if":i=Ist(e,this.findConnectedBlocks(n,r,Yme),this,this.bindingParser);break;default:let s;xV(e.name)?(s=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Qme(e.name)?(s=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Yme(e.name)?(s=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):s=`Unrecognized block @${e.name}.`,i={node:new QD(e.name,e.sourceSpan,e.nameSpan),errors:[new Re(e.sourceSpan,s)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(e,r,n){let i=[];for(let s=e+1;s<r.length;s++){let o=r[s];if(!(o instanceof mI)){if(o instanceof c0&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof $o)||!n(o.name))break;i.push(o),this.processedNodes.add(o)}}return i}categorizePropertyAttributes(e,r,n){let i=[],s=[];return r.forEach(o=>{let a=n[o.name];if(o.isLiteral)s.push(new Y_(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let u=this.bindingParser.createBoundElementProperty(e,o,!0,!1);i.push(xU.fromBoundElementProperty(u,a))}}),{bound:i,literal:s}}prepareAttributes(e,r){let n=[],i=[],s=[],o=[],a=[],u={},c=[],l=[],d=!1;for(let f of e){let p=!1,m=sge(f.name),g=!1;if(f.i18n&&(u[f.name]=f.i18n),m.startsWith(uU)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.sourceSpan),g=!0,d=!0;let y=f.value,_=m.substring(uU.length),b=[],S=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(_,y,f.sourceSpan,S,[],c,b,!0),l.push(...b.map(x=>new Dp(x.name,x.value,x.sourceSpan,x.keySpan,x.valueSpan)))}else p=this.parseAttribute(r,f,[],n,i,s,o);!p&&!g&&a.push(this.visitAttribute(f))}return{attributes:a,boundEvents:i,references:o,variables:s,templateVariables:l,elementHasInlineTemplate:d,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:u}}parseAttribute(e,r,n,i,s,o,a){let u=sge(r.name),c=r.value,l=r.sourceSpan,d=r.valueSpan?r.valueSpan.fullStart.offset:l.fullStart.offset;function f(_,b,S){let x=r.name.length-u.length,M=_.start.moveBy(b.length+x),se=M.moveBy(S.length);return new je(M,se,M,S)}let p=u.match(iot);if(p){if(p[Jme]!=null){let _=p[mT],b=f(l,p[Jme],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b)}else if(p[ege])if(e){let _=p[mT],b=f(l,p[ege],_);this.parseVariable(_,c,l,b,r.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(p[tge]){let _=p[mT],b=f(l,p[tge],_);this.parseReference(_,c,l,b,r.valueSpan,a)}else if(p[rge]){let _=[],b=p[mT],S=f(l,p[rge],b);this.bindingParser.parseEvent(b,c,!1,l,r.valueSpan||l,n,_,S),cU(_,s)}else if(p[nge]){let _=p[mT],b=f(l,p[nge],_);this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,s,b,d)}else if(p[sot]){let _=f(l,"",u);this.bindingParser.parseLiteralAttr(u,c,l,d,r.valueSpan,n,i,_)}return!0}let m=null;if(u.startsWith(Ep.BANANA_BOX.start)?m=Ep.BANANA_BOX:u.startsWith(Ep.PROPERTY.start)?m=Ep.PROPERTY:u.startsWith(Ep.EVENT.start)&&(m=Ep.EVENT),m!==null&&u.endsWith(m.end)&&u.length>m.start.length+m.end.length){let _=u.substring(m.start.length,u.length-m.end.length),b=f(l,m.start,_);if(m.start===Ep.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,s,b,d);else if(m.start===Ep.PROPERTY.start)this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b);else{let S=[];this.bindingParser.parseEvent(_,c,!1,l,r.valueSpan||l,n,S,b),cU(S,s)}return!0}let g=f(l,"",u);return this.bindingParser.parsePropertyInterpolation(u,c,l,r.valueSpan,n,i,g,r.valueTokens??null)}extractDirectives(e){let r=e instanceof vs?e.tagName:e.name,n=[],i=new Set;for(let s of e.directives){let o=!1;for(let p of s.attrs)p.name.startsWith(uU)?(o=!0,this.reportError(`Shorthand template syntax "${p.name}" is not supported inside a directive context`,p.sourceSpan)):aot.has(p.name)&&(o=!0,this.reportError(`Attribute "${p.name}" is not supported in a directive context`,p.sourceSpan));if(!o&&i.has(s.name)&&(o=!0,this.reportError(`Cannot apply directive "${s.name}" multiple times on the same element`,s.sourceSpan)),o)continue;let{attributes:a,parsedProperties:u,boundEvents:c,references:l,i18nAttrsMeta:d}=this.prepareAttributes(s.attrs,!1);this.validateSelectorlessReferences(l);let{bound:f}=this.categorizePropertyAttributes(r,u,d);for(let p of f)p.type!==It.Property&&p.type!==It.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",p.sourceSpan));o||(i.add(s.name),n.push(new Ege(s.name,a,f,c,l,s.sourceSpan,s.startSourceSpan,s.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(r=>!r.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(r=>r.type!==It.Animation)}wrapInTemplate(e,r,n,i,s,o){let a=this.categorizePropertyAttributes("ng-template",r,i),u=[];a.literal.forEach(f=>u.push(f)),a.bound.forEach(f=>u.push(f));let c={attributes:[],inputs:[],outputs:[]};(e instanceof al||e instanceof ET)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let l=s&&o?void 0:e.i18n,d;return e instanceof ET?d=e.tagName:e instanceof so?d=null:d=e.name,new so(d,c.attributes,c.inputs,c.outputs,[],u,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,l)}_visitTextWithInterpolation(e,r,n,i){let s=l0e(e),o=this.bindingParser.parseInterpolation(s,r,n);return o?new Q_(o,r,i):new jg(s,r)}parseVariable(e,r,n,i,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),o.push(new Dp(e,r,n,i,s))}parseReference(e,r,n,i,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),o.push(new XT(e,r,n,i,s))}parseAssignmentEvent(e,r,n,i,s,o,a,u){let c=[];this.bindingParser.parseEvent(`${e}Change`,r,!0,n,i||n,s,c,a),cU(c,o)}validateSelectorlessReferences(e){if(e.length===0)return;let r=new Set;for(let n of e)n.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",n.valueSpan||n.sourceSpan):r.has(n.name)?this.reportError("Duplicate reference names are not allowed",n.sourceSpan):r.add(n.name)}reportError(e,r,n=_d.ERROR){this.errors.push(new Re(r,e,n))}},OV=class{visitElement(e){let r=M0e(e);if(r.type===Es.SCRIPT||r.type===Es.STYLE||r.type===Es.STYLESHEET)return null;let n=Sr(this,e.children,null);return new al(e.name,Sr(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new Y_(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new jg(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,r){let n=[new jg(e.startSourceSpan.toString(),e.startSourceSpan),...Sr(this,e.children)];return e.endSourceSpan!==null&&n.push(new jg(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,r){return null}visitLetDeclaration(e,r){return new jg(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,r){let n=Sr(this,e.children,null);return new al(e.fullName,Sr(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,r){return null}},ige=new OV;function sge(t){return/^data-/i.test(t)?t.substring(5):t}function cU(t,e){e.push(...t.map(r=>CU.fromParsedEvent(r)))}function cot(t){return t.children.length!==1||!(t.children[0]instanceof c0)?null:t.children[0].value}var lot=[" ",`
|
|
264
264
|
`,"\r"," "];function dot(t,e,r={}){let{preserveWhitespaces:n,enableI18nLegacyMessageIdFormat:i}=r,s=r.enableSelectorless??!1,o=OM(s),u=new bV().parse(t,e,{leadingTriviaChars:lot,...r,tokenizeExpansionForms:!0,tokenizeBlocks:r.enableBlockSyntax??!0,tokenizeLet:r.enableLetSyntax??!0,selectorlessEnabled:s});if(!r.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){let x={preserveWhitespaces:n,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(x.commentNodes=[]),x}let c=u.rootNodes,l=!(r.preserveSignificantWhitespace??!0),d=new bM(!n,i,r.preserveSignificantWhitespace,l),f=d.visitAllWithErrors(c);if(!r.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let x={preserveWhitespaces:n,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(x.commentNodes=[]),x}c=f.rootNodes,n||(c=Sr(new vM(!0,void 0,!1),c),d.hasI18nMeta&&(c=Sr(new bM(!1,void 0,!0,l),c)));let{nodes:p,errors:m,styleUrls:g,styles:y,ngContentSelectors:_,commentNodes:b}=uot(c,o,{collectCommentNodes:!!r.collectCommentNodes});m.push(...u.errors,...f.errors);let S={preserveWhitespaces:n,errors:m.length>0?m:null,nodes:p,styleUrls:g,styles:y,ngContentSelectors:_};return r.collectCommentNodes&&(S.commentNodes=b),S}var fot=new sb;function OM(t=!1){return new EV(new _M(new vI,t),fot,[])}var k0e="%COMP%",pot=`_nghost-${k0e}`,hot=`_ngcontent-${k0e}`;function L0e(t,e,r){let n=new kp,i=jV(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",D_(i)),t.queries.length>0&&n.set("contentQueries",rst(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",tst(t.viewQueries,e,t.name)),n.set("hostBindings",Sot(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",Fhe(t.inputs,!0)),n.set("outputs",Fhe(t.outputs)),t.exportAs!==null&&n.set("exportAs",nr(t.exportAs.map(s=>C(s)))),t.isStandalone===!1&&n.set("standalone",C(!1)),t.isSignal&&n.set("signals",C(!0)),n}function $0e(t,e){let r=[],n=e.providers,i=e.viewProviders;if(n||i){let s=[n||new il([])];i&&s.push(i),r.push(Ee(T.ProvidersFeature).callFn(s))}if(e.hostDirectives?.length&&r.push(Ee(T.HostDirectivesFeature).callFn([xot(e.hostDirectives)])),e.usesInheritance&&r.push(Ee(T.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&r.push(Ee(T.NgOnChangesFeature)),"externalStyles"in e&&e.externalStyles?.length){let s=e.externalStyles.map(o=>C(o));r.push(Ee(T.ExternalStylesFeature).callFn([nr(s)]))}r.length&&t.set("features",nr(r))}function mot(t,e,r){let n=L0e(t,e,r);$0e(n,t);let i=Ee(T.defineDirective).callFn([n.toLiteralMap()],void 0,!0),s=Eot(t);return{expression:i,type:s,statements:[]}}function got(t,e,r){let n=L0e(t,e,r);$0e(n,t);let i=t.selector&&q_.parse(t.selector),s=i&&i[0];if(s){let m=s.getAttrs();m.length&&n.set("attrs",e.getConstLiteral(nr(m.map(g=>g!=null?C(g):C(void 0))),!0))}let o=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let m=`${o}_DeferFn`;e.statements.push(new Pn(m,t.defer.dependenciesFn,void 0,Vn.Final)),a=vt(m)}let u=t.isStandalone&&!t.hasDirectiveDependencies?Gi.DomOnly:Gi.Full,c=Nit(t.name,t.template.nodes,e,u,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,Xit());S0e(c,ue.Tmpl);let l=xit(c,e);if(c.contentSelectors!==null&&n.set("ngContentSelectors",c.contentSelectors),n.set("decls",C(c.root.decls)),n.set("vars",C(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?n.set("consts",sl([],[...c.constsInitializers,new oi(nr(c.consts))])):n.set("consts",nr(c.consts))),n.set("template",l),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",vot(nr(t.declarations.map(m=>m.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let m=[t.type.value];t.rawImports&&m.push(t.rawImports),n.set("dependencies",Ee(T.getComponentDepsFactory).callFn(m))}t.encapsulation===null&&(t.encapsulation=wp.Emulated);let d=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let g=(t.encapsulation==wp.Emulated?Aot(t.styles,hot,pot):t.styles).reduce((y,_)=>(_.trim().length>0&&y.push(e.getConstLiteral(C(_))),y),[]);g.length>0&&(d=!0,n.set("styles",nr(g)))}!d&&t.encapsulation===wp.Emulated&&(t.encapsulation=wp.None),t.encapsulation!==wp.Emulated&&n.set("encapsulation",C(t.encapsulation)),t.animations!==null&&n.set("data",qo([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==TD.Default?n.set("changeDetection",C(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=Ee(T.defineComponent).callFn([n.toLiteralMap()],void 0,!0),p=yot(t);return{expression:f,type:p,statements:[]}}function yot(t){let e=F0e(t);return e.push(NV(t.template.ngContentSelectors)),e.push(ai(C(t.isStandalone))),e.push(j0e(t)),t.isSignal&&e.push(ai(C(t.isSignal))),ai(Ee(T.ComponentDeclaration,e))}function vot(t,e){switch(e){case 0:return t;case 1:return sl([],t);case 2:let r=t.prop("map").callFn([Ee(T.resolveForwardRef)]);return sl([],r);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function _ot(t){return ai(C(t))}function PV(t){let e=Object.keys(t).map(r=>{let n=Array.isArray(t[r])?t[r][0]:t[r];return{key:r,value:C(n),quoted:!0}});return qo(e)}function NV(t){return t.length>0?ai(nr(t.map(e=>C(e)))):rl}function F0e(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[RM(t.type.type,t.typeArgumentCount),e!==null?_ot(e):rl,t.exportAs!==null?NV(t.exportAs):rl,ai(bot(t)),ai(PV(t.outputs)),NV(t.queries.map(r=>r.propertyName))]}function bot(t){return qo(Object.keys(t.inputs).map(e=>{let r=t.inputs[e],n=[{key:"alias",value:C(r.bindingPropertyName),quoted:!0},{key:"required",value:C(r.required),quoted:!0}];return r.isSignal&&n.push({key:"isSignal",value:C(r.isSignal),quoted:!0}),{key:e,value:qo(n),quoted:!0}}))}function Eot(t){let e=F0e(t);return e.push(rl),e.push(ai(C(t.isStandalone))),e.push(j0e(t)),t.isSignal&&e.push(ai(C(t.isSignal))),ai(Ee(T.DirectiveDeclaration,e))}function Sot(t,e,r,n,i,s,o){let a=r.createBoundHostProperties(t.properties,e),u=r.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=C(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=C(t.specialAttributes.classAttr));let c=Dit({componentName:s,componentSelector:i,properties:a,events:u,attributes:t.attributes},r,n);S0e(c,ue.Host),o.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&o.set("hostVars",C(l)),Cit(c)}var Tot=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Iot(t){let e={},r={},n={},i={};for(let s of Object.keys(t)){let o=t[s],a=s.match(Tot);if(a===null)switch(s){case"class":if(typeof o!="string")throw new Error("Class binding must be string");i.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");i.styleAttr=o;break;default:typeof o=="string"?e[s]=C(o):e[s]=o}else if(a[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");n[a[1]]=o}else if(a[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");r[a[2]]=o}}return{attributes:e,listeners:r,properties:n,specialAttributes:i}}function wot(t,e){let r=OM();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),r.errors}function Aot(t,e,r){let n=new UU;return t.map(i=>n.shimCssText(i,e,r))}function j0e(t){return t.hostDirectives?.length?ai(nr(t.hostDirectives.map(e=>qo([{key:"directive",value:TI(e.directive.type),quoted:!1},{key:"inputs",value:PV(e.inputs||{}),quoted:!1},{key:"outputs",value:PV(e.outputs||{}),quoted:!1}])))):rl}function xot(t){let e=[],r=!1;for(let n of t){if(!n.inputs&&!n.outputs)e.push(n.directive.type);else{let i=[{key:"directive",value:n.directive.type,quoted:!1}];if(n.inputs){let s=oge(n.inputs);s&&i.push({key:"inputs",value:s,quoted:!1})}if(n.outputs){let s=oge(n.outputs);s&&i.push({key:"outputs",value:s,quoted:!1})}e.push(qo(i))}n.isForwardReference&&(r=!0)}return r?new Cp([],[new oi(nr(e))]):nr(e)}function oge(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(C(r),C(t[r]));return e.length>0?nr(e):null}var DV=class extends z_{visit(e){e instanceof bs?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(r=>this.visit(e.vars[r])),Object.keys(e.placeholders).forEach(r=>this.visit(e.placeholders[r]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof HD?this.visit(e.value):e instanceof WT&&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 r of e)this.visit(r)}};var MV=class{directiveMatcher;constructor(e){this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let r=new Map,n=[],i=new Set,s=new Map,o=new Map,a=new Map,u=new Map,c=new Map,l=new Map,d=new Set,f=new Set,p=[];if(e.template){let m=PM.apply(e.template);Cot(m,a),RV.apply(e.template,this.directiveMatcher,r,n,i,s,o),NM.applyWithScope(e.template,m,u,c,l,d,f,p)}return e.host&&(r.set(e.host.node,e.host.directives),NM.applyWithScope(e.host.node,PM.apply(e.host.node),u,c,l,d,f,p)),new kV(e,r,n,i,s,o,u,c,l,a,d,f,p)}},PM=class t{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(e,r){this.parentScope=e,this.rootNode=r,this.isDeferred=e!==null&&e.isDeferred?!0:r instanceof t0}static newRootScope(){return new t(null,null)}static apply(e){let r=t.newRootScope();return r.ingest(e),r}ingest(e){e instanceof so?(e.variables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Bg?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(r=>r.visit(this))):e instanceof Z_?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof YT||e instanceof ZT||e instanceof t0||e instanceof QT||e instanceof KT||e instanceof zT||e instanceof X_?e.children.forEach(r=>r.visit(this)):e instanceof JT||e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),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(r=>r.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(r=>r.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(r=>this.visitReference(r))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),e.children.forEach(r=>r.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 r=this.childScopes.get(e);if(r===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return r}ingestScopedNode(e){let r=new t(this,e);r.ingest(e),this.childScopes.set(e,r)}},RV=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,r,n,i,s,o){this.directiveMatcher=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=o}static apply(e,r,n,i,s,o,a){new t(r,n,i,s,o,a).ingest(e)}ingest(e){e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){let r=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(n=>n.visit(this)),this.isInDeferBlock=r,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockError(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(r=>r.visit(this))}visitSwitchBlock(e){e.groups.forEach(r=>r.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(r=>r.visit(this))}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(r=>r.visit(this))}visitIfBlock(e){e.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(r=>r.visit(this))}visitContent(e){e.children.forEach(r=>r.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof SD){let r=this.directiveMatcher.match(e.componentName);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.componentName)}e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof SD){let r=this.directiveMatcher.match(e.name);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof ED){let r=[],n=AZe(e);this.directiveMatcher.match(n,(i,s)=>r.push(...s)),this.trackSelectorBasedBindingsAndDirectives(e,r)}else e.references.forEach(r=>{r.value.trim()===""&&this.references.set(r,e)});e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}trackMatchedDirectives(e,r){r.length>0&&(this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r))}trackSelectorlessMatchesAndDirectives(e,r){if(r.length===0)return;this.trackMatchedDirectives(e,r);let n=(i,s,o)=>{i[o].hasBindingPropertyName(s.name)&&this.bindings.set(s,i)};for(let i of r)e.inputs.forEach(s=>n(i,s,"inputs")),e.attributes.forEach(s=>n(i,s,"inputs")),e.outputs.forEach(s=>n(i,s,"outputs"));e.references.forEach(i=>this.references.set(i,{directive:r[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,r){this.trackMatchedDirectives(e,r),e.references.forEach(i=>{let s=null;if(i.value.trim()==="")s=r.find(o=>o.isComponent)||null;else if(s=r.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===i.value))||null,s===null)return;s!==null?this.references.set(i,{directive:s,node:e}):this.references.set(i,e)});let n=(i,s)=>{let o=r.find(u=>u[s].hasBindingPropertyName(i.name)),a=o!==void 0?o:e;this.bindings.set(i,a)};e.inputs.forEach(i=>n(i,"inputs")),e.attributes.forEach(i=>n(i,"inputs")),e instanceof so&&e.templateAttrs.forEach(i=>n(i,"inputs")),e.outputs.forEach(i=>n(i,"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){}},NM=class t extends DV{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,r,n,i,s,o,a,u,c){super(),this.bindings=e,this.symbols=r,this.usedPipes=n,this.eagerPipes=i,this.deferBlocks=s,this.nestingLevel=o,this.scope=a,this.rootNode=u,this.level=c}static applyWithScope(e,r,n,i,s,o,a,u){let c=e instanceof so?e:null;new t(n,i,o,a,u,s,r,c,0).ingest(e)}ingest(e){if(e instanceof so)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Bg)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Z_)this.visitNode(e.item),e.contextVariables.forEach(r=>this.visitNode(r)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof t0){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(r=>r.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof YT||e instanceof ZT||e instanceof QT||e instanceof KT||e instanceof zT||e instanceof X_?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof JT?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(r=>r.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,r){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,r)}visitPropertyRead(e,r){return this.maybeMap(e,e.name),super.visitPropertyRead(e,r)}visitSafePropertyRead(e,r){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,r)}ingestScopedNode(e){let r=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,r,e,this.level+1).ingest(e)}maybeMap(e,r){if(!(e.receiver instanceof ol))return;let n=this.scope.lookup(r);n!==null&&this.bindings.set(e,n)}},kV=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,r,n,i,s,o,a,u,c,l,d,f,p){this.target=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=o,this.exprTargets=a,this.symbols=u,this.nestingLevel=c,this.scopedNodeEntities=l,this.usedPipes=d,this.eagerPipes=f,this.deferredBlocks=p.map(m=>m[0]),this.deferredScopes=new Map(p)}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(r=>r.forEach(n=>e.add(n))),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,r){if(!(r instanceof WD)&&!(r instanceof WT)&&!(r instanceof GD))return null;let n=r.reference;if(n===null){let s=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof kM)){if(s!==null)return null;o instanceof al&&(s=o)}}return s}let i=this.findEntityInScope(e,n);if(i instanceof XT&&this.getDefinitionNodeOfSymbol(i)!==e){let s=this.getReferenceTarget(i);if(s!==null)return this.referenceTargetToElement(s)}if(e.placeholder!==null){let s=this.findEntityInScope(e.placeholder,n),o=s instanceof XT?this.getReferenceTarget(s):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let r of this.deferredBlocks){if(!this.deferredScopes.has(r))continue;let n=[this.deferredScopes.get(r)];for(;n.length>0;){let i=n.pop();if(i.elementLikeInScope.has(e))return!0;n.push(...i.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}findEntityInScope(e,r){let n=this.getEntitiesInScope(e);for(let i of n)if(i.name===r)return i;return null}referenceTargetToElement(e){return e instanceof al?e:e instanceof so||e.node instanceof ET||e.node instanceof Ege||e.node instanceof JT?null:this.referenceTargetToElement(e.node)}};function Cot(t,e){let r=new Map;function n(s){if(r.has(s.rootNode))return r.get(s.rootNode);let o=s.namedEntities,a;return s.parentScope!==null?a=new Map([...n(s.parentScope),...o]):a=new Map(o),r.set(s.rootNode,a),a}let i=[t];for(;i.length>0;){let s=i.pop();for(let o of s.childScopes.values())i.push(o);n(s)}for(let[s,o]of r)e.set(s,new Set(o.values()))}var LV=class{},$V=class{jitEvaluator;FactoryTarget=Qc;ResourceLoader=LV;elementSchemaRegistry=new sb;constructor(e=new jU){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:Cn(n.type),typeArgumentCount:0,deps:null,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},s=Qhe(i);return this.jitExpression(s.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=Got(n),s=Qhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:s}=jhe({name:n.name,type:Cn(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:fge(n.providedIn),useClass:C_(n,"useClass"),useFactory:dge(n,"useFactory"),useValue:C_(n,"useValue"),useExisting:C_(n,"useExisting"),deps:n.deps?.map(V0e)},!0);return this.jitExpression(i,e,r,s)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:s}=jhe({name:n.type.name,type:Cn(n.type),typeArgumentCount:0,providedIn:fge(n.providedIn),useClass:C_(n,"useClass"),useFactory:dge(n,"useFactory"),useValue:C_(n,"useValue"),useExisting:C_(n,"useExisting"),deps:n.deps?.map(pge)},!0);return this.jitExpression(i,e,r,s)}compileInjector(e,r,n){let i={name:n.name,type:Cn(n.type),providers:n.providers&&n.providers.length>0?new mt(n.providers):null,imports:n.imports.map(o=>new mt(o))},s=zhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=Wot(n),s=zhe(i);return this.jitExpression(s.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:bd.Global,type:Cn(n.type),bootstrap:n.bootstrap.map(Cn),declarations:n.declarations.map(Cn),publicDeclarationTypes:null,imports:n.imports.map(Cn),includeImportTypes:!0,exports:n.exports.map(Cn),selectorScopeMode:oI.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(Cn):null,id:n.id?new mt(n.id):null},s=WZe(i);return this.jitExpression(s.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=KZe(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=cge(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),s=B0e(n,i);return this.compileDirectiveFromMeta(e,r,s)}compileDirectiveFromMeta(e,r,n){let i=new RD,s=OM(),o=mot(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,defer:s}=U0e(n.template,n.name,r,n.preserveWhitespaces,void 0),o={...n,...cge(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(Dot),declarationListEmitMode:0,defer:s,styles:[...n.styles,...i.styles],encapsulation:n.encapsulation,changeDetection:n.changeDetection??null,animations:n.animations!=null?new mt(n.animations):null,viewProviders:n.viewProviders!=null?new mt(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null},a=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,r,n){let i=this.createParseSourceSpan("Component",n.type.name,r),s=Not(n,i,r);return this.compileComponentFromMeta(e,r,s)}compileComponentFromMeta(e,r,n){let i=new RD,s=OM(),o=got(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Rg({name:n.name,type:Cn(n.type),typeArgumentCount:n.typeArgumentCount,deps:kot(n.deps),target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}compileFactoryDeclaration(e,r,n){let i=Rg({name:n.type.name,type:Cn(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(pge):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return jZe(e,r,n)}jitExpression(e,r,n,i){let s=[...i,new Pn("$def",e,void 0,Vn.Exported)];return this.jitEvaluator.evaluateStatements(n,s,new BU(r),!0).$def}};function age(t){return{...t,isSignal:t.isSignal,predicate:q0e(t.predicate),read:t.read?new mt(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function uge(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:q0e(t.predicate),descendants:t.descendants??!1,read:t.read?new mt(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function q0e(t){return Array.isArray(t)?t:UV(new mt(t),1)}function cge(t){let e=Hot(t.inputs||[]),r=dU(t.outputs||[]),n=t.propMetadata,i={},s={};for(let a in n)n.hasOwnProperty(a)&&n[a].forEach(u=>{qot(u)?i[a]={bindingPropertyName:u.alias||a,classPropertyName:a,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new mt(u.transform):null}:Bot(u)&&(s[a]=u.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Cn(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Cn(a.directive),isForwardReference:!1,inputs:a.inputs?dU(a.inputs):null,outputs:a.outputs?dU(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Cn(t.type),deps:null,host:{...$ot(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...i},outputs:{...r,...s},queries:t.queries.map(age),providers:t.providers!=null?new mt(t.providers):null,viewQueries:t.viewQueries.map(age),hostDirectives:o}}function B0e(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:Cn(n.directive),isForwardReference:!1,inputs:n.inputs?lge(n.inputs):null,outputs:n.outputs?lge(n.outputs):null})):null;return{name:t.type.name,type:Cn(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?Uot(t.inputs):{},outputs:t.outputs??{},host:Oot(t.host),queries:(t.queries??[]).map(uge),viewQueries:(t.viewQueries??[]).map(uge),providers:t.providers!==void 0?new mt(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:t.isStandalone??bge(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function Oot(t={}){return{attributes:Pot(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function lge(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function Pot(t){let e={};for(let r of Object.keys(t))e[r]=new mt(t[r]);return e}function Not(t,e,r){let{template:n,defer:i}=U0e(t.template,t.type.name,r,t.preserveWhitespaces??!1,t.deferBlockDependencies),s=[];if(t.dependencies)for(let a of t.dependencies)switch(a.kind){case"directive":case"component":s.push(lU(a));break;case"pipe":s.push(Rot(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&s.push(...t.components.map(a=>lU(a,!0))),t.directives&&s.push(...t.directives.map(a=>lU(a))),t.pipes&&s.push(...Mot(t.pipes)));let o=s.some(({kind:a})=>a===n0.Directive||a===n0.NgModule);return{...B0e(t,e),template:n,styles:t.styles??[],declarations:s,viewProviders:t.viewProviders!==void 0?new mt(t.viewProviders):null,animations:t.animations!==void 0?new mt(t.animations):null,defer:i,changeDetection:t.changeDetection??TD.Default,encapsulation:t.encapsulation??wp.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o}}function Dot(t){return{...t,type:new mt(t.type)}}function lU(t,e=null){return{kind:n0.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new mt(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function Mot(t){return t?Object.keys(t).map(e=>({kind:n0.Pipe,name:e,type:new mt(t[e])})):[]}function Rot(t){return{kind:n0.Pipe,name:t.name,type:new mt(t.type)}}function U0e(t,e,r,n,i){let s=dot(t,r,{preserveWhitespaces:n});if(s.errors!==null){let u=s.errors.map(c=>c.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let a=new MV(null).bind({template:s.nodes});return{template:s,defer:Lot(a,i)}}function C_(t,e){if(t.hasOwnProperty(e))return UV(new mt(t[e]),0)}function dge(t,e){if(t.hasOwnProperty(e))return new mt(t[e])}function fge(t){let e=typeof t=="function"?new mt(t):new ui(t??null);return UV(e,0)}function kot(t){return t==null?null:t.map(V0e)}function V0e(t){let e=t.attribute!=null,r=t.token===null?null:new mt(t.token),n=e?new mt(t.attribute):r;return H0e(n,e,t.host,t.optional,t.self,t.skipSelf)}function pge(t){let e=t.attribute??!1,r=t.token===null?null:new mt(t.token);return H0e(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function H0e(t,e,r,n,i,s){let o=e?C("unknown"):null;return{token:t,attributeNameType:o,host:r,optional:n,self:i,skipSelf:s}}function Lot(t,e){let r=t.getDeferBlocks(),n=new Map;for(let i=0;i<r.length;i++){let s=e?.[i];n.set(r[i],s?new mt(s):null)}return{mode:0,blocks:n}}function $ot(t,e,r){let n=Iot(r||{}),i=wot(n,e);if(i.length)throw new Error(i.map(s=>s.msg).join(`
|
|
265
|
-
`));for(let s in t)t.hasOwnProperty(s)&&t[s].forEach(o=>{Fot(o)?n.properties[o.hostPropertyName||s]=uZe("this",s):jot(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function Fot(t){return t.ngMetadataName==="HostBinding"}function jot(t){return t.ngMetadataName==="HostListener"}function qot(t){return t.ngMetadataName==="Input"}function Bot(t){return t.ngMetadataName==="Output"}function Uot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Vot(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new mt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function Vot(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 mt(t[2]):null,required:!1,isSignal:!1}}function Hot(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=G0e(r);e[i]={bindingPropertyName:n,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else e[r.name]={bindingPropertyName:r.alias||r.name,classPropertyName:r.name,required:r.required||!1,isSignal:!1,transformFunction:r.transform!=null?new mt(r.transform):null};return e},{})}function dU(t){return t.reduce((e,r)=>{let[n,i]=G0e(r);return e[i]=n,e},{})}function G0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Got(t){return{name:t.type.name,type:Cn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??bge(t.version)}}function Wot(t){return{name:t.type.name,type:Cn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new mt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new mt(e)):[]}}function Kot(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new $V}var hge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(hge||(hge={}));var FV=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Aa.PARSABLE_DATA}},SIr=new FV;var TIr=new vU("21.1.6");Kot(_T);import*as phe from"fs";var he={};yhe(he,{ANIMATION_MODULE_TYPE:()=>ESe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>nL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>_6,ApplicationRef:()=>Rn,Attribute:()=>zQ,COMPILER_OPTIONS:()=>zJ,CSP_NONCE:()=>SSe,CUSTOM_ELEMENTS_SCHEMA:()=>IY,ChangeDetectionStrategy:()=>Lh,ChangeDetectorRef:()=>p6,Compiler:()=>aA,CompilerFactory:()=>Y8,Component:()=>uAe,ComponentFactory:()=>CA,ComponentFactoryResolver:()=>IE,ComponentRef:()=>fZ,ContentChild:()=>jMt,ContentChildren:()=>FMt,DEFAULT_CURRENCY_CODE:()=>hAe,DOCUMENT:()=>rs,DebugElement:()=>Vh,DebugEventListener:()=>X8,DebugNode:()=>sE,DefaultIterableDiffer:()=>g6,DestroyRef:()=>pi,Directive:()=>KJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>kh,EmbeddedViewRef:()=>mee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>DMt,Host:()=>UQ,HostAttributeToken:()=>pee,HostBinding:()=>fAe,HostListener:()=>pAe,INJECTOR:()=>xk,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>lAe,IterableDiffers:()=>QA,KeyValueDiffers:()=>YA,LOCALE_ID:()=>e6,MAX_ANIMATION_TIMEOUT:()=>SX,MissingTranslationStrategy:()=>Z8,ModuleWithComponentFactories:()=>oA,NO_ERRORS_SCHEMA:()=>wY,NgModule:()=>Ey,NgModuleFactory:()=>OZ,NgModuleRef:()=>Bh,NgZone:()=>Ot,Optional:()=>fy,Output:()=>dAe,OutputEmitterRef:()=>NE,PLATFORM_ID:()=>bSe,PLATFORM_INITIALIZER:()=>i4,PendingTasks:()=>$a,Pipe:()=>cAe,PlatformRef:()=>RE,Query:()=>Iy,QueryList:()=>$w,REQUEST:()=>r9t,REQUEST_CONTEXT:()=>i9t,RESPONSE_INIT:()=>n9t,Renderer2:()=>k8,RendererFactory2:()=>J1,RendererStyleFlags2:()=>Z1,Sanitizer:()=>Qw,SecurityContext:()=>Kd,Self:()=>qQ,SimpleChange:()=>Mw,SkipSelf:()=>BQ,TRANSLATIONS:()=>mAe,TRANSLATIONS_FORMAT:()=>gAe,TemplateRef:()=>jh,Testability:()=>rA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>VQ,VERSION:()=>fk,Version:()=>KI,ViewChild:()=>BMt,ViewChildren:()=>qMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>h6,afterEveryRender:()=>Gw,afterNextRender:()=>SA,afterRenderEffect:()=>See,asNativeElements:()=>yAe,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>O1,assertPlatform:()=>Ixe,booleanAttribute:()=>$3t,computed:()=>Xo,contentChild:()=>dxe,contentChildren:()=>fxe,createComponent:()=>J3t,createEnvironmentInjector:()=>wE,createNgModule:()=>PZ,createNgModuleRef:()=>dIe,createPlatform:()=>Exe,createPlatformFactory:()=>Sxe,destroyPlatform:()=>zMt,effect:()=>a1,enableProdMode:()=>JMt,enableProfiling:()=>BZ,forwardRef:()=>u1,getDebugNode:()=>dy,getModuleFactory:()=>g3t,getNgModuleById:()=>y3t,getPlatform:()=>ZA,importProvidersFrom:()=>bK,inject:()=>O,input:()=>Tee,inputBinding:()=>yZ,isDevMode:()=>XMt,isSignal:()=>J4,isStandalone:()=>Al,isWritableSignal:()=>eL,linkedSignal:()=>Qh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>nY,mergeApplicationConfig:()=>t9t,model:()=>wee,numberAttribute:()=>F3t,output:()=>cxe,outputBinding:()=>vZ,platformCore:()=>w3t,provideAppInitializer:()=>KZ,provideBrowserGlobalErrorListeners:()=>zbe,provideCheckNoChangesConfig:()=>ZMt,provideEnvironmentInitializer:()=>Ok,provideNgReflectAttributes:()=>S2e,providePlatformInitializer:()=>QMt,provideStabilityDebugging:()=>m3t,provideZoneChangeDetection:()=>UMt,provideZonelessChangeDetection:()=>JL,reflectComponentType:()=>e9t,resolveForwardRef:()=>Qe,resource:()=>eee,runInInjectionContext:()=>qd,setTestabilityGetter:()=>HZ,signal:()=>ns,twoWayBinding:()=>HTe,untracked:()=>Pi,viewChild:()=>Iee,viewChildren:()=>lxe,\u0275ANIMATIONS_DISABLED:()=>EX,\u0275AcxChangeDetectionStrategy:()=>I8,\u0275AcxViewEncapsulation:()=>w8,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Oxe,\u0275CONTAINER_HEADER_OFFSET:()=>Ht,\u0275CONTROL:()=>G4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>CA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>PE,\u0275DEFER_BLOCK_CONFIG:()=>$Z,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>LZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>eA,\u0275DeferBlockState:()=>Jt,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>vxe,\u0275EVENT_REPLAY_QUEUE:()=>dY,\u0275EffectScheduler:()=>O0,\u0275Framework:()=>fee,\u0275HydrationStatus:()=>$h,\u0275IMAGE_CONFIG:()=>rY,\u0275IMAGE_CONFIG_DEFAULTS:()=>tY,\u0275INJECTOR_SCOPE:()=>b1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>NMt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>ASe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Gh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>l4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>fE,\u0275JSACTION_EVENT_CONTRACT:()=>d4,\u0275LContext:()=>jw,\u0275LocaleDataIndex:()=>Uh,\u0275NG_COMP_DEF:()=>Eh,\u0275NG_DIR_DEF:()=>m1,\u0275NG_ELEMENT_ID:()=>Sh,\u0275NG_INJ_DEF:()=>i1,\u0275NG_MOD_DEF:()=>rw,\u0275NG_PIPE_DEF:()=>g1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>ww,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>s1,\u0275PERFORMANCE_MARK_PREFIX:()=>$xe,\u0275PROVIDED_NG_ZONE:()=>Aee,\u0275PROVIDED_ZONELESS:()=>mw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Dw,\u0275Render3ComponentFactory:()=>Qd,\u0275Render3ComponentRef:()=>Zw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ir,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>gY,\u0275TESTABILITY:()=>VZ,\u0275TESTABILITY_GETTER:()=>tL,\u0275TimerScheduler:()=>tA,\u0275TracingAction:()=>X1,\u0275TracingService:()=>Xd,\u0275ViewRef:()=>zd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>NY,\u0275_sanitizeUrl:()=>gA,\u0275allLeavingAnimations:()=>Fh,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>O3t,\u0275assertType:()=>H3t,\u0275bypassSanitizationTrustHtml:()=>s2e,\u0275bypassSanitizationTrustResourceUrl:()=>c2e,\u0275bypassSanitizationTrustScript:()=>a2e,\u0275bypassSanitizationTrustStyle:()=>o2e,\u0275bypassSanitizationTrustUrl:()=>u2e,\u0275clearResolutionOfComponentResourcesQueue:()=>oIe,\u0275compileComponent:()=>GJ,\u0275compileDirective:()=>XL,\u0275compileNgModule:()=>UJ,\u0275compileNgModuleDefs:()=>VJ,\u0275compileNgModuleFactory:()=>mxe,\u0275compilePipe:()=>WJ,\u0275controlUpdate:()=>zIe,\u0275convertToBitFlags:()=>hh,\u0275createInjector:()=>gk,\u0275createOrReusePlatformInjector:()=>wxe,\u0275defaultIterableDiffers:()=>T3t,\u0275defaultKeyValueDiffers:()=>I3t,\u0275depsTracker:()=>qh,\u0275devModeEqual:()=>V4,\u0275disableProfiling:()=>U3t,\u0275enableProfiling:()=>B3t,\u0275encapsulateResourceError:()=>DE,\u0275findLocaleData:()=>SL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>BJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>HJ,\u0275getAsyncClassMetadataFn:()=>PIe,\u0275getClosestComponentName:()=>V3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>V1,\u0275getDirectives:()=>ZQ,\u0275getDocument:()=>hy,\u0275getHostElement:()=>XQ,\u0275getInjectableDef:()=>d1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>iwe,\u0275getLocalePluralCase:()=>jX,\u0275getOutputDestroyRef:()=>bAe,\u0275getSanitizationBypassType:()=>PY,\u0275getTransferState:()=>UZ,\u0275getUnknownElementStrictMode:()=>JSe,\u0275getUnknownPropertyStrictMode:()=>t2e,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>_Z,\u0275injectChangeDetectorRef:()=>Nxe,\u0275internalCreateApplication:()=>A3t,\u0275internalProvideZoneChangeDetection:()=>gxe,\u0275isBoundToModule:()=>YZ,\u0275isComponentDefPendingResolution:()=>iIe,\u0275isEnvironmentProviders:()=>h1,\u0275isInjectable:()=>fbe,\u0275isNgModule:()=>Dh,\u0275isPromise:()=>rL,\u0275isSubscribable:()=>WZ,\u0275isViewDirty:()=>uTe,\u0275markForRefresh:()=>cTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>YL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>MA,\u0275provideZonelessChangeDetectionInternal:()=>WA,\u0275publishExternalGlobalUtil:()=>$Ie,\u0275readHydrationInfo:()=>_Y,\u0275registerLocaleData:()=>nwe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>Xwe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>BSe,\u0275resetJitOptions:()=>Ywe,\u0275resolveComponentResources:()=>xZ,\u0275restoreComponentResolutionQueue:()=>aIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>lIe,\u0275setAlternateWeakRefImpl:()=>rbe,\u0275setClassDebugInfo:()=>FJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>jZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>_Se,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>qX,\u0275setUnknownElementStrictMode:()=>XSe,\u0275setUnknownPropertyStrictMode:()=>e2e,\u0275startMeasuring:()=>j3t,\u0275stopMeasuring:()=>q3t,\u0275store:()=>I1,\u0275stringify:()=>Vt,\u0275transitiveScopesFor:()=>ZL,\u0275triggerResourceLoading:()=>kA,\u0275truncateMiddle:()=>aK,\u0275unregisterLocaleData:()=>swe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Qbe,\u0275withDomHydration:()=>d3t,\u0275withEventReplay:()=>xxe,\u0275withI18nSupport:()=>f3t,\u0275withIncrementalHydration:()=>p3t,\u0275\u0275ExternalStylesFeature:()=>yJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>RZ,\u0275\u0275InheritDefinitionFeature:()=>z4,\u0275\u0275NgOnChangesFeature:()=>HQ,\u0275\u0275ProvidersFeature:()=>gJ,\u0275\u0275advance:()=>KY,\u0275\u0275animateEnter:()=>G1,\u0275\u0275animateEnterListener:()=>W1,\u0275\u0275animateLeave:()=>K1,\u0275\u0275animateLeaveListener:()=>nA,\u0275\u0275ariaProperty:()=>iL,\u0275\u0275attachSourceLocations:()=>sJ,\u0275\u0275attribute:()=>sL,\u0275\u0275classMap:()=>eJ,\u0275\u0275classProp:()=>$L,\u0275\u0275componentInstance:()=>IX,\u0275\u0275conditional:()=>DX,\u0275\u0275conditionalBranchCreate:()=>LA,\u0275\u0275conditionalCreate:()=>NX,\u0275\u0275contentQuery:()=>DL,\u0275\u0275contentQuerySignal:()=>RL,\u0275\u0275control:()=>AX,\u0275\u0275controlCreate:()=>wX,\u0275\u0275declareLet:()=>QL,\u0275\u0275defer:()=>XZ,\u0275\u0275deferEnableTimerScheduling:()=>FZ,\u0275\u0275deferHydrateNever:()=>rX,\u0275\u0275deferHydrateOnHover:()=>hX,\u0275\u0275deferHydrateOnIdle:()=>sX,\u0275\u0275deferHydrateOnImmediate:()=>uX,\u0275\u0275deferHydrateOnInteraction:()=>yX,\u0275\u0275deferHydrateOnTimer:()=>dX,\u0275\u0275deferHydrateOnViewport:()=>bX,\u0275\u0275deferHydrateWhen:()=>tX,\u0275\u0275deferOnHover:()=>fX,\u0275\u0275deferOnIdle:()=>nX,\u0275\u0275deferOnImmediate:()=>oX,\u0275\u0275deferOnInteraction:()=>mX,\u0275\u0275deferOnTimer:()=>cX,\u0275\u0275deferOnViewport:()=>vX,\u0275\u0275deferPrefetchOnHover:()=>pX,\u0275\u0275deferPrefetchOnIdle:()=>iX,\u0275\u0275deferPrefetchOnImmediate:()=>aX,\u0275\u0275deferPrefetchOnInteraction:()=>gX,\u0275\u0275deferPrefetchOnTimer:()=>lX,\u0275\u0275deferPrefetchOnViewport:()=>_X,\u0275\u0275deferPrefetchWhen:()=>eX,\u0275\u0275deferWhen:()=>JZ,\u0275\u0275defineComponent:()=>NZ,\u0275\u0275defineDirective:()=>DZ,\u0275\u0275defineInjectable:()=>Zt,\u0275\u0275defineInjector:()=>l1,\u0275\u0275defineNgModule:()=>K4,\u0275\u0275definePipe:()=>MZ,\u0275\u0275directiveInject:()=>Kh,\u0275\u0275disableBindings:()=>Bk,\u0275\u0275domElement:()=>gL,\u0275\u0275domElementContainer:()=>_L,\u0275\u0275domElementContainerEnd:()=>vL,\u0275\u0275domElementContainerStart:()=>UA,\u0275\u0275domElementEnd:()=>qA,\u0275\u0275domElementStart:()=>jA,\u0275\u0275domListener:()=>NL,\u0275\u0275domProperty:()=>bL,\u0275\u0275domTemplate:()=>Y4,\u0275\u0275element:()=>mL,\u0275\u0275elementContainer:()=>yL,\u0275\u0275elementContainerEnd:()=>OE,\u0275\u0275elementContainerStart:()=>BA,\u0275\u0275elementEnd:()=>FA,\u0275\u0275elementStart:()=>$A,\u0275\u0275enableBindings:()=>qk,\u0275\u0275getComponentDepsFactory:()=>$J,\u0275\u0275getCurrentView:()=>FX,\u0275\u0275getInheritedFactory:()=>KQ,\u0275\u0275getReplaceMetadataURL:()=>jJ,\u0275\u0275i18n:()=>BX,\u0275\u0275i18nApply:()=>VX,\u0275\u0275i18nAttributes:()=>UX,\u0275\u0275i18nEnd:()=>xL,\u0275\u0275i18nExp:()=>CL,\u0275\u0275i18nPostprocess:()=>HX,\u0275\u0275i18nStart:()=>AL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>lA,\u0275\u0275interpolate:()=>oJ,\u0275\u0275interpolate1:()=>aJ,\u0275\u0275interpolate2:()=>uJ,\u0275\u0275interpolate3:()=>cJ,\u0275\u0275interpolate4:()=>lJ,\u0275\u0275interpolate5:()=>dJ,\u0275\u0275interpolate6:()=>fJ,\u0275\u0275interpolate7:()=>pJ,\u0275\u0275interpolate8:()=>hJ,\u0275\u0275interpolateV:()=>mJ,\u0275\u0275invalidFactory:()=>hZ,\u0275\u0275invalidFactoryDep:()=>iw,\u0275\u0275listener:()=>OL,\u0275\u0275loadQuery:()=>YX,\u0275\u0275namespaceHTML:()=>Xk,\u0275\u0275namespaceMathML:()=>Zk,\u0275\u0275namespaceSVG:()=>Yk,\u0275\u0275nextContext:()=>WX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>W3t,\u0275\u0275ngDeclareComponent:()=>K3t,\u0275\u0275ngDeclareDirective:()=>G3t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>XA,\u0275\u0275ngDeclareNgModule:()=>JA,\u0275\u0275ngDeclarePipe:()=>Q3t,\u0275\u0275pipe:()=>PJ,\u0275\u0275pipeBind1:()=>NJ,\u0275\u0275pipeBind2:()=>DJ,\u0275\u0275pipeBind3:()=>MJ,\u0275\u0275pipeBind4:()=>RJ,\u0275\u0275pipeBindV:()=>kJ,\u0275\u0275projection:()=>zX,\u0275\u0275projectionDef:()=>KX,\u0275\u0275property:()=>hL,\u0275\u0275pureFunction0:()=>bJ,\u0275\u0275pureFunction1:()=>EJ,\u0275\u0275pureFunction2:()=>SJ,\u0275\u0275pureFunction3:()=>TJ,\u0275\u0275pureFunction4:()=>IJ,\u0275\u0275pureFunction5:()=>wJ,\u0275\u0275pureFunction6:()=>AJ,\u0275\u0275pureFunction7:()=>xJ,\u0275\u0275pureFunction8:()=>CJ,\u0275\u0275pureFunctionV:()=>OJ,\u0275\u0275queryAdvance:()=>ZX,\u0275\u0275queryRefresh:()=>QX,\u0275\u0275readContextLet:()=>iJ,\u0275\u0275reference:()=>XX,\u0275\u0275registerNgModuleType:()=>W4,\u0275\u0275repeater:()=>kX,\u0275\u0275repeaterCreate:()=>RX,\u0275\u0275repeaterTrackByIdentity:()=>pL,\u0275\u0275repeaterTrackByIndex:()=>MX,\u0275\u0275replaceMetadata:()=>qJ,\u0275\u0275resetView:()=>Vk,\u0275\u0275resolveBody:()=>S4,\u0275\u0275resolveDocument:()=>UY,\u0275\u0275resolveWindow:()=>BY,\u0275\u0275restoreView:()=>Uk,\u0275\u0275sanitizeHtml:()=>RY,\u0275\u0275sanitizeResourceUrl:()=>E4,\u0275\u0275sanitizeScript:()=>LY,\u0275\u0275sanitizeStyle:()=>kY,\u0275\u0275sanitizeUrl:()=>b4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>jY,\u0275\u0275setComponentScope:()=>vJ,\u0275\u0275setNgModuleScope:()=>_J,\u0275\u0275storeLet:()=>nJ,\u0275\u0275styleMap:()=>JX,\u0275\u0275styleProp:()=>LL,\u0275\u0275syntheticHostListener:()=>PL,\u0275\u0275syntheticHostProperty:()=>EL,\u0275\u0275template:()=>Q4,\u0275\u0275templateRefExtractor:()=>LJ,\u0275\u0275text:()=>tJ,\u0275\u0275textInterpolate:()=>FL,\u0275\u0275textInterpolate1:()=>VA,\u0275\u0275textInterpolate2:()=>jL,\u0275\u0275textInterpolate3:()=>qL,\u0275\u0275textInterpolate4:()=>BL,\u0275\u0275textInterpolate5:()=>UL,\u0275\u0275textInterpolate6:()=>VL,\u0275\u0275textInterpolate7:()=>HL,\u0275\u0275textInterpolate8:()=>GL,\u0275\u0275textInterpolateV:()=>WL,\u0275\u0275trustConstantHtml:()=>$Y,\u0275\u0275trustConstantResourceUrl:()=>FY,\u0275\u0275twoWayBindingSet:()=>rJ,\u0275\u0275twoWayListener:()=>zL,\u0275\u0275twoWayProperty:()=>KL,\u0275\u0275validateAttribute:()=>qY,\u0275\u0275viewQuery:()=>ML,\u0275\u0275viewQuerySignal:()=>kL});var Ai=null,xI=!1,cH=1,zot=null,ir=Symbol("SIGNAL");function Oe(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function lH(){return xI}var xd={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 Cd(t){if(xI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ai===null)return;Ai.consumerOnSignalRead(t);let e=Ai.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ai.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ai.producers,r!==void 0&&r.producer===t)){Ai.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ai&&(!n||Qot(i,Ai)))return;let s=db(Ai),o={producer:t,consumer:Ai,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ai.producersTail=o,e!==void 0?e.nextProducer=o:Ai.producers=o,s&&Y0e(t,o)}function W0e(){cH++}function p0(t){if(!(db(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===cH)){if(!t.producerMustRecompute(t)&&!h0(t)){lb(t);return}t.producerRecomputeValue(t),lb(t)}}function dH(t){if(t.consumers===void 0)return;let e=xI;xI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||K0e(n)}}finally{xI=e}}function fH(){return Ai?.consumerAllowSignalWrites!==!1}function K0e(t){t.dirty=!0,dH(t),t.consumerMarkedDirty?.(t)}function lb(t){t.dirty=!1,t.lastCleanEpoch=cH}function fl(t){return t&&z0e(t),Oe(t)}function z0e(t){t.producersTail=void 0,t.recomputing=!0}function Od(t,e){Oe(e),t&&Q0e(t)}function Q0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(db(t))do r=pH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function h0(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(p0(r),n!==r.version))return!0}return!1}function Pd(t){if(db(t)){let e=t.producers;for(;e!==void 0;)e=pH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Y0e(t,e){let r=t.consumersTail,n=db(t);if(r!==void 0?(e.nextConsumer=r.nextConsumer,r.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=r,t.consumersTail=e,!n)for(let i=t.producers;i!==void 0;i=i.nextProducer)Y0e(i.producer,i)}function pH(t){let e=t.producer,r=t.nextProducer,n=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=i:e.consumersTail=i,i!==void 0)i.nextConsumer=n;else if(e.consumers=n,!db(e)){let s=e.producers;for(;s!==void 0;)s=pH(s)}return r}function db(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function CI(t){zot?.(t)}function Qot(t,e){let r=e.producersTail;if(r!==void 0){let n=e.producers;do{if(n===t)return!0;if(n===r)break;n=n.nextProducer}while(n!==void 0)}return!1}function OI(t,e){return Object.is(t,e)}function PI(t,e){let r=Object.create(Yot);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),Cd(r),r.value===dl)throw r.error;return r.value};if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return CI(r),n}var Hp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),Yot={...xd,value:Hp,dirty:!0,error:null,equal:OI,kind:"computed",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Hp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Od(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function Zot(){throw new Error}var Z0e=Zot;function X0e(t){Z0e(t)}function hH(t){Z0e=t}var Xot=null;function mH(t,e){let r=Object.create(NI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>J0e(r);if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return CI(r),[n,o=>Gp(r,o),o=>BM(r,o)]}function J0e(t){return Cd(t),t.value}function Gp(t,e){fH()||X0e(t),t.equal(t.value,e)||(t.value=e,Jot(t))}function BM(t,e){fH()||X0e(t),Gp(t,e(t.value))}var NI={...xd,equal:OI,value:void 0,kind:"signal"};function Jot(t){t.version++,W0e(),dH(t),Xot?.(t)}function gH(t){let e=Oe(null);try{return t()}finally{Oe(e)}}var yH={...xd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function vH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Od(t,e)}}var _h=J(sr(),1);var VW;function lk(){return VW}function Ho(t){let e=VW;return VW=t,e}var J_e=Symbol("NotFound");function t1(t){return t===J_e||t?.name==="\u0275NotFound"}function HW(t,e,r){let n=Object.create(lSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),Cd(n),n.value===dl)throw n.error;return n.value};if(s[ir]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return CI(n),s}function ebe(t,e){p0(t),Gp(t,e),lb(t)}function tbe(t,e){if(p0(t),t.value===dl)throw t.error;BM(t,e),lb(t)}var lSt={...xd,value:Hp,dirty:!0,error:null,equal:OI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n;try{let i=t.source(),s=e===Hp||e===dl?void 0:{source:t.sourceValue,value:e};n=t.computation(i,s),t.sourceValue=i}catch(i){n=dl,t.error=i}finally{Od(t,r)}if(e!==Hp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function rbe(t){}var WW={header:(t,e)=>{if(!GW(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(s){return["span",`Signal(\u26A0\uFE0F Error)${s.message?`: ${s.message}`:""}`]}let n="computation"in t[ir]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],GW(r)?WW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:dSt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!GW(t))return!1;try{t()}catch{return!1}return!e?.ngSkipFormatting},body:(t,e)=>{let r="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${r}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:t(),config:e}]],["div",{style:`color: ${r}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:t,config:{...e,ngSkipFormatting:!0}}]]]}};function dSt(t){if(t===null)return"null";if(Array.isArray(t))return`Array(${t.length})`;if(t instanceof Element)return`<${t.tagName.toLowerCase()}>`;if(t instanceof URL)return"URL";switch(typeof t){case"undefined":return"undefined";case"function":return"prototype"in t?"class":"() => {\u2026}";case"object":return t.constructor.name==="Object"?"{\u2026}":`${t.constructor.name} {}`;default:return["object",{object:t,config:{ngSkipFormatting:!0}}]}}function GW(t){return t[ir]!==void 0}function fSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===WW)||globalThis.devtoolsFormatters.push(WW)}(typeof ngDevMode>"u"||ngDevMode)&&fSt();var KI=class{full;major;minor;patch;constructor(e){this.full=e;let r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}},fk=new KI("21.1.6"),oK=(()=>{let t=fk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.48.0"?"next":`v${fk.major}`}.angular.dev`})(),_k=`${oK}/errors`,Fa="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Tr(e,r)),this.code=e}};function pSt(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=pSt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${_k}/${r}`}return n}var Nn=globalThis;function hSt(){let t=typeof location<"u"?location.toString():"",e={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return t.indexOf("ngDevMode=false")===-1?(typeof Nn.ngDevMode!="object"&&(Nn.ngDevMode={}),Object.assign(Nn.ngDevMode,e)):Nn.ngDevMode=!1,e}function bk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&hSt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Ye(t){for(let e in t)if(t[e]===Ye)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function ube(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Vt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Vt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
|
|
265
|
+
`));for(let s in t)t.hasOwnProperty(s)&&t[s].forEach(o=>{Fot(o)?n.properties[o.hostPropertyName||s]=uZe("this",s):jot(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function Fot(t){return t.ngMetadataName==="HostBinding"}function jot(t){return t.ngMetadataName==="HostListener"}function qot(t){return t.ngMetadataName==="Input"}function Bot(t){return t.ngMetadataName==="Output"}function Uot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Vot(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new mt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function Vot(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 mt(t[2]):null,required:!1,isSignal:!1}}function Hot(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=G0e(r);e[i]={bindingPropertyName:n,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else e[r.name]={bindingPropertyName:r.alias||r.name,classPropertyName:r.name,required:r.required||!1,isSignal:!1,transformFunction:r.transform!=null?new mt(r.transform):null};return e},{})}function dU(t){return t.reduce((e,r)=>{let[n,i]=G0e(r);return e[i]=n,e},{})}function G0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Got(t){return{name:t.type.name,type:Cn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??bge(t.version)}}function Wot(t){return{name:t.type.name,type:Cn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new mt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new mt(e)):[]}}function Kot(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new $V}var hge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(hge||(hge={}));var FV=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Aa.PARSABLE_DATA}},SIr=new FV;var TIr=new vU("21.1.6");Kot(_T);import*as phe from"fs";var he={};yhe(he,{ANIMATION_MODULE_TYPE:()=>ESe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>nL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>_6,ApplicationRef:()=>Rn,Attribute:()=>zQ,COMPILER_OPTIONS:()=>zJ,CSP_NONCE:()=>SSe,CUSTOM_ELEMENTS_SCHEMA:()=>IY,ChangeDetectionStrategy:()=>Lh,ChangeDetectorRef:()=>p6,Compiler:()=>aA,CompilerFactory:()=>Y8,Component:()=>uAe,ComponentFactory:()=>CA,ComponentFactoryResolver:()=>IE,ComponentRef:()=>fZ,ContentChild:()=>jMt,ContentChildren:()=>FMt,DEFAULT_CURRENCY_CODE:()=>hAe,DOCUMENT:()=>rs,DebugElement:()=>Vh,DebugEventListener:()=>X8,DebugNode:()=>sE,DefaultIterableDiffer:()=>g6,DestroyRef:()=>pi,Directive:()=>KJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>kh,EmbeddedViewRef:()=>mee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>DMt,Host:()=>UQ,HostAttributeToken:()=>pee,HostBinding:()=>fAe,HostListener:()=>pAe,INJECTOR:()=>xk,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>lAe,IterableDiffers:()=>QA,KeyValueDiffers:()=>YA,LOCALE_ID:()=>e6,MAX_ANIMATION_TIMEOUT:()=>SX,MissingTranslationStrategy:()=>Z8,ModuleWithComponentFactories:()=>oA,NO_ERRORS_SCHEMA:()=>wY,NgModule:()=>Ey,NgModuleFactory:()=>OZ,NgModuleRef:()=>Bh,NgZone:()=>Ot,Optional:()=>fy,Output:()=>dAe,OutputEmitterRef:()=>NE,PLATFORM_ID:()=>bSe,PLATFORM_INITIALIZER:()=>i4,PendingTasks:()=>$a,Pipe:()=>cAe,PlatformRef:()=>RE,Query:()=>Iy,QueryList:()=>$w,REQUEST:()=>r9t,REQUEST_CONTEXT:()=>i9t,RESPONSE_INIT:()=>n9t,Renderer2:()=>k8,RendererFactory2:()=>J1,RendererStyleFlags2:()=>Z1,Sanitizer:()=>Qw,SecurityContext:()=>Kd,Self:()=>qQ,SimpleChange:()=>Mw,SkipSelf:()=>BQ,TRANSLATIONS:()=>mAe,TRANSLATIONS_FORMAT:()=>gAe,TemplateRef:()=>jh,Testability:()=>rA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>VQ,VERSION:()=>fk,Version:()=>KI,ViewChild:()=>BMt,ViewChildren:()=>qMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>h6,afterEveryRender:()=>Gw,afterNextRender:()=>SA,afterRenderEffect:()=>See,asNativeElements:()=>yAe,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>O1,assertPlatform:()=>Ixe,booleanAttribute:()=>$3t,computed:()=>Xo,contentChild:()=>dxe,contentChildren:()=>fxe,createComponent:()=>J3t,createEnvironmentInjector:()=>wE,createNgModule:()=>PZ,createNgModuleRef:()=>dIe,createPlatform:()=>Exe,createPlatformFactory:()=>Sxe,destroyPlatform:()=>zMt,effect:()=>a1,enableProdMode:()=>JMt,enableProfiling:()=>BZ,forwardRef:()=>u1,getDebugNode:()=>dy,getModuleFactory:()=>g3t,getNgModuleById:()=>y3t,getPlatform:()=>ZA,importProvidersFrom:()=>bK,inject:()=>O,input:()=>Tee,inputBinding:()=>yZ,isDevMode:()=>XMt,isSignal:()=>J4,isStandalone:()=>Al,isWritableSignal:()=>eL,linkedSignal:()=>Qh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>nY,mergeApplicationConfig:()=>t9t,model:()=>wee,numberAttribute:()=>F3t,output:()=>cxe,outputBinding:()=>vZ,platformCore:()=>w3t,provideAppInitializer:()=>KZ,provideBrowserGlobalErrorListeners:()=>zbe,provideCheckNoChangesConfig:()=>ZMt,provideEnvironmentInitializer:()=>Ok,provideNgReflectAttributes:()=>S2e,providePlatformInitializer:()=>QMt,provideStabilityDebugging:()=>m3t,provideZoneChangeDetection:()=>UMt,provideZonelessChangeDetection:()=>JL,reflectComponentType:()=>e9t,resolveForwardRef:()=>Qe,resource:()=>eee,runInInjectionContext:()=>qd,setTestabilityGetter:()=>HZ,signal:()=>ns,twoWayBinding:()=>HTe,untracked:()=>Pi,viewChild:()=>Iee,viewChildren:()=>lxe,\u0275ANIMATIONS_DISABLED:()=>EX,\u0275AcxChangeDetectionStrategy:()=>I8,\u0275AcxViewEncapsulation:()=>w8,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Oxe,\u0275CONTAINER_HEADER_OFFSET:()=>Ht,\u0275CONTROL:()=>G4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>CA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>PE,\u0275DEFER_BLOCK_CONFIG:()=>$Z,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>LZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>eA,\u0275DeferBlockState:()=>Jt,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>vxe,\u0275EVENT_REPLAY_QUEUE:()=>dY,\u0275EffectScheduler:()=>O0,\u0275Framework:()=>fee,\u0275HydrationStatus:()=>$h,\u0275IMAGE_CONFIG:()=>rY,\u0275IMAGE_CONFIG_DEFAULTS:()=>tY,\u0275INJECTOR_SCOPE:()=>b1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>NMt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>ASe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Gh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>l4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>fE,\u0275JSACTION_EVENT_CONTRACT:()=>d4,\u0275LContext:()=>jw,\u0275LocaleDataIndex:()=>Uh,\u0275NG_COMP_DEF:()=>Eh,\u0275NG_DIR_DEF:()=>m1,\u0275NG_ELEMENT_ID:()=>Sh,\u0275NG_INJ_DEF:()=>i1,\u0275NG_MOD_DEF:()=>rw,\u0275NG_PIPE_DEF:()=>g1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>ww,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>s1,\u0275PERFORMANCE_MARK_PREFIX:()=>$xe,\u0275PROVIDED_NG_ZONE:()=>Aee,\u0275PROVIDED_ZONELESS:()=>mw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Dw,\u0275Render3ComponentFactory:()=>Qd,\u0275Render3ComponentRef:()=>Zw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ir,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>gY,\u0275TESTABILITY:()=>VZ,\u0275TESTABILITY_GETTER:()=>tL,\u0275TimerScheduler:()=>tA,\u0275TracingAction:()=>X1,\u0275TracingService:()=>Xd,\u0275ViewRef:()=>zd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>NY,\u0275_sanitizeUrl:()=>gA,\u0275allLeavingAnimations:()=>Fh,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>O3t,\u0275assertType:()=>H3t,\u0275bypassSanitizationTrustHtml:()=>s2e,\u0275bypassSanitizationTrustResourceUrl:()=>c2e,\u0275bypassSanitizationTrustScript:()=>a2e,\u0275bypassSanitizationTrustStyle:()=>o2e,\u0275bypassSanitizationTrustUrl:()=>u2e,\u0275clearResolutionOfComponentResourcesQueue:()=>oIe,\u0275compileComponent:()=>GJ,\u0275compileDirective:()=>XL,\u0275compileNgModule:()=>UJ,\u0275compileNgModuleDefs:()=>VJ,\u0275compileNgModuleFactory:()=>mxe,\u0275compilePipe:()=>WJ,\u0275controlUpdate:()=>zIe,\u0275convertToBitFlags:()=>hh,\u0275createInjector:()=>gk,\u0275createOrReusePlatformInjector:()=>wxe,\u0275defaultIterableDiffers:()=>T3t,\u0275defaultKeyValueDiffers:()=>I3t,\u0275depsTracker:()=>qh,\u0275devModeEqual:()=>V4,\u0275disableProfiling:()=>U3t,\u0275enableProfiling:()=>B3t,\u0275encapsulateResourceError:()=>DE,\u0275findLocaleData:()=>SL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>BJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>HJ,\u0275getAsyncClassMetadataFn:()=>PIe,\u0275getClosestComponentName:()=>V3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>V1,\u0275getDirectives:()=>ZQ,\u0275getDocument:()=>hy,\u0275getHostElement:()=>XQ,\u0275getInjectableDef:()=>d1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>iwe,\u0275getLocalePluralCase:()=>jX,\u0275getOutputDestroyRef:()=>bAe,\u0275getSanitizationBypassType:()=>PY,\u0275getTransferState:()=>UZ,\u0275getUnknownElementStrictMode:()=>JSe,\u0275getUnknownPropertyStrictMode:()=>t2e,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>_Z,\u0275injectChangeDetectorRef:()=>Nxe,\u0275internalCreateApplication:()=>A3t,\u0275internalProvideZoneChangeDetection:()=>gxe,\u0275isBoundToModule:()=>YZ,\u0275isComponentDefPendingResolution:()=>iIe,\u0275isEnvironmentProviders:()=>h1,\u0275isInjectable:()=>fbe,\u0275isNgModule:()=>Dh,\u0275isPromise:()=>rL,\u0275isSubscribable:()=>WZ,\u0275isViewDirty:()=>uTe,\u0275markForRefresh:()=>cTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>YL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>MA,\u0275provideZonelessChangeDetectionInternal:()=>WA,\u0275publishExternalGlobalUtil:()=>$Ie,\u0275readHydrationInfo:()=>_Y,\u0275registerLocaleData:()=>nwe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>Xwe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>BSe,\u0275resetJitOptions:()=>Ywe,\u0275resolveComponentResources:()=>xZ,\u0275restoreComponentResolutionQueue:()=>aIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>lIe,\u0275setAlternateWeakRefImpl:()=>rbe,\u0275setClassDebugInfo:()=>FJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>jZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>_Se,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>qX,\u0275setUnknownElementStrictMode:()=>XSe,\u0275setUnknownPropertyStrictMode:()=>e2e,\u0275startMeasuring:()=>j3t,\u0275stopMeasuring:()=>q3t,\u0275store:()=>I1,\u0275stringify:()=>Vt,\u0275transitiveScopesFor:()=>ZL,\u0275triggerResourceLoading:()=>kA,\u0275truncateMiddle:()=>aK,\u0275unregisterLocaleData:()=>swe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Qbe,\u0275withDomHydration:()=>d3t,\u0275withEventReplay:()=>xxe,\u0275withI18nSupport:()=>f3t,\u0275withIncrementalHydration:()=>p3t,\u0275\u0275ExternalStylesFeature:()=>yJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>RZ,\u0275\u0275InheritDefinitionFeature:()=>z4,\u0275\u0275NgOnChangesFeature:()=>HQ,\u0275\u0275ProvidersFeature:()=>gJ,\u0275\u0275advance:()=>KY,\u0275\u0275animateEnter:()=>G1,\u0275\u0275animateEnterListener:()=>W1,\u0275\u0275animateLeave:()=>K1,\u0275\u0275animateLeaveListener:()=>nA,\u0275\u0275ariaProperty:()=>iL,\u0275\u0275attachSourceLocations:()=>sJ,\u0275\u0275attribute:()=>sL,\u0275\u0275classMap:()=>eJ,\u0275\u0275classProp:()=>$L,\u0275\u0275componentInstance:()=>IX,\u0275\u0275conditional:()=>DX,\u0275\u0275conditionalBranchCreate:()=>LA,\u0275\u0275conditionalCreate:()=>NX,\u0275\u0275contentQuery:()=>DL,\u0275\u0275contentQuerySignal:()=>RL,\u0275\u0275control:()=>AX,\u0275\u0275controlCreate:()=>wX,\u0275\u0275declareLet:()=>QL,\u0275\u0275defer:()=>XZ,\u0275\u0275deferEnableTimerScheduling:()=>FZ,\u0275\u0275deferHydrateNever:()=>rX,\u0275\u0275deferHydrateOnHover:()=>hX,\u0275\u0275deferHydrateOnIdle:()=>sX,\u0275\u0275deferHydrateOnImmediate:()=>uX,\u0275\u0275deferHydrateOnInteraction:()=>yX,\u0275\u0275deferHydrateOnTimer:()=>dX,\u0275\u0275deferHydrateOnViewport:()=>bX,\u0275\u0275deferHydrateWhen:()=>tX,\u0275\u0275deferOnHover:()=>fX,\u0275\u0275deferOnIdle:()=>nX,\u0275\u0275deferOnImmediate:()=>oX,\u0275\u0275deferOnInteraction:()=>mX,\u0275\u0275deferOnTimer:()=>cX,\u0275\u0275deferOnViewport:()=>vX,\u0275\u0275deferPrefetchOnHover:()=>pX,\u0275\u0275deferPrefetchOnIdle:()=>iX,\u0275\u0275deferPrefetchOnImmediate:()=>aX,\u0275\u0275deferPrefetchOnInteraction:()=>gX,\u0275\u0275deferPrefetchOnTimer:()=>lX,\u0275\u0275deferPrefetchOnViewport:()=>_X,\u0275\u0275deferPrefetchWhen:()=>eX,\u0275\u0275deferWhen:()=>JZ,\u0275\u0275defineComponent:()=>NZ,\u0275\u0275defineDirective:()=>DZ,\u0275\u0275defineInjectable:()=>Zt,\u0275\u0275defineInjector:()=>l1,\u0275\u0275defineNgModule:()=>K4,\u0275\u0275definePipe:()=>MZ,\u0275\u0275directiveInject:()=>Kh,\u0275\u0275disableBindings:()=>Bk,\u0275\u0275domElement:()=>gL,\u0275\u0275domElementContainer:()=>_L,\u0275\u0275domElementContainerEnd:()=>vL,\u0275\u0275domElementContainerStart:()=>UA,\u0275\u0275domElementEnd:()=>qA,\u0275\u0275domElementStart:()=>jA,\u0275\u0275domListener:()=>NL,\u0275\u0275domProperty:()=>bL,\u0275\u0275domTemplate:()=>Y4,\u0275\u0275element:()=>mL,\u0275\u0275elementContainer:()=>yL,\u0275\u0275elementContainerEnd:()=>OE,\u0275\u0275elementContainerStart:()=>BA,\u0275\u0275elementEnd:()=>FA,\u0275\u0275elementStart:()=>$A,\u0275\u0275enableBindings:()=>qk,\u0275\u0275getComponentDepsFactory:()=>$J,\u0275\u0275getCurrentView:()=>FX,\u0275\u0275getInheritedFactory:()=>KQ,\u0275\u0275getReplaceMetadataURL:()=>jJ,\u0275\u0275i18n:()=>BX,\u0275\u0275i18nApply:()=>VX,\u0275\u0275i18nAttributes:()=>UX,\u0275\u0275i18nEnd:()=>xL,\u0275\u0275i18nExp:()=>CL,\u0275\u0275i18nPostprocess:()=>HX,\u0275\u0275i18nStart:()=>AL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>lA,\u0275\u0275interpolate:()=>oJ,\u0275\u0275interpolate1:()=>aJ,\u0275\u0275interpolate2:()=>uJ,\u0275\u0275interpolate3:()=>cJ,\u0275\u0275interpolate4:()=>lJ,\u0275\u0275interpolate5:()=>dJ,\u0275\u0275interpolate6:()=>fJ,\u0275\u0275interpolate7:()=>pJ,\u0275\u0275interpolate8:()=>hJ,\u0275\u0275interpolateV:()=>mJ,\u0275\u0275invalidFactory:()=>hZ,\u0275\u0275invalidFactoryDep:()=>iw,\u0275\u0275listener:()=>OL,\u0275\u0275loadQuery:()=>YX,\u0275\u0275namespaceHTML:()=>Xk,\u0275\u0275namespaceMathML:()=>Zk,\u0275\u0275namespaceSVG:()=>Yk,\u0275\u0275nextContext:()=>WX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>W3t,\u0275\u0275ngDeclareComponent:()=>K3t,\u0275\u0275ngDeclareDirective:()=>G3t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>XA,\u0275\u0275ngDeclareNgModule:()=>JA,\u0275\u0275ngDeclarePipe:()=>Q3t,\u0275\u0275pipe:()=>PJ,\u0275\u0275pipeBind1:()=>NJ,\u0275\u0275pipeBind2:()=>DJ,\u0275\u0275pipeBind3:()=>MJ,\u0275\u0275pipeBind4:()=>RJ,\u0275\u0275pipeBindV:()=>kJ,\u0275\u0275projection:()=>zX,\u0275\u0275projectionDef:()=>KX,\u0275\u0275property:()=>hL,\u0275\u0275pureFunction0:()=>bJ,\u0275\u0275pureFunction1:()=>EJ,\u0275\u0275pureFunction2:()=>SJ,\u0275\u0275pureFunction3:()=>TJ,\u0275\u0275pureFunction4:()=>IJ,\u0275\u0275pureFunction5:()=>wJ,\u0275\u0275pureFunction6:()=>AJ,\u0275\u0275pureFunction7:()=>xJ,\u0275\u0275pureFunction8:()=>CJ,\u0275\u0275pureFunctionV:()=>OJ,\u0275\u0275queryAdvance:()=>ZX,\u0275\u0275queryRefresh:()=>QX,\u0275\u0275readContextLet:()=>iJ,\u0275\u0275reference:()=>XX,\u0275\u0275registerNgModuleType:()=>W4,\u0275\u0275repeater:()=>kX,\u0275\u0275repeaterCreate:()=>RX,\u0275\u0275repeaterTrackByIdentity:()=>pL,\u0275\u0275repeaterTrackByIndex:()=>MX,\u0275\u0275replaceMetadata:()=>qJ,\u0275\u0275resetView:()=>Vk,\u0275\u0275resolveBody:()=>S4,\u0275\u0275resolveDocument:()=>UY,\u0275\u0275resolveWindow:()=>BY,\u0275\u0275restoreView:()=>Uk,\u0275\u0275sanitizeHtml:()=>RY,\u0275\u0275sanitizeResourceUrl:()=>E4,\u0275\u0275sanitizeScript:()=>LY,\u0275\u0275sanitizeStyle:()=>kY,\u0275\u0275sanitizeUrl:()=>b4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>jY,\u0275\u0275setComponentScope:()=>vJ,\u0275\u0275setNgModuleScope:()=>_J,\u0275\u0275storeLet:()=>nJ,\u0275\u0275styleMap:()=>JX,\u0275\u0275styleProp:()=>LL,\u0275\u0275syntheticHostListener:()=>PL,\u0275\u0275syntheticHostProperty:()=>EL,\u0275\u0275template:()=>Q4,\u0275\u0275templateRefExtractor:()=>LJ,\u0275\u0275text:()=>tJ,\u0275\u0275textInterpolate:()=>FL,\u0275\u0275textInterpolate1:()=>VA,\u0275\u0275textInterpolate2:()=>jL,\u0275\u0275textInterpolate3:()=>qL,\u0275\u0275textInterpolate4:()=>BL,\u0275\u0275textInterpolate5:()=>UL,\u0275\u0275textInterpolate6:()=>VL,\u0275\u0275textInterpolate7:()=>HL,\u0275\u0275textInterpolate8:()=>GL,\u0275\u0275textInterpolateV:()=>WL,\u0275\u0275trustConstantHtml:()=>$Y,\u0275\u0275trustConstantResourceUrl:()=>FY,\u0275\u0275twoWayBindingSet:()=>rJ,\u0275\u0275twoWayListener:()=>zL,\u0275\u0275twoWayProperty:()=>KL,\u0275\u0275validateAttribute:()=>qY,\u0275\u0275viewQuery:()=>ML,\u0275\u0275viewQuerySignal:()=>kL});var Ai=null,xI=!1,cH=1,zot=null,ir=Symbol("SIGNAL");function Oe(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function lH(){return xI}var xd={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 Cd(t){if(xI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ai===null)return;Ai.consumerOnSignalRead(t);let e=Ai.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ai.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ai.producers,r!==void 0&&r.producer===t)){Ai.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ai&&(!n||Qot(i,Ai)))return;let s=db(Ai),o={producer:t,consumer:Ai,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ai.producersTail=o,e!==void 0?e.nextProducer=o:Ai.producers=o,s&&Y0e(t,o)}function W0e(){cH++}function p0(t){if(!(db(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===cH)){if(!t.producerMustRecompute(t)&&!h0(t)){lb(t);return}t.producerRecomputeValue(t),lb(t)}}function dH(t){if(t.consumers===void 0)return;let e=xI;xI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||K0e(n)}}finally{xI=e}}function fH(){return Ai?.consumerAllowSignalWrites!==!1}function K0e(t){t.dirty=!0,dH(t),t.consumerMarkedDirty?.(t)}function lb(t){t.dirty=!1,t.lastCleanEpoch=cH}function fl(t){return t&&z0e(t),Oe(t)}function z0e(t){t.producersTail=void 0,t.recomputing=!0}function Od(t,e){Oe(e),t&&Q0e(t)}function Q0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(db(t))do r=pH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function h0(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(p0(r),n!==r.version))return!0}return!1}function Pd(t){if(db(t)){let e=t.producers;for(;e!==void 0;)e=pH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Y0e(t,e){let r=t.consumersTail,n=db(t);if(r!==void 0?(e.nextConsumer=r.nextConsumer,r.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=r,t.consumersTail=e,!n)for(let i=t.producers;i!==void 0;i=i.nextProducer)Y0e(i.producer,i)}function pH(t){let e=t.producer,r=t.nextProducer,n=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=i:e.consumersTail=i,i!==void 0)i.nextConsumer=n;else if(e.consumers=n,!db(e)){let s=e.producers;for(;s!==void 0;)s=pH(s)}return r}function db(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function CI(t){zot?.(t)}function Qot(t,e){let r=e.producersTail;if(r!==void 0){let n=e.producers;do{if(n===t)return!0;if(n===r)break;n=n.nextProducer}while(n!==void 0)}return!1}function OI(t,e){return Object.is(t,e)}function PI(t,e){let r=Object.create(Yot);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),Cd(r),r.value===dl)throw r.error;return r.value};if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return CI(r),n}var Hp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),Yot={...xd,value:Hp,dirty:!0,error:null,equal:OI,kind:"computed",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Hp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Od(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function Zot(){throw new Error}var Z0e=Zot;function X0e(t){Z0e(t)}function hH(t){Z0e=t}var Xot=null;function mH(t,e){let r=Object.create(NI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>J0e(r);if(n[ir]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return CI(r),[n,o=>Gp(r,o),o=>BM(r,o)]}function J0e(t){return Cd(t),t.value}function Gp(t,e){fH()||X0e(t),t.equal(t.value,e)||(t.value=e,Jot(t))}function BM(t,e){fH()||X0e(t),Gp(t,e(t.value))}var NI={...xd,equal:OI,value:void 0,kind:"signal"};function Jot(t){t.version++,W0e(),dH(t),Xot?.(t)}function gH(t){let e=Oe(null);try{return t()}finally{Oe(e)}}var yH={...xd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function vH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Od(t,e)}}var _h=J(sr(),1);var VW;function lk(){return VW}function Ho(t){let e=VW;return VW=t,e}var J_e=Symbol("NotFound");function t1(t){return t===J_e||t?.name==="\u0275NotFound"}function HW(t,e,r){let n=Object.create(lSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),Cd(n),n.value===dl)throw n.error;return n.value};if(s[ir]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return CI(n),s}function ebe(t,e){p0(t),Gp(t,e),lb(t)}function tbe(t,e){if(p0(t),t.value===dl)throw t.error;BM(t,e),lb(t)}var lSt={...xd,value:Hp,dirty:!0,error:null,equal:OI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n;try{let i=t.source(),s=e===Hp||e===dl?void 0:{source:t.sourceValue,value:e};n=t.computation(i,s),t.sourceValue=i}catch(i){n=dl,t.error=i}finally{Od(t,r)}if(e!==Hp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function rbe(t){}var WW={header:(t,e)=>{if(!GW(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(s){return["span",`Signal(\u26A0\uFE0F Error)${s.message?`: ${s.message}`:""}`]}let n="computation"in t[ir]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],GW(r)?WW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:dSt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!GW(t))return!1;try{t()}catch{return!1}return!e?.ngSkipFormatting},body:(t,e)=>{let r="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${r}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:t(),config:e}]],["div",{style:`color: ${r}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:t,config:{...e,ngSkipFormatting:!0}}]]]}};function dSt(t){if(t===null)return"null";if(Array.isArray(t))return`Array(${t.length})`;if(t instanceof Element)return`<${t.tagName.toLowerCase()}>`;if(t instanceof URL)return"URL";switch(typeof t){case"undefined":return"undefined";case"function":return"prototype"in t?"class":"() => {\u2026}";case"object":return t.constructor.name==="Object"?"{\u2026}":`${t.constructor.name} {}`;default:return["object",{object:t,config:{ngSkipFormatting:!0}}]}}function GW(t){return t[ir]!==void 0}function fSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===WW)||globalThis.devtoolsFormatters.push(WW)}(typeof ngDevMode>"u"||ngDevMode)&&fSt();var KI=class{full;major;minor;patch;constructor(e){this.full=e;let r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}},fk=new KI("21.1.6"),oK=(()=>{let t=fk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.48.8"?"next":`v${fk.major}`}.angular.dev`})(),_k=`${oK}/errors`,Fa="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Tr(e,r)),this.code=e}};function pSt(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=pSt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${_k}/${r}`}return n}var Nn=globalThis;function hSt(){let t=typeof location<"u"?location.toString():"",e={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return t.indexOf("ngDevMode=false")===-1?(typeof Nn.ngDevMode!="object"&&(Nn.ngDevMode={}),Object.assign(Nn.ngDevMode,e)):Nn.ngDevMode=!1,e}function bk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&hSt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Ye(t){for(let e in t)if(t[e]===Ye)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function ube(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Vt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Vt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
|
|
266
266
|
`);return n>=0?r.slice(0,n):r}function Ek(t,e){return t?e?`${t} ${e}`:t:e||""}function aK(t,e=100){if(!t||e<1||t.length<=e)return t;if(e==1)return t.substring(0,1)+"...";let r=Math.round(e/2);return t.substring(0,r)+"..."+t.substring(t.length-r)}var mSt=Ye({__forward_ref__:Ye});function u1(t){return t.__forward_ref__=u1,t.toString=function(){return Vt(this())},t}function Qe(t){return tw(t)?t():t}function tw(t){return typeof t=="function"&&t.hasOwnProperty(mSt)&&t.__forward_ref__===u1}function or(t,e){typeof t!="number"&&Te(e,typeof t,"number","===")}function c1(t,e,r){or(t,"Expected a number"),cbe(t,r,"Expected number to be less than or equal to"),wl(t,e,"Expected number to be greater than or equal to")}function P0(t,e){typeof t!="string"&&Te(e,t===null?"null":typeof t,"string","===")}function uK(t,e){typeof t!="function"&&Te(e,t===null?"null":typeof t,"function","===")}function ke(t,e,r){t!=e&&Te(r,t,e,"==")}function Zi(t,e,r){t==e&&Te(r,t,e,"!=")}function cK(t,e,r){t!==e&&Te(r,t,e,"===")}function N0(t,e,r){t===e&&Te(r,t,e,"!==")}function Il(t,e,r){t<e||Te(r,t,e,"<")}function cbe(t,e,r){t<=e||Te(r,t,e,"<=")}function bh(t,e,r){t>e||Te(r,t,e,">")}function wl(t,e,r){t>=e||Te(r,t,e,">=")}function lK(t,e){t!=null&&Te(e,t,null,"==")}function X(t,e){t==null&&Te(e,t,null,"!=")}function Te(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function jd(t){t instanceof Node||Te(`The provided value must be an instance of a DOM Node but got ${Vt(t)}`)}function lbe(t){t instanceof Element||Te(`The provided value must be an element but got ${Vt(t)}`)}function $r(t,e){X(t,"Array must be defined.");let r=t.length;(e<0||e>=r)&&Te(`Index expected to be less than ${r} but got ${e}`)}function dbe(t,...e){if(e.indexOf(t)!==-1)return!0;Te(`Expected value to be one of ${JSON.stringify(e)} but was ${JSON.stringify(t)}.`)}function Sk(t){f0()!==null&&Te(`${t}() should never be called in a reactive context.`)}function Zt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function l1(t){return{providers:t.providers||[],imports:t.imports||[]}}function d1(t){return gSt(t,D0)}function fbe(t){return d1(t)!==null}function gSt(t,e){return t.hasOwnProperty(e)&&t[e]||null}function ySt(t){let e=t?.[D0]??null;return e?(ngDevMode&&console.warn(`DEPRECATED: DI is instantiating a token "${t.name}" that inherits its @Injectable decorator but does not provide one itself.
|
|
267
267
|
This will become an error in a future version of Angular. Please add @Injectable() to the "${t.name}" class.`),e):null}function zI(t){return t&&t.hasOwnProperty(i1)?t[i1]:null}var D0=Ye({\u0275prov:Ye}),i1=Ye({\u0275inj:Ye}),F=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,r){this._desc=e,this.\u0275prov=void 0,typeof r=="number"?((typeof ngDevMode>"u"||ngDevMode)&&Il(r,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=r):r!==void 0&&(this.\u0275prov=Zt({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},zW;function f1(){return!ngDevMode&&Te("getInjectorProfilerContext should never be called in production mode"),zW}function dn(t){!ngDevMode&&Te("setInjectorProfilerContext should never be called in production mode");let e=zW;return zW=t,e}var A0=[],vSt=()=>{};function _St(t){let e=A0.indexOf(t);e!==-1&&A0.splice(e,1)}function dK(t){return!ngDevMode&&Te("setInjectorProfiler should never be called in production mode"),t!==null?(A0.includes(t)||A0.push(t),()=>_St(t)):(A0.length=0,vSt)}function p1(t){!ngDevMode&&Te("Injector profiler should never be called in production mode");for(let e=0;e<A0.length;e++){let r=A0[e];r(t)}}function pk(t,e=!1){!ngDevMode&&Te("Injector profiler should never be called in production mode");let r;typeof t=="function"||t instanceof F?r=t:r=Qe(t.provide);let n=t;t instanceof F&&(n=t.\u0275prov||t),p1({type:2,context:f1(),providerRecord:{token:r,provider:n,isViewProvider:e}})}function QI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:5,context:f1(),token:t})}function YI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:1,context:f1(),instance:{value:t}})}function fK(t,e,r){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:0,context:f1(),service:{token:t,value:e,flags:r}})}function bSt(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:3,context:f1(),effect:t})}function pbe(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),p1({type:4,context:f1(),effectPhase:t})}function n1(t,e,r){!ngDevMode&&Te("runInInjectorProfilerContext should never be called in production mode");let n=dn({injector:t,token:e});try{r()}finally{dn(n)}}function h1(t){return t&&!!t.\u0275providers}var Eh=Ye({\u0275cmp:Ye}),m1=Ye({\u0275dir:Ye}),g1=Ye({\u0275pipe:Ye}),rw=Ye({\u0275mod:Ye}),El=Ye({\u0275fac:Ye}),Sh=Ye({__NG_ELEMENT_ID__:Ye}),nbe=Ye({__NG_ENV_ID__:Ye});function ja(t){return Tk(t,"@NgModule"),t[rw]||null}function nw(t){let e=ja(t);if(!e)throw new $(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Vt(t)} does not have '\u0275mod' property.`);return e}function ut(t){return Tk(t,"@Component"),t[Eh]||null}function hbe(t){let e=bn(t);if(!e)throw new $(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Vt(t)} does not have '\u0275dir' property.`);return e}function bn(t){return Tk(t,"@Directive"),t[m1]||null}function Xi(t){return Tk(t,"@Pipe"),t[g1]||null}function Tk(t,e){if(t==null)throw new $(-919,(typeof ngDevMode>"u"||ngDevMode)&&`Cannot read ${e} metadata. This can indicate a runtime circular dependency in your app that needs to be resolved.`)}function Al(t){let e=ut(t)||bn(t)||Xi(t);return e!==null&&e.standalone}function it(t){return typeof t=="string"?t:t==null?"":String(t)}function et(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():it(t)}function pK(t){let e=ut(t);return e!==null&&e.debugInfo?ESt(e.debugInfo):et(t)}function ESt(t){return!t.filePath||!t.lineNumber?t.className:`${t.className} (at ${t.filePath}:${t.lineNumber})`}var hK=Ye({ngErrorCode:Ye}),mbe=Ye({ngErrorMessage:Ye}),WI=Ye({ngTokenPath:Ye});function Ik(t,e){let r=ngDevMode?`Circular dependency detected for \`${t}\`.`:"";return ybe(r,-200,e)}function mK(t,e){return gbe(Ik(t,e),null)}function ibe(){throw new Error("Cannot mix multi providers and regular providers")}function QW(t,e,r){if(t&&e){let n=e.map(i=>i==r?"?"+r+"?":"...");throw new Error(`Invalid provider for the NgModule '${Vt(t)}' - only instances of Provider and Type are allowed, got: [${n.join(", ")}]`)}else throw h1(r)?r.\u0275fromNgModule?new $(-207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new $(-207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function wk(t,e){let r=ngDevMode&&`No provider for ${et(t)} found${e?` in ${e}`:""}`;throw new $(-201,r)}function SSt(t,e){t[WI]??=[];let r=t[WI],n;typeof e=="object"&&"multi"in e&&e?.multi===!0?(X(e.provide,"Token with multi: true should have a provide property"),n=et(e.provide)):n=et(e),r[0]!==n&&t[WI].unshift(n)}function gbe(t,e){let r=t[WI],n=t[hK],i=t[mbe]||t.message;return t.message=ISt(i,n,r,e),t}function ybe(t,e,r){let n=new $(e,t);return n[hK]=e,n[mbe]=t,r&&(n[WI]=r),n}function TSt(t){return t[hK]}function ISt(t,e,r=[],n=null){let i="";r&&r.length>1&&(i=` Path: ${r.join(" -> ")}.`);let s=n?` Source: ${n}.`:"";return Tr(e,`${t}${s}${i}`)}var hk;function vbe(){return hk}function Yi(t){let e=hk;return hk=t,e}function gK(t,e,r){let n=d1(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&8)return null;if(e!==void 0)return e;wk(t,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function _be(t){ngDevMode&&Zi(hk,t,"Calling \u0275\u0275inject would cause infinite recursion")}var wSt={},x0=wSt,YW="__NG_DI_FLAG__",ZW=class{injector;constructor(e){this.injector=e}retrieve(e,r){let n=hh(r)||0;try{return this.injector.get(e,n&8?null:x0,n)}catch(i){if(t1(i))return i;throw i}}};function ASt(t,e=0){let r=lk();if(r===void 0)throw new $(-203,ngDevMode&&`The \`${Vt(t)}\` token injection failed. \`inject()\` function must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \`runInInjectionContext\`.`);if(r===null)return gK(t,void 0,e);{let n=xSt(e),i=r.retrieve(t,n);if(ngDevMode&&fK(t,i,e),t1(i)){if(n.optional)return null;throw i}return i}}function Gn(t,e=0){return(vbe()||ASt)(Qe(t),e)}function iw(t){throw new $(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${t} of the parameter list is invalid.
|
|
268
268
|
This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.
|