planx 20.53.1 → 20.53.2

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/config.main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- globalThis.__PLANX_SERVICE_VERSION__="20.53.1";
1
+ globalThis.__PLANX_SERVICE_VERSION__="20.53.2";
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 btt=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Ett(t){return t.split(btt)[2]}var Nme=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Dme(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Nme.has(t+"|"+e)||Nme.has("*|"+e)}var Stt=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof wd&&(r instanceof tb&&n.i18n instanceof Ki&&(r.previousMessage=n.i18n),n.i18n=r),r},TM=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=mtt(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 bM(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 tb){let s=i.name;n=this._generateI18nMessage([e],i);let o=Cge(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(RZe(e)){this.hasI18nMeta=!0;let n=[],i={};for(let s of e.attrs)if(s.name===xge){let o=e.i18n||s.value,a=new Map,u=this.preserveSignificantWhitespace?e.children:Kc(new EM(!1,a),e.children);r=this._generateI18nMessage(u,o,Stt(a)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(s.name.startsWith(jU)){let o=s.name.slice(jU.length),a;e instanceof vs?a=e.tagName===null?!1:Dme(e.tagName,o):a=Dme(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"?wtt(e):e instanceof Ki?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof Ki&&r.id||LYe(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[kYe(e),_ge(e)];else if(typeof r!="string"){let n=r instanceof Ki?r:r instanceof tb?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new Re(e.sourceSpan,r))}},Ttt="|",Itt="@@";function wtt(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(Itt),s=t.indexOf(Ttt),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 Att(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}),ZYe(e)}var xtt="goog.getMsg";function Ott(t,e,r,n){let i=Ptt(e),s=[O(i)];Object.keys(n).length&&(s.push(rV(zV(n,!0),!0)),s.push(rV({original_code:qo(Object.keys(n).map(u=>({key:xI(u),quoted:!0,value:e.placeholders[u]?O(e.placeholders[u].sourceSpan.toString()):O(e.placeholderToMessage[u].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=new Pn(r.name,vt(xtt).callFn(s),Oa,Vn.Final);o.addLeadingComment(Att(e));let a=new wi(t.set(r));return[o,a]}var _V=class{formatPh(e){return`{$${xI(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return l0e(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)}},Ctt=new _V;function Ptt(t){return t.nodes.map(e=>e.visit(Ctt,null)).join("")}function Ntt(t,e,r){let{messageParts:n,placeHolders:i}=Dtt(e),s=Mtt(e),o=i.map(c=>r[c.text]),a=eZe(e,n,i,o,s),u=t.set(a);return[new wi(u)]}var bV=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(l0e(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 j_(xI(e,!1),r,n)}};function Dtt(t){let e=[],r=new bV(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),Rtt(e)}function Mtt(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 Rtt(t){let e=[],r=[];t[0]instanceof j_&&e.push(iU(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 j_&&e.push(iU(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof j_&&e.push(iU(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function iU(t){return new qg("",new je(t,t))}var Mme="ngI18nClosureMode",ktt="i18n_",Ltt="I18N_EXP_",Rme="\uFFFD",$tt="MSG_";function kme(t){return`${$tt}${t}`.toUpperCase()}function Ftt(t){return new Pn(t.name,void 0,Oa,void 0,t.sourceSpan)}function jtt(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}=v0e(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[O(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 v0e(t,e,r,n){let i=[],s=new Map;for(let c of n.subMessages){let l=r.get(c),{mainVar:d,statements:f}=v0e(t,e,r,l);i.push(...f);let p=s.get(l.messagePlaceholder)??[];p.push(d),s.set(l.messagePlaceholder,p)}qtt(n,s),n.params=new Map([...n.params.entries()].sort());let o=vt(t.pool.uniqueName(ktt)),a=Vtt(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=zV(c,!1),d=[];n.postprocessingParams.size>0&&d.push(rV(l,!0)),u=f=>Ee(T.i18nPostprocess).callFn([f,...d])}return i.push(...Btt(n.message,o,a,n.params,u)),{mainVar:o,statements:i}}function qtt(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,O(`${Rme}${Ltt}${r}${Rme}`)),t.postprocessingParams.set(r,ir(n)))}function Btt(t,e,r,n,i){let s=Object.fromEntries(n),o=[Ftt(e),LM(Utt(),Ott(e,t,r,s),Ntt(e,t,zV(s,!1)))];return i&&o.push(new wi(e.set(i(e)))),o}function Utt(){return wI(vt(Mme)).notIdentical(O("undefined",GV)).and(vt(Mme))}function Vtt(t,e,r,n){let i,s=r;if(n){let o=kme("EXTERNAL_"),a=t.uniqueName(s);i=`${o}${kg(e)}$$${a}`}else{let o=kme(s);i=t.uniqueName(o)}return vt(i)}function Htt(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=hJe(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?rb.Postproccessing:rb.Creation,p=[];for(let m=0;m<a.interpolation.expressions.length;m++){let g=a.interpolation.expressions[m];p.push(Qge(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 Gtt(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=Wtt(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function Wtt(t){let e=[];for(let r of t)e.push(O(r.name),O(r.target));return ir(e)}function Ktt(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(oJe(n.namespace),n),r=n.namespace)}}function ztt(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=_0e(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 _0e(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Qtt(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&&Yge(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=ztt(n.expression.value);for(let o=0;o<s.length-1;o+=2)L.insertBefore(eo(n.target,ge.StyleProperty,null,s[o],O(s[o+1]),null,null,nr.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,nr.NONE),n);L.remove(n)}}}function Ytt(t){bT(t.root,t.componentName,{index:0},t.compatibility===Is.TemplateDefinitionBuilder)}function bT(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,Ztt(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);bT(l,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,r,n)}bT(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);bT(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}`;bT(u,`${e}${c}_${s.handle.slot}`,r,n);break;case v.StyleProp:s.name=Xtt(s.name),n&&(s.name=Lme(s.name));break;case v.ClassProp:n&&(s.name=Lme(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 Ztt(t,e,r){if(e.name===null)switch(e.kind){case Cn.Context:e.name=`ctx_r${r.index++}`;break;case Cn.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 Xtt(t){return t.startsWith("--")?t:_0e(t)}function Lme(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function Jtt(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)&&$me(r.handlerOps);$me(e.update)}}function $me(t){for(let e of t){if(e.kind!==v.Statement||!(e.statement instanceof wi)||!(e.statement.expr instanceof oM))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&Ot.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 ert="ng-container";function trt(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===v.ElementStart&&n.tag===ert&&(n.kind=v.ContainerStart,r.add(n.xref)),n.kind===v.ElementEnd&&r.has(n.xref)&&(n.kind=v.ContainerEnd)}}function rrt(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 nrt(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(rJe(n.xref),n),(n.kind===v.ElementEnd||n.kind===v.ContainerEnd)&&rrt(e,n.xref).nonBindable&&L.insertBefore(nJe(n.xref),n)}function Zc(t){return e=>e.kind===t}function AT(t,e){return r=>r.kind===t&&e===r.expression instanceof Br}function irt(t){return t.kind===v.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===v.TwoWayListener||t.kind===v.Animation||t.kind===v.AnimationListener}function srt(t){return(t.kind===v.Property||t.kind===v.TwoWayProperty)&&!(t.expression instanceof Br)}var ort=[{test:t=>t.kind===v.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:irt}],art=[{test:Zc(v.StyleMap),transform:IM},{test:Zc(v.ClassMap),transform:IM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)},{test:AT(v.Attribute,!0)},{test:AT(v.Property,!0)},{test:srt},{test:AT(v.Attribute,!1)},{test:Zc(v.Control)}],urt=[{test:AT(v.DomProperty,!0)},{test:AT(v.DomProperty,!1)},{test:Zc(v.Attribute)},{test:Zc(v.StyleMap),transform:IM},{test:Zc(v.ClassMap),transform:IM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)}],Fme=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 crt(t){for(let e of t.units){jme(e.create,ort);let r=e.job.kind===ue.Host?urt:art;jme(e.update,r)}}function jme(t,e){let r=[],n=null;for(let i of t){let s=lI(i)?i.target:null;(!Fme.has(i.kind)||s!==n&&n!==null&&s!==null)&&(L.insertBefore(qme(r,e),i),r=[],n=null),Fme.has(i.kind)&&(r.push(i),L.remove(i),n=s??n)}t.push(qme(r,e))}function qme(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 IM(t){return t.slice(t.length-1)}function lrt(t){for(let e of t.units){let r=o0e(e);for(let n of e.ops())if(n.kind===v.Binding){let i=frt(r,n.target);drt(n.name)&&i.kind===v.Projection&&L.remove(n)}}}function drt(t){return t.toLowerCase()==="select"}function frt(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function prt(t){for(let e of t.units)hrt(e)}function hrt(t){for(let e of t.update)Hn(e,(r,n)=>{if(cl(r)&&r.kind===Se.PipeBinding){if(n&Ot.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");mrt(t,e.target,r)}else t.create.push(n0e(r.target,r.targetSlot,r.name))}})}function mrt(t,e,r){for(let n=t.create.head.next;n.kind!==v.ListEnd;n=n.next){if(!db(n)||n.xref!==e)continue;for(;n.next.kind===v.Pipe;)n=n.next;let i=n0e(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 grt(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 pI(n.target,n.targetSlot,n.name,ir(n.args),n.args.length),Ot.None)}function yrt(t){b0e(t.root,0)}function b0e(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=lD(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case v.RepeaterCreate:let i=t.job.views.get(n.xref);e=lD(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=lD(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case v.Projection:n.fallbackView!==null&&(e=lD(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function lD(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++,vrt(t,e)}return b0e(t,n)}function vrt(t,e){if(t.create.head.next?.kind!==v.I18nStart){let r=t.job.allocateXrefId();L.insertAfter(BM(r,e.message,e.root,null),t.create.head),L.insertBefore(UM(r,null),t.create.tail)}}function _rt(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 EV(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var EV=class extends MT{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,Ot.None);return new Pn(e,new zg(n,i),void 0,Vn.Final)}};function brt(t){for(let e of t.units)for(let r of e.update)ln(r,(n,i)=>i&Ot.InChildOperation?n:n instanceof il?Ert(n):n instanceof Na?Srt(n):n,Ot.None)}function Ert(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(ir(e),r)}function Srt(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 W_(n.key,new Fp(i),n.quoted))}}return new o0(new Na(e),r)}function Trt(t){for(let e of t.units)for(let r of e.ops())ln(r,n=>n instanceof G_&&(n.flags===null||!n.flags.includes("g"))?t.pool.getSharedConstant(new SV,n):n,Ot.None)}var SV=class extends MT{toSharedConstantDeclaration(e,r){return new Pn(e,r,void 0,Vn.Final)}};function Irt(t,e,r,n,i){return Vp(T.element,t,e,r,n,i)}function wrt(t,e,r,n,i){return Vp(T.elementStart,t,e,r,n,i)}function Vp(t,e,r,n,i,s){let o=[O(e)];return r!==null&&o.push(O(r)),i!==null?o.push(O(n),O(i)):n!==null&&o.push(O(n)),ze(t,o,s)}function E0e(t,e,r,n,i,s,o,a,u){let c=[O(e),r,O(n),O(i),O(s),O(o)];for(a!==null&&(c.push(O(a)),c.push(Ee(T.templateRefExtractor)));c[c.length-1].isEquivalent(K_);)c.pop();return ze(t,c,u)}function sH(t,e,r,n,i){let s=[O(e)];return r instanceof Br?s.push(l0(r,i)):s.push(r),n!==null&&s.push(n),ze(t,s,i)}function Art(t){return ze(T.elementEnd,[],t)}function xrt(t,e,r,n){return Vp(T.elementContainerStart,t,null,e,r,n)}function Ort(t,e,r,n){return Vp(T.elementContainer,t,null,e,r,n)}function Crt(){return ze(T.elementContainerEnd,[],null)}function Prt(t,e,r,n,i,s,o,a){return E0e(T.templateCreate,t,e,r,n,i,s,o,a)}function Nrt(){return ze(T.disableBindings,[],null)}function Drt(){return ze(T.enableBindings,[],null)}function Mrt(t,e,r,n,i){let s=[O(t),e];return r!==null&&s.push(Ee(r)),ze(n?T.syntheticHostListener:T.listener,s,i)}function Bme(t,e){return Ee(T.twoWayBindingSet).callFn([t,e])}function Rrt(t,e,r){return ze(T.twoWayListener,[O(t),e],r)}function krt(t,e){return ze(T.pipe,[O(t),O(e)],null)}function Lrt(){return ze(T.namespaceHTML,[],null)}function $rt(){return ze(T.namespaceSVG,[],null)}function Frt(){return ze(T.namespaceMathML,[],null)}function jrt(t,e){return ze(T.advance,t>1?[O(t)]:[],e)}function qrt(t){return Ee(T.reference).callFn([O(t)])}function Brt(t){return Ee(T.nextContext).callFn(t===1?[]:[O(t)])}function Urt(){return Ee(T.getCurrentView).callFn([])}function Vrt(t){return Ee(T.restoreView).callFn([t])}function Hrt(t){return Ee(T.resetView).callFn([t])}function Grt(t,e,r){let n=[O(t,null)];return e!==""&&n.push(O(e)),ze(T.text,n,r)}function Wrt(t,e,r,n,i,s,o,a,u,c,l){let d=[O(t),O(e),r??O(null),O(n),O(i),O(s),o??O(null),a??O(null),u?Ee(T.deferEnableTimerScheduling):O(null),O(l)],f;for(;(f=d[d.length-1])!==null&&f instanceof ui&&f.value===null;)d.pop();return ze(T.defer,d,c)}var Krt=new Map([[rr.Idle,{none:T.deferOnIdle,prefetch:T.deferPrefetchOnIdle,hydrate:T.deferHydrateOnIdle}],[rr.Immediate,{none:T.deferOnImmediate,prefetch:T.deferPrefetchOnImmediate,hydrate:T.deferHydrateOnImmediate}],[rr.Timer,{none:T.deferOnTimer,prefetch:T.deferPrefetchOnTimer,hydrate:T.deferHydrateOnTimer}],[rr.Hover,{none:T.deferOnHover,prefetch:T.deferPrefetchOnHover,hydrate:T.deferHydrateOnHover}],[rr.Interaction,{none:T.deferOnInteraction,prefetch:T.deferPrefetchOnInteraction,hydrate:T.deferHydrateOnInteraction}],[rr.Viewport,{none:T.deferOnViewport,prefetch:T.deferPrefetchOnViewport,hydrate:T.deferHydrateOnViewport}],[rr.Never,{none:T.deferHydrateNever,prefetch:T.deferHydrateNever,hydrate:T.deferHydrateNever}]]);function zrt(t,e,r,n){let i=Krt.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return ze(i,e,n)}function Qrt(t){return ze(T.projectionDef,t?[t]:[],null)}function Yrt(t,e,r,n,i,s,o){let a=[O(t)];return(e!==0||r!==null||n!==null)&&(a.push(O(e)),r!==null&&a.push(r),n!==null&&(r===null&&a.push(O(null)),a.push(vt(n),O(i),O(s)))),ze(T.projection,a,o)}function Zrt(t,e,r,n){let i=[O(t),O(e)];return r!==null&&i.push(O(r)),ze(T.i18nStart,i,n)}function Xrt(t,e,r,n,i,s,o,a){let u=[O(t),e,O(r),O(n),O(i),O(s)];for(o!==null&&(u.push(O(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(K_);)u.pop();return ze(T.conditionalCreate,u,a)}function Jrt(t,e,r,n,i,s,o,a){let u=[O(t),e,O(r),O(n),O(i),O(s)];for(o!==null&&(u.push(O(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(K_);)u.pop();return ze(T.conditionalBranchCreate,u,a)}function ent(t,e,r,n,i,s,o,a,u,c,l,d,f,p){let m=[O(t),vt(e),O(r),O(n),O(i),O(s),o];return(a||u!==null)&&(m.push(O(a)),u!==null&&(m.push(vt(u),O(c),O(l)),(d!==null||f!==null)&&m.push(O(d)),f!==null&&m.push(O(f)))),ze(T.repeaterCreate,m,p)}function tnt(t,e){return ze(T.repeater,[t],e)}function rnt(t,e,r){return t==="prefetch"?ze(T.deferPrefetchWhen,[e],r):t==="hydrate"?ze(T.deferHydrateWhen,[e],r):ze(T.deferWhen,[e],r)}function nnt(t,e){return ze(T.declareLet,[O(t)],e)}function int(t,e){return Ee(T.storeLet).callFn([t],e)}function snt(t){return Ee(T.readContextLet).callFn([O(t)])}function ont(t,e,r,n){let i=[O(t),O(e)];return r&&i.push(O(r)),ze(T.i18n,i,n)}function ant(t){return ze(T.i18nEnd,[],t)}function unt(t,e){let r=[O(t),O(e)];return ze(T.i18nAttributes,r,null)}function cnt(t,e,r){return sH(T.ariaProperty,t,e,null,r)}function lnt(t,e,r,n){return sH(T.property,t,e,r,n)}function dnt(t,e,r,n){let i=[];return e instanceof Br?i.push(l0(e,n)):i.push(e),i.push(O(t)),r!==null&&i.push(r),ze(T.control,i,n)}function fnt(t){return ze(T.controlCreate,[],t)}function pnt(t,e,r,n){let i=[O(t),e];return r!==null&&i.push(r),ze(T.twoWayProperty,i,n)}function hnt(t,e,r,n,i){let s=[O(t)];return e instanceof Br?s.push(l0(e,i)):s.push(e),(r!==null||n!==null)&&s.push(r??O(null)),n!==null&&s.push(O(n)),ze(T.attribute,s,null)}function mnt(t,e,r,n){let i=[O(t)];return e instanceof Br?i.push(l0(e,n)):i.push(e),r!==null&&i.push(O(r)),ze(T.styleProp,i,n)}function gnt(t,e,r){return ze(T.classProp,[O(t),e],r)}function ynt(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.styleMap,[r],e)}function vnt(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.classMap,[r],e)}function _nt(t,e,r,n,i){return Vp(T.domElement,t,e,r,n,i)}function bnt(t,e,r,n,i){return Vp(T.domElementStart,t,e,r,n,i)}function Ent(t){return ze(T.domElementEnd,[],t)}function Snt(t,e,r,n){return Vp(T.domElementContainerStart,t,null,e,r,n)}function Tnt(t,e,r,n){return Vp(T.domElementContainer,t,null,e,r,n)}function Int(){return ze(T.domElementContainerEnd,[],null)}function wnt(t,e,r,n){let i=[O(t),e];return r!==null&&i.push(Ee(r)),ze(T.domListener,i,n)}function Ant(t,e,r,n,i,s,o,a){return E0e(T.domTemplate,t,e,r,n,i,s,o,a)}var Ume=[T.pipeBind1,T.pipeBind2,T.pipeBind3,T.pipeBind4];function xnt(t,e,r){if(r.length<1||r.length>Ume.length)throw new Error("pipeBind() argument count out of bounds");let n=Ume[r.length-1];return Ee(n).callFn([O(t),O(e),...r])}function Ont(t,e,r){return Ee(T.pipeBindV).callFn([O(t),O(e),r])}function Cnt(t,e,r){let n=S0e(t,e);return Vnt(qnt,[],n,r)}function Pnt(t,e){return ze(T.i18nExp,[t],e)}function Nnt(t,e){return ze(T.i18nApply,[O(t)],e)}function Dnt(t,e,r,n){return sH(T.domProperty,t,e,r,n)}function Mnt(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 Rnt(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 knt(t,e,r,n){let i=[e],s=t==="enter"?T.animationEnterListener:T.animationLeaveListener;return ze(s,i,n)}function Lnt(t,e,r){return ze(T.syntheticHostProperty,[O(t),e],r)}function $nt(t,e,r){return oH(Unt,[O(t),e],r,null)}function Fnt(t,e){return ze(T.attachSourceLocations,[O(t),e],null)}function S0e(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(O(t[n]),e[n]);r.push(O(t[n]))}return r}function l0(t,e){let r=S0e(t.strings,t.expressions);return oH(Bnt,[],r,e)}function ze(t,e,r){let n=Ee(t).callFn(e,r);return Bo(new wi(n,r))}function jnt(t,e,r){let n=[t];return e!==null&&n.push(e),ze(T.conditional,n,r)}var qnt={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}},Bnt={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}},Unt={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 oH(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,ir(r)],n);throw new Error("AssertionError: unable to call variadic function")}function Vnt(t,e,r,n){return Bo(oH(t,e,r,n).toStmt())}var Hnt=new Map([["window",T.resolveWindow],["document",T.resolveDocument],["body",T.resolveBody]]),Gnt=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function Wnt(t){for(let e of t.units)Knt(e,e.create),aH(e,e.update)}function Knt(t,e){for(let r of e)switch(ln(r,T0e,Ot.None),r.kind){case v.Text:L.replace(r,Grt(r.handle.slot,r.initialValue,r.sourceSpan));break;case v.ElementStart:L.replace(r,t.job.mode===Gi.DomOnly?bnt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):wrt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Element:L.replace(r,t.job.mode===Gi.DomOnly?_nt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):Irt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ElementEnd:L.replace(r,t.job.mode===Gi.DomOnly?Ent(r.sourceSpan):Art(r.sourceSpan));break;case v.ContainerStart:L.replace(r,t.job.mode===Gi.DomOnly?Snt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):xrt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Container:L.replace(r,t.job.mode===Gi.DomOnly?Tnt(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):Ort(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ContainerEnd:L.replace(r,t.job.mode===Gi.DomOnly?Int():Crt());break;case v.I18nStart:L.replace(r,Zrt(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nEnd:L.replace(r,ant(r.sourceSpan));break;case v.I18n:L.replace(r,ont(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,unt(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?Ant(r.handle.slot,vt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):Prt(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,Nrt());break;case v.EnableBindings:L.replace(r,Drt());break;case v.Pipe:L.replace(r,krt(r.handle.slot,r.name));break;case v.DeclareLet:L.replace(r,nnt(r.handle.slot,r.sourceSpan));break;case v.AnimationString:L.replace(r,Rnt(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case v.Animation:let i=dD(t,r.handlerFnName,r.handlerOps,!1);L.replace(r,Mnt(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case v.AnimationListener:let s=dD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);L.replace(r,knt(r.animationKind,s,null,r.sourceSpan));break;case v.Listener:let o=dD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),a=r.eventTarget?Hnt.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?wnt(r.name,o,a,r.sourceSpan):Mrt(r.name,o,a,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case v.TwoWayListener:L.replace(r,Rrt(r.name,dD(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,Lrt());break;case ii.SVG:L.replace(r,$rt());break;case ii.Math:L.replace(r,Frt());break}break;case v.Defer:let u=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;L.replace(r,Wrt(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 rr.Never:case rr.Idle:case rr.Immediate:break;case rr.Timer:c=[O(r.trigger.delay)];break;case rr.Viewport:r.modifier==="hydrate"?c=r.trigger.options?[r.trigger.options]:[]:(c=[O(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0?c.push(O(r.trigger.targetSlotViewSteps)):r.trigger.options&&c.push(O(null)),r.trigger.options&&c.push(r.trigger.options));break;case rr.Interaction:case rr.Hover:r.modifier==="hydrate"?c=[]:(c=[O(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0&&c.push(O(r.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${r.trigger.kind}`)}L.replace(r,zrt(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case v.ProjectionDef:L.replace(r,Qrt(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,Yrt(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,Xrt(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,Jrt(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,ent(r.handle.slot,g.fnName,r.decls,r.vars,r.tag,r.attributes,Ynt(t,r),r.usesComponentInstance,y,_,b,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case v.SourceLocation:let S=ir(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 ir([O(x.slot),O(M),O(se),O(ye)])}));L.replace(r,Fnt(r.templatePath,S));break;case v.ControlCreate:L.replace(r,fnt(r.sourceSpan));break;case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${v[r.kind]}`)}}function aH(t,e){for(let r of e)switch(ln(r,T0e,Ot.None),r.kind){case v.Advance:L.replace(r,jrt(r.delta,r.sourceSpan));break;case v.Property:L.replace(r,t.job.mode===Gi.DomOnly&&r.bindingKind!==ge.LegacyAnimation&&r.bindingKind!==ge.Animation?Vme(r):znt(r));break;case v.Control:L.replace(r,Qnt(r));break;case v.TwoWayProperty:L.replace(r,pnt(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case v.StyleProp:L.replace(r,mnt(r.name,r.expression,r.unit,r.sourceSpan));break;case v.ClassProp:L.replace(r,gnt(r.name,r.expression,r.sourceSpan));break;case v.StyleMap:L.replace(r,ynt(r.expression,r.sourceSpan));break;case v.ClassMap:L.replace(r,vnt(r.expression,r.sourceSpan));break;case v.I18nExpression:L.replace(r,Pnt(r.expression,r.sourceSpan));break;case v.I18nApply:L.replace(r,Nnt(r.handle.slot,r.sourceSpan));break;case v.InterpolateText:L.replace(r,Cnt(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case v.Attribute:L.replace(r,hnt(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,Lnt(r.name,r.expression,r.sourceSpan)):L.replace(r,Vme(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,jnt(r.processed,r.contextValue,r.sourceSpan));break;case v.Repeater:L.replace(r,tnt(r.collection,r.sourceSpan));break;case v.DeferWhen:L.replace(r,rnt(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 Vme(t){return Dnt(Gnt.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function znt(t){return a0e(t.name)?cnt(t.name,t.expression,t.sourceSpan):lnt(t.name,t.expression,t.sanitizer,t.sourceSpan)}function Qnt(t){return dnt(t.name,t.expression,t.sanitizer,t.sourceSpan)}function T0e(t){if(!cl(t))return t;switch(t.kind){case Se.NextContext:return Brt(t.steps);case Se.Reference:return qrt(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 Vrt(t.view);case Se.ResetView:return Hrt(t.expr);case Se.GetCurrentView:return Urt();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 $nt(t.varOffset,t.fn,t.args);case Se.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case Se.PipeBinding:return xnt(t.targetSlot.slot,t.varOffset,t.args);case Se.PipeBindingVariadic:return Ont(t.targetSlot.slot,t.varOffset,t.args);case Se.SlotLiteralExpr:return O(t.slot.slot);case Se.ContextLetReference:return snt(t.targetSlot.slot);case Se.StoreLet:return int(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 dD(t,e,r,n){aH(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 Ynt(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{aH(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 Znt(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 hI&&L.remove(r);break}}function Xnt(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 Jnt(t){for(let e of t.units)for(let r of e.update){if(r.kind!==v.Variable||r.variable.kind!==Cn.Identifier||!(r.initializer instanceof dI))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==v.ListEnd;)ln(i,s=>s instanceof ri&&s.name===n?O(void 0):s,Ot.None),i=i.prev}}function eit(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 tit(t){for(let e of t.units)wM(e,e.create),wM(e,e.update)}function wM(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===Cn.Context&&r.set(n.variable.view,new Td(n.xref));break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:wM(t,n.handlerOps);break;case v.RepeaterCreate:n.trackByOps!==null&&wM(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},Ot.None)}function rit(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 nit(t){for(let e of t.units)Hme(e.create),Hme(e.update)}function Hme(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 Ca(r.name)):r,Ot.InChildOperation)}function iit(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");Gme(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");Wme(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");Gme(a,s.i18nContext,s.i18nBlock,i),Wme(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");fD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,f,r,n),pD(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):(fD(t,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,c,r,n),pD(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");fD(t,d,l,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,d,r,n),pD(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");fD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,p,r,n),pD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}}break}}function Gme(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),ub(e.params,i,a,r.subTemplateIndex,o)}function Wme(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}),ub(e.params,i,o,r.subTemplateIndex,s)}}function fD(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&&ub(i.params,a,o.handle.slot,s.subTemplateIndex,c),ub(i.params,a,r,I0e(t,s,e),c)}function pD(t,e,r,n,i,s,o){let{closeName:a}=n,u=lr.TemplateTag|lr.CloseTag;a&&(ub(i.params,a,r,I0e(t,s,e),u),o!==void 0&&ub(i.params,a,o.handle.slot,s.subTemplateIndex,u))}function I0e(t,e,r){for(let n of r.create)if(n.kind===v.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function ub(t,e,r,n,i){let s=t.get(e)??[];s.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,s)}function sit(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};oit(a,l,r,n),i.set(s(a),u+1)}}function oit(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),s=t.resolutionTime===rb.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 ait(t){for(let e of t.units)AM(e,e.create,null),AM(e,e.update,null)}function AM(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 Cn.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 Cn.Alias:if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case Cn.SavedView:r={view:s.variable.view,variable:s.xref};break}break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:AM(t,s.handlerOps,r);break;case v.RepeaterCreate:s.trackByOps!==null&&AM(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 aM&&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},Ot.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 uit=new Map([[nr.HTML,T.sanitizeHtml],[nr.RESOURCE_URL,T.sanitizeResourceUrl],[nr.SCRIPT,T.sanitizeScript],[nr.STYLE,T.sanitizeStyle],[nr.URL,T.sanitizeUrl],[nr.ATTRIBUTE_NO_BINDING,T.validateAttribute]]),cit=new Map([[nr.HTML,T.trustConstantHtml],[nr.RESOURCE_URL,T.trustConstantResourceUrl]]);function lit(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=cit.get(Kme(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(nr.URL)&&r.securityContext.includes(nr.RESOURCE_URL)?n=T.sanitizeUrlOrResourceUrl:n=uit.get(Kme(r.securityContext))??null,r.sanitizer=n!==null?Ee(n):null;break}}}function Kme(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||nr.NONE}return t}function dit(t){for(let e of t.units){e.create.prepend([Ap(e.job.allocateXrefId(),{kind:Cn.SavedView,name:null,view:e.xref},new ZU,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 sM||s instanceof fI)&&(n=!0)});n&&fit(e,r)}}}function fit(t,e){e.handlerOps.prepend([Ap(t.job.allocateXrefId(),{kind:Cn.Context,name:null,view:t.xref},new aM(t.xref),ro.None)]);for(let r of e.handlerOps)r.kind===v.Statement&&r.statement instanceof oi&&(r.statement.value=new XU(r.statement.value))}function pit(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)db(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 hit(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 fI&&e.add(s.target)});for(let n of t.units)for(let i of n.update)ln(i,s=>s instanceof dI&&!e.has(s.target)?(mit(s)||L.remove(r.get(s.target)),s.value):s,Ot.None)}function mit(t){let e=!1;return fe(t,r=>((r instanceof a0||r instanceof pI)&&(e=!0),r),Ot.None),e}function git(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:yit(i,e);break;case H.NullishCoalesce:vit(i,e);break;case H.And:case H.Or:_it(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,Ot.None)}function yit(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Qg&&e.add(t.lhs)}function vit(t,e){t.lhs instanceof Pa&&(zme(t.lhs.expr)||t.lhs.expr instanceof nl)&&e.add(t.lhs),t.rhs instanceof Pa&&(zme(t.rhs.expr)||t.rhs.expr instanceof nl)&&e.add(t.rhs)}function _it(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Tt&&t.lhs.expr.operator===H.NullishCoalesce&&e.add(t.lhs)}function zme(t){return t instanceof Tt&&(t.operator===H.And||t.operator===H.Or)}function bit(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,VXe(r.target,r.name,r.expression,r.sourceSpan));break;case ge.StyleProperty:L.replace(r,UXe(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case ge.Property:case ge.Template:r.name==="style"?L.replace(r,HXe(r.target,r.expression,r.sourceSpan)):r.name==="class"&&L.replace(r,GXe(r.target,r.expression,r.sourceSpan));break}}function Eit(t){for(let e of t.units)e.create.prepend(xM(e.create)),e.update.prepend(xM(e.update))}function xM(t){let e=0,r=[];for(let n of t){let i=new Map;Hn(n,(c,l)=>{l&Ot.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&Ot.InChildOperation||(c instanceof ll?(o.has(c.xref)||(o.add(c.xref),u.set(c.xref,`tmp_${e}_${s++}`)),Qme(u,c)):c instanceof jp&&(i.get(c.xref)===c&&(a.add(c.xref),s--),Qme(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(xM(n.handlerOps)):n.kind===v.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(xM(n.trackByOps))}return r}function Qme(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 Sit(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.RepeaterCreate)if(r.track instanceof Ca&&r.track.name==="$index")r.trackByFn=Ee(T.repeaterTrackByIndex);else if(r.track instanceof Ca&&r.track.name==="$item")r.trackByFn=Ee(T.repeaterTrackByIdentity);else if(Tit(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 pI)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof $p?(r.usesComponentInstance=!0,new YU(i.view)):i},Ot.None);let n=new L;n.push(Bo(new oi(r.track,r.track.sourceSpan))),r.trackByOps=n}}function Tit(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 Ca)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof Ca)||n.name!=="$item")}function Iit(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},Ot.None))}function wit(t){for(let e of t.units)for(let r of e.create)r.kind===v.TwoWayListener&&ln(r,n=>{if(!(n instanceof uM))return n;let{target:i,value:s}=n;if(i instanceof ao||i instanceof Id)return Bme(i,s).or(i.set(s));if(i instanceof Td)return Bme(i,s);throw new Error("Unsupported expression in two-way action binding.")},Ot.InChildOperation)}function Ait(t){for(let e of t.units){let r=0;for(let n of e.ops())eU(n)&&(r+=xit(n));for(let n of e.ops())Hn(n,i=>{cl(i)&&(t.compatibility===Is.TemplateDefinitionBuilder&&i instanceof o0||(nme(i)&&(i.varOffset=r),eU(i)&&(r+=Yme(i))))});if(t.compatibility===Is.TemplateDefinitionBuilder)for(let n of e.ops())Hn(n,i=>{!cl(i)||!(i instanceof o0)||(nme(i)&&(i.varOffset=r),eU(i)&&(r+=Yme(i)))});e.vars=r}if(t instanceof gI)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 xit(t){let e;switch(t.kind){case v.Attribute:return e=1,t.expression instanceof Br&&!Oit(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 Yme(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 Oit(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function Cit(t){for(let e of t.units){hD(e.create),hD(e.update);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?hD(r.handlerOps):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&hD(r.trackByOps);mD(e.create,t.compatibility),mD(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?mD(r.handlerOps,t.compatibility):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&mD(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 hD(t){let e=new Map;for(let r of t)r.kind===v.Variable&&r.flags&ro.AlwaysInline&&(Hn(r,n=>{if(cl(n)&&uH(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,Ot.None);for(let r of e.values())L.remove(r)}function mD(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,Pit(c)),Nit(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 Dit(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&&!Rit(c,f))break;if(Mit(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(!w0e(p.fences,l.fences))break}}}function uH(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 Pit(t){let e=_n.None,r=new Set;return Hn(t,n=>{cl(n)&&(n.kind===Se.ReadVariable?r.add(n.xref):e|=uH(n))}),{fences:e,variablesUsed:r}}function Nit(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&Ot.InChildOperation&&r.add(n.xref))})}function Dit(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 w0e(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 Mit(t,e,r,n){let i=!1,s=!0;return ln(r,(o,a)=>{if(!cl(o)||i||!s)return o;if(a&Ot.InChildOperation&&n&_n.ViewContextRead)return o;switch(o.kind){case Se.ReadVariable:if(o.xref===t)return i=!0,e;break;default:let u=uH(o);s=s&&w0e(u,n);break}return o},Ot.None),i}function Rit(t,e){switch(t.variable.kind){case Cn.Identifier:return t.initializer instanceof Ca&&t.initializer.name==="ctx";case Cn.Context:return e.kind===v.Variable;default:return!0}}function kit(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(BM(n,i.message,void 0,null),i));break;case v.IcuEnd:n!==null&&(L.insertAfter(UM(n,null),i),n=null);break}}}var Lit=[{kind:ue.Tmpl,fn:lrt},{kind:ue.Both,fn:Trt},{kind:ue.Host,fn:Tet},{kind:ue.Tmpl,fn:Ktt},{kind:ue.Tmpl,fn:yrt},{kind:ue.Tmpl,fn:kit},{kind:ue.Both,fn:UJe},{kind:ue.Both,fn:bit},{kind:ue.Both,fn:xJe},{kind:ue.Both,fn:FJe},{kind:ue.Both,fn:IJe},{kind:ue.Tmpl,fn:BJe},{kind:ue.Both,fn:Qtt},{kind:ue.Tmpl,fn:Znt},{kind:ue.Both,fn:PJe},{kind:ue.Both,fn:crt},{kind:ue.Tmpl,fn:NJe},{kind:ue.Tmpl,fn:prt},{kind:ue.Tmpl,fn:VJe},{kind:ue.Tmpl,fn:grt},{kind:ue.Both,fn:brt},{kind:ue.Tmpl,fn:yet},{kind:ue.Tmpl,fn:get},{kind:ue.Tmpl,fn:vet},{kind:ue.Tmpl,fn:dit},{kind:ue.Both,fn:vJe},{kind:ue.Both,fn:nit},{kind:ue.Tmpl,fn:Iit},{kind:ue.Tmpl,fn:Jnt},{kind:ue.Both,fn:ait},{kind:ue.Tmpl,fn:HJe},{kind:ue.Tmpl,fn:wit},{kind:ue.Tmpl,fn:Sit},{kind:ue.Both,fn:tit},{kind:ue.Both,fn:lit},{kind:ue.Tmpl,fn:Gtt},{kind:ue.Both,fn:QJe},{kind:ue.Both,fn:git},{kind:ue.Both,fn:Eit},{kind:ue.Both,fn:Cit},{kind:ue.Both,fn:hit},{kind:ue.Tmpl,fn:Htt},{kind:ue.Tmpl,fn:qJe},{kind:ue.Tmpl,fn:eit},{kind:ue.Tmpl,fn:SJe},{kind:ue.Tmpl,fn:bJe},{kind:ue.Tmpl,fn:pit},{kind:ue.Tmpl,fn:iit},{kind:ue.Tmpl,fn:sit},{kind:ue.Tmpl,fn:det},{kind:ue.Tmpl,fn:jtt},{kind:ue.Tmpl,fn:bet},{kind:ue.Both,fn:kJe},{kind:ue.Tmpl,fn:Xnt},{kind:ue.Both,fn:Ait},{kind:ue.Tmpl,fn:met},{kind:ue.Both,fn:Ytt},{kind:ue.Tmpl,fn:rit},{kind:ue.Tmpl,fn:Jtt},{kind:ue.Tmpl,fn:trt},{kind:ue.Tmpl,fn:zJe},{kind:ue.Tmpl,fn:TJe},{kind:ue.Tmpl,fn:nrt},{kind:ue.Both,fn:_rt},{kind:ue.Both,fn:Wnt},{kind:ue.Both,fn:CJe}];function A0e(t,e){for(let r of Lit)(r.kind===e||r.kind===ue.Both)&&r.fn(t)}function $it(t,e){let r=O0e(t.root);return x0e(t.root,e),r}function x0e(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;x0e(r,e);let n=O0e(r);e.statements.push(n.toDeclStmt(n.name))}}function O0e(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=OM(1,e),i=OM(2,r);return Np([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.fnName)}function OM(t,e){return e.length===0?[]:[LM(new Tt(H.BitwiseAnd,vt("rf"),O(t)),e)]}function Fit(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=OM(1,e),i=OM(2,r);return Np([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.root.fnName)}var C0e=Is.TemplateDefinitionBuilder,Gg=new ab,Wg="ng-template",jit="animate.";function TD(t){return t instanceof Ki}function qit(t){return TD(t)&&t.nodes.length===1&&t.nodes[0]instanceof JD}function Bit(t,e,r,n,i,s,o,a,u,c){let l=new gI(t,r,C0e,n,i,s,o,a,u,c);return Ad(l.root,e),l}function Uit(t,e,r){let n=new hM(t.componentName,r,C0e,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!==nr.NONE);Vit(n,i,s,o)}for(let[i,s]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,i,!0).filter(a=>a!==nr.NONE);Hit(n,i,s,o)}for(let i of t.events??[])Git(n,i);return n}function Vit(t,e,r,n){let i,s=e.expression.ast;s instanceof AI?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 Hit(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 Git(t,e){let r;if(e.type===Ii.Animation)r=t0e(t.root.xref,new ci,e.name,null,EI(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=iH(t.root.xref,new ci,e.name,null,EI(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)Wit(t,r);else if(r instanceof so)Kit(t,r);else if(r instanceof eb)zit(t,r);else if(r instanceof jg)P0e(t,r,null);else if(r instanceof Z_)N0e(t,r,null);else if(r instanceof ZD)Qit(t,r);else if(r instanceof YD)Yit(t,r);else if(r instanceof t0)Zit(t,r);else if(r instanceof Age)Jit(t,r);else if(r instanceof J_)est(t,r);else if(r instanceof KV)rst(t,r);else if(!(r instanceof TT))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function Wit(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=JXe(i,r,u0e(n),e.i18n instanceof Mp?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(s),ist(t,s,e),R0e(s,e);let o=null;e.i18n instanceof Ki&&(o=t.job.allocateXrefId(),t.create.push(BM(o,e.i18n,void 0,e.startSourceSpan))),Ad(t,e.children);let a=tJe(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(gJe(u.sourceSpan)),o!==null&&L.insertBefore(UM(o,e.endSourceSpan??e.startSourceSpan),a)}function Kit(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=u0e(i),a=n===null?"":RJe(n,o),u=nst(e)?zi.NgTemplate:zi.Structural,c=Zge(r.xref,u,n,a,o,s,e.startSourceSpan,e.sourceSpan);t.create.push(c),sst(t,c,e,u),R0e(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(BM(l,e.i18n,void 0,e.startSourceSpan),r.create.head),L.insertBefore(UM(l,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function zit(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 FM)&&(!(s instanceof jg)||s.value.trim().length>0))&&(r=t.job.allocateView(t.xref),Ad(r,e.children));let n=t.job.allocateXrefId(),i=uJe(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,O(s.value),null,o,!0,!1,null,Ed(s.i18n),s.sourceSpan))}t.create.push(i)}function P0e(t,e,r){t.create.push(e0e(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function N0e(t,e,r){let n=e.value;if(n instanceof bs&&(n=n.ast),!(n instanceof AI))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 rI).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(e0e(s,"",r,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(jXe(s,new Br(n.strings,n.expressions.map(a=>st(a,t.job,o)),i),e.sourceSpan))}function Qit(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=CM(t,o.xref,s);s.expressionAlias!==null&&o.contextVariables.set(s.expressionAlias.name,s0e);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?Xge:Jge)(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 lM(d,l.xref,l.handle,s.expressionAlias);n.push(f),Ad(o,s.children)}t.update.push(zge(r,null,n,e.sourceSpan))}function Yit(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=CM(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?Xge:Jge)(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 lM(f,l.xref,l.handle);n.push(p)}Ad(o,s.children)}t.update.push(zge(r,st(e.expression,t.job,null),n,e.sourceSpan))}function gD(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=Zge(s.xref,zi.Block,null,`Defer${e}`,ii.HTML,r,i,i);return t.create.push(o),o}function Zit(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=gD(t,"",e.i18n,e.children,e.sourceSpan),i=gD(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),s=gD(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=gD(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=cJe(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=Xit(e),t.create.push(u);let c=[],l=[];sU("hydrate",e.hydrateTriggers,c,l,t,a),sU("none",e.triggers,c,l,t,a),sU("prefetch",e.prefetchTriggers,c,l,t,a),c.some(f=>f.modifier==="none")||l.some(f=>f.modifier==="none")||c.push(Sp(a,{kind:rr.Idle},"none",null)),t.create.push(c),t.update.push(l)}function Xit(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function sU(t,e,r,n,i,s){if(e.idle!==void 0){let o=Sp(s,{kind:rr.Idle},t,e.idle.sourceSpan);r.push(o)}if(e.immediate!==void 0){let o=Sp(s,{kind:rr.Immediate},t,e.immediate.sourceSpan);r.push(o)}if(e.timer!==void 0){let o=Sp(s,{kind:rr.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(o)}if(e.hover!==void 0){let o=Sp(s,{kind:rr.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:rr.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:rr.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:rr.Never},t,e.never.sourceSpan);r.push(o)}if(e.when!==void 0){if(e.when.value instanceof AI)throw new Error("Unexpected interpolation in defer block when trigger");let o=zXe(s,st(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(o)}}function Jit(t,e){if(e.i18n instanceof Ki&&qit(e.i18n)){let r=t.job.allocateXrefId();t.create.push(fJe(r,e.i18n,Cge(e.i18n).name,null));for(let[n,i]of Object.entries({...e.vars,...e.placeholders}))i instanceof Z_?N0e(t,i,n):P0e(t,i,n);t.create.push(pJe(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function est(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:Cn.Alias,name:null,identifier:_.name,expression:tst(_,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=CM(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=CM(t,r.xref,e),m=eJe(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=KXe(m.xref,m.handle,g,e.sourceSpan);t.update.push(y)}function tst(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(O(0));case"$last":return new ri(e).identical(new ri(r).minus(O(1)));case"$even":return new ri(e).modulo(O(2)).identical(O(0));case"$odd":return new ri(e).modulo(O(2)).notIdentical(O(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function rst(t,e){let r=t.job.allocateXrefId();t.create.push(lJe(r,e.name,e.sourceSpan)),t.update.push(YXe(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 Q_){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 O(t.value,void 0,xn(t.span,r));if(t instanceof q_)switch(t.operator){case"+":return new Qg(V_.Plus,st(t.expr,e,r),void 0,xn(t.span,r));case"-":return new Qg(V_.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=DJe.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 LT)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 z_)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 W_(i.key,o,i.quoted)});return new Na(n,void 0,xn(t.span,r))}else{if(t instanceof jT)return new il(t.expressions.map(n=>st(n,e,r)));if(t instanceof jD)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 VT)return st(t.expression,e,r);if(t instanceof qD)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 FT)return new ib(st(t.receiver,e,r),st(t.key,e,r),xn(t.span,r));if(t instanceof $T)return new nb(st(t.receiver,e,r),t.name);if(t instanceof UD)return new u0(st(t.receiver,e,r),t.args.map(n=>st(n,e,r)));if(t instanceof Vi)return new hI(xn(t.span,r));if(t instanceof qT)return XYe(st(t.expression,e,r),xn(t.span,r));if(t instanceof BT)return wI(st(t.expression,e,r));if(t instanceof UT)return new ND(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof GT)return Zme(t,e,r);if(t instanceof HT)return new OT(st(t.tag,e,r),Zme(t.template,e,r),void 0,xn(t.span,r));if(t instanceof WT)return new Pa(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof HD)return new G_(t.body,t.flags,r);if(t instanceof BD)return new Yg(st(t.expression,e,r));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function Zme(t,e,r){return new PT(t.elements.map(n=>new DD(n.text,xn(n.span,r))),t.expressions.map(n=>st(n,e,r)),xn(t.span,r))}function TV(t,e,r,n){let i;return e instanceof AI?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=O(e),i}var D0e=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 nst(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 ist(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,TV(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,D0e.get(s.type),s.name,TV(t.job,SI(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(r0e(e.xref,e.handle,s.name,e.tag,M0e(t,s.handler,s.handlerSpan),s.sourceSpan)):s.type===Ii.Animation?t.create.push(t0e(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.name.endsWith("enter")?"enter":"leave",s.target,!1,s.sourceSpan)):t.create.push(iH(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))}n.some(s=>s?.i18nMessage)!==null&&t.create.push(i0e(t.job.allocateXrefId(),new ci,e.xref))}function sst(t,e,r,n){let i=new Array;for(let s of r.templateAttrs)if(s instanceof X_){let o=Gg.securityContext(Wg,s.name,!0);i.push(yD(t,e.xref,It.Attribute,s.name,s.value,null,o,!0,n,Ed(s.i18n),s.sourceSpan))}else i.push(yD(t,e.xref,s.type,s.name,SI(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(yD(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(yD(t,e.xref,s.type,s.name,SI(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(r0e(e.xref,e.handle,s.name,e.tag,M0e(t,s.handler,s.handlerSpan),s.sourceSpan)):t.create.push(iH(e.xref,e.handle,s.name,e.tag,EI(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(i0e(t.job.allocateXrefId(),new ci,e.xref))}function yD(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=D0e.get(r);return u===zi.NgTemplate&&(r===It.Class||r===It.Style||r===It.Attribute&&!d)&&(f=ge.Property),s0(e,f,n,TV(t.job,i,c),s,o,d,a,u,c,l)}function EI(t,e,r){e=SI(e);let n=new Array,i=e instanceof z_?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 M0e(t,e,r){e=SI(e);let n=new Array;if(e instanceof z_)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 uM(i,s);return n.push(Bo(new wi(o))),n.push(Bo(new oi(s))),n}function SI(t){return t instanceof bs?t.ast:t}function R0e(t,e){ost(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function ost(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 CM(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof FM||i instanceof KV)){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(jit)){let o=Gg.securityContext(Wg,s.name,!0);t.update.push(s0(e,ge.Attribute,s.name,O(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 ast=!1;function ust(){return ast}function PM(t,e){return LM(vt(YV).bitwiseAnd(O(t),null),e)}function cst(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function lst(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(s=>O(s.trim()));r.push(...i)}),e.getConstLiteral(ir(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 k0e(t,e,r){let n=[];return r!==void 0&&n.push(...r),t.isSignal&&n.push(new ao(vt(nI),t.propertyName)),n.push(lst(t,e),O(cst(t))),t.read&&n.push(t.read),n}var cH=Symbol("queryAdvancePlaceholder");function L0e(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(Ee(T.queryAdvance).callFn(r===1?[]:[O(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let s=t[i];s===cH?r++:(n(),e.unshift(s))}return n(),e}function dst(t,e,r){let n=[],i=[],s=Pge(c=>i.push(c),QV),o=null,a=null;t.forEach(c=>{let l=k0e(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(cH);return}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(nI).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(YV,HV),new si(nI,null)],[PM(1,n),PM(2,L0e(i))],Oa,null,u)}function fst(t,e,r){let n=[],i=[],s=Pge(c=>i.push(c),QV),o=null,a=null;for(let c of t){let l=k0e(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(cH);continue}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(nI).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(YV,HV),new si(nI,null),new si("dirIndex",null)],[PM(1,n),PM(2,L0e(i))],Oa,null,u)}var IV=class extends Fet{constructor(){super(gV)}parse(e,r,n){return super.parse(e,r,n)}},vD=".",pst="attr",oU="animate",hst="class",mst="style",gst="*",aU="animate-",wV=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+gst.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 KT){let g=d.value?d.value.source:"$implicit",y=d.value?bp(n,d.value.span):void 0;a.push(new OU(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){uU(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 M_(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(aU)?(d=!0,e=e.substring(aU.length),l!==void 0&&(l=bp(l,new no(l.start.offset+aU.length,l.end.offset)))):uU(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(`${oU}${vD}`)?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 M_(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 M_(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 M_(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 WD(r.name,It.LegacyAnimation,nr.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let s=null,o,a=null,u=r.name.split(vD),c;if(u.length>1)if(u[0]==pst){a=u.slice(1).join(vD),n||this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),c=cU(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let d=a.substring(0,l),f=a.substring(l+1);a=bD(d,f)}o=It.Attribute}else u[0]==hst?(a=u[1],o=It.Class,c=[nr.NONE]):u[0]==mst?(s=u.length>2?u[2]:null,a=u[1],o=It.Style,c=[nr.STYLE]):u[0]==oU&&(a=r.name,o=It.Animation,c=[nr.NONE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(r.name);a=i?l:r.name,c=cU(this._schemaRegistry,e,l,!1),o=r.type===Ia.TWO_WAY?It.TwoWay:It.Property,n||this._validatePropertyOrAttributeName(l,r.sourceSpan,!1)}return new WD(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),uU(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 cU(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=aZe(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=uZe(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 GD(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(`${oU}${vD}`)&&(m=Ii.Animation),a.push(new GD(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 VT?this._isAllowedAssignmentEvent(e.expression):e instanceof Q_&&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)&&!AV(e)}};function AV(t){return t instanceof $T||t instanceof FT?!0:t instanceof WT?AV(t.expression):t instanceof Xc||t instanceof Jg||t instanceof Q_?AV(t.receiver):!1}function uU(t){return t[0]=="@"}function cU(t,e,r,n){let i,s=o=>t.securityContext(o,r,n);return e===null?i=t.allKnownElementNames().map(s):(i=[],U_.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?[nr.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 yst(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(vst);return e===null||e[1]=="package"||e[1]=="asset"}var vst=/^([^:/?#]+):/,_st="select",bst="link",Est="rel",Sst="href",Tst="stylesheet",Ist="style",wst="script",Ast="ngNonBindable",xst="ngProjectAs";function $0e(t){let e=null,r=null,n=null,i=!1,s="";t.attrs.forEach(u=>{let c=u.name.toLowerCase();c==_st?e=u.value:c==Sst?r=u.value:c==Est?n=u.value:u.name==Ast?i=!0:u.name==xst&&u.value.length>0&&(s=u.value)}),e=Ost(e);let o=t.name.toLowerCase(),a=Es.OTHER;return CU(o)?a=Es.NG_CONTENT:o==Ist?a=Es.STYLE:o==wst?a=Es.SCRIPT:o==bst&&n==Tst&&(a=Es.STYLESHEET),new xV(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 xV=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 Ost(t){return t===null||t.length===0?"*":t}var Cst=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Pst=/^track\s+([\S\s]*)/,Nst=/^(as\s+)(.*)/,VM=/^else[^\S\r\n]+if/,Dst=/^let\s+([\S\s]*)/,Mst=/^[$A-Z_][0-9A-Z_$]*$/i,Xme=/(\s*)(\S+)(\s*)/,xT=new Set(["$index","$first","$last","$even","$odd","$count"]);function Jme(t){return t==="empty"}function ege(t){return t==="else"||VM.test(t)}function Rst(t,e,r,n){let i=qst(e),s=[],o=tge(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(VM.test(d.name)){let f=tge(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 kst(t,e,r,n){let i=[],s=$st(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 JT(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);Fst(s.trackBy.expression,s.trackBy.keywordSpan,i),o=new J_(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 Lst(t,e,r){let n=Bst(t),i=t.parameters.length>0?TI(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 XD(l.name,l.sourceSpan,l.nameSpan));continue}let d=l.name==="case",f=null;d&&(f=TI(l.parameters[0],r));let p=new $U(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 XT(a,Sr(e,l.children,l.children),g,y,l.endSourceSpan,l.nameSpan,l.i18n);s.push(_),a=[]}return{node:new YD(i,s,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function $st(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=Ust(n,e)?.match(Cst);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;xT.has(o)&&e.push(new Re(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(xT).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:TI(n,r,a),context:Array.from(xT,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(Dst);if(f!==null){let m=new je(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);jst(d.sourceSpan,f[1],m,o,l.context,e);continue}let p=d.expression.match(Pst);if(p!==null){if(l.trackBy!==null)e.push(new Re(d.sourceSpan,'@for loop can only have one "track" expression'));else{let m=TI(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 Fst(t,e,r){let n=new OV;t.ast.visit(n),n.hasPipe&&r.push(new Re(e,"Cannot use pipes in track expressions"))}function jst(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(!xT.has(d))s.push(new Re(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(xT).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(Xme)??[],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(Xme)??[];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 qst(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):VM.test(i.name)||e.push(new Re(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function Bst(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 yI||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 TI(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 tge(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=TI(t.parameters[0],r),i=null;for(let s=1;s<t.parameters.length;s++){let o=t.parameters[s],a=o.expression.match(Nst);if(a===null)e.push(new Re(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!VM.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(Mst.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 Ust(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 OV=class extends Y_{hasPipe=!1;visitPipe(){this.hasPipe=!0}},Vst=/^\d+\.?\d*(ms|s)?$/,Hst=/^\s$/,rge=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 Gst({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),s=new je(e.start.moveBy(i),e.start.moveBy(i+5)),o=lH(t,e),a=dH(t,e);i===-1?n.push(new Re(e,'Could not find "never" keyword in expression')):fH("never",r,n,new MU(s,e,o,null,a))}function lU({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=lH(t,e),u=dH(t,e);if(s===-1)i.push(new Re(e,'Could not find "when" keyword in expression'));else{let c=II(t,s+1),l=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);fH("when",n,i,new KD(l,e,a,o,u))}}function dU({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=lH(t,e),c=dH(t,e);if(o===-1)i.push(new Re(e,'Could not find "on" keyword in expression'));else{let l=II(t,o+1),d=t.startsWith("hydrate");new CV(t,r,l,e,n,i,d?Jst:Xst,d,u,a,c).parse()}}function lH(t,e){return t.startsWith("prefetch")?new je(e.start,e.start.moveBy(8)):null}function dH(t,e){return t.startsWith("hydrate")?new je(e.start,e.start.moveBy(7)):null}var CV=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 bI().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",Wst(r,i,l,u,a,c));break;case Ti.TIMER:this.trackTrigger("timer",Kst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.INTERACTION:this.trackTrigger("interaction",Yst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.IMMEDIATE:this.trackTrigger("immediate",zst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.HOVER:this.trackTrigger("hover",Qst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.VIEWPORT:this.trackTrigger("viewport",Zst(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&&rge.has(i.numValue)&&r.push(rge.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){fH(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 fH(t,e,r,n){e[t]?r.push(new Re(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function Wst(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IDLE}" trigger cannot have parameters`);return new RU(e,r,n,i,s)}function Kst(t,e,r,n,i,s){if(t.length!==1)throw new Error(`"${Ti.TIMER}" trigger must have exactly one parameter`);let o=NM(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${Ti.TIMER}"`);return new LU(o,e,r,n,i,s)}function zst(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IMMEDIATE}" trigger cannot have parameters`);return new kU(e,r,n,i,s)}function Qst(t,e,r,n,i,s,o){return o(Ti.HOVER,t),new zD(t[0]?.expression??null,e,r,n,i,s)}function Yst(t,e,r,n,i,s,o){return o(Ti.INTERACTION,t),new QD(t[0]?.expression??null,e,r,n,i,s)}function Zst(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=PV.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 zT(l,d,i,s,o,a,u)}function Xst(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Jst(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 II(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(Hst.test(t[n]))r=!0;else if(r)return n;return-1}function NM(t){let e=t.match(Vst);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var PV=class t extends Y_{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 jT)&&!(e instanceof e0)?this.dynamicNode=e:super.visit(e)}},eot=/^prefetch\s+when\s/,tot=/^prefetch\s+on\s/,rot=/^hydrate\s+when\s/,not=/^hydrate\s+on\s/,iot=/^hydrate\s+never(\s*)$/,F0e=/^minimum\s/,sot=/^after\s/,oot=/^when\s/,aot=/^on\s/;function NV(t){return t==="placeholder"||t==="loading"||t==="error"}function uot(t,e,r,n){let i=[],{placeholder:s,loading:o,error:a}=cot(e,i,r),{triggers:u,prefetchTriggers:c,hydrateTriggers:l}=pot(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 cot(t,e,r){let n=null,i=null,s=null;for(let o of t)try{if(!NV(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=lot(o,r);break;case"loading":i!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @loading block")):i=dot(o,r);break;case"error":s!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @error block")):s=fot(o,r);break}}catch(a){e.push(new Re(o.startSourceSpan,a.message))}return{placeholder:n,loading:i,error:s}}function lot(t,e){let r=null;for(let n of t.parameters)if(F0e.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=NM(n.expression.slice(II(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 QT(Sr(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function dot(t,e){let r=null,n=null;for(let i of t.parameters)if(sot.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let s=NM(i.expression.slice(II(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "after"');r=s}else if(F0e.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let s=NM(i.expression.slice(II(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 YT(Sr(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function fot(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new ZT(Sr(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function pot(t,e,r,n){let i={},s={},o={};for(let a of t.parameters)oot.test(a.expression)?lU(a,e,i,r):aot.test(a.expression)?dU(a,e,i,r):eot.test(a.expression)?lU(a,e,s,r):tot.test(a.expression)?dU(a,e,s,r):rot.test(a.expression)?lU(a,e,o,r):not.test(a.expression)?dU(a,e,o,r):iot.test(a.expression)?Gst(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 hot=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,nge=1,ige=2,sge=3,oge=4,age=5,mot=6,yT=7,Ep={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},fU="*",got=new Set(["link","style","script","ng-template","ng-container","ng-content"]),yot=new Set(["ngProjectAs","ngNonBindable"]);function vot(t,e,r){let n=new DV(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 DV=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=TD(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=$0e(e);if(n.type===Es.SCRIPT)return null;if(n.type===Es.STYLE){let _=_ot(e);return _!==null&&this.styles.push(_),null}else if(n.type===Es.STYLESHEET&&yst(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=CZe(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(uge,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 eb(_,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 X_(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(!TD(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(MZe)){let a=s.trim(),u=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);n[a]=new Z_(u,o.sourceSpan)}else i[s]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Age(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new FM(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 KV(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=TD(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&&got.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(uge,e.children).flat(1/0):f=Sr(this,e.children,e.children);let p=this.categorizePropertyAttributes(e.tagName,u,l),m=new TT(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=uot(e,this.findConnectedBlocks(n,r,NV),this,this.bindingParser);break;case"switch":i=Lst(e,this,this.bindingParser);break;case"for":i=kst(e,this.findConnectedBlocks(n,r,Jme),this,this.bindingParser);break;case"if":i=Rst(e,this.findConnectedBlocks(n,r,ege),this,this.bindingParser);break;default:let s;NV(e.name)?(s=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Jme(e.name)?(s=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):ege(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 XD(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 yI)){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 X_(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let u=this.bindingParser.createBoundElementProperty(e,o,!0,!1);i.push(NU.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=cge(f.name),g=!1;if(f.i18n&&(u[f.name]=f.i18n),m.startsWith(fU)){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(fU.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=cge(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(hot);if(p){if(p[nge]!=null){let _=p[yT],b=f(l,p[nge],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b)}else if(p[ige])if(e){let _=p[yT],b=f(l,p[ige],_);this.parseVariable(_,c,l,b,r.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(p[sge]){let _=p[yT],b=f(l,p[sge],_);this.parseReference(_,c,l,b,r.valueSpan,a)}else if(p[oge]){let _=[],b=p[yT],S=f(l,p[oge],b);this.bindingParser.parseEvent(b,c,!1,l,r.valueSpan||l,n,_,S),pU(_,s)}else if(p[age]){let _=p[yT],b=f(l,p[age],_);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[mot]){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),pU(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(fU)?(o=!0,this.reportError(`Shorthand template syntax "${p.name}" is not supported inside a directive context`,p.sourceSpan)):yot.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 wge(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 TT)&&(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 TT?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=h0e(e),o=this.bindingParser.parseInterpolation(s,r,n);return o?new Z_(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 eI(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),pU(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))}},MV=class{visitElement(e){let r=$0e(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 X_(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}},uge=new MV;function cge(t){return/^data-/i.test(t)?t.substring(5):t}function pU(t,e){e.push(...t.map(r=>DU.fromParsedEvent(r)))}function _ot(t){return t.children.length!==1||!(t.children[0]instanceof c0)?null:t.children[0].value}var bot=[" ",`
264
264
  `,"\r"," "];function Eot(t,e,r={}){let{preserveWhitespaces:n,enableI18nLegacyMessageIdFormat:i}=r,s=r.enableSelectorless??!1,o=DM(s),u=new IV().parse(t,e,{leadingTriviaChars:bot,...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 TM(!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 EM(!0,void 0,!1),c),d.hasI18nMeta&&(c=Sr(new TM(!1,void 0,!0,l),c)));let{nodes:p,errors:m,styleUrls:g,styles:y,ngContentSelectors:_,commentNodes:b}=vot(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 Sot=new ab;function DM(t=!1){return new wV(new SM(new bI,t),Sot,[])}var j0e="%COMP%",Tot=`_nghost-${j0e}`,Iot=`_ngcontent-${j0e}`;function q0e(t,e,r){let n=new kp,i=VV(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",R_(i)),t.queries.length>0&&n.set("contentQueries",fst(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",dst(t.viewQueries,e,t.name)),n.set("hostBindings",Dot(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",Uhe(t.inputs,!0)),n.set("outputs",Uhe(t.outputs)),t.exportAs!==null&&n.set("exportAs",ir(t.exportAs.map(s=>O(s)))),t.isStandalone===!1&&n.set("standalone",O(!1)),t.isSignal&&n.set("signals",O(!0)),n}function B0e(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([$ot(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=>O(o));r.push(Ee(T.ExternalStylesFeature).callFn([ir(s)]))}r.length&&t.set("features",ir(r))}function wot(t,e,r){let n=q0e(t,e,r);B0e(n,t);let i=Ee(T.defineDirective).callFn([n.toLiteralMap()],void 0,!0),s=Not(t);return{expression:i,type:s,statements:[]}}function Aot(t,e,r){let n=q0e(t,e,r);B0e(n,t);let i=t.selector&&U_.parse(t.selector),s=i&&i[0];if(s){let m=s.getAttrs();m.length&&n.set("attrs",e.getConstLiteral(ir(m.map(g=>g!=null?O(g):O(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=Bit(t.name,t.template.nodes,e,u,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,ust());A0e(c,ue.Tmpl);let l=$it(c,e);if(c.contentSelectors!==null&&n.set("ngContentSelectors",c.contentSelectors),n.set("decls",O(c.root.decls)),n.set("vars",O(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?n.set("consts",sl([],[...c.constsInitializers,new oi(ir(c.consts))])):n.set("consts",ir(c.consts))),n.set("template",l),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",Oot(ir(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?Lot(t.styles,Iot,Tot):t.styles).reduce((y,_)=>(_.trim().length>0&&y.push(e.getConstLiteral(O(_))),y),[]);g.length>0&&(d=!0,n.set("styles",ir(g)))}!d&&t.encapsulation===wp.Emulated&&(t.encapsulation=wp.None),t.encapsulation!==wp.Emulated&&n.set("encapsulation",O(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!==AD.Default?n.set("changeDetection",O(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=Ee(T.defineComponent).callFn([n.toLiteralMap()],void 0,!0),p=xot(t);return{expression:f,type:p,statements:[]}}function xot(t){let e=U0e(t);return e.push(kV(t.template.ngContentSelectors)),e.push(ai(O(t.isStandalone))),e.push(V0e(t)),t.isSignal&&e.push(ai(O(t.isSignal))),ai(Ee(T.ComponentDeclaration,e))}function Oot(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 Cot(t){return ai(O(t))}function RV(t){let e=Object.keys(t).map(r=>{let n=Array.isArray(t[r])?t[r][0]:t[r];return{key:r,value:O(n),quoted:!0}});return qo(e)}function kV(t){return t.length>0?ai(ir(t.map(e=>O(e)))):rl}function U0e(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[$M(t.type.type,t.typeArgumentCount),e!==null?Cot(e):rl,t.exportAs!==null?kV(t.exportAs):rl,ai(Pot(t)),ai(RV(t.outputs)),kV(t.queries.map(r=>r.propertyName))]}function Pot(t){return qo(Object.keys(t.inputs).map(e=>{let r=t.inputs[e],n=[{key:"alias",value:O(r.bindingPropertyName),quoted:!0},{key:"required",value:O(r.required),quoted:!0}];return r.isSignal&&n.push({key:"isSignal",value:O(r.isSignal),quoted:!0}),{key:e,value:qo(n),quoted:!0}}))}function Not(t){let e=U0e(t);return e.push(rl),e.push(ai(O(t.isStandalone))),e.push(V0e(t)),t.isSignal&&e.push(ai(O(t.isSignal))),ai(Ee(T.DirectiveDeclaration,e))}function Dot(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=O(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=O(t.specialAttributes.classAttr));let c=Uit({componentName:s,componentSelector:i,properties:a,events:u,attributes:t.attributes},r,n);A0e(c,ue.Host),o.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&o.set("hostVars",O(l)),Fit(c)}var Mot=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Rot(t){let e={},r={},n={},i={};for(let s of Object.keys(t)){let o=t[s],a=s.match(Mot);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]=O(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 kot(t,e){let r=DM();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),r.errors}function Lot(t,e,r){let n=new WU;return t.map(i=>n.shimCssText(i,e,r))}function V0e(t){return t.hostDirectives?.length?ai(ir(t.hostDirectives.map(e=>qo([{key:"directive",value:wI(e.directive.type),quoted:!1},{key:"inputs",value:RV(e.inputs||{}),quoted:!1},{key:"outputs",value:RV(e.outputs||{}),quoted:!1}])))):rl}function $ot(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=lge(n.inputs);s&&i.push({key:"inputs",value:s,quoted:!1})}if(n.outputs){let s=lge(n.outputs);s&&i.push({key:"outputs",value:s,quoted:!1})}e.push(qo(i))}n.isForwardReference&&(r=!0)}return r?new Op([],[new oi(ir(e))]):ir(e)}function lge(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(O(r),O(t[r]));return e.length>0?ir(e):null}var LV=class extends Y_{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 KD?this.visit(e.value):e instanceof zT&&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 $V=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=MM.apply(e.template);Fot(m,a),FV.apply(e.template,this.directiveMatcher,r,n,i,s,o),RM.applyWithScope(e.template,m,u,c,l,d,f,p)}return e.host&&(r.set(e.host.node,e.host.directives),RM.applyWithScope(e.host.node,MM.apply(e.host.node),u,c,l,d,f,p)),new jV(e,r,n,i,s,o,u,c,l,a,d,f,p)}},MM=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 J_?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof XT||e instanceof JT||e instanceof t0||e instanceof ZT||e instanceof QT||e instanceof YT||e instanceof eb?e.children.forEach(r=>r.visit(this)):e instanceof tI||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)}},FV=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 wD){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 wD){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 ID){let r=[],n=LZe(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){}},RM=class t extends LV{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 J_)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 XT||e instanceof JT||e instanceof ZT||e instanceof QT||e instanceof YT||e instanceof eb?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof tI?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)}},jV=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 QD)&&!(r instanceof zT)&&!(r instanceof zD))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 FM)){if(s!==null)return null;o instanceof al&&(s=o)}}return s}let i=this.findEntityInScope(e,n);if(i instanceof eI&&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 eI?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 TT||e.node instanceof wge||e.node instanceof tI?null:this.referenceTargetToElement(e.node)}};function Fot(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 qV=class{},BV=class{jitEvaluator;FactoryTarget=Qc;ResourceLoader=qV;elementSchemaRegistry=new ab;constructor(e=new VU){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:On(n.type),typeArgumentCount:0,deps:null,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},s=Jhe(i);return this.jitExpression(s.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=tat(n),s=Jhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:s}=Vhe({name:n.name,type:On(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:gge(n.providedIn),useClass:P_(n,"useClass"),useFactory:mge(n,"useFactory"),useValue:P_(n,"useValue"),useExisting:P_(n,"useExisting"),deps:n.deps?.map(K0e)},!0);return this.jitExpression(i,e,r,s)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:s}=Vhe({name:n.type.name,type:On(n.type),typeArgumentCount:0,providedIn:gge(n.providedIn),useClass:P_(n,"useClass"),useFactory:mge(n,"useFactory"),useValue:P_(n,"useValue"),useExisting:P_(n,"useExisting"),deps:n.deps?.map(yge)},!0);return this.jitExpression(i,e,r,s)}compileInjector(e,r,n){let i={name:n.name,type:On(n.type),providers:n.providers&&n.providers.length>0?new mt(n.providers):null,imports:n.imports.map(o=>new mt(o))},s=Xhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=rat(n),s=Xhe(i);return this.jitExpression(s.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:bd.Global,type:On(n.type),bootstrap:n.bootstrap.map(On),declarations:n.declarations.map(On),publicDeclarationTypes:null,imports:n.imports.map(On),includeImportTypes:!0,exports:n.exports.map(On),selectorScopeMode:uI.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(On):null,id:n.id?new mt(n.id):null},s=rXe(i);return this.jitExpression(s.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=nXe(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=pge(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),s=G0e(n,i);return this.compileDirectiveFromMeta(e,r,s)}compileDirectiveFromMeta(e,r,n){let i=new $D,s=DM(),o=wot(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,defer:s}=W0e(n.template,n.name,r,n.preserveWhitespaces,void 0),o={...n,...pge(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(Uot),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=Bot(n,i,r);return this.compileComponentFromMeta(e,r,s)}compileComponentFromMeta(e,r,n){let i=new $D,s=DM(),o=Aot(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Rg({name:n.name,type:On(n.type),typeArgumentCount:n.typeArgumentCount,deps:Got(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:On(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(yge):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return QZe(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 GU(r),!0).$def}};function dge(t){return{...t,isSignal:t.isSignal,predicate:H0e(t.predicate),read:t.read?new mt(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function fge(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:H0e(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 H0e(t){return Array.isArray(t)?t:WV(new mt(t),1)}function pge(t){let e=eat(t.inputs||[]),r=mU(t.outputs||[]),n=t.propMetadata,i={},s={};for(let a in n)n.hasOwnProperty(a)&&n[a].forEach(u=>{Yot(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}:Zot(u)&&(s[a]=u.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:On(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:On(a.directive),isForwardReference:!1,inputs:a.inputs?mU(a.inputs):null,outputs:a.outputs?mU(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:On(t.type),deps:null,host:{...Kot(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...i},outputs:{...r,...s},queries:t.queries.map(dge),providers:t.providers!=null?new mt(t.providers):null,viewQueries:t.viewQueries.map(dge),hostDirectives:o}}function G0e(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:On(n.directive),isForwardReference:!1,inputs:n.inputs?hge(n.inputs):null,outputs:n.outputs?hge(n.outputs):null})):null;return{name:t.type.name,type:On(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?Xot(t.inputs):{},outputs:t.outputs??{},host:jot(t.host),queries:(t.queries??[]).map(fge),viewQueries:(t.viewQueries??[]).map(fge),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??Ige(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function jot(t={}){return{attributes:qot(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function hge(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function qot(t){let e={};for(let r of Object.keys(t))e[r]=new mt(t[r]);return e}function Bot(t,e,r){let{template:n,defer:i}=W0e(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(hU(a));break;case"pipe":s.push(Hot(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&s.push(...t.components.map(a=>hU(a,!0))),t.directives&&s.push(...t.directives.map(a=>hU(a))),t.pipes&&s.push(...Vot(t.pipes)));let o=s.some(({kind:a})=>a===n0.Directive||a===n0.NgModule);return{...G0e(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??AD.Default,encapsulation:t.encapsulation??wp.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o}}function Uot(t){return{...t,type:new mt(t.type)}}function hU(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 Vot(t){return t?Object.keys(t).map(e=>({kind:n0.Pipe,name:e,type:new mt(t[e])})):[]}function Hot(t){return{kind:n0.Pipe,name:t.name,type:new mt(t.type)}}function W0e(t,e,r,n,i){let s=Eot(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 $V(null).bind({template:s.nodes});return{template:s,defer:Wot(a,i)}}function P_(t,e){if(t.hasOwnProperty(e))return WV(new mt(t[e]),0)}function mge(t,e){if(t.hasOwnProperty(e))return new mt(t[e])}function gge(t){let e=typeof t=="function"?new mt(t):new ui(t??null);return WV(e,0)}function Got(t){return t==null?null:t.map(K0e)}function K0e(t){let e=t.attribute!=null,r=t.token===null?null:new mt(t.token),n=e?new mt(t.attribute):r;return z0e(n,e,t.host,t.optional,t.self,t.skipSelf)}function yge(t){let e=t.attribute??!1,r=t.token===null?null:new mt(t.token);return z0e(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function z0e(t,e,r,n,i,s){let o=e?O("unknown"):null;return{token:t,attributeNameType:o,host:r,optional:n,self:i,skipSelf:s}}function Wot(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 Kot(t,e,r){let n=Rot(r||{}),i=kot(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=>{zot(o)?n.properties[o.hostPropertyName||s]=vZe("this",s):Qot(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function zot(t){return t.ngMetadataName==="HostBinding"}function Qot(t){return t.ngMetadataName==="HostListener"}function Yot(t){return t.ngMetadataName==="Input"}function Zot(t){return t.ngMetadataName==="Output"}function Xot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Jot(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 Jot(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 eat(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=Q0e(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 mU(t){return t.reduce((e,r)=>{let[n,i]=Q0e(r);return e[i]=n,e},{})}function Q0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function tat(t){return{name:t.type.name,type:On(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??Ige(t.version)}}function rat(t){return{name:t.type.name,type:On(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 nat(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new BV}var vge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(vge||(vge={}));var UV=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}},jIr=new UV;var qIr=new SU("21.1.6");nat(ET);import*as yhe from"fs";var he={};Ehe(he,{ANIMATION_MODULE_TYPE:()=>wSe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>oL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>S6,ApplicationRef:()=>Rn,Attribute:()=>XQ,COMPILER_OPTIONS:()=>XJ,CSP_NONCE:()=>ASe,CUSTOM_ELEMENTS_SCHEMA:()=>OY,ChangeDetectionStrategy:()=>Lh,ChangeDetectorRef:()=>g6,Compiler:()=>cA,CompilerFactory:()=>J8,Component:()=>fAe,ComponentFactory:()=>PA,ComponentFactoryResolver:()=>AE,ComponentRef:()=>gZ,ContentChild:()=>QMt,ContentChildren:()=>zMt,DEFAULT_CURRENCY_CODE:()=>vAe,DOCUMENT:()=>rs,DebugElement:()=>Vh,DebugEventListener:()=>t4,DebugNode:()=>aE,DefaultIterableDiffer:()=>_6,DestroyRef:()=>pi,Directive:()=>ZJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>kh,EmbeddedViewRef:()=>_ee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>UMt,Host:()=>WQ,HostAttributeToken:()=>yee,HostBinding:()=>gAe,HostListener:()=>yAe,INJECTOR:()=>Pk,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>hAe,IterableDiffers:()=>ZA,KeyValueDiffers:()=>XA,LOCALE_ID:()=>n6,MAX_ANIMATION_TIMEOUT:()=>AX,MissingTranslationStrategy:()=>e4,ModuleWithComponentFactories:()=>uA,NO_ERRORS_SCHEMA:()=>CY,NgModule:()=>Ey,NgModuleFactory:()=>MZ,NgModuleRef:()=>Bh,NgZone:()=>Ct,Optional:()=>fy,Output:()=>mAe,OutputEmitterRef:()=>ME,PLATFORM_ID:()=>ISe,PLATFORM_INITIALIZER:()=>a4,PendingTasks:()=>$a,Pipe:()=>pAe,PlatformRef:()=>LE,Query:()=>Iy,QueryList:()=>jw,REQUEST:()=>f9t,REQUEST_CONTEXT:()=>h9t,RESPONSE_INIT:()=>p9t,Renderer2:()=>F8,RendererFactory2:()=>tE,RendererStyleFlags2:()=>J1,Sanitizer:()=>Zw,SecurityContext:()=>Kd,Self:()=>HQ,SimpleChange:()=>kw,SkipSelf:()=>GQ,TRANSLATIONS:()=>_Ae,TRANSLATIONS_FORMAT:()=>bAe,TemplateRef:()=>jh,Testability:()=>iA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>KQ,VERSION:()=>mk,Version:()=>QI,ViewChild:()=>ZMt,ViewChildren:()=>YMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>y6,afterEveryRender:()=>Kw,afterNextRender:()=>IA,afterRenderEffect:()=>Aee,asNativeElements:()=>EAe,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>N1,assertPlatform:()=>Oxe,booleanAttribute:()=>K3t,computed:()=>Xo,contentChild:()=>mxe,contentChildren:()=>gxe,createComponent:()=>c9t,createEnvironmentInjector:()=>xE,createNgModule:()=>RZ,createNgModuleRef:()=>mIe,createPlatform:()=>wxe,createPlatformFactory:()=>Axe,destroyPlatform:()=>i3t,effect:()=>c1,enableProdMode:()=>c3t,enableProfiling:()=>GZ,forwardRef:()=>l1,getDebugNode:()=>dy,getModuleFactory:()=>A3t,getNgModuleById:()=>x3t,getPlatform:()=>JA,importProvidersFrom:()=>IK,inject:()=>C,input:()=>xee,inputBinding:()=>EZ,isDevMode:()=>u3t,isSignal:()=>rL,isStandalone:()=>Al,isWritableSignal:()=>nL,linkedSignal:()=>Qh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>aY,mergeApplicationConfig:()=>d9t,model:()=>Cee,numberAttribute:()=>z3t,output:()=>pxe,outputBinding:()=>SZ,platformCore:()=>k3t,provideAppInitializer:()=>ZZ,provideBrowserGlobalErrorListeners:()=>Xbe,provideCheckNoChangesConfig:()=>a3t,provideEnvironmentInitializer:()=>Dk,provideNgReflectAttributes:()=>A2e,providePlatformInitializer:()=>s3t,provideStabilityDebugging:()=>w3t,provideZoneChangeDetection:()=>XMt,provideZonelessChangeDetection:()=>r6,reflectComponentType:()=>l9t,resolveForwardRef:()=>Qe,resource:()=>iee,runInInjectionContext:()=>qd,setTestabilityGetter:()=>zZ,signal:()=>ns,twoWayBinding:()=>zTe,untracked:()=>Pi,viewChild:()=>Oee,viewChildren:()=>hxe,\u0275ANIMATIONS_DISABLED:()=>wX,\u0275AcxChangeDetectionStrategy:()=>x8,\u0275AcxViewEncapsulation:()=>O8,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Mxe,\u0275CONTAINER_HEADER_OFFSET:()=>Gt,\u0275CONTROL:()=>z4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>PA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>DE,\u0275DEFER_BLOCK_CONFIG:()=>BZ,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>qZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>rA,\u0275DeferBlockState:()=>er,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>Sxe,\u0275EVENT_REPLAY_QUEUE:()=>mY,\u0275EffectScheduler:()=>C0,\u0275Framework:()=>gee,\u0275HydrationStatus:()=>$h,\u0275IMAGE_CONFIG:()=>oY,\u0275IMAGE_CONFIG_DEFAULTS:()=>sY,\u0275INJECTOR_SCOPE:()=>S1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>BMt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>PSe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Gh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>p4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>hE,\u0275JSACTION_EVENT_CONTRACT:()=>h4,\u0275LContext:()=>Bw,\u0275LocaleDataIndex:()=>Uh,\u0275NG_COMP_DEF:()=>Eh,\u0275NG_DIR_DEF:()=>y1,\u0275NG_ELEMENT_ID:()=>Sh,\u0275NG_INJ_DEF:()=>o1,\u0275NG_MOD_DEF:()=>iw,\u0275NG_PIPE_DEF:()=>v1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>xw,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>a1,\u0275PERFORMANCE_MARK_PREFIX:()=>Bxe,\u0275PROVIDED_NG_ZONE:()=>Pee,\u0275PROVIDED_ZONELESS:()=>yw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Rw,\u0275Render3ComponentFactory:()=>Qd,\u0275Render3ComponentRef:()=>Jw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>sr,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>bY,\u0275TESTABILITY:()=>KZ,\u0275TESTABILITY_GETTER:()=>iL,\u0275TimerScheduler:()=>nA,\u0275TracingAction:()=>eE,\u0275TracingService:()=>Xd,\u0275ViewRef:()=>zd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>kY,\u0275_sanitizeUrl:()=>vA,\u0275allLeavingAnimations:()=>Fh,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>j3t,\u0275assertType:()=>e9t,\u0275bypassSanitizationTrustHtml:()=>c2e,\u0275bypassSanitizationTrustResourceUrl:()=>p2e,\u0275bypassSanitizationTrustScript:()=>d2e,\u0275bypassSanitizationTrustStyle:()=>l2e,\u0275bypassSanitizationTrustUrl:()=>f2e,\u0275clearResolutionOfComponentResourcesQueue:()=>lIe,\u0275compileComponent:()=>QJ,\u0275compileDirective:()=>t6,\u0275compileNgModule:()=>WJ,\u0275compileNgModuleDefs:()=>KJ,\u0275compileNgModuleFactory:()=>_xe,\u0275compilePipe:()=>YJ,\u0275controlUpdate:()=>XIe,\u0275convertToBitFlags:()=>hh,\u0275createInjector:()=>_k,\u0275createOrReusePlatformInjector:()=>Cxe,\u0275defaultIterableDiffers:()=>M3t,\u0275defaultKeyValueDiffers:()=>R3t,\u0275depsTracker:()=>qh,\u0275devModeEqual:()=>W4,\u0275disableProfiling:()=>X3t,\u0275enableProfiling:()=>Z3t,\u0275encapsulateResourceError:()=>RE,\u0275findLocaleData:()=>wL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>GJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>zJ,\u0275getAsyncClassMetadataFn:()=>RIe,\u0275getClosestComponentName:()=>J3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>G1,\u0275getDirectives:()=>tY,\u0275getDocument:()=>hy,\u0275getHostElement:()=>rY,\u0275getInjectableDef:()=>p1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>uwe,\u0275getLocalePluralCase:()=>VX,\u0275getOutputDestroyRef:()=>IAe,\u0275getSanitizationBypassType:()=>RY,\u0275getTransferState:()=>WZ,\u0275getUnknownElementStrictMode:()=>n2e,\u0275getUnknownPropertyStrictMode:()=>s2e,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>TZ,\u0275injectChangeDetectorRef:()=>kxe,\u0275internalCreateApplication:()=>L3t,\u0275internalProvideZoneChangeDetection:()=>bxe,\u0275isBoundToModule:()=>eX,\u0275isComponentDefPendingResolution:()=>uIe,\u0275isEnvironmentProviders:()=>g1,\u0275isInjectable:()=>gbe,\u0275isNgModule:()=>Dh,\u0275isPromise:()=>sL,\u0275isSubscribable:()=>YZ,\u0275isViewDirty:()=>fTe,\u0275markForRefresh:()=>pTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>JL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>kA,\u0275provideZonelessChangeDetectionInternal:()=>zA,\u0275publishExternalGlobalUtil:()=>BIe,\u0275readHydrationInfo:()=>TY,\u0275registerLocaleData:()=>awe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>rAe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>GSe,\u0275resetJitOptions:()=>eAe,\u0275resolveComponentResources:()=>NZ,\u0275restoreComponentResolutionQueue:()=>dIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>hIe,\u0275setAlternateWeakRefImpl:()=>obe,\u0275setClassDebugInfo:()=>UJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>VZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>TSe,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>HX,\u0275setUnknownElementStrictMode:()=>r2e,\u0275setUnknownPropertyStrictMode:()=>i2e,\u0275startMeasuring:()=>Q3t,\u0275stopMeasuring:()=>Y3t,\u0275store:()=>A1,\u0275stringify:()=>Ht,\u0275transitiveScopesFor:()=>e6,\u0275triggerResourceLoading:()=>$A,\u0275truncateMiddle:()=>dK,\u0275unregisterLocaleData:()=>cwe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Jbe,\u0275withDomHydration:()=>E3t,\u0275withEventReplay:()=>Nxe,\u0275withI18nSupport:()=>S3t,\u0275withIncrementalHydration:()=>T3t,\u0275\u0275ExternalStylesFeature:()=>EJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>FZ,\u0275\u0275InheritDefinitionFeature:()=>Z4,\u0275\u0275NgOnChangesFeature:()=>zQ,\u0275\u0275ProvidersFeature:()=>bJ,\u0275\u0275advance:()=>ZY,\u0275\u0275animateEnter:()=>K1,\u0275\u0275animateEnterListener:()=>z1,\u0275\u0275animateLeave:()=>Q1,\u0275\u0275animateLeaveListener:()=>sA,\u0275\u0275ariaProperty:()=>aL,\u0275\u0275attachSourceLocations:()=>cJ,\u0275\u0275attribute:()=>uL,\u0275\u0275classMap:()=>iJ,\u0275\u0275classProp:()=>qL,\u0275\u0275componentInstance:()=>OX,\u0275\u0275conditional:()=>LX,\u0275\u0275conditionalBranchCreate:()=>FA,\u0275\u0275conditionalCreate:()=>kX,\u0275\u0275contentQuery:()=>kL,\u0275\u0275contentQuerySignal:()=>$L,\u0275\u0275control:()=>PX,\u0275\u0275controlCreate:()=>CX,\u0275\u0275declareLet:()=>XL,\u0275\u0275defer:()=>rX,\u0275\u0275deferEnableTimerScheduling:()=>UZ,\u0275\u0275deferHydrateNever:()=>oX,\u0275\u0275deferHydrateOnHover:()=>vX,\u0275\u0275deferHydrateOnIdle:()=>cX,\u0275\u0275deferHydrateOnImmediate:()=>fX,\u0275\u0275deferHydrateOnInteraction:()=>EX,\u0275\u0275deferHydrateOnTimer:()=>mX,\u0275\u0275deferHydrateOnViewport:()=>IX,\u0275\u0275deferHydrateWhen:()=>sX,\u0275\u0275deferOnHover:()=>gX,\u0275\u0275deferOnIdle:()=>aX,\u0275\u0275deferOnImmediate:()=>lX,\u0275\u0275deferOnInteraction:()=>_X,\u0275\u0275deferOnTimer:()=>pX,\u0275\u0275deferOnViewport:()=>SX,\u0275\u0275deferPrefetchOnHover:()=>yX,\u0275\u0275deferPrefetchOnIdle:()=>uX,\u0275\u0275deferPrefetchOnImmediate:()=>dX,\u0275\u0275deferPrefetchOnInteraction:()=>bX,\u0275\u0275deferPrefetchOnTimer:()=>hX,\u0275\u0275deferPrefetchOnViewport:()=>TX,\u0275\u0275deferPrefetchWhen:()=>iX,\u0275\u0275deferWhen:()=>nX,\u0275\u0275defineComponent:()=>kZ,\u0275\u0275defineDirective:()=>LZ,\u0275\u0275defineInjectable:()=>Xt,\u0275\u0275defineInjector:()=>f1,\u0275\u0275defineNgModule:()=>Y4,\u0275\u0275definePipe:()=>$Z,\u0275\u0275directiveInject:()=>Kh,\u0275\u0275disableBindings:()=>Hk,\u0275\u0275domElement:()=>_L,\u0275\u0275domElementContainer:()=>SL,\u0275\u0275domElementContainerEnd:()=>EL,\u0275\u0275domElementContainerStart:()=>HA,\u0275\u0275domElementEnd:()=>UA,\u0275\u0275domElementStart:()=>BA,\u0275\u0275domListener:()=>RL,\u0275\u0275domProperty:()=>TL,\u0275\u0275domTemplate:()=>J4,\u0275\u0275element:()=>vL,\u0275\u0275elementContainer:()=>bL,\u0275\u0275elementContainerEnd:()=>NE,\u0275\u0275elementContainerStart:()=>VA,\u0275\u0275elementEnd:()=>qA,\u0275\u0275elementStart:()=>jA,\u0275\u0275enableBindings:()=>Vk,\u0275\u0275getComponentDepsFactory:()=>BJ,\u0275\u0275getCurrentView:()=>UX,\u0275\u0275getInheritedFactory:()=>ZQ,\u0275\u0275getReplaceMetadataURL:()=>VJ,\u0275\u0275i18n:()=>GX,\u0275\u0275i18nApply:()=>KX,\u0275\u0275i18nAttributes:()=>WX,\u0275\u0275i18nEnd:()=>PL,\u0275\u0275i18nExp:()=>NL,\u0275\u0275i18nPostprocess:()=>zX,\u0275\u0275i18nStart:()=>CL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>fA,\u0275\u0275interpolate:()=>lJ,\u0275\u0275interpolate1:()=>dJ,\u0275\u0275interpolate2:()=>fJ,\u0275\u0275interpolate3:()=>pJ,\u0275\u0275interpolate4:()=>hJ,\u0275\u0275interpolate5:()=>mJ,\u0275\u0275interpolate6:()=>gJ,\u0275\u0275interpolate7:()=>yJ,\u0275\u0275interpolate8:()=>vJ,\u0275\u0275interpolateV:()=>_J,\u0275\u0275invalidFactory:()=>vZ,\u0275\u0275invalidFactoryDep:()=>ow,\u0275\u0275listener:()=>DL,\u0275\u0275loadQuery:()=>eJ,\u0275\u0275namespaceHTML:()=>t8,\u0275\u0275namespaceMathML:()=>e8,\u0275\u0275namespaceSVG:()=>Jk,\u0275\u0275nextContext:()=>YX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>r9t,\u0275\u0275ngDeclareComponent:()=>n9t,\u0275\u0275ngDeclareDirective:()=>t9t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>ex,\u0275\u0275ngDeclareNgModule:()=>tx,\u0275\u0275ngDeclarePipe:()=>s9t,\u0275\u0275pipe:()=>RJ,\u0275\u0275pipeBind1:()=>kJ,\u0275\u0275pipeBind2:()=>LJ,\u0275\u0275pipeBind3:()=>$J,\u0275\u0275pipeBind4:()=>FJ,\u0275\u0275pipeBindV:()=>jJ,\u0275\u0275projection:()=>XX,\u0275\u0275projectionDef:()=>ZX,\u0275\u0275property:()=>yL,\u0275\u0275pureFunction0:()=>IJ,\u0275\u0275pureFunction1:()=>wJ,\u0275\u0275pureFunction2:()=>AJ,\u0275\u0275pureFunction3:()=>xJ,\u0275\u0275pureFunction4:()=>OJ,\u0275\u0275pureFunction5:()=>CJ,\u0275\u0275pureFunction6:()=>PJ,\u0275\u0275pureFunction7:()=>NJ,\u0275\u0275pureFunction8:()=>DJ,\u0275\u0275pureFunctionV:()=>MJ,\u0275\u0275queryAdvance:()=>tJ,\u0275\u0275queryRefresh:()=>JX,\u0275\u0275readContextLet:()=>uJ,\u0275\u0275reference:()=>rJ,\u0275\u0275registerNgModuleType:()=>Q4,\u0275\u0275repeater:()=>jX,\u0275\u0275repeaterCreate:()=>FX,\u0275\u0275repeaterTrackByIdentity:()=>gL,\u0275\u0275repeaterTrackByIndex:()=>$X,\u0275\u0275replaceMetadata:()=>HJ,\u0275\u0275resetView:()=>Wk,\u0275\u0275resolveBody:()=>w4,\u0275\u0275resolveDocument:()=>WY,\u0275\u0275resolveWindow:()=>GY,\u0275\u0275restoreView:()=>Gk,\u0275\u0275sanitizeHtml:()=>FY,\u0275\u0275sanitizeResourceUrl:()=>I4,\u0275\u0275sanitizeScript:()=>qY,\u0275\u0275sanitizeStyle:()=>jY,\u0275\u0275sanitizeUrl:()=>T4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>VY,\u0275\u0275setComponentScope:()=>SJ,\u0275\u0275setNgModuleScope:()=>TJ,\u0275\u0275storeLet:()=>aJ,\u0275\u0275styleMap:()=>nJ,\u0275\u0275styleProp:()=>jL,\u0275\u0275syntheticHostListener:()=>ML,\u0275\u0275syntheticHostProperty:()=>IL,\u0275\u0275template:()=>X4,\u0275\u0275templateRefExtractor:()=>qJ,\u0275\u0275text:()=>sJ,\u0275\u0275textInterpolate:()=>BL,\u0275\u0275textInterpolate1:()=>GA,\u0275\u0275textInterpolate2:()=>UL,\u0275\u0275textInterpolate3:()=>VL,\u0275\u0275textInterpolate4:()=>HL,\u0275\u0275textInterpolate5:()=>GL,\u0275\u0275textInterpolate6:()=>WL,\u0275\u0275textInterpolate7:()=>KL,\u0275\u0275textInterpolate8:()=>zL,\u0275\u0275textInterpolateV:()=>QL,\u0275\u0275trustConstantHtml:()=>BY,\u0275\u0275trustConstantResourceUrl:()=>UY,\u0275\u0275twoWayBindingSet:()=>oJ,\u0275\u0275twoWayListener:()=>ZL,\u0275\u0275twoWayProperty:()=>YL,\u0275\u0275validateAttribute:()=>HY,\u0275\u0275viewQuery:()=>LL,\u0275\u0275viewQuerySignal:()=>FL});var Ai=null,CI=!1,pH=1,iat=null,sr=Symbol("SIGNAL");function Ce(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function hH(){return CI}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 Od(t){if(CI)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||sat(i,Ai)))return;let s=pb(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&&eye(t,o)}function Y0e(){pH++}function p0(t){if(!(pb(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===pH)){if(!t.producerMustRecompute(t)&&!h0(t)){fb(t);return}t.producerRecomputeValue(t),fb(t)}}function mH(t){if(t.consumers===void 0)return;let e=CI;CI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||Z0e(n)}}finally{CI=e}}function gH(){return Ai?.consumerAllowSignalWrites!==!1}function Z0e(t){t.dirty=!0,mH(t),t.consumerMarkedDirty?.(t)}function fb(t){t.dirty=!1,t.lastCleanEpoch=pH}function fl(t){return t&&X0e(t),Ce(t)}function X0e(t){t.producersTail=void 0,t.recomputing=!0}function Cd(t,e){Ce(e),t&&J0e(t)}function J0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(pb(t))do r=yH(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(pb(t)){let e=t.producers;for(;e!==void 0;)e=yH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function eye(t,e){let r=t.consumersTail,n=pb(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)eye(i.producer,i)}function yH(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,!pb(e)){let s=e.producers;for(;s!==void 0;)s=yH(s)}return r}function pb(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function PI(t){iat?.(t)}function sat(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 NI(t,e){return Object.is(t,e)}function DI(t,e){let r=Object.create(oat);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),Od(r),r.value===dl)throw r.error;return r.value};if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return PI(r),n}var Hp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),oat={...xd,value:Hp,dirty:!0,error:null,equal:NI,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(),Ce(null),i=e!==Hp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Cd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function aat(){throw new Error}var tye=aat;function rye(t){tye(t)}function vH(t){tye=t}var uat=null;function _H(t,e){let r=Object.create(MI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>nye(r);if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return PI(r),[n,o=>Gp(r,o),o=>HM(r,o)]}function nye(t){return Od(t),t.value}function Gp(t,e){gH()||rye(t),t.equal(t.value,e)||(t.value=e,cat(t))}function HM(t,e){gH()||rye(t),Gp(t,e(t.value))}var MI={...xd,equal:NI,value:void 0,kind:"signal"};function cat(t){t.version++,Y0e(),mH(t),uat?.(t)}function bH(t){let e=Ce(null);try{return t()}finally{Ce(e)}}var EH={...xd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function SH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Cd(t,e)}}var _h=Z(Vt(),1);var KW;function pk(){return KW}function Ho(t){let e=KW;return KW=t,e}var nbe=Symbol("NotFound");function n1(t){return t===nbe||t?.name==="\u0275NotFound"}function zW(t,e,r){let n=Object.create(bSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),Od(n),n.value===dl)throw n.error;return n.value};if(s[sr]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return PI(n),s}function ibe(t,e){p0(t),Gp(t,e),fb(t)}function sbe(t,e){if(p0(t),t.value===dl)throw t.error;HM(t,e),fb(t)}var bSt={...xd,value:Hp,dirty:!0,error:null,equal:NI,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{Cd(t,r)}if(e!==Hp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function obe(t){}var YW={header:(t,e)=>{if(!QW(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[sr]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],QW(r)?YW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:ESt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!QW(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 ESt(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 QW(t){return t[sr]!==void 0}function SSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===YW)||globalThis.devtoolsFormatters.push(YW)}(typeof ngDevMode>"u"||ngDevMode)&&SSt();var QI=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(".")}},mk=new QI("21.1.6"),lK=(()=>{let t=mk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.53.1"?"next":`v${mk.major}`}.angular.dev`})(),Sk=`${lK}/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 TSt(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=TSt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${Sk}/${r}`}return n}var Nn=globalThis;function ISt(){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 Tk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&ISt(),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 fbe(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ht(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ht).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=>{zot(o)?n.properties[o.hostPropertyName||s]=vZe("this",s):Qot(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function zot(t){return t.ngMetadataName==="HostBinding"}function Qot(t){return t.ngMetadataName==="HostListener"}function Yot(t){return t.ngMetadataName==="Input"}function Zot(t){return t.ngMetadataName==="Output"}function Xot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Jot(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 Jot(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 eat(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=Q0e(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 mU(t){return t.reduce((e,r)=>{let[n,i]=Q0e(r);return e[i]=n,e},{})}function Q0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function tat(t){return{name:t.type.name,type:On(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??Ige(t.version)}}function rat(t){return{name:t.type.name,type:On(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 nat(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new BV}var vge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(vge||(vge={}));var UV=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}},jIr=new UV;var qIr=new SU("21.1.6");nat(ET);import*as yhe from"fs";var he={};Ehe(he,{ANIMATION_MODULE_TYPE:()=>wSe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>oL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>S6,ApplicationRef:()=>Rn,Attribute:()=>XQ,COMPILER_OPTIONS:()=>XJ,CSP_NONCE:()=>ASe,CUSTOM_ELEMENTS_SCHEMA:()=>OY,ChangeDetectionStrategy:()=>Lh,ChangeDetectorRef:()=>g6,Compiler:()=>cA,CompilerFactory:()=>J8,Component:()=>fAe,ComponentFactory:()=>PA,ComponentFactoryResolver:()=>AE,ComponentRef:()=>gZ,ContentChild:()=>QMt,ContentChildren:()=>zMt,DEFAULT_CURRENCY_CODE:()=>vAe,DOCUMENT:()=>rs,DebugElement:()=>Vh,DebugEventListener:()=>t4,DebugNode:()=>aE,DefaultIterableDiffer:()=>_6,DestroyRef:()=>pi,Directive:()=>ZJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>kh,EmbeddedViewRef:()=>_ee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>UMt,Host:()=>WQ,HostAttributeToken:()=>yee,HostBinding:()=>gAe,HostListener:()=>yAe,INJECTOR:()=>Pk,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>hAe,IterableDiffers:()=>ZA,KeyValueDiffers:()=>XA,LOCALE_ID:()=>n6,MAX_ANIMATION_TIMEOUT:()=>AX,MissingTranslationStrategy:()=>e4,ModuleWithComponentFactories:()=>uA,NO_ERRORS_SCHEMA:()=>CY,NgModule:()=>Ey,NgModuleFactory:()=>MZ,NgModuleRef:()=>Bh,NgZone:()=>Ct,Optional:()=>fy,Output:()=>mAe,OutputEmitterRef:()=>ME,PLATFORM_ID:()=>ISe,PLATFORM_INITIALIZER:()=>a4,PendingTasks:()=>$a,Pipe:()=>pAe,PlatformRef:()=>LE,Query:()=>Iy,QueryList:()=>jw,REQUEST:()=>f9t,REQUEST_CONTEXT:()=>h9t,RESPONSE_INIT:()=>p9t,Renderer2:()=>F8,RendererFactory2:()=>tE,RendererStyleFlags2:()=>J1,Sanitizer:()=>Zw,SecurityContext:()=>Kd,Self:()=>HQ,SimpleChange:()=>kw,SkipSelf:()=>GQ,TRANSLATIONS:()=>_Ae,TRANSLATIONS_FORMAT:()=>bAe,TemplateRef:()=>jh,Testability:()=>iA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>KQ,VERSION:()=>mk,Version:()=>QI,ViewChild:()=>ZMt,ViewChildren:()=>YMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>y6,afterEveryRender:()=>Kw,afterNextRender:()=>IA,afterRenderEffect:()=>Aee,asNativeElements:()=>EAe,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>N1,assertPlatform:()=>Oxe,booleanAttribute:()=>K3t,computed:()=>Xo,contentChild:()=>mxe,contentChildren:()=>gxe,createComponent:()=>c9t,createEnvironmentInjector:()=>xE,createNgModule:()=>RZ,createNgModuleRef:()=>mIe,createPlatform:()=>wxe,createPlatformFactory:()=>Axe,destroyPlatform:()=>i3t,effect:()=>c1,enableProdMode:()=>c3t,enableProfiling:()=>GZ,forwardRef:()=>l1,getDebugNode:()=>dy,getModuleFactory:()=>A3t,getNgModuleById:()=>x3t,getPlatform:()=>JA,importProvidersFrom:()=>IK,inject:()=>C,input:()=>xee,inputBinding:()=>EZ,isDevMode:()=>u3t,isSignal:()=>rL,isStandalone:()=>Al,isWritableSignal:()=>nL,linkedSignal:()=>Qh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>aY,mergeApplicationConfig:()=>d9t,model:()=>Cee,numberAttribute:()=>z3t,output:()=>pxe,outputBinding:()=>SZ,platformCore:()=>k3t,provideAppInitializer:()=>ZZ,provideBrowserGlobalErrorListeners:()=>Xbe,provideCheckNoChangesConfig:()=>a3t,provideEnvironmentInitializer:()=>Dk,provideNgReflectAttributes:()=>A2e,providePlatformInitializer:()=>s3t,provideStabilityDebugging:()=>w3t,provideZoneChangeDetection:()=>XMt,provideZonelessChangeDetection:()=>r6,reflectComponentType:()=>l9t,resolveForwardRef:()=>Qe,resource:()=>iee,runInInjectionContext:()=>qd,setTestabilityGetter:()=>zZ,signal:()=>ns,twoWayBinding:()=>zTe,untracked:()=>Pi,viewChild:()=>Oee,viewChildren:()=>hxe,\u0275ANIMATIONS_DISABLED:()=>wX,\u0275AcxChangeDetectionStrategy:()=>x8,\u0275AcxViewEncapsulation:()=>O8,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Mxe,\u0275CONTAINER_HEADER_OFFSET:()=>Gt,\u0275CONTROL:()=>z4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>PA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>DE,\u0275DEFER_BLOCK_CONFIG:()=>BZ,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>qZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>rA,\u0275DeferBlockState:()=>er,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>Sxe,\u0275EVENT_REPLAY_QUEUE:()=>mY,\u0275EffectScheduler:()=>C0,\u0275Framework:()=>gee,\u0275HydrationStatus:()=>$h,\u0275IMAGE_CONFIG:()=>oY,\u0275IMAGE_CONFIG_DEFAULTS:()=>sY,\u0275INJECTOR_SCOPE:()=>S1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>BMt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>PSe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Gh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>p4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>hE,\u0275JSACTION_EVENT_CONTRACT:()=>h4,\u0275LContext:()=>Bw,\u0275LocaleDataIndex:()=>Uh,\u0275NG_COMP_DEF:()=>Eh,\u0275NG_DIR_DEF:()=>y1,\u0275NG_ELEMENT_ID:()=>Sh,\u0275NG_INJ_DEF:()=>o1,\u0275NG_MOD_DEF:()=>iw,\u0275NG_PIPE_DEF:()=>v1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>xw,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>a1,\u0275PERFORMANCE_MARK_PREFIX:()=>Bxe,\u0275PROVIDED_NG_ZONE:()=>Pee,\u0275PROVIDED_ZONELESS:()=>yw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Rw,\u0275Render3ComponentFactory:()=>Qd,\u0275Render3ComponentRef:()=>Jw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>sr,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>bY,\u0275TESTABILITY:()=>KZ,\u0275TESTABILITY_GETTER:()=>iL,\u0275TimerScheduler:()=>nA,\u0275TracingAction:()=>eE,\u0275TracingService:()=>Xd,\u0275ViewRef:()=>zd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>kY,\u0275_sanitizeUrl:()=>vA,\u0275allLeavingAnimations:()=>Fh,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>j3t,\u0275assertType:()=>e9t,\u0275bypassSanitizationTrustHtml:()=>c2e,\u0275bypassSanitizationTrustResourceUrl:()=>p2e,\u0275bypassSanitizationTrustScript:()=>d2e,\u0275bypassSanitizationTrustStyle:()=>l2e,\u0275bypassSanitizationTrustUrl:()=>f2e,\u0275clearResolutionOfComponentResourcesQueue:()=>lIe,\u0275compileComponent:()=>QJ,\u0275compileDirective:()=>t6,\u0275compileNgModule:()=>WJ,\u0275compileNgModuleDefs:()=>KJ,\u0275compileNgModuleFactory:()=>_xe,\u0275compilePipe:()=>YJ,\u0275controlUpdate:()=>XIe,\u0275convertToBitFlags:()=>hh,\u0275createInjector:()=>_k,\u0275createOrReusePlatformInjector:()=>Cxe,\u0275defaultIterableDiffers:()=>M3t,\u0275defaultKeyValueDiffers:()=>R3t,\u0275depsTracker:()=>qh,\u0275devModeEqual:()=>W4,\u0275disableProfiling:()=>X3t,\u0275enableProfiling:()=>Z3t,\u0275encapsulateResourceError:()=>RE,\u0275findLocaleData:()=>wL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>GJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>zJ,\u0275getAsyncClassMetadataFn:()=>RIe,\u0275getClosestComponentName:()=>J3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>G1,\u0275getDirectives:()=>tY,\u0275getDocument:()=>hy,\u0275getHostElement:()=>rY,\u0275getInjectableDef:()=>p1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>uwe,\u0275getLocalePluralCase:()=>VX,\u0275getOutputDestroyRef:()=>IAe,\u0275getSanitizationBypassType:()=>RY,\u0275getTransferState:()=>WZ,\u0275getUnknownElementStrictMode:()=>n2e,\u0275getUnknownPropertyStrictMode:()=>s2e,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>TZ,\u0275injectChangeDetectorRef:()=>kxe,\u0275internalCreateApplication:()=>L3t,\u0275internalProvideZoneChangeDetection:()=>bxe,\u0275isBoundToModule:()=>eX,\u0275isComponentDefPendingResolution:()=>uIe,\u0275isEnvironmentProviders:()=>g1,\u0275isInjectable:()=>gbe,\u0275isNgModule:()=>Dh,\u0275isPromise:()=>sL,\u0275isSubscribable:()=>YZ,\u0275isViewDirty:()=>fTe,\u0275markForRefresh:()=>pTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>JL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>kA,\u0275provideZonelessChangeDetectionInternal:()=>zA,\u0275publishExternalGlobalUtil:()=>BIe,\u0275readHydrationInfo:()=>TY,\u0275registerLocaleData:()=>awe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>rAe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>GSe,\u0275resetJitOptions:()=>eAe,\u0275resolveComponentResources:()=>NZ,\u0275restoreComponentResolutionQueue:()=>dIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>hIe,\u0275setAlternateWeakRefImpl:()=>obe,\u0275setClassDebugInfo:()=>UJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>VZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>TSe,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>HX,\u0275setUnknownElementStrictMode:()=>r2e,\u0275setUnknownPropertyStrictMode:()=>i2e,\u0275startMeasuring:()=>Q3t,\u0275stopMeasuring:()=>Y3t,\u0275store:()=>A1,\u0275stringify:()=>Ht,\u0275transitiveScopesFor:()=>e6,\u0275triggerResourceLoading:()=>$A,\u0275truncateMiddle:()=>dK,\u0275unregisterLocaleData:()=>cwe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Jbe,\u0275withDomHydration:()=>E3t,\u0275withEventReplay:()=>Nxe,\u0275withI18nSupport:()=>S3t,\u0275withIncrementalHydration:()=>T3t,\u0275\u0275ExternalStylesFeature:()=>EJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>FZ,\u0275\u0275InheritDefinitionFeature:()=>Z4,\u0275\u0275NgOnChangesFeature:()=>zQ,\u0275\u0275ProvidersFeature:()=>bJ,\u0275\u0275advance:()=>ZY,\u0275\u0275animateEnter:()=>K1,\u0275\u0275animateEnterListener:()=>z1,\u0275\u0275animateLeave:()=>Q1,\u0275\u0275animateLeaveListener:()=>sA,\u0275\u0275ariaProperty:()=>aL,\u0275\u0275attachSourceLocations:()=>cJ,\u0275\u0275attribute:()=>uL,\u0275\u0275classMap:()=>iJ,\u0275\u0275classProp:()=>qL,\u0275\u0275componentInstance:()=>OX,\u0275\u0275conditional:()=>LX,\u0275\u0275conditionalBranchCreate:()=>FA,\u0275\u0275conditionalCreate:()=>kX,\u0275\u0275contentQuery:()=>kL,\u0275\u0275contentQuerySignal:()=>$L,\u0275\u0275control:()=>PX,\u0275\u0275controlCreate:()=>CX,\u0275\u0275declareLet:()=>XL,\u0275\u0275defer:()=>rX,\u0275\u0275deferEnableTimerScheduling:()=>UZ,\u0275\u0275deferHydrateNever:()=>oX,\u0275\u0275deferHydrateOnHover:()=>vX,\u0275\u0275deferHydrateOnIdle:()=>cX,\u0275\u0275deferHydrateOnImmediate:()=>fX,\u0275\u0275deferHydrateOnInteraction:()=>EX,\u0275\u0275deferHydrateOnTimer:()=>mX,\u0275\u0275deferHydrateOnViewport:()=>IX,\u0275\u0275deferHydrateWhen:()=>sX,\u0275\u0275deferOnHover:()=>gX,\u0275\u0275deferOnIdle:()=>aX,\u0275\u0275deferOnImmediate:()=>lX,\u0275\u0275deferOnInteraction:()=>_X,\u0275\u0275deferOnTimer:()=>pX,\u0275\u0275deferOnViewport:()=>SX,\u0275\u0275deferPrefetchOnHover:()=>yX,\u0275\u0275deferPrefetchOnIdle:()=>uX,\u0275\u0275deferPrefetchOnImmediate:()=>dX,\u0275\u0275deferPrefetchOnInteraction:()=>bX,\u0275\u0275deferPrefetchOnTimer:()=>hX,\u0275\u0275deferPrefetchOnViewport:()=>TX,\u0275\u0275deferPrefetchWhen:()=>iX,\u0275\u0275deferWhen:()=>nX,\u0275\u0275defineComponent:()=>kZ,\u0275\u0275defineDirective:()=>LZ,\u0275\u0275defineInjectable:()=>Xt,\u0275\u0275defineInjector:()=>f1,\u0275\u0275defineNgModule:()=>Y4,\u0275\u0275definePipe:()=>$Z,\u0275\u0275directiveInject:()=>Kh,\u0275\u0275disableBindings:()=>Hk,\u0275\u0275domElement:()=>_L,\u0275\u0275domElementContainer:()=>SL,\u0275\u0275domElementContainerEnd:()=>EL,\u0275\u0275domElementContainerStart:()=>HA,\u0275\u0275domElementEnd:()=>UA,\u0275\u0275domElementStart:()=>BA,\u0275\u0275domListener:()=>RL,\u0275\u0275domProperty:()=>TL,\u0275\u0275domTemplate:()=>J4,\u0275\u0275element:()=>vL,\u0275\u0275elementContainer:()=>bL,\u0275\u0275elementContainerEnd:()=>NE,\u0275\u0275elementContainerStart:()=>VA,\u0275\u0275elementEnd:()=>qA,\u0275\u0275elementStart:()=>jA,\u0275\u0275enableBindings:()=>Vk,\u0275\u0275getComponentDepsFactory:()=>BJ,\u0275\u0275getCurrentView:()=>UX,\u0275\u0275getInheritedFactory:()=>ZQ,\u0275\u0275getReplaceMetadataURL:()=>VJ,\u0275\u0275i18n:()=>GX,\u0275\u0275i18nApply:()=>KX,\u0275\u0275i18nAttributes:()=>WX,\u0275\u0275i18nEnd:()=>PL,\u0275\u0275i18nExp:()=>NL,\u0275\u0275i18nPostprocess:()=>zX,\u0275\u0275i18nStart:()=>CL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>fA,\u0275\u0275interpolate:()=>lJ,\u0275\u0275interpolate1:()=>dJ,\u0275\u0275interpolate2:()=>fJ,\u0275\u0275interpolate3:()=>pJ,\u0275\u0275interpolate4:()=>hJ,\u0275\u0275interpolate5:()=>mJ,\u0275\u0275interpolate6:()=>gJ,\u0275\u0275interpolate7:()=>yJ,\u0275\u0275interpolate8:()=>vJ,\u0275\u0275interpolateV:()=>_J,\u0275\u0275invalidFactory:()=>vZ,\u0275\u0275invalidFactoryDep:()=>ow,\u0275\u0275listener:()=>DL,\u0275\u0275loadQuery:()=>eJ,\u0275\u0275namespaceHTML:()=>t8,\u0275\u0275namespaceMathML:()=>e8,\u0275\u0275namespaceSVG:()=>Jk,\u0275\u0275nextContext:()=>YX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>r9t,\u0275\u0275ngDeclareComponent:()=>n9t,\u0275\u0275ngDeclareDirective:()=>t9t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>ex,\u0275\u0275ngDeclareNgModule:()=>tx,\u0275\u0275ngDeclarePipe:()=>s9t,\u0275\u0275pipe:()=>RJ,\u0275\u0275pipeBind1:()=>kJ,\u0275\u0275pipeBind2:()=>LJ,\u0275\u0275pipeBind3:()=>$J,\u0275\u0275pipeBind4:()=>FJ,\u0275\u0275pipeBindV:()=>jJ,\u0275\u0275projection:()=>XX,\u0275\u0275projectionDef:()=>ZX,\u0275\u0275property:()=>yL,\u0275\u0275pureFunction0:()=>IJ,\u0275\u0275pureFunction1:()=>wJ,\u0275\u0275pureFunction2:()=>AJ,\u0275\u0275pureFunction3:()=>xJ,\u0275\u0275pureFunction4:()=>OJ,\u0275\u0275pureFunction5:()=>CJ,\u0275\u0275pureFunction6:()=>PJ,\u0275\u0275pureFunction7:()=>NJ,\u0275\u0275pureFunction8:()=>DJ,\u0275\u0275pureFunctionV:()=>MJ,\u0275\u0275queryAdvance:()=>tJ,\u0275\u0275queryRefresh:()=>JX,\u0275\u0275readContextLet:()=>uJ,\u0275\u0275reference:()=>rJ,\u0275\u0275registerNgModuleType:()=>Q4,\u0275\u0275repeater:()=>jX,\u0275\u0275repeaterCreate:()=>FX,\u0275\u0275repeaterTrackByIdentity:()=>gL,\u0275\u0275repeaterTrackByIndex:()=>$X,\u0275\u0275replaceMetadata:()=>HJ,\u0275\u0275resetView:()=>Wk,\u0275\u0275resolveBody:()=>w4,\u0275\u0275resolveDocument:()=>WY,\u0275\u0275resolveWindow:()=>GY,\u0275\u0275restoreView:()=>Gk,\u0275\u0275sanitizeHtml:()=>FY,\u0275\u0275sanitizeResourceUrl:()=>I4,\u0275\u0275sanitizeScript:()=>qY,\u0275\u0275sanitizeStyle:()=>jY,\u0275\u0275sanitizeUrl:()=>T4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>VY,\u0275\u0275setComponentScope:()=>SJ,\u0275\u0275setNgModuleScope:()=>TJ,\u0275\u0275storeLet:()=>aJ,\u0275\u0275styleMap:()=>nJ,\u0275\u0275styleProp:()=>jL,\u0275\u0275syntheticHostListener:()=>ML,\u0275\u0275syntheticHostProperty:()=>IL,\u0275\u0275template:()=>X4,\u0275\u0275templateRefExtractor:()=>qJ,\u0275\u0275text:()=>sJ,\u0275\u0275textInterpolate:()=>BL,\u0275\u0275textInterpolate1:()=>GA,\u0275\u0275textInterpolate2:()=>UL,\u0275\u0275textInterpolate3:()=>VL,\u0275\u0275textInterpolate4:()=>HL,\u0275\u0275textInterpolate5:()=>GL,\u0275\u0275textInterpolate6:()=>WL,\u0275\u0275textInterpolate7:()=>KL,\u0275\u0275textInterpolate8:()=>zL,\u0275\u0275textInterpolateV:()=>QL,\u0275\u0275trustConstantHtml:()=>BY,\u0275\u0275trustConstantResourceUrl:()=>UY,\u0275\u0275twoWayBindingSet:()=>oJ,\u0275\u0275twoWayListener:()=>ZL,\u0275\u0275twoWayProperty:()=>YL,\u0275\u0275validateAttribute:()=>HY,\u0275\u0275viewQuery:()=>LL,\u0275\u0275viewQuerySignal:()=>FL});var Ai=null,CI=!1,pH=1,iat=null,sr=Symbol("SIGNAL");function Ce(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function hH(){return CI}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 Od(t){if(CI)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||sat(i,Ai)))return;let s=pb(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&&eye(t,o)}function Y0e(){pH++}function p0(t){if(!(pb(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===pH)){if(!t.producerMustRecompute(t)&&!h0(t)){fb(t);return}t.producerRecomputeValue(t),fb(t)}}function mH(t){if(t.consumers===void 0)return;let e=CI;CI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||Z0e(n)}}finally{CI=e}}function gH(){return Ai?.consumerAllowSignalWrites!==!1}function Z0e(t){t.dirty=!0,mH(t),t.consumerMarkedDirty?.(t)}function fb(t){t.dirty=!1,t.lastCleanEpoch=pH}function fl(t){return t&&X0e(t),Ce(t)}function X0e(t){t.producersTail=void 0,t.recomputing=!0}function Cd(t,e){Ce(e),t&&J0e(t)}function J0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(pb(t))do r=yH(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(pb(t)){let e=t.producers;for(;e!==void 0;)e=yH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function eye(t,e){let r=t.consumersTail,n=pb(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)eye(i.producer,i)}function yH(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,!pb(e)){let s=e.producers;for(;s!==void 0;)s=yH(s)}return r}function pb(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function PI(t){iat?.(t)}function sat(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 NI(t,e){return Object.is(t,e)}function DI(t,e){let r=Object.create(oat);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),Od(r),r.value===dl)throw r.error;return r.value};if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return PI(r),n}var Hp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),oat={...xd,value:Hp,dirty:!0,error:null,equal:NI,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(),Ce(null),i=e!==Hp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Cd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function aat(){throw new Error}var tye=aat;function rye(t){tye(t)}function vH(t){tye=t}var uat=null;function _H(t,e){let r=Object.create(MI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>nye(r);if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return PI(r),[n,o=>Gp(r,o),o=>HM(r,o)]}function nye(t){return Od(t),t.value}function Gp(t,e){gH()||rye(t),t.equal(t.value,e)||(t.value=e,cat(t))}function HM(t,e){gH()||rye(t),Gp(t,e(t.value))}var MI={...xd,equal:NI,value:void 0,kind:"signal"};function cat(t){t.version++,Y0e(),mH(t),uat?.(t)}function bH(t){let e=Ce(null);try{return t()}finally{Ce(e)}}var EH={...xd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function SH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Cd(t,e)}}var _h=Z(Vt(),1);var KW;function pk(){return KW}function Ho(t){let e=KW;return KW=t,e}var nbe=Symbol("NotFound");function n1(t){return t===nbe||t?.name==="\u0275NotFound"}function zW(t,e,r){let n=Object.create(bSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),Od(n),n.value===dl)throw n.error;return n.value};if(s[sr]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return PI(n),s}function ibe(t,e){p0(t),Gp(t,e),fb(t)}function sbe(t,e){if(p0(t),t.value===dl)throw t.error;HM(t,e),fb(t)}var bSt={...xd,value:Hp,dirty:!0,error:null,equal:NI,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{Cd(t,r)}if(e!==Hp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function obe(t){}var YW={header:(t,e)=>{if(!QW(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[sr]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],QW(r)?YW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:ESt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!QW(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 ESt(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 QW(t){return t[sr]!==void 0}function SSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===YW)||globalThis.devtoolsFormatters.push(YW)}(typeof ngDevMode>"u"||ngDevMode)&&SSt();var QI=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(".")}},mk=new QI("21.1.6"),lK=(()=>{let t=mk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.53.2"?"next":`v${mk.major}`}.angular.dev`})(),Sk=`${lK}/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 TSt(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=TSt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${Sk}/${r}`}return n}var Nn=globalThis;function ISt(){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 Tk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&ISt(),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 fbe(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ht(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ht).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 Ik(t,e){return t?e?`${t} ${e}`:t:e||""}function dK(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 wSt=Ye({__forward_ref__:Ye});function l1(t){return t.__forward_ref__=l1,t.toString=function(){return Ht(this())},t}function Qe(t){return nw(t)?t():t}function nw(t){return typeof t=="function"&&t.hasOwnProperty(wSt)&&t.__forward_ref__===l1}function or(t,e){typeof t!="number"&&Te(e,typeof t,"number","===")}function d1(t,e,r){or(t,"Expected a number"),pbe(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 fK(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 pK(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 pbe(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 hK(t,e){t!=null&&Te(e,t,null,"==")}function J(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 ${Ht(t)}`)}function hbe(t){t instanceof Element||Te(`The provided value must be an element but got ${Ht(t)}`)}function $r(t,e){J(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 mbe(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 wk(t){f0()!==null&&Te(`${t}() should never be called in a reactive context.`)}function Xt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function f1(t){return{providers:t.providers||[],imports:t.imports||[]}}function p1(t){return ASt(t,D0)}function gbe(t){return p1(t)!==null}function ASt(t,e){return t.hasOwnProperty(e)&&t[e]||null}function xSt(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 YI(t){return t&&t.hasOwnProperty(o1)?t[o1]:null}var D0=Ye({\u0275prov:Ye}),o1=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=Xt({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},XW;function h1(){return!ngDevMode&&Te("getInjectorProfilerContext should never be called in production mode"),XW}function dn(t){!ngDevMode&&Te("setInjectorProfilerContext should never be called in production mode");let e=XW;return XW=t,e}var A0=[],OSt=()=>{};function CSt(t){let e=A0.indexOf(t);e!==-1&&A0.splice(e,1)}function mK(t){return!ngDevMode&&Te("setInjectorProfiler should never be called in production mode"),t!==null?(A0.includes(t)||A0.push(t),()=>CSt(t)):(A0.length=0,OSt)}function m1(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 gk(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),m1({type:2,context:h1(),providerRecord:{token:r,provider:n,isViewProvider:e}})}function ZI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:5,context:h1(),token:t})}function XI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:1,context:h1(),instance:{value:t}})}function gK(t,e,r){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:0,context:h1(),service:{token:t,value:e,flags:r}})}function PSt(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:3,context:h1(),effect:t})}function ybe(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:4,context:h1(),effectPhase:t})}function s1(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 g1(t){return t&&!!t.\u0275providers}var Eh=Ye({\u0275cmp:Ye}),y1=Ye({\u0275dir:Ye}),v1=Ye({\u0275pipe:Ye}),iw=Ye({\u0275mod:Ye}),El=Ye({\u0275fac:Ye}),Sh=Ye({__NG_ELEMENT_ID__:Ye}),abe=Ye({__NG_ENV_ID__:Ye});function ja(t){return Ak(t,"@NgModule"),t[iw]||null}function sw(t){let e=ja(t);if(!e)throw new $(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Ht(t)} does not have '\u0275mod' property.`);return e}function ut(t){return Ak(t,"@Component"),t[Eh]||null}function vbe(t){let e=bn(t);if(!e)throw new $(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Ht(t)} does not have '\u0275dir' property.`);return e}function bn(t){return Ak(t,"@Directive"),t[y1]||null}function Xi(t){return Ak(t,"@Pipe"),t[v1]||null}function Ak(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 yK(t){let e=ut(t);return e!==null&&e.debugInfo?NSt(e.debugInfo):et(t)}function NSt(t){return!t.filePath||!t.lineNumber?t.className:`${t.className} (at ${t.filePath}:${t.lineNumber})`}var vK=Ye({ngErrorCode:Ye}),_be=Ye({ngErrorMessage:Ye}),zI=Ye({ngTokenPath:Ye});function xk(t,e){let r=ngDevMode?`Circular dependency detected for \`${t}\`.`:"";return Ebe(r,-200,e)}function _K(t,e){return bbe(xk(t,e),null)}function ube(){throw new Error("Cannot mix multi providers and regular providers")}function JW(t,e,r){if(t&&e){let n=e.map(i=>i==r?"?"+r+"?":"...");throw new Error(`Invalid provider for the NgModule '${Ht(t)}' - only instances of Provider and Type are allowed, got: [${n.join(", ")}]`)}else throw g1(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 Ok(t,e){let r=ngDevMode&&`No provider for ${et(t)} found${e?` in ${e}`:""}`;throw new $(-201,r)}function DSt(t,e){t[zI]??=[];let r=t[zI],n;typeof e=="object"&&"multi"in e&&e?.multi===!0?(J(e.provide,"Token with multi: true should have a provide property"),n=et(e.provide)):n=et(e),r[0]!==n&&t[zI].unshift(n)}function bbe(t,e){let r=t[zI],n=t[vK],i=t[_be]||t.message;return t.message=RSt(i,n,r,e),t}function Ebe(t,e,r){let n=new $(e,t);return n[vK]=e,n[_be]=t,r&&(n[zI]=r),n}function MSt(t){return t[vK]}function RSt(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 yk;function Sbe(){return yk}function Yi(t){let e=yk;return yk=t,e}function bK(t,e,r){let n=p1(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;Ok(t,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function Tbe(t){ngDevMode&&Zi(yk,t,"Calling \u0275\u0275inject would cause infinite recursion")}var kSt={},x0=kSt,eK="__NG_DI_FLAG__",tK=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(n1(i))return i;throw i}}};function LSt(t,e=0){let r=pk();if(r===void 0)throw new $(-203,ngDevMode&&`The \`${Ht(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 bK(t,void 0,e);{let n=$St(e),i=r.retrieve(t,n);if(ngDevMode&&gK(t,i,e),n1(i)){if(n.optional)return null;throw i}return i}}function Gn(t,e=0){return(Sbe()||LSt)(Qe(t),e)}function ow(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.