planx 20.88.0 → 20.88.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.main.mjs +1 -1
- package/blob.main.mjs +2 -2
- package/config.main.mjs +2 -2
- package/domain.main.mjs +2 -2
- package/egress.main.mjs +2 -2
- package/explorer.main.mjs +1 -1
- package/filesystem.main.mjs +2 -2
- package/intelligence.main.mjs +1 -1
- package/log.main.mjs +1 -1
- package/nosturn.main.mjs +1 -1
- package/package.json +7 -7
- package/planx-networkd.main.mjs +1 -1
- package/presentation.main.mjs +1 -1
- package/session.main.mjs +1 -1
- package/transport.main.mjs +1 -1
package/config.main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
globalThis.__PLANX_SERVICE_VERSION__="20.88.
|
|
1
|
+
globalThis.__PLANX_SERVICE_VERSION__="20.88.1";
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
import _nodeUrl from "url";
|
|
4
4
|
import _nodePath from "path";
|
|
@@ -263,7 +263,7 @@ ${e.map(r=>`"${r.sourceSpan.toString()}"`).join(`
|
|
|
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 Ent=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Snt(t){return t.split(Ent)[2]}var Fge=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function jge(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Fge.has(t+"|"+e)||Fge.has("*|"+e)}var Tnt=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof Dd&&(r instanceof hb&&n.i18n instanceof ro&&(r.previousMessage=n.i18n),n.i18n=r),r},e3=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:o,customId:s}=this._parseMetadata(r),u=gnt(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,i,o,s,n);return this._setMessageId(u,r),this._setLegacyIds(u,r),u}visitAllWithErrors(e){let r=e.map(n=>n.visit(this,null));return new ZM(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 hb){let o=i.name;n=this._generateI18nMessage([e],i);let s=Bye(n);s.name=o,r!==null&&(r.placeholderToMessage[o]=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 Ir(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(kJe(e)){this.hasI18nMeta=!0;let n=[],i={};for(let o of e.attrs)if(o.name===jye){let s=e.i18n||o.value,a=new Map,u=this.preserveSignificantWhitespace?e.children:Zc(new XM(!1,a),e.children);r=this._generateI18nMessage(u,s,Tnt(a)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(o.name.startsWith(EV)){let s=o.name.slice(EV.length),a;e instanceof Xi?a=e.tagName===null?!1:jge(e.tagName,s):a=jge(e.name,s),a||Cnt(s)?this._reportError(o,`Translating attribute '${s}' is disallowed for security reasons.`):i[s]=o.value}else n.push(o);if(Object.keys(i).length)for(let o of n){let s=i[o.name];s!==void 0&&o.value&&(o.i18n=this._generateI18nMessage([o],o.i18n||s))}this.keepI18nAttrs||(e.attrs=n)}Ir(this,e.children,r)}_parseMetadata(e){return typeof e=="string"?Ant(e):e instanceof ro?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof ro&&r.id||LXe(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[$Xe(e),Nye(e)];else if(typeof r!="string"){let n=r instanceof ro?r:r instanceof hb?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new Pe(e.sourceSpan,r))}},wnt="|",Int="@@";function Ant(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(Int),o=t.indexOf(wnt),s;[s,e]=i>-1?[t.slice(0,i),t.slice(i+2)]:[t,""],[r,n]=o>-1?[s.slice(0,o),s.slice(o+1)]:["",s]}return{customId:e,meaning:r,description:n}}function xnt(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}),XXe(e)}function Cnt(t){let e=t.toLowerCase();return e.length>2&&e!=="only"&&e.startsWith("on")}var Ont="goog.getMsg";function Pnt(t,e,r,n){let i=Dnt(e),o=[C(i)];Object.keys(n).length&&(o.push(FV(OH(n,!0),!0)),o.push(FV({original_code:Ys(Object.keys(n).map(u=>({key:Yw(u),quoted:!0,value:e.placeholders[u]?C(e.placeholders[u].sourceSpan.toString()):C(e.placeholderToMessage[u].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let s=new kn(r.name,pt(Ont).callFn(o),Ra,Zn.Final);s.addLeadingComment(xnt(e));let a=new di(t.set(r));return[s,a]}var tH=class{formatPh(e){return`{$${Yw(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return E0e(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)}},Nnt=new tH;function Dnt(t){return t.nodes.map(e=>e.visit(Nnt,null)).join("")}function Mnt(t,e,r){let{messageParts:n,placeHolders:i}=Rnt(e),o=knt(e),s=i.map(c=>r[c.text]),a=tJe(e,n,i,s,o),u=t.set(a);return[new di(u)]}var rH=class{placeholderToMessage;pieces;constructor(e,r){this.placeholderToMessage=e,this.pieces=r}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Zg)this.pieces[this.pieces.length-1].text+=e.value;else{let r=new Le(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Zg(e.value,r))}}visitContainer(e){e.children.forEach(r=>r.visit(this))}visitIcu(e){this.pieces.push(new Zg(E0e(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 X_(Yw(e,!1),r,n)}};function Rnt(t){let e=[],r=new rH(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),$nt(e)}function knt(t){let e=t.nodes[0],r=t.nodes[t.nodes.length-1];return new Le(e.sourceSpan.fullStart,r.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function $nt(t){let e=[],r=[];t[0]instanceof X_&&e.push(LU(t[0].sourceSpan.start));for(let n=0;n<t.length;n++){let i=t[n];i instanceof Zg?e.push(i):(r.push(i),t[n-1]instanceof X_&&e.push(LU(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof X_&&e.push(LU(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function LU(t){return new Zg("",new Le(t,t))}var qge="ngI18nClosureMode",Lnt="i18n_",Fnt="I18N_EXP_",Bge="\uFFFD",jnt="MSG_";function Uge(t){return`${jnt}${t}`.toUpperCase()}function qnt(t){return new kn(t.name,void 0,Ra,void 0,t.sourceSpan)}function Bnt(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",r=new Map,n=new Map,i=new Map,o=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===hy.I18nAttribute){let l=i.get(c.target)??[];l.push(c),i.set(c.target,l)}else c.kind===v.I18nMessage&&o.set(c.xref,c);let s=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}=O0e(t,e,o,c);if(c.i18nBlock!==null){let f=t.addConst(l,d);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...d),s.set(c.i18nContext,l);let f=r.get(c.i18nContext);if(f!==void 0)for(let p of f)p.expression=l.clone()}}$.remove(c)}for(let u of t.units)for(let c of u.create)if(Hp(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 y=f.has(m.name);return f.add(m.name),!y});let p=d.flatMap(m=>{let y=s.get(m.context);if(y===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[C(m.name),y]});l.i18nAttributesConfig=t.addConst(new ul(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 O0e(t,e,r,n){let i=[],o=new Map;for(let c of n.subMessages){let l=r.get(c),{mainVar:d,statements:f}=O0e(t,e,r,l);i.push(...f);let p=o.get(l.messagePlaceholder)??[];p.push(d),o.set(l.messagePlaceholder,p)}Unt(n,o),n.params=new Map([...n.params.entries()].sort());let s=pt(t.pool.uniqueName(Lnt)),a=Gnt(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=OH(c,!1),d=[];n.postprocessingParams.size>0&&d.push(FV(l,!0)),u=f=>me(T.i18nPostprocess).callFn([f,...d])}return i.push(...Vnt(n.message,s,a,n.params,u)),{mainVar:s,statements:i}}function Unt(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,C(`${Bge}${Fnt}${r}${Bge}`)),t.postprocessingParams.set(r,or(n)))}function Vnt(t,e,r,n,i){let o=Object.fromEntries(n),s=[qnt(e),c3(Hnt(),Pnt(e,t,r,o),Mnt(e,t,OH(o,!1)))];return i&&s.push(new di(e.set(i(e)))),s}function Hnt(){return zw(pt(qge)).notIdentical(C("undefined",AH)).and(pt(qge))}function Gnt(t,e,r,n){let i,o=r;if(n){let s=Uge("EXTERNAL_"),a=t.uniqueName(o);i=`${s}${Wg(e)}$$${a}`}else{let s=Uge(o);i=t.uniqueName(s)}return pt(i)}function Wnt(t){for(let e of t.units){let r=null,n=null,i=new Map,o=new Map,s=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),o.set(a.xref,n),a.icuPlaceholder!==null){let u=vtt(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);$.replace(a,u),s.set(a.xref,u)}else $.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=o.get(a.target),l=s.get(a.target),d=c?c.context:u.context,f=c?mb.Postproccessing:mb.Creation,p=[];for(let m=0;m<a.interpolation.expressions.length;m++){let y=a.interpolation.expressions[m];p.push(a0e(d,u.xref,u.xref,u.handle,y,l?.xref??null,a.interpolation.i18nPlaceholders[m]??null,f,hy.I18nText,"",y.sourceSpan??a.sourceSpan))}$.replaceWithMany(a,p),l!==void 0&&(l.strings=a.interpolation.strings);break}}}function Knt(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=znt(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function znt(t){let e=[];for(let r of t)e.push(C(r.name),C(r.target));return or(e)}function Qnt(t){for(let e of t.units){let r=fn.HTML;for(let n of e.create)n.kind===v.ElementStart&&n.namespace!==r&&($.insertBefore(ltt(n.namespace),n),r=n.namespace)}}function Ynt(t){let e=[],r=0,n=0,i=0,o=0,s=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=P0e(t.substring(s,r-1).trim()),o=r);break;case 59:if(a&&o>0&&n===0&&i===0){let c=t.substring(o,r-1).trim();e.push(a,c),s=r,o=0,a=null}break}if(a&&o){let u=t.slice(o).trim();e.push(a,u)}return e}function P0e(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Znt(t){let e=new Map;for(let r of t.units)for(let n of r.create)Hp(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===ve.Attribute&&u0e(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===no.Structural)continue;if(n.name==="style"){let o=Ynt(n.expression.value);for(let s=0;s<o.length-1;s+=2)$.insertBefore(Ks(n.target,ve.StyleProperty,null,o[s],C(o[s+1]),null,null,ft.STYLE),n);$.remove(n)}else if(n.name==="class"){let o=n.expression.value.trim().split(/\s+/g);for(let s of o)$.insertBefore(Ks(n.target,ve.ClassName,null,s,null,null,null,ft.NONE),n);$.remove(n)}}}function Xnt(t){qT(t.root,t.componentName,{index:0})}function qT(t,e,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Wg(`${e}_${t.job.fnSuffix}`),!1));let n=new Map;for(let i of t.ops())switch(i.kind){case v.Property:case v.DomProperty:i.bindingKind===ve.LegacyAnimation&&(i.name="@"+i.name);break;case v.Animation:if(i.handlerFnName===null){let c=i.name.replace(".","");i.handlerFnName=`${t.fnName}_${c}_cb`,i.handlerFnName=Wg(i.handlerFnName)}break;case v.AnimationListener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o=i.name.replace(".","");i.hostListener?i.handlerFnName=`${e}_${o}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${o}_${i.targetSlot.slot}_listener`,i.handlerFnName=Wg(i.handlerFnName);break;case v.Listener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let s="";i.isLegacyAnimationListener&&(i.name=`@${i.name}.${i.legacyAnimationPhase}`,s="animation"),i.hostListener?i.handlerFnName=`${e}_${s}${i.name}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${s}${i.name}_${i.targetSlot.slot}_listener`,i.handlerFnName=Wg(i.handlerFnName);break;case v.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=Wg(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case v.Variable:n.set(i.xref,Jnt(i.variable,r));break;case v.RepeaterCreate:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.emptyView!==null){let c=t.job.views.get(i.emptyView);qT(c,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,r)}qT(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,r);break;case v.Projection:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.fallbackView!==null){let c=t.job.views.get(i.fallbackView);qT(c,`${e}_ProjectionFallback_${i.handle.slot}`,r)}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");let a=t.job.views.get(i.xref);if(i.handle.slot===null)throw new Error("Expected slot to be assigned");let u=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;qT(a,`${e}${u}_${i.handle.slot}`,r);break;case v.StyleProp:i.name=Vge(eit(i.name));break;case v.ClassProp:i.name=Vge(i.name);break}for(let i of t.ops())pn(i,o=>{if(!(!(o instanceof Od)||o.name!==null)){if(!n.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=n.get(o.xref)}})}function Jnt(t,e){if(t.name===null)switch(t.kind){case Rn.Context:t.name=`ctx_r${e.index++}`;break;case Rn.Identifier:let r=t.identifier===ms?"i":"";t.name=`${t.identifier}_${r}r${++e.index}`;break;default:t.name=`_r${++e.index}`;break}return t.name}function eit(t){return t.startsWith("--")?t:P0e(t)}function Vge(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function tit(t){for(let e of t.units){for(let r of e.functions)FU(r.ops);for(let r of e.create)(r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener)&&FU(r.handlerOps);FU(e.update)}}function FU(t){for(let e of t){if(e.kind!==v.Statement||!(e.statement instanceof di)||!(e.statement.expr instanceof LM))continue;let r=e.statement.expr.steps,n=!0;for(let i=e.next;i.kind!==v.ListEnd&&n;i=i.next)pn(i,(o,s)=>{if(!fl(o))return o;if(n&&!(s&ot.InChildOperation))switch(o.kind){case we.NextContext:o.steps+=r,$.remove(e),n=!1;break;case we.GetCurrentView:case we.Reference:case we.ContextLetReference:n=!1;break}})}}var rit="ng-container";function nit(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===v.ElementStart&&n.tag===rit&&(n.kind=v.ContainerStart,r.add(n.xref)),n.kind===v.ElementEnd&&r.has(n.xref)&&(n.kind=v.ContainerEnd)}}function iit(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 oit(t){let e=new Map;for(let r of t.units)for(let n of r.create)Hp(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&&$.insertAfter(ott(n.xref),n),(n.kind===v.ElementEnd||n.kind===v.ContainerEnd)&&iit(e,n.xref).nonBindable&&$.insertBefore(stt(n.xref),n)}function tl(t){return e=>e.kind===t}function WT(t,e){return r=>r.kind===t&&e===r.expression instanceof Jr}function sit(t){return t.kind===v.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===v.TwoWayListener||t.kind===v.Animation||t.kind===v.AnimationListener}function ait(t){return(t.kind===v.Property||t.kind===v.TwoWayProperty)&&!(t.expression instanceof Jr)}var uit=[{test:t=>t.kind===v.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:sit}],cit=[{test:tl(v.StyleMap),transform:t3},{test:tl(v.ClassMap),transform:t3},{test:tl(v.StyleProp)},{test:tl(v.ClassProp)},{test:WT(v.Attribute,!0)},{test:WT(v.Property,!0)},{test:ait},{test:WT(v.Attribute,!1)},{test:tl(v.Control)}],lit=[{test:WT(v.DomProperty,!0)},{test:WT(v.DomProperty,!1)},{test:tl(v.Attribute)},{test:tl(v.StyleMap),transform:t3},{test:tl(v.ClassMap),transform:t3},{test:tl(v.StyleProp)},{test:tl(v.ClassProp)}],Hge=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 dit(t){for(let e of t.units){Gge(e.create,uit);let r=e.job.kind===ue.Host?lit:cit;Gge(e.update,r)}}function Gge(t,e){let r=[],n=null;for(let i of t){let o=Dw(i)?i.target:null;(!Hge.has(i.kind)||o!==n&&n!==null&&o!==null)&&($.insertBefore(Wge(r,e),i),r=[],n=null),Hge.has(i.kind)&&(r.push(i),$.remove(i),n=o??n)}t.push(Wge(r,e))}function Wge(t,e){let r=Array.from(e,()=>new Array);for(let n of t){let i=e.findIndex(o=>o.test(n));r[i].push(n)}return r.flatMap((n,i)=>{let o=e[i].transform;return o?o(n):n})}function t3(t){return t.slice(t.length-1)}function fit(t){for(let e of t.units){let r=y0e(e);for(let n of e.ops())if(n.kind===v.Binding){let i=hit(r,n.target);pit(n.name)&&i.kind===v.Projection&&$.remove(n)}}}function pit(t){return t.toLowerCase()==="select"}function hit(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function mit(t){for(let e of t.units)git(e)}function git(t){for(let e of t.update)pn(e,(r,n)=>{if(!fl(r)||r.kind!==we.PipeBinding)return;if(n&ot.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");yit(t,e.target,r)})}function yit(t,e,r){for(let n=t.create.head.next;n.kind!==v.ListEnd;n=n.next){if(!wb(n)||n.xref!==e)continue;for(;n.next.kind===v.Pipe;)n=n.next;let i=ctt(r.target,r.targetSlot,r.name);$.insertBefore(i,n.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${r.name}`)}function vit(t){for(let e of t.units)for(let r of e.update)en(r,n=>!(n instanceof yy)||n.args.length<=4?n:new $w(n.target,n.targetSlot,n.name,or(n.args),n.args.length),ot.None)}function _it(t){N0e(t.root,0)}function N0e(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=BD(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case v.RepeaterCreate:let i=t.job.views.get(n.xref);e=BD(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=BD(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case v.Projection:n.fallbackView!==null&&(e=BD(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function BD(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++,bit(t,e)}return N0e(t,n)}function bit(t,e){if(t.create.head.next?.kind!==v.I18nStart){let r=t.job.allocateXrefId();$.insertAfter(p3(r,e.message,e.root,null),t.create.head),$.insertBefore(h3(r,null),t.create.tail)}}function Eit(t){for(let e of t.units)for(let r of e.ops())pn(r,n=>{if(!(n instanceof gy)||n.body===null)return;let i=new nH(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var nH=class extends rw{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Up?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,r){let n=[];for(let o=0;o<this.numArgs;o++)n.push(new In("a"+o,Co));let i=pe(r,o=>o instanceof Up?pt("a"+o.index):o,ot.None);return new kn(e,new by(n,i),void 0,Zn.Final)}};function Sit(t){for(let e of t.units)for(let r of e.update)en(r,(n,i)=>i&ot.InChildOperation?n:n instanceof ul?Tit(n):n instanceof La?wit(n):n,ot.None)}function Tit(t){let e=[],r=[];for(let n of t.entries){if(n instanceof sy){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new sy(new Up(i)))}continue}if(n.isConstant())e.push(n);else{let i=r.length;r.push(n),e.push(new Up(i))}}return new gy(or(e),r)}function wit(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Rp){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Rp(new Up(i)))}continue}if(n.value.isConstant())e.push(n);else{let i=r.length;r.push(n.value),e.push(new ob(n.key,new Up(i),n.quoted))}}return new gy(new La(e),r)}function Iit(t){for(let e of t.units)for(let r of e.ops())en(r,n=>n instanceof ib&&(n.flags===null||!n.flags.includes("g"))?t.pool.getSharedConstant(new iH,n):n,ot.None)}var iH=class extends rw{toSharedConstantDeclaration(e,r){return new kn(e,r,void 0,Zn.Final)}};function Ait(t,e,r,n,i){return Kp(T.element,t,e,r,n,i)}function xit(t,e,r,n,i){return Kp(T.elementStart,t,e,r,n,i)}function Kp(t,e,r,n,i,o){let s=[C(e)];return r!==null&&s.push(C(r)),i!==null?s.push(C(n),C(i)):n!==null&&s.push(C(n)),Ke(t,s,o)}function D0e(t,e,r,n,i,o,s,a,u){let c=[C(e),r,C(n),C(i),C(o),C(s)];for(a!==null&&(c.push(C(a)),c.push(me(T.templateRefExtractor)));c[c.length-1].isEquivalent(sb);)c.pop();return Ke(t,c,u)}function jH(t,e,r,n,i){let o=[C(e)];return r instanceof Jr?o.push(Ib(r,i)):o.push(r),n!==null&&o.push(n),Ke(t,o,i)}function Cit(t){return Ke(T.elementEnd,[],t)}function Oit(t,e,r,n){return Kp(T.elementContainerStart,t,null,e,r,n)}function Pit(t,e,r,n){return Kp(T.elementContainer,t,null,e,r,n)}function Nit(){return Ke(T.elementContainerEnd,[],null)}function Dit(t,e,r,n,i,o,s,a){return D0e(T.templateCreate,t,e,r,n,i,o,s,a)}function Mit(){return Ke(T.disableBindings,[],null)}function Rit(){return Ke(T.enableBindings,[],null)}function kit(t,e,r,n,i){let o=[C(t),e];return r!==null&&o.push(me(r)),Ke(n?T.syntheticHostListener:T.listener,o,i)}function Kge(t,e){return me(T.twoWayBindingSet).callFn([t,e])}function $it(t,e,r){return Ke(T.twoWayListener,[C(t),e],r)}function Lit(t,e){return Ke(T.pipe,[C(t),C(e)],null)}function Fit(){return Ke(T.namespaceHTML,[],null)}function jit(){return Ke(T.namespaceSVG,[],null)}function qit(){return Ke(T.namespaceMathML,[],null)}function Bit(t,e){return Ke(T.advance,t>1?[C(t)]:[],e)}function Uit(t){return me(T.reference).callFn([C(t)])}function Vit(t){return me(T.nextContext).callFn(t===1?[]:[C(t)])}function Hit(){return me(T.getCurrentView).callFn([])}function Git(t){return me(T.restoreView).callFn([t])}function Wit(t){return me(T.resetView).callFn([t])}function Kit(t,e,r){let n=[C(t,null)];return e!==""&&n.push(C(e)),Ke(T.text,n,r)}function zit(t,e,r,n,i,o,s,a,u,c,l){let d=[C(t),C(e),r??C(null),C(n),C(i),C(o),s??C(null),a??C(null),u?me(T.deferEnableTimerScheduling):C(null),C(l)],f;for(;(f=d[d.length-1])!==null&&f instanceof li&&f.value===null;)d.pop();return Ke(T.defer,d,c)}var Qit=new Map([[ir.Idle,{none:T.deferOnIdle,prefetch:T.deferPrefetchOnIdle,hydrate:T.deferHydrateOnIdle}],[ir.Immediate,{none:T.deferOnImmediate,prefetch:T.deferPrefetchOnImmediate,hydrate:T.deferHydrateOnImmediate}],[ir.Timer,{none:T.deferOnTimer,prefetch:T.deferPrefetchOnTimer,hydrate:T.deferHydrateOnTimer}],[ir.Hover,{none:T.deferOnHover,prefetch:T.deferPrefetchOnHover,hydrate:T.deferHydrateOnHover}],[ir.Interaction,{none:T.deferOnInteraction,prefetch:T.deferPrefetchOnInteraction,hydrate:T.deferHydrateOnInteraction}],[ir.Viewport,{none:T.deferOnViewport,prefetch:T.deferPrefetchOnViewport,hydrate:T.deferHydrateOnViewport}],[ir.Never,{none:T.deferHydrateNever,prefetch:T.deferHydrateNever,hydrate:T.deferHydrateNever}]]);function Yit(t,e,r,n){let i=Qit.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return Ke(i,e,n)}function Zit(t){return Ke(T.projectionDef,t?[t]:[],null)}function Xit(t,e,r,n,i,o,s){let a=[C(t)];return(e!==0||r!==null||n!==null)&&(a.push(C(e)),r!==null&&a.push(r),n!==null&&(r===null&&a.push(C(null)),a.push(pt(n),C(i),C(o)))),Ke(T.projection,a,s)}function Jit(t,e,r,n){let i=[C(t),C(e)];return r!==null&&i.push(C(r)),Ke(T.i18nStart,i,n)}function eot(t,e,r,n,i,o,s,a){let u=[C(t),e,C(r),C(n),C(i),C(o)];for(s!==null&&(u.push(C(s)),u.push(me(T.templateRefExtractor)));u[u.length-1].isEquivalent(sb);)u.pop();return Ke(T.conditionalCreate,u,a)}function tot(t,e,r,n,i,o,s,a){let u=[C(t),e,C(r),C(n),C(i),C(o)];for(s!==null&&(u.push(C(s)),u.push(me(T.templateRefExtractor)));u[u.length-1].isEquivalent(sb);)u.pop();return Ke(T.conditionalBranchCreate,u,a)}function rot(t,e,r,n,i,o,s,a,u,c,l,d,f,p){let m=[C(t),pt(e),C(r),C(n),C(i),C(o),s];return(a||u!==null)&&(m.push(C(a)),u!==null&&(m.push(pt(u),C(c),C(l)),(d!==null||f!==null)&&m.push(C(d)),f!==null&&m.push(C(f)))),Ke(T.repeaterCreate,m,p)}function not(t,e){return Ke(T.repeater,[t],e)}function iot(t,e,r){return t==="prefetch"?Ke(T.deferPrefetchWhen,[e],r):t==="hydrate"?Ke(T.deferHydrateWhen,[e],r):Ke(T.deferWhen,[e],r)}function oot(t,e){return Ke(T.declareLet,[C(t)],e)}function sot(t,e){return me(T.storeLet).callFn([t],e)}function aot(t){return me(T.readContextLet).callFn([C(t)])}function uot(t,e,r,n){let i=[C(t),C(e)];return r&&i.push(C(r)),Ke(T.i18n,i,n)}function cot(t){return Ke(T.i18nEnd,[],t)}function lot(t,e){let r=[C(t),C(e)];return Ke(T.i18nAttributes,r,null)}function dot(t,e,r){return jH(T.ariaProperty,t,e,null,r)}function fot(t,e,r,n){return jH(T.property,t,e,r,n)}function pot(t){return Ke(T.control,[],t)}function hot(t){return Ke(T.controlCreate,[],t)}function mot(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(r),Ke(T.twoWayProperty,i,n)}function got(t,e,r,n,i){let o=[C(t)];return e instanceof Jr?o.push(Ib(e,i)):o.push(e),(r!==null||n!==null)&&o.push(r??C(null)),n!==null&&o.push(C(n)),Ke(T.attribute,o,null)}function yot(t,e,r,n){let i=[C(t)];return e instanceof Jr?i.push(Ib(e,n)):i.push(e),r!==null&&i.push(C(r)),Ke(T.styleProp,i,n)}function vot(t,e,r){return Ke(T.classProp,[C(t),e],r)}function _ot(t,e){let r=t instanceof Jr?Ib(t,e):t;return Ke(T.styleMap,[r],e)}function bot(t,e){let r=t instanceof Jr?Ib(t,e):t;return Ke(T.classMap,[r],e)}function Eot(t,e,r,n,i){return Kp(T.domElement,t,e,r,n,i)}function Sot(t,e,r,n,i){return Kp(T.domElementStart,t,e,r,n,i)}function Tot(t){return Ke(T.domElementEnd,[],t)}function wot(t,e,r,n){return Kp(T.domElementContainerStart,t,null,e,r,n)}function Iot(t,e,r,n){return Kp(T.domElementContainer,t,null,e,r,n)}function Aot(){return Ke(T.domElementContainerEnd,[],null)}function xot(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(me(r)),Ke(T.domListener,i,n)}function Cot(t,e,r,n,i,o,s,a){return D0e(T.domTemplate,t,e,r,n,i,o,s,a)}var zge=[T.pipeBind1,T.pipeBind2,T.pipeBind3,T.pipeBind4];function Oot(t,e,r){if(r.length<1||r.length>zge.length)throw new Error("pipeBind() argument count out of bounds");let n=zge[r.length-1];return me(n).callFn([C(t),C(e),...r])}function Pot(t,e,r){return me(T.pipeBindV).callFn([C(t),C(e),r])}function Not(t,e,r){let n=M0e(t,e);return Wot(Vot,[],n,r)}function Dot(t,e){return Ke(T.i18nExp,[t],e)}function Mot(t,e){return Ke(T.i18nApply,[C(t)],e)}function Rot(t,e,r,n){return jH(T.domProperty,t,e,r,n)}function kot(t,e,r,n){let i=[e];r!==null&&i.push(r);let o=t==="enter"?T.animationEnter:T.animationLeave;return Ke(o,i,n)}function $ot(t,e,r,n){let o=[e instanceof Jr?Ib(e,n):e];r!==null&&o.push(r);let s=t==="enter"?T.animationEnter:T.animationLeave;return Ke(s,o,n)}function Lot(t,e,r,n){let i=[e],o=t==="enter"?T.animationEnterListener:T.animationLeaveListener;return Ke(o,i,n)}function Fot(t,e,r){return Ke(T.syntheticHostProperty,[C(t),e],r)}function jot(t,e,r){return qH(Got,[C(t),e],r,null)}function qot(t,e){return Ke(T.attachSourceLocations,[C(t),e],null)}function Bot(t,e,r){return me(T.arrowFunction).callFn([C(t),e,r])}function M0e(t,e){if(t.length<1||e.length!==t.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let r=[];if(e.length===1&&t[0]===""&&t[1]==="")r.push(e[0]);else{let n;for(n=0;n<e.length;n++)r.push(C(t[n]),e[n]);r.push(C(t[n]))}return r}function Ib(t,e){let r=M0e(t.strings,t.expressions);return qH(Hot,[],r,e)}function Ke(t,e,r){let n=me(t).callFn(e,r);return gs(new di(n,r))}function Uot(t,e,r){let n=[t];return e!==null&&n.push(e),Ke(T.conditional,n,r)}var Vot={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}},Hot={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}},Got={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 qH(t,e,r,n){let i=t.mapping(r.length),o=r.at(-1);if(r.length>1&&o instanceof li&&o.value===""&&r.pop(),i<t.constant.length)return me(t.constant[i]).callFn([...e,...r],n);if(t.variable!==null)return me(t.variable).callFn([...e,or(r)],n);throw new Error("AssertionError: unable to call variadic function")}function Wot(t,e,r,n){return gs(qH(t,e,r,n).toStmt())}var Kot=new Map([["window",T.resolveWindow],["document",T.resolveDocument],["body",T.resolveBody]]),zot=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function Qot(t){for(let e of t.units)Yot(e,e.create),y3(e,e.update)}function Yot(t,e){for(let r of e)switch(en(r,n=>R0e(t,n),ot.None),r.kind){case v.Text:$.replace(r,Kit(r.handle.slot,r.initialValue,r.sourceSpan));break;case v.ElementStart:$.replace(r,t.job.mode===Ji.DomOnly?Sot(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):xit(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Element:$.replace(r,t.job.mode===Ji.DomOnly?Eot(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):Ait(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ElementEnd:$.replace(r,t.job.mode===Ji.DomOnly?Tot(r.sourceSpan):Cit(r.sourceSpan));break;case v.ContainerStart:$.replace(r,t.job.mode===Ji.DomOnly?wot(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):Oit(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Container:$.replace(r,t.job.mode===Ji.DomOnly?Iot(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):Pit(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ContainerEnd:$.replace(r,t.job.mode===Ji.DomOnly?Aot():Nit());break;case v.I18nStart:$.replace(r,Jit(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nEnd:$.replace(r,cot(r.sourceSpan));break;case v.I18n:$.replace(r,uot(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");$.replace(r,lot(r.handle.slot,r.i18nAttributesConfig));break;case v.Template:if(!(t instanceof zs))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);$.replace(r,r.templateKind===no.Block||t.job.mode===Ji.DomOnly?Cot(r.handle.slot,pt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):Dit(r.handle.slot,pt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.DisableBindings:$.replace(r,Mit());break;case v.EnableBindings:$.replace(r,Rit());break;case v.Pipe:$.replace(r,Lit(r.handle.slot,r.name));break;case v.DeclareLet:$.replace(r,oot(r.handle.slot,r.sourceSpan));break;case v.AnimationString:$.replace(r,$ot(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case v.Animation:let i=UD(t,r.handlerFnName,r.handlerOps,!1);$.replace(r,kot(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case v.AnimationListener:let o=UD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);$.replace(r,Lot(r.animationKind,o,null,r.sourceSpan));break;case v.Listener:let s=UD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),a=r.eventTarget?Kot.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.`);$.replace(r,t.job.mode===Ji.DomOnly&&!r.hostListener&&!r.isLegacyAnimationListener?xot(r.name,s,a,r.sourceSpan):kit(r.name,s,a,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case v.TwoWayListener:$.replace(r,$it(r.name,UD(t,r.handlerFnName,r.handlerOps,!0),r.sourceSpan));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);$.replace(r,gs(new kn(r.variable.name,r.initializer,void 0,Zn.Final)));break;case v.Namespace:switch(r.active){case fn.HTML:$.replace(r,Fit());break;case fn.SVG:$.replace(r,jit());break;case fn.Math:$.replace(r,qit());break}break;case v.Defer:let u=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;$.replace(r,zit(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 ir.Never:case ir.Idle:case ir.Immediate:break;case ir.Timer:c=[C(r.trigger.delay)];break;case ir.Viewport:r.modifier==="hydrate"?c=r.trigger.options?[r.trigger.options]:[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0?c.push(C(r.trigger.targetSlotViewSteps)):r.trigger.options&&c.push(C(null)),r.trigger.options&&c.push(r.trigger.options));break;case ir.Interaction:case ir.Hover:r.modifier==="hydrate"?c=[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0&&c.push(C(r.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${r.trigger.kind}`)}$.replace(r,Yit(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case v.ProjectionDef:$.replace(r,Zit(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 zs))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}$.replace(r,Xit(r.handle.slot,r.projectionSlotIndex,r.attributes,l,d,f,r.sourceSpan));break;case v.ConditionalCreate:if(!(t instanceof zs))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);$.replace(r,eot(r.handle.slot,pt(p.fnName),p.decls,p.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.ConditionalBranchCreate:if(!(t instanceof zs))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);$.replace(r,tot(r.handle.slot,pt(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 zs))throw new Error("AssertionError: must be compiling a component");let y=t.job.views.get(r.xref);if(y.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let g=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");g=x.fnName,_=x.decls,b=x.vars}$.replace(r,rot(r.handle.slot,y.fnName,r.decls,r.vars,r.tag,r.attributes,Jot(t,r),r.usesComponentInstance,g,_,b,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case v.SourceLocation:let S=or(r.locations.map(({targetSlot:x,offset:N,line:z,column:Ee})=>{if(x.slot===null)throw new Error("No slot was assigned for source location");return or([C(x.slot),C(N),C(z),C(Ee)])}));$.replace(r,qot(r.templatePath,S));break;case v.ControlCreate:$.replace(r,hot(r.sourceSpan));break;case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${v[r.kind]}`)}}function y3(t,e){for(let r of e)switch(en(r,n=>R0e(t,n),ot.None),r.kind){case v.Advance:$.replace(r,Bit(r.delta,r.sourceSpan));break;case v.Property:$.replace(r,t.job.mode===Ji.DomOnly&&r.bindingKind!==ve.LegacyAnimation&&r.bindingKind!==ve.Animation?Qge(r):Zot(r));break;case v.Control:$.replace(r,Xot(r));break;case v.TwoWayProperty:$.replace(r,mot(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case v.StyleProp:$.replace(r,yot(r.name,r.expression,r.unit,r.sourceSpan));break;case v.ClassProp:$.replace(r,vot(r.name,r.expression,r.sourceSpan));break;case v.StyleMap:$.replace(r,_ot(r.expression,r.sourceSpan));break;case v.ClassMap:$.replace(r,bot(r.expression,r.sourceSpan));break;case v.I18nExpression:$.replace(r,Dot(r.expression,r.sourceSpan));break;case v.I18nApply:$.replace(r,Mot(r.handle.slot,r.sourceSpan));break;case v.InterpolateText:$.replace(r,Not(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case v.Attribute:$.replace(r,got(r.name,r.expression,r.sanitizer,r.namespace,r.sourceSpan));break;case v.DomProperty:if(r.expression instanceof Jr)throw new Error("not yet handled");r.bindingKind===ve.LegacyAnimation||r.bindingKind===ve.Animation?$.replace(r,Fot(r.name,r.expression,r.sourceSpan)):$.replace(r,Qge(r));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);$.replace(r,gs(new kn(r.variable.name,r.initializer,void 0,Zn.Final)));break;case v.Conditional:if(r.processed===null)throw new Error("Conditional test was not set.");$.replace(r,Uot(r.processed,r.contextValue,r.sourceSpan));break;case v.Repeater:$.replace(r,not(r.collection,r.sourceSpan));break;case v.DeferWhen:$.replace(r,iot(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 Qge(t){return Rot(zot.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function Zot(t){return v0e(t.name)?dot(t.name,t.expression,t.sourceSpan):fot(t.name,t.expression,t.sanitizer,t.sourceSpan)}function Xot(t){return pot(t.sourceSpan)}function R0e(t,e){if(!fl(e))return e;switch(e.kind){case we.NextContext:return Vit(e.steps);case we.Reference:return Uit(e.targetSlot.slot+1+e.offset);case we.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${e.name}`);case we.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case we.RestoreView:if(typeof e.view=="number")throw new Error("AssertionError: unresolved RestoreView");return Git(e.view);case we.ResetView:return Wit(e.expr);case we.GetCurrentView:return Hit();case we.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return pt(e.name);case we.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return pt(e.name);case we.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return pt(e.name).set(e.expr);case we.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return jot(e.varOffset,e.fn,e.args);case we.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case we.PipeBinding:return Oot(e.targetSlot.slot,e.varOffset,e.args);case we.PipeBindingVariadic:return Pot(e.targetSlot.slot,e.varOffset,e.args);case we.SlotLiteralExpr:return C(e.slot.slot);case we.ContextLetReference:return aot(e.targetSlot.slot);case we.StoreLet:return sot(e.value,e.sourceSpan);case we.TrackContext:return pt("this");case we.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return Bot(e.varOffset,t.job.pool.getSharedFunctionReference(est(t,e),"arrowFn"),pt(ms));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${we[e.kind]}`)}}function UD(t,e,r,n){y3(t,r);let i=[];for(let s of r){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[s.kind]}`);i.push(s.statement)}let o=[];return n&&o.push(new In("$event",Co)),kp(o,i,void 0,void 0,e)}function Jot(t,e){if(e.trackByFn!==null)return e.trackByFn;let r=[new In("$index",ny),new In("$item",Co)],n;if(e.trackByOps===null)n=e.usesComponentInstance?kp(r,[new An(e.track)]):hs(r,e.track);else{y3(t,e.trackByOps);let i=[];for(let o of e.trackByOps){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[o.kind]}`);i.push(o.statement)}n=e.usesComponentInstance||i.length!==1||!(i[0]instanceof An)?kp(r,i):hs(r,i[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(n,"_forTrack"),e.trackByFn}function est(t,e){y3(t,e.ops);let r=[];for(let i of e.ops){if(i.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[i.kind]}`);r.push(i.statement)}let n=r.length===1&&r[0]instanceof An?r[0].value:r;return hs([new In(e.contextName,Co),new In(e.currentViewName,Co)],hs(e.parameters,n))}function tst(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 Lw&&$.remove(r);break}}function rst(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case v.I18nContext:$.remove(r);break;case v.I18nStart:r.context=null;break}}function nst(t){for(let e of t.units)for(let r of e.update){if(r.kind!==v.Variable||r.variable.kind!==Rn.Identifier||!(r.initializer instanceof Mw))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==v.ListEnd;)en(i,o=>o instanceof Qn&&o.name===n?C(void 0):o,ot.None),i=i.prev}}function ist(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;$.remove(n)}}}function ost(t){for(let e of t.units){for(let r of e.functions)KT(e,r.ops);KT(e,e.create),KT(e,e.update)}}function KT(t,e){let r=new Map;r.set(t.xref,pt(ms));for(let n of e)switch(n.kind){case v.Variable:n.variable.kind===Rn.Context&&r.set(n.variable.view,new Od(n.xref));break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:KT(t,n.handlerOps);break;case v.RepeaterCreate:n.trackByOps!==null&&KT(t,n.trackByOps);break}t===t.job.root&&r.set(t.xref,pt(ms));for(let n of e)en(n,i=>{if(i instanceof Bp){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 sst(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 ast(t){for(let e of t.units)Yge(e.create),Yge(e.update)}function Yge(t){for(let e of t)(e.kind===v.Listener||e.kind===v.TwoWayListener||e.kind===v.AnimationListener)&&en(e,r=>r instanceof Qn&&r.name==="$event"?((e.kind===v.Listener||e.kind===v.AnimationListener)&&(e.consumesDollarEvent=!0),new ka(r.name)):r,ot.InChildOperation)}function ust(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}Xc(t,t.root,e,r)}function Xc(t,e,r,n,i){let o=null,s=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");o={i18nBlock:a,i18nContext:r.get(a.context)};break;case v.I18nEnd:o=null;break;case v.ElementStart:if(a.i18nPlaceholder!==void 0){if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Zge(a,o.i18nContext,o.i18nBlock,i),i&&a.i18nPlaceholder.closeName&&s.set(a.xref,i),i=void 0}break;case v.ElementEnd:let u=n.get(a.xref);if(u&&u.i18nPlaceholder!==void 0){if(o===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Xge(u,o.i18nContext,o.i18nBlock,s.get(a.xref)),s.delete(a.xref)}break;case v.Projection:if(a.i18nPlaceholder!==void 0){if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Zge(a,o.i18nContext,o.i18nBlock,i),Xge(a,o.i18nContext,o.i18nBlock,i),i=void 0}if(a.fallbackView!==null){let f=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)Xc(t,f,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");VD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,o.i18nContext,o.i18nBlock,i),Xc(t,f,r,n),HD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,o.i18nContext,o.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)Xc(t,c,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===no.Structural?Xc(t,c,r,n,a):(VD(t,c,a.handle.slot,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),Xc(t,c,r,n),HD(t,c,a.handle.slot,a.i18nPlaceholder,o.i18nContext,o.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)Xc(t,d,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");VD(t,d,l,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),Xc(t,d,r,n),HD(t,d,l,a.i18nPlaceholder,o.i18nContext,o.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)Xc(t,p,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");VD(t,p,f,a.emptyI18nPlaceholder,o.i18nContext,o.i18nBlock,i),Xc(t,p,r,n),HD(t,p,f,a.emptyI18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0}}break}}function Zge(t,e,r,n){let{startName:i,closeName:o}=t.i18nPlaceholder,s=fr.ElementTag|fr.OpenTag,a=t.handle.slot;n!==void 0&&(s|=fr.TemplateTag,a={element:a,template:n.handle.slot}),o||(s|=fr.CloseTag),Eb(e.params,i,a,r.subTemplateIndex,s)}function Xge(t,e,r,n){let{closeName:i}=t.i18nPlaceholder;if(i){let o=fr.ElementTag|fr.CloseTag,s=t.handle.slot;n!==void 0&&(o|=fr.TemplateTag,s={element:s,template:n.handle.slot}),Eb(e.params,i,s,r.subTemplateIndex,o)}}function VD(t,e,r,n,i,o,s){let{startName:a,closeName:u}=n,c=fr.TemplateTag|fr.OpenTag;u||(c|=fr.CloseTag),s!==void 0&&Eb(i.params,a,s.handle.slot,o.subTemplateIndex,c),Eb(i.params,a,r,k0e(t,o,e),c)}function HD(t,e,r,n,i,o,s){let{closeName:a}=n,u=fr.TemplateTag|fr.CloseTag;a&&(Eb(i.params,a,r,k0e(t,o,e),u),s!==void 0&&Eb(i.params,a,s.handle.slot,o.subTemplateIndex,u))}function k0e(t,e,r){for(let n of r.create)if(n.kind===v.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function Eb(t,e,r,n,i){let o=t.get(e)??[];o.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,o)}function cst(t){let e=new Map,r=new Map,n=new Map;for(let s of t.units)for(let a of s.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,o=s=>s.usage===hy.I18nText?s.i18nOwner:s.context;for(let s of t.units)for(let a of s.update)if(a.kind===v.I18nExpression){let u=i.get(o(a))||0,c=e.get(a.i18nOwner)??null,l={value:u,subTemplateIndex:c,flags:fr.ExpressionIndex};lst(a,l,r,n),i.set(o(a),u+1)}}function lst(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),o=t.resolutionTime===mb.Creation?i.params:i.postprocessingParams,s=o.get(t.i18nPlaceholder)||[];s.push(e),o.set(t.i18nPlaceholder,s)}t.icuPlaceholder!==null&&n.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function dst(t){let e=new Map;for(let r of t.units)for(let n of r.ops())if(n.kind===v.ElementStart||n.kind===v.Template){let i=n.tag??"";switch(n.namespace){case fn.SVG:i=`:${m3}:${i}`;break;case fn.Math:i=`:${g3}:${i}`;break}e.set(n.xref,i)}for(let r of t.units)for(let n of r.create)if(n.kind===v.ExtractedAttribute&&n.i18nContext!==null&&n.expression!==null){let i=e.get(n.target)??"",o=n.expression;switch(n.securityContext){case ft.HTML:o=me(T.sanitizeHtml).callFn([o]);break;case ft.STYLE:o=me(T.sanitizeStyle).callFn([o]);break;case ft.SCRIPT:o=me(T.sanitizeScript).callFn([o]);break;case ft.URL:o=me(T.sanitizeUrl).callFn([o]);break;case ft.RESOURCE_URL:o=me(T.sanitizeResourceUrl).callFn([o]);break;case ft.ATTRIBUTE_NO_BINDING:o=me(T.validateAttribute).callFn([o,C(i),C(n.name)]);break}n.expression=o}}function fst(t){for(let e of t.units){for(let r of e.functions)zT(e,r.ops,null);zT(e,e.create,null),zT(e,e.update,null)}}function zT(t,e,r){let n=new Map,i=new Map;for(let o of e)switch(o.kind){case v.Variable:switch(o.variable.kind){case Rn.Identifier:if(o.variable.local){if(i.has(o.variable.identifier))continue;i.set(o.variable.identifier,o.xref)}else if(n.has(o.variable.identifier))continue;n.set(o.variable.identifier,o.xref);break;case Rn.Alias:if(n.has(o.variable.identifier))continue;n.set(o.variable.identifier,o.xref);break;case Rn.SavedView:r={view:o.variable.view,variable:o.xref};break}break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:zT(t,o.handlerOps,r);break;case v.RepeaterCreate:o.trackByOps!==null&&zT(t,o.trackByOps,r);break}for(let o of e)o.kind===v.Listener||o.kind===v.TwoWayListener||o.kind===v.Animation||o.kind===v.AnimationListener||en(o,s=>{if(s instanceof Qn)return i.has(s.name)?new Od(i.get(s.name)):n.has(s.name)?new Od(n.get(s.name)):new ps(new Bp(t.job.root.xref),s.name);if(s instanceof kw&&typeof s.view=="number"){if(r===null||r.view!==s.view)throw new Error(`AssertionError: no saved view ${s.view} from view ${t.xref}`);return s.view=new Od(r.variable),s}else return s},ot.None);for(let o of e)pn(o,s=>{if(s instanceof Qn)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${s.name}`)})}var pst=new Map([[ft.HTML,T.sanitizeHtml],[ft.RESOURCE_URL,T.sanitizeResourceUrl],[ft.SCRIPT,T.sanitizeScript],[ft.STYLE,T.sanitizeStyle],[ft.URL,T.sanitizeUrl],[ft.ATTRIBUTE_NO_BINDING,T.validateAttribute]]),hst=new Map([[ft.HTML,T.trustConstantHtml],[ft.RESOURCE_URL,T.trustConstantResourceUrl]]);function mst(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=hst.get(Jge(r.securityContext))??null;r.trustedValueFn=n!==null?me(n):null}}for(let r of e.update)switch(r.kind){case v.Property:case v.Attribute:case v.DomProperty:case v.TwoWayProperty:let n=null;Array.isArray(r.securityContext)&&gst(r.securityContext)?n=T.sanitizeUrlOrResourceUrl:n=pst.get(Jge(r.securityContext))??null,r.sanitizer=n!==null?me(n):null;break}}}function gst(t){let e=!1,r=!1,n=!1;for(let i of t)switch(i){case ft.URL:e=!0;break;case ft.RESOURCE_URL:r=!0;break;case ft.NONE:n=!0;break;default:return!1}return(e||r)&&n||e&&r}function Jge(t){if(!Array.isArray(t))return t;if(t.length<2)return t[0]??ft.NONE;let e=t.filter(r=>r!==ft.NONE);if(e.length>1)throw Error("AssertionError: Ambiguous security context");return e[0]??ft.NONE}function yst(t){for(let e of t.units){for(let r of e.functions)eye(t,e,r.ops)&&tye(e,r.ops,pt(r.currentViewName));e.create.prepend([Pp(e.job.allocateXrefId(),{kind:Rn.SavedView,name:null,view:e.xref},new MV,cs.None)]);for(let r of e.create)(r.kind===v.Listener||r.kind===v.TwoWayListener||r.kind===v.Animation||r.kind===v.AnimationListener)&&eye(t,e,r.handlerOps)&&tye(e,r.handlerOps,e.xref)}}function eye(t,e,r){let n=e!==t.root;if(!n)for(let i of r)pn(i,o=>{(o instanceof $M||o instanceof Rw)&&(n=!0)});return n}function tye(t,e,r){e.prepend([Pp(t.job.allocateXrefId(),{kind:Rn.Context,name:null,view:t.xref},new kw(r),cs.None)]);for(let n of e)n.kind===v.Statement&&n.statement instanceof An&&(n.statement.value=new FM(n.statement.value))}function vst(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)wb(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 _st(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),pn(i,o=>{o instanceof Rw&&e.add(o.target)});for(let n of t.units)for(let i of n.update)en(i,o=>o instanceof Mw&&!e.has(o.target)?(bst(o)||$.remove(r.get(o.target)),o.value):o,ot.None)}function bst(t){let e=!1;return pe(t,r=>((r instanceof yy||r instanceof $w)&&(e=!0),r),ot.None),e}function Est(t){let e=new Set;for(let r of t.units)for(let n of r.ops())pn(n,i=>{if(i instanceof wt)switch(i.operator){case V.Exponentiation:Sst(i,e);break;case V.NullishCoalesce:Tst(i,e);break;case V.And:case V.Or:wst(i,e)}});for(let r of t.units)for(let n of r.ops())en(n,i=>i instanceof $a?e.has(i)?i:i.expr:i,ot.None)}function Sst(t,e){t.lhs instanceof $a&&t.lhs.expr instanceof oy&&e.add(t.lhs)}function Tst(t,e){t.lhs instanceof $a&&(rye(t.lhs.expr)||t.lhs.expr instanceof al)&&e.add(t.lhs),t.rhs instanceof $a&&(rye(t.rhs.expr)||t.rhs.expr instanceof al)&&e.add(t.rhs)}function wst(t,e){t.lhs instanceof $a&&t.lhs.expr instanceof wt&&t.lhs.expr.operator===V.NullishCoalesce&&e.add(t.lhs)}function rye(t){return t instanceof wt&&(t.operator===V.And||t.operator===V.Or)}function Ist(t){for(let e of t.units)for(let r of e.update)if(r.kind===v.Binding)switch(r.bindingKind){case ve.ClassName:if(r.expression instanceof Jr)throw new Error("Unexpected interpolation in ClassName binding");$.replace(r,Wet(r.target,r.name,r.expression,r.sourceSpan));break;case ve.StyleProperty:$.replace(r,Get(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case ve.Property:case ve.Template:r.name==="style"?$.replace(r,Ket(r.target,r.expression,r.sourceSpan)):r.name==="class"&&$.replace(r,zet(r.target,r.expression,r.sourceSpan));break}}function Ast(t){for(let e of t.units){e.create.prepend(QT(e.create)),e.update.prepend(QT(e.update));for(let r of e.functions)r.ops.prepend(QT(r.ops))}}function QT(t){let e=0,r=[];for(let n of t){let i=new Map;pn(n,(c,l)=>{l&ot.InChildOperation||c instanceof Vp&&i.set(c.xref,c)});let o=0,s=new Set,a=new Set,u=new Map;pn(n,(c,l)=>{l&ot.InChildOperation||(c instanceof pl?(s.has(c.xref)||(s.add(c.xref),u.set(c.xref,`tmp_${e}_${o++}`)),nye(u,c)):c instanceof Vp&&(i.get(c.xref)===c&&(a.add(c.xref),o--),nye(u,c)))}),r.push(...Array.from(new Set(u.values())).map(c=>gs(new kn(c)))),e++,n.kind===v.Listener||n.kind===v.Animation||n.kind===v.AnimationListener||n.kind===v.TwoWayListener?n.handlerOps.prepend(QT(n.handlerOps)):n.kind===v.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(QT(n.trackByOps))}return r}function nye(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 xst(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.RepeaterCreate)if(r.track instanceof ka&&r.track.name==="$index")r.trackByFn=me(T.repeaterTrackByIndex);else if(r.track instanceof ka&&r.track.name==="$item")r.trackByFn=me(T.repeaterTrackByIdentity);else if(Cst(t.root.xref,r.track))r.usesComponentInstance=!0,r.track.receiver.receiver.view===e.xref?r.trackByFn=r.track.receiver:(r.trackByFn=me(T.componentInstance).callFn([]).prop(r.track.receiver.name),r.track=r.trackByFn);else{r.track=pe(r.track,i=>{if(i instanceof yy||i instanceof $w)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof Bp?(r.usesComponentInstance=!0,new DV(i.view)):i},ot.None);let n=new $;n.push(gs(new An(r.track,r.track.sourceSpan))),r.trackByOps=n}}function Cst(t,e){if(!(e instanceof Oo)||e.args.length===0||e.args.length>2||!(e.receiver instanceof ps&&e.receiver.receiver instanceof Bp)||e.receiver.receiver.view!==t)return!1;let[r,n]=e.args;return!(r instanceof ka)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof ka)||n.name!=="$item")}function Ost(t){for(let e of t.units)for(let r of e.create)r.kind===v.RepeaterCreate&&(r.track=pe(r.track,n=>{if(n instanceof Qn){if(r.varNames.$index.has(n.name))return pt("$index");if(n.name===r.varNames.$implicit)return pt("$item")}return n},ot.None))}function Pst(t){for(let e of t.units)for(let r of e.create)r.kind===v.TwoWayListener&&en(r,n=>{if(!(n instanceof jM))return n;let{target:i,value:o}=n;if(i instanceof ps||i instanceof Nd)return Kge(i,o).or(i.set(o));if(i instanceof Od)return Kge(i,o);throw new Error("Unsupported expression in two-way action binding.")},ot.InChildOperation)}function Nst(t){for(let e of t.units){let r=0;for(let o of e.ops())MU(o)&&(r+=Dst(o));let n=o=>{fl(o)&&(o instanceof gy||(lge(o)&&(o.varOffset=r),MU(o)&&(r+=iye(o))))},i=o=>{!fl(o)||!(o instanceof gy)||(lge(o)&&(o.varOffset=r),MU(o)&&(r+=iye(o)))};for(let o of e.create)pn(o,n);for(let o of e.update)pn(o,n);for(let o of e.create)pn(o,i);for(let o of e.update)pn(o,i);e.vars=r}if(t instanceof jw)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 Dst(t){let e;switch(t.kind){case v.Attribute:return e=1,t.expression instanceof Jr&&!Mst(t.expression)&&(e+=t.expression.expressions.length),e;case v.Property:case v.DomProperty:return e=1,t.expression instanceof Jr&&(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 Jr&&(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 iye(t){switch(t.kind){case we.PureFunctionExpr:return 1+t.args.length;case we.PipeBinding:return 1+t.args.length;case we.PipeBindingVariadic:return 1+t.numArgs;case we.StoreLet:case we.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function Mst(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function Rst(t){for(let e of t.units){for(let r of e.functions)RT(r.ops);RT(e.create),RT(e.update);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?RT(r.handlerOps):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&RT(r.trackByOps);for(let r of e.functions)kT(r.ops,null),oye(r.ops);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?(kT(r.handlerOps,GD),oye(r.handlerOps)):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&kT(r.trackByOps,GD);kT(e.create,GD),kT(e.update,GD)}}var wn;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(wn||(wn={}));function GD(t){return!(t&ot.InArrowFunctionOperation)}function RT(t){let e=new Map;for(let r of t)r.kind===v.Variable&&r.flags&cs.AlwaysInline&&(pn(r,n=>{if(fl(n)&&BH(n)!==wn.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(r.xref,r)),en(r,n=>n instanceof Od&&e.has(n.xref)?e.get(n.xref).initializer.clone():n,ot.None);for(let r of e.values())$.remove(r)}function kT(t,e){let r=new Map,n=new Map,i=new Set,o=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)}o.set(c,kst(c,e)),$st(c,n,i,e)}let s=!1;for(let c of t.reversed()){let l=o.get(c);if(c.kind===v.Variable&&n.get(c.xref)===0){if(s&&l.fences&wn.ViewContextWrite||l.fences&wn.SideEffectful){let d=gs(c.initializer.toStmt());o.set(d,l),$.replace(c,d)}else Lst(c,n),$.remove(c);o.delete(c),r.delete(c.xref),n.delete(c.xref);continue}l.fences&wn.ViewContextRead&&(s=!0)}let a=[];for(let[c,l]of n){let f=!!(r.get(c).flags&cs.AlwaysInline);l!==1||f||i.has(c)||a.push(c)}let u;for(;u=a.pop();){let c=r.get(u),l=o.get(c);if(!!(c.flags&cs.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=o.get(f);if(p.variablesUsed.has(u)){if(!jst(c,f))break;if(Fst(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),o.delete(c),$.remove(c)}break}if(!$0e(p.fences,l.fences))break}}}function BH(t){switch(t.kind){case we.NextContext:return wn.ViewContextRead|wn.ViewContextWrite;case we.RestoreView:return wn.ViewContextRead|wn.ViewContextWrite|wn.SideEffectful;case we.StoreLet:return wn.SideEffectful;case we.Reference:case we.ContextLetReference:return wn.ViewContextRead;default:return wn.None}}function kst(t,e){let r=wn.None,n=new Set;return pn(t,(i,o)=>{!fl(i)||e!==null&&!e(o)||(i.kind===we.ReadVariable?n.add(i.xref):r|=BH(i))}),{fences:r,variablesUsed:n}}function $st(t,e,r,n){pn(t,(i,o)=>{if(!fl(i)||n!==null&&!n(o)||i.kind!==we.ReadVariable)return;let s=e.get(i.xref);s!==void 0&&(e.set(i.xref,s+1),o&ot.InChildOperation&&r.add(i.xref))})}function Lst(t,e){pn(t,r=>{if(!fl(r)||r.kind!==we.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 $0e(t,e){if(t&wn.ViewContextWrite){if(e&wn.ViewContextRead)return!1}else if(t&wn.ViewContextRead&&e&wn.ViewContextWrite)return!1;return!0}function Fst(t,e,r,n){let i=!1,o=!0;return en(r,(s,a)=>{if(!fl(s)||i||!o)return s;if(a&ot.InChildOperation&&n&wn.ViewContextRead)return s;switch(s.kind){case we.ReadVariable:if(s.xref===t)return i=!0,e;break;default:let u=BH(s);o=o&&$0e(u,n);break}return s},ot.None),i}function jst(t,e){switch(t.variable.kind){case Rn.Identifier:return t.initializer instanceof ka&&t.initializer.name===ms;case Rn.Context:return e.kind===v.Variable;default:return!0}}function oye(t){let e=t.head.next,r=t.tail.prev;e!==null&&r!==null&&e.next===r&&e.kind===v.Statement&&e.statement instanceof di&&e.statement.expr instanceof kw&&r.kind===v.Statement&&r.statement instanceof An&&r.statement.value instanceof FM&&($.remove(e),r.statement.value=r.statement.value.expr)}function qst(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(),$.insertBefore(p3(n,i.message,void 0,null),i));break;case v.IcuEnd:n!==null&&($.insertAfter(h3(n,null),i),n=null);break}}}function Bst(t){for(let e of t.units){for(let r of e.create)r.kind!==v.Animation&&r.kind!==v.AnimationListener&&r.kind!==v.Listener&&r.kind!==v.TwoWayListener&&sye(e,r);for(let r of e.update)sye(e,r)}}function sye(t,e){en(e,(r,n)=>{if(!(r instanceof by)||n&ot.InChildOperation)return r;if(Array.isArray(r.body))throw new Error("AssertionError: unexpected multi-line arrow function");let i=new RV(r.params,r.body);return t.functions.add(i),i},ot.None)}var Ust=new Set(["formField"]);function Vst(t){for(let e of t.units)Hst(e)}function Hst(t){for(let e of t.update)e.kind===v.Property&&Ust.has(e.name)&&zst(t,e)}var Gst=new Set([v.Container,v.ContainerStart,v.ContainerEnd,v.Element,v.ElementStart,v.ElementEnd,v.Template]);function Wst(t){return Gst.has(t.kind)}function Kst(t,e){let r=null;for(let n of t.create)!Wst(n)||n.xref!==e||(r=n);return r}function zst(t,e){let r=Kst(t,e.target);if(r===null)throw new Error(`No create instruction found for control target ${e.target}`);let n=btt(e.sourceSpan);$.insertAfter(n,r),$.insertAfter(ett(e.target,e.sourceSpan),e)}var Qst=[{kind:ue.Tmpl,fn:fit},{kind:ue.Both,fn:Iit},{kind:ue.Host,fn:wrt},{kind:ue.Tmpl,fn:Qnt},{kind:ue.Tmpl,fn:_it},{kind:ue.Tmpl,fn:qst},{kind:ue.Both,fn:Wtt},{kind:ue.Both,fn:Ist},{kind:ue.Both,fn:Ntt},{kind:ue.Tmpl,fn:Vst},{kind:ue.Both,fn:Utt},{kind:ue.Both,fn:Ctt},{kind:ue.Tmpl,fn:Gtt},{kind:ue.Both,fn:Znt},{kind:ue.Tmpl,fn:tst},{kind:ue.Both,fn:Rtt},{kind:ue.Both,fn:dit},{kind:ue.Tmpl,fn:ktt},{kind:ue.Tmpl,fn:mit},{kind:ue.Tmpl,fn:Ktt},{kind:ue.Tmpl,fn:vit},{kind:ue.Both,fn:Bst},{kind:ue.Both,fn:Sit},{kind:ue.Tmpl,fn:brt},{kind:ue.Tmpl,fn:_rt},{kind:ue.Tmpl,fn:Ert},{kind:ue.Tmpl,fn:yst},{kind:ue.Both,fn:Stt},{kind:ue.Both,fn:ast},{kind:ue.Tmpl,fn:Ost},{kind:ue.Tmpl,fn:nst},{kind:ue.Both,fn:fst},{kind:ue.Tmpl,fn:ztt},{kind:ue.Tmpl,fn:Pst},{kind:ue.Tmpl,fn:xst},{kind:ue.Both,fn:ost},{kind:ue.Both,fn:mst},{kind:ue.Tmpl,fn:Knt},{kind:ue.Both,fn:Jtt},{kind:ue.Both,fn:Est},{kind:ue.Both,fn:Ast},{kind:ue.Both,fn:Rst},{kind:ue.Both,fn:_st},{kind:ue.Tmpl,fn:Wnt},{kind:ue.Tmpl,fn:Htt},{kind:ue.Tmpl,fn:ist},{kind:ue.Tmpl,fn:Att},{kind:ue.Tmpl,fn:wtt},{kind:ue.Tmpl,fn:vst},{kind:ue.Tmpl,fn:ust},{kind:ue.Tmpl,fn:cst},{kind:ue.Tmpl,fn:hrt},{kind:ue.Tmpl,fn:Bnt},{kind:ue.Tmpl,fn:dst},{kind:ue.Tmpl,fn:Srt},{kind:ue.Both,fn:jtt},{kind:ue.Tmpl,fn:rst},{kind:ue.Both,fn:Nst},{kind:ue.Tmpl,fn:vrt},{kind:ue.Both,fn:Xnt},{kind:ue.Tmpl,fn:sst},{kind:ue.Tmpl,fn:tit},{kind:ue.Tmpl,fn:nit},{kind:ue.Tmpl,fn:Xtt},{kind:ue.Tmpl,fn:xtt},{kind:ue.Tmpl,fn:oit},{kind:ue.Both,fn:Eit},{kind:ue.Both,fn:Qot},{kind:ue.Both,fn:Mtt}];function L0e(t,e){for(let r of Qst)(r.kind===e||r.kind===ue.Both)&&r.fn(t)}function Yst(t,e){let r=j0e(t.root);return F0e(t.root,e),r}function F0e(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;F0e(r,e);let n=j0e(r);e.statements.push(n.toDeclStmt(n.name))}}function j0e(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let o of t.create){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[o.kind]}`);e.push(o.statement)}let r=[];for(let o of t.update){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[o.kind]}`);r.push(o.statement)}let n=r3(1,e),i=r3(2,r);return kp([new In(Sb,ny),new In(ms,Co)],[...n,...i],void 0,void 0,t.fnName)}function r3(t,e){return e.length===0?[]:[c3(new wt(V.BitwiseAnd,pt(Sb),C(t)),e)]}function Zst(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let o of t.root.create){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[o.kind]}`);e.push(o.statement)}let r=[];for(let o of t.root.update){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[o.kind]}`);r.push(o.statement)}if(e.length===0&&r.length===0)return null;let n=r3(1,e),i=r3(2,r);return kp([new In(Sb,ny),new In(ms,Co)],[...n,...i],void 0,void 0,t.root.fnName)}var WD=".",Xst="attr",jU="animate",Jst="class",eat="style",tat="*",qU="animate-",oH=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 o=e[i];typeof o=="string"?this.parsePropertyBinding(i,o,!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 "${o}" (${typeof o})`,r)}return n}createDirectiveHostEventAsts(e,r){let n=[];for(let i of Object.keys(e)){let o=e[i];typeof o=="string"?this.parseEvent(i,o,!1,r,r,[],n,r):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${o}" (${typeof o})`,r)}return n}parseInterpolation(e,r,n){let i=r.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,r,i,n);return o&&this.errors.push(...o.errors),o}catch(o){return this._reportError(`${o}`,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,o,s,a,u){let c=n.start.offset+tat.length,l=this._parseTemplateBindings(e,r,n,c,i);for(let d of l){let f=wp(n,d.sourceSpan),p=d.key.source,m=wp(n,d.key.span);if(d instanceof gw){let y=d.value?d.value.source:"$implicit",g=d.value?wp(n,d.value.span):void 0;a.push(new cV(p,y,f,m,g))}else if(d.value){let y=u?f:n,g=wp(n,d.value.ast.sourceSpan);this._parsePropertyAst(p,d.value,!1,y,m,g,o,s)}else o.push([p,""]),this.parseLiteralAttr(p,null,m,i,void 0,o,s,m)}}_parseTemplateBindings(e,r,n,i,o){try{let s=this._exprParser.parseTemplateBindings(e,r,n,i,o);return s.errors.forEach(a=>this.errors.push(a)),s.warnings.forEach(a=>{this._reportError(a,n,Id.WARNING)}),s.templateBindings}catch(s){return this._reportError(`${s}`,n),[]}}parseLiteralAttr(e,r,n,i,o,s,a,u){BU(e)?(e=e.substring(1),u!==void 0&&(u=wp(u,new ls(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,Id.ERROR),this._parseLegacyAnimation(e,r,n,i,u,o,s,a)):a.push(new W_(e,this._exprParser.wrapLiteralPrimitive(r,"",i),Da.LITERAL_ATTR,n,u,o))}parsePropertyBinding(e,r,n,i,o,s,a,u,c,l){e.length===0&&this._reportError("Property name is missing in binding",o);let d=!1;e.startsWith(qU)?(d=!0,e=e.substring(qU.length),l!==void 0&&(l=wp(l,new ls(l.start.offset+qU.length,l.end.offset)))):BU(e)&&(d=!0,e=e.substring(1),l!==void 0&&(l=wp(l,new ls(l.start.offset+1,l.end.offset)))),d?this._parseLegacyAnimation(e,r,o,s,l,a,u,c):e.startsWith(`${jU}${WD}`)?this._parseAnimation(e,this.parseBinding(r,n,a||o,s),o,l,a,u,c):this._parsePropertyAst(e,this.parseBinding(r,n,a||o,s),i,o,l,a,u,c)}parsePropertyInterpolation(e,r,n,i,o,s,a,u){let c=this.parseInterpolation(r,i||n,u);return c?(this._parsePropertyAst(e,c,!1,n,a,i,o,s),!0):!1}_parsePropertyAst(e,r,n,i,o,s,a,u){a.push([e,r.source]),u.push(new W_(e,r,n?Da.TWO_WAY:Da.DEFAULT,i,o,s))}_parseAnimation(e,r,n,i,o,s,a){s.push([e,r.source]),a.push(new W_(e,r,Da.ANIMATION,n,i,o))}_parseLegacyAnimation(e,r,n,i,o,s,a,u){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(r||"undefined",!1,s||n,i);a.push([e,c.source]),u.push(new W_(e,c,Da.LEGACY_ANIMATION,n,o,s))}parseBinding(e,r,n,i){try{let o=r?this._exprParser.parseSimpleBinding(e,n,i):this._exprParser.parseBinding(e,n,i);return o&&this.errors.push(...o.errors),o}catch(o){return this._reportError(`${o}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}createBoundElementProperty(e,r,n=!1,i=!0){if(r.isLegacyAnimation)return new TM(r.name,Ct.LegacyAnimation,ft.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let o=null,s,a=null,u=r.name.split(WD),c;if(u.length>1)if(u[0]==Xst){a=u.slice(1).join(WD),n||this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),c=XD(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let d=a.substring(0,l),f=a.substring(l+1);a=ZD(d,f)}s=Ct.Attribute}else u[0]==Jst?(a=u[1],s=Ct.Class,c=[ft.NONE]):u[0]==eat?(o=u.length>2?u[2]:null,a=u[1],s=Ct.Style,c=[ft.STYLE]):u[0]==jU&&(a=r.name,s=Ct.Animation,c=[ft.NONE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(r.name);a=i?l:r.name,c=XD(this._schemaRegistry,e,l,!1),s=r.type===Da.TWO_WAY?Ct.TwoWay:Ct.Property,n||this._validatePropertyOrAttributeName(l,r.sourceSpan,!1)}return new TM(a,s,c[0],r.expression,o,r.sourceSpan,r.keySpan,r.valueSpan)}parseEvent(e,r,n,i,o,s,a,u){e.length===0&&this._reportError("Event name is missing in binding",i),BU(e)?(e=e.slice(1),u!==void 0&&(u=wp(u,new ls(u.start.offset+1,u.end.offset))),this._parseLegacyAnimationEvent(e,r,i,o,a,u)):this._parseRegularEvent(e,r,n,i,o,s,a,u)}calcPossibleSecurityContexts(e,r,n){let i=this._schemaRegistry.getMappedPropName(r);return XD(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=uJe(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=cJe(e,[e,null]);return{eventName:r[0],phase:r[1]===null?null:r[1].toLowerCase()}}_parseLegacyAnimationEvent(e,r,n,i,o,s){let{eventName:a,phase:u}=this.parseLegacyAnimationEventName(e),c=this._parseAction(r,i);o.push(new SM(a,u,Di.LegacyAnimation,c,n,i,s)),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,o,s,a,u){let{eventName:c,target:l}=this.parseEventListenerName(e),d=this.errors.length,f=this._parseAction(r,o),p=this.errors.length===d;s.push([e,f.source]),n&&p&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",i);let m=Di.Regular;n&&(m=Di.TwoWay),e.startsWith(`${jU}${WD}`)&&(m=Di.Animation),a.push(new SM(c,l,m,f,i,o,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 Oi?(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=Id.ERROR){this.errors.push(new Pe(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,Id.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Ao?this._isAllowedAssignmentEvent(e.ast):e instanceof fw?this._isAllowedAssignmentEvent(e.expression):e instanceof ub&&e.args.length===1&&e.receiver instanceof rl&&e.receiver.name==="$any"&&e.receiver.receiver instanceof cl?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof rl||e instanceof cy)&&!sH(e)}};function sH(t){return t instanceof sw||t instanceof aw?!0:t instanceof mw?sH(t.expression):t instanceof rl||t instanceof cy||t instanceof ub?sH(t.receiver):!1}function BU(t){return t[0]=="@"}function XD(t,e,r,n){let i,[o,s]=e?ci(e,!1):[null,e],a=c=>{let[l,d]=ci(c,!1),f=l??o,p=f?`:${f}:${d}`:d;return t.securityContext(p,r,n)},u=t.allKnownElementNames();return s===null?i=u.map(a):(i=[],tb.parse(s).forEach(c=>{let l=c.element?[c.element]:u;if(c.element&&!t.hasElement(c.element,[])){let p=`:${m3}:${c.element}`,m=`:${g3}:${c.element}`;t.hasElement(p,[])?l=[p]:t.hasElement(m,[])&&(l=[m])}let d=new Set(c.notSelectors.filter(p=>p.isElementSelector()).map(p=>p.element?.toLowerCase())),f=l.filter(p=>{let m=p.toLowerCase();return!d.has(m)&&!d.has(ci(m)[1])});i.push(...f.map(a))})),i.length===0?[ft.NONE]:Array.from(new Set(i)).sort()}function wp(t,e){let r=e.start-t.start.offset,n=e.end-t.end.offset;return new Le(t.start.moveBy(r),t.end.moveBy(n),t.fullStart.moveBy(r),t.details)}var Pd=new bb,ry="ng-template",rat="animate.";function JD(t){return t instanceof ro}function nat(t){return JD(t)&&t.nodes.length===1&&t.nodes[0]instanceof PM}function iat(t,e,r,n,i,o,s,a,u,c){let l=new jw(t,r,n,i,o,s,a,u,c);return Md(l.root,e),l}function oat(t,e,r){let n=new GM(t.componentName,r,Ji.DomOnly);for(let i of t.properties??[]){let o=ve.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),o=ve.Attribute),i.isLegacyAnimation&&(o=ve.LegacyAnimation),i.isAnimation&&(o=ve.Animation);let s=aye(e,t.componentSelector,i.name,o===ve.Attribute);sat(n,i,o,s)}for(let[i,o]of Object.entries(t.attributes)??[]){let s=aye(e,t.componentSelector,i,!0);aat(n,i,o,s)}for(let i of t.events??[])uat(n,i);return n}function aye(t,e,r,n){let i=t.calcPossibleSecurityContexts(e,r,n),o=XD(Pd,null,Pd.getMappedPropName(r),n),s=o.filter(c=>c!==ft.NONE),a=s.length;return a!==o.length&&a>0||s.some(c=>!i.includes(c))?o:i.filter(c=>c!==ft.NONE)}function sat(t,e,r,n){let i,o=e.expression.ast;o instanceof Qw?i=new Jr(o.strings,o.expressions.map(s=>it(s,t,e.sourceSpan)),[]):i=it(o,t,e.sourceSpan),t.root.update.push(my(t.root.xref,r,e.name,i,null,n,!1,!1,null,null,e.sourceSpan))}function aat(t,e,r,n){let i=my(t.root.xref,ve.Attribute,e,r,null,n,!0,!1,null,null,r.sourceSpan);t.root.update.push(i)}function uat(t,e){let r;if(e.type===Di.Animation)r=p0e(t.root.xref,new fi,e.name,null,Hw(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[n,i]=e.type!==Di.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];r=FH(t.root.xref,new fi,e.name,null,Hw(t.root,e.handler,e.handlerSpan),n,i,!0,e.sourceSpan)}t.root.create.push(r)}function Md(t,e){for(let r of e)if(r instanceof ll)cat(t,r);else if(r instanceof ds)lat(t,r);else if(r instanceof pb)dat(t,r);else if(r instanceof Yg)q0e(t,r,null);else if(r instanceof lb)B0e(t,r,null);else if(r instanceof CM)fat(t,r);else if(r instanceof xM)pat(t,r);else if(r instanceof dy)hat(t,r);else if(r instanceof Fye)gat(t,r);else if(r instanceof fb)yat(t,r);else if(r instanceof CH)_at(t,r);else if(!(r instanceof VT))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function cat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ro||e.i18n instanceof Lp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=t.job.allocateXrefId(),[n,i]=ci(e.name),o=rtt(i,r,_0e(n),e.i18n instanceof Lp?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(o),Eat(t,o,e),H0e(o,e);let s=null;e.i18n instanceof ro&&(s=t.job.allocateXrefId(),t.create.push(p3(s,e.i18n,void 0,e.startSourceSpan))),Md(t,e.children);let a=itt(r,e.endSourceSpan??e.startSourceSpan);t.create.push(a),s!==null&&$.insertBefore(h3(s,e.endSourceSpan??e.startSourceSpan),a)}function lat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof ro||e.i18n instanceof Lp))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]=ci(e.tagName));let o=e.i18n instanceof Lp?e.i18n:void 0,s=_0e(i),a=n===null?"":Ftt(n,s),u=bat(e)?no.NgTemplate:no.Structural,c=c0e(r.xref,u,n,a,s,o,e.startSourceSpan,e.sourceSpan);t.create.push(c),Sat(t,c,e,u),H0e(c,e),Md(r,e.children);for(let{name:l,value:d}of e.variables)r.contextVariables.set(l,d!==""?d:"$implicit");if(u===no.NgTemplate&&e.i18n instanceof ro){let l=t.job.allocateXrefId();$.insertAfter(p3(l,e.i18n,void 0,e.startSourceSpan),r.create.head),$.insertBefore(h3(l,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function dat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Lp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=null;e.children.some(o=>!(o instanceof d3)&&(!(o instanceof Yg)||o.value.trim().length>0))&&(r=t.job.allocateView(t.xref),Md(r,e.children));let n=t.job.allocateXrefId(),i=ftt(n,e.selector,e.i18n,r?.xref??null,e.sourceSpan);for(let o of e.attributes){let s=Pd.securityContext(e.name,o.name,!0);t.update.push(my(i.xref,ve.Attribute,o.name,C(o.value),null,s,!0,!1,null,xd(o.i18n),o.sourceSpan))}t.create.push(i)}function q0e(t,e,r){t.create.push(f0e(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function B0e(t,e,r){let n=e.value;if(n instanceof Ao&&(n=n.ast),!(n instanceof Qw))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${n.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Cd))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let i=e.i18n instanceof Cd?e.i18n.children.filter(s=>s instanceof Iw).map(s=>s.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 o=t.job.allocateXrefId();t.create.push(f0e(o,"",r,e.sourceSpan)),t.update.push(Uet(o,new Jr(n.strings,n.expressions.map(s=>it(s,t.job,null)),i),e.sourceSpan))}function fat(t,e){let r=null,n=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],s=t.job.allocateView(t.xref),a=n3(t,s.xref,o);o.expressionAlias!==null&&s.contextVariables.set(o.expressionAlias.name,g0e);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Fp))throw Error(`Unhandled i18n metadata type for if block: ${o.i18n?.constructor.name}`);u=o.i18n}let l=(i===0?l0e:d0e)(s.xref,no.Block,a,"Conditional",fn.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(l),r===null&&(r=s.xref);let d=o.expression?it(o.expression,t.job,null):null,f=new BM(d,l.xref,l.handle,o.expressionAlias);n.push(f),Md(s,o.children)}t.update.push(s0e(r,null,n,e.sourceSpan))}function pat(t,e){if(e.groups.length===0)return;let r=null,n=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],s=t.job.allocateView(t.xref),a=n3(t,s.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof Fp))throw Error(`Unhandled i18n metadata type for switch block: ${o.i18n?.constructor.name}`);u=o.i18n}let l=(i===0?l0e:d0e)(s.xref,no.Block,a,"Case",fn.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(l),r===null&&(r=s.xref);for(let d of o.cases){let f=d.expression?it(d.expression,t.job,e.startSourceSpan):null,p=new BM(f,l.xref,l.handle);n.push(p)}Md(s,o.children)}t.update.push(s0e(r,it(e.expression,t.job,null),n,e.sourceSpan))}function KD(t,e,r,n,i){if(r!==void 0&&!(r instanceof Fp))throw Error("Unhandled i18n metadata type for defer block");if(n===void 0)return null;let o=t.job.allocateView(t.xref);Md(o,n);let s=c0e(o.xref,no.Block,null,`Defer${e}`,fn.HTML,r,i,i);return t.create.push(s),s}function hat(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=KD(t,"",e.i18n,e.children,e.sourceSpan),i=KD(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),o=KD(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),s=KD(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=ptt(a,n.xref,n.handle,r,t.job.allDeferrableDepsFn,e.sourceSpan);u.placeholderView=o?.xref??null,u.placeholderSlot=o?.handle??null,u.loadingSlot=i?.handle??null,u.errorSlot=s?.handle??null,u.placeholderMinimumTime=e.placeholder?.minimumTime??null,u.loadingMinimumTime=e.loading?.minimumTime??null,u.loadingAfterTime=e.loading?.afterTime??null,u.flags=mat(e),t.create.push(u);let c=[],l=[];UU("hydrate",e.hydrateTriggers,c,l,t,a),UU("none",e.triggers,c,l,t,a),UU("prefetch",e.prefetchTriggers,c,l,t,a),c.some(f=>f.modifier==="none")||l.some(f=>f.modifier==="none")||c.push(Ap(a,{kind:ir.Idle},"none",null)),t.create.push(c),t.update.push(l)}function mat(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function UU(t,e,r,n,i,o){if(e.idle!==void 0){let s=Ap(o,{kind:ir.Idle},t,e.idle.sourceSpan);r.push(s)}if(e.immediate!==void 0){let s=Ap(o,{kind:ir.Immediate},t,e.immediate.sourceSpan);r.push(s)}if(e.timer!==void 0){let s=Ap(o,{kind:ir.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(s)}if(e.hover!==void 0){let s=Ap(o,{kind:ir.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);r.push(s)}if(e.interaction!==void 0){let s=Ap(o,{kind:ir.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);r.push(s)}if(e.viewport!==void 0){let s=Ap(o,{kind:ir.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?it(e.viewport.options,i.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);r.push(s)}if(e.never!==void 0){let s=Ap(o,{kind:ir.Never},t,e.never.sourceSpan);r.push(s)}if(e.when!==void 0){if(e.when.value instanceof Qw)throw new Error("Unexpected interpolation in defer block when trigger");let s=Zet(o,it(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(s)}}function gat(t,e){if(e.i18n instanceof ro&&nat(e.i18n)){let r=t.job.allocateXrefId();t.create.push(gtt(r,e.i18n,Bye(e.i18n).name,null));for(let[n,i]of Object.entries({...e.vars,...e.placeholders}))i instanceof lb?B0e(t,i,n):q0e(t,i,n);t.create.push(ytt(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function yat(t,e){let r=t.job.allocateView(t.xref),n=`\u0275$index_${r.xref}`,i=`\u0275$count_${r.xref}`,o=new Set;r.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&o.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:Rn.Alias,name:null,identifier:_.name,expression:vat(_,n,i)});let s=Dn(e.trackBy.span,e.sourceSpan),a=it(e.trackBy,t.job,s);Md(r,e.children);let u=null,c=null;e.empty!==null&&(u=t.job.allocateView(t.xref),Md(u,e.empty.children),c=n3(t,u.xref,e.empty));let l={$index:o,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Fp))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Fp))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,f=e.empty?.i18n,p=n3(t,r.xref,e),m=ntt(r.xref,u?.xref??null,p,a,l,c,d,f,e.startSourceSpan,e.sourceSpan);t.create.push(m);let y=it(e.expression,t.job,Dn(e.expression.span,e.sourceSpan)),g=Yet(m.xref,m.handle,y,e.sourceSpan);t.update.push(g)}function vat(t,e,r){switch(t.value){case"$index":return new Qn(e);case"$count":return new Qn(r);case"$first":return new Qn(e).identical(C(0));case"$last":return new Qn(e).identical(new Qn(r).minus(C(1)));case"$even":return new Qn(e).modulo(C(2)).identical(C(0));case"$odd":return new Qn(e).modulo(C(2)).notIdentical(C(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function _at(t,e){let r=t.job.allocateXrefId();t.create.push(htt(r,e.name,e.sourceSpan)),t.update.push(Jet(r,e.name,it(e.value,t.job,e.valueSpan),e.sourceSpan))}function it(t,e,r){if(t instanceof Ao)return it(t.ast,e,r);if(t instanceof rl)return t.receiver instanceof cl?new Qn(t.name):new ps(it(t.receiver,e,r),t.name,null,Dn(t.span,r));if(t instanceof ub){if(t.receiver instanceof cl)throw new Error("Unexpected ImplicitReceiver");return new Oo(it(t.receiver,e,r),t.args.map(n=>it(n,e,r)),void 0,Dn(t.span,r))}else{if(t instanceof wo)return C(t.value,void 0,Dn(t.span,r));if(t instanceof J_)switch(t.operator){case"+":return new oy(rb.Plus,it(t.expr,e,r),void 0,Dn(t.span,r));case"-":return new oy(rb.Minus,it(t.expr,e,r),void 0,Dn(t.span,r));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Zi){let n=$tt.get(t.operation);if(n===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new wt(n,it(t.left,e,r),it(t.right,e,r),void 0,Dn(t.span,r))}else{if(t instanceof ow)return new Bp(e.root.xref);if(t instanceof cy)return new Nd(it(t.receiver,e,r),it(t.key,e,r),void 0,Dn(t.span,r));if(t instanceof ab)throw new Error("AssertionError: Chain in unknown context");if(t instanceof ly){let n=t.keys.map((i,o)=>{let s=it(t.values[o],e,r);return i.kind==="spread"?new Rp(s):new ob(i.key,s,i.quoted)});return new La(n,void 0,Dn(t.span,r))}else{if(t instanceof uw)return new ul(t.expressions.map(n=>it(n,e,r)));if(t instanceof mM)return new al(it(t.condition,e,r),it(t.trueExp,e,r),it(t.falseExp,e,r),void 0,Dn(t.span,r));if(t instanceof fw)return it(t.expression,e,r);if(t instanceof gM)return new yy(e.allocateXrefId(),new fi,t.name,[it(t.exp,e,r),...t.args.map(n=>it(n,e,r))]);if(t instanceof aw)return new yb(it(t.receiver,e,r),it(t.key,e,r),Dn(t.span,r));if(t instanceof sw)return new gb(it(t.receiver,e,r),t.name);if(t instanceof vM)return new vy(it(t.receiver,e,r),t.args.map(n=>it(n,e,r)));if(t instanceof Oi)return new Lw(Dn(t.span,r));if(t instanceof cw)return JXe(it(t.expression,e,r),Dn(t.span,r));if(t instanceof lw)return zw(it(t.expression,e,r));if(t instanceof dw)return new aM(it(t.expression,e,r),void 0,Dn(t.span,r));if(t instanceof hw)return uye(t,e,r);if(t instanceof pw)return new ZT(it(t.tag,e,r),uye(t.template,e,r),void 0,Dn(t.span,r));if(t instanceof mw)return new $a(it(t.expression,e,r),void 0,Dn(t.span,r));if(t instanceof EM)return new ib(t.body,t.flags,r);if(t instanceof yM)return new sy(it(t.expression,e,r));if(t instanceof bM)return wat(hs(t.parameters.map(n=>new In(n.name,Co)),it(t.body,e,r)));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function uye(t,e,r){return new JT(t.elements.map(n=>new uM(n.text,Dn(n.span,r))),t.expressions.map(n=>it(n,e,r)),Dn(t.span,r))}function aH(t,e,r,n){let i;return e instanceof Qw?i=new Jr(e.strings,e.expressions.map(o=>it(o,t,null)),Object.keys(xd(r)?.placeholders??{})):e instanceof pr?i=it(e,t,null):i=C(e),i}var U0e=new Map([[Ct.Property,ve.Property],[Ct.TwoWay,ve.TwoWayProperty],[Ct.Attribute,ve.Attribute],[Ct.Class,ve.ClassName],[Ct.Style,ve.StyleProperty],[Ct.LegacyAnimation,ve.LegacyAnimation],[Ct.Animation,ve.Animation]]);function bat(t){return ci(t.tagName??"")[1]===ry}function xd(t){if(t==null)return null;if(!(t instanceof ro))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function Eat(t,e,r){let n=new Array,i=new Set;for(let o of r.attributes){let[s,a]=ci(r.name),u=s;if(!s)switch(e.namespace){case fn.SVG:u=m3;break;case fn.Math:u=g3;break}let c=Pd.securityContext(u?`:${u}:${a}`:a,o.name,!0);n.push(my(e.xref,ve.Attribute,o.name,aH(t.job,o.value,o.i18n),null,c,!0,!1,null,xd(o.i18n),o.sourceSpan)),o.i18n&&i.add(o.name)}for(let o of r.inputs)i.has(o.name)&&console.error(`On component ${t.job.componentName}, the binding ${o.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(my(e.xref,U0e.get(o.type),o.name,aH(t.job,Gw(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,xd(o.i18n)??null,o.sourceSpan));t.create.push(n.filter(o=>o?.kind===v.ExtractedAttribute)),t.update.push(n.filter(o=>o?.kind===v.Binding));for(let o of r.outputs){if(o.type===Di.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===Di.TwoWay?t.create.push(h0e(e.xref,e.handle,o.name,e.tag,V0e(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===Di.Animation?t.create.push(p0e(e.xref,e.handle,o.name,e.tag,Hw(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(FH(e.xref,e.handle,o.name,e.tag,Hw(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))}n.some(o=>o?.i18nMessage)!==null&&t.create.push(m0e(t.job.allocateXrefId(),new fi,e.xref))}function Sat(t,e,r,n){let i=new Array;for(let o of r.templateAttrs)if(o instanceof db){let s=Pd.securityContext(ry,o.name,!0);i.push(zD(t,e.xref,Ct.Attribute,o.name,o.value,null,s,!0,n,xd(o.i18n),o.sourceSpan))}else i.push(zD(t,e.xref,o.type,o.name,Gw(o.value),o.unit,o.securityContext,!0,n,xd(o.i18n),o.sourceSpan));for(let o of r.attributes){let s=Pd.securityContext(ry,o.name,!0);i.push(zD(t,e.xref,Ct.Attribute,o.name,o.value,null,s,!1,n,xd(o.i18n),o.sourceSpan))}for(let o of r.inputs)i.push(zD(t,e.xref,o.type,o.name,Gw(o.value),o.unit,o.securityContext,!1,n,xd(o.i18n),o.sourceSpan));t.create.push(i.filter(o=>o?.kind===v.ExtractedAttribute)),t.update.push(i.filter(o=>o?.kind===v.Binding));for(let o of r.outputs){if(o.type===Di.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");if(n===no.NgTemplate&&(o.type===Di.TwoWay?t.create.push(h0e(e.xref,e.handle,o.name,e.tag,V0e(t,o.handler,o.handlerSpan),o.sourceSpan)):t.create.push(FH(e.xref,e.handle,o.name,e.tag,Hw(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))),n===no.Structural&&o.type!==Di.LegacyAnimation){let s=Pd.securityContext(ry,o.name,!1);t.create.push(Ks(e.xref,ve.Property,null,o.name,null,null,null,s))}}i.some(o=>o?.i18nMessage)!==null&&t.create.push(m0e(t.job.allocateXrefId(),new fi,e.xref))}function zD(t,e,r,n,i,o,s,a,u,c,l){let d=typeof i=="string";if(u===no.Structural){if(!a)switch(r){case Ct.Property:case Ct.Class:case Ct.Style:return Ks(e,ve.Property,null,n,null,null,c,s);case Ct.TwoWay:return Ks(e,ve.TwoWayProperty,null,n,null,null,c,s)}if(!d&&(r===Ct.Attribute||r===Ct.LegacyAnimation||r===Ct.Animation))return null}let f=U0e.get(r);return u===no.NgTemplate&&(r===Ct.Class||r===Ct.Style||r===Ct.Attribute&&!d)&&(f=ve.Property),my(e,f,n,aH(t.job,i,c),o,s,d,a,u,c,l)}function Hw(t,e,r){e=Gw(e);let n=new Array,i=e instanceof ab?e.expressions:[e];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let o=i.map(a=>it(a,t.job,r)),s=o.pop();return n.push(...o.map(a=>gs(new di(a,a.sourceSpan)))),n.push(gs(new An(s,s.sourceSpan))),n}function V0e(t,e,r){e=Gw(e);let n=new Array;if(e instanceof ab)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=it(e,t.job,r),o=new Qn("$event"),s=new jM(i,o);return n.push(gs(new di(s))),n.push(gs(new An(o))),n}function Gw(t){return t instanceof Ao?t.ast:t}function H0e(t,e){Tat(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function Tat(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function Dn(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 Le(r,n,i)}function n3(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof d3||i instanceof CH)){if(n!==null)return null;if(i instanceof ll||i instanceof ds&&i.tagName!==null)n=i;else return null}if(n!==null){for(let o of n.attributes)if(!o.name.startsWith(rat)){let s=Pd.securityContext(ry,o.name,!0);t.update.push(my(e,ve.Attribute,o.name,C(o.value),null,s,!0,!1,null,xd(o.i18n),o.sourceSpan))}for(let o of n.inputs)if(o.type!==Ct.LegacyAnimation&&o.type!==Ct.Animation&&o.type!==Ct.Attribute){let s=Pd.securityContext(ry,o.name,!0);t.create.push(Ks(e,ve.Property,null,o.name,null,null,null,s))}let i=n instanceof ll?n.name:n.tagName;return i===ry?null:i}return null}function wat(t){let e=new Set(t.params.map(r=>r.name));return pe(t,r=>{if(r instanceof by)for(let n of r.params)e.add(n.name);else if(r instanceof Qn&&e.has(r.name))return pt(r.name);return r},ot.None)}var Iat=!1;function Aat(){return Iat}function i3(t,e){return c3(pt(Sb).bitwiseAnd(C(t),null),e)}function xat(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function Cat(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(o=>C(o.trim()));r.push(...i)}),e.getConstLiteral(or(r),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return me(T.resolveForwardRef).callFn([t.predicate.expression])}}function G0e(t,e,r){let n=[];return r!==void 0&&n.push(...r),t.isSignal&&n.push(new ps(pt(ms),t.propertyName)),n.push(Cat(t,e),C(xat(t))),t.read&&n.push(t.read),n}var UH=Symbol("queryAdvancePlaceholder");function W0e(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(me(T.queryAdvance).callFn(r===1?[]:[C(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let o=t[i];o===UH?r++:(n(),e.unshift(o))}return n(),e}function Oat(t,e,r){let n=[],i=[],o=Uye(c=>i.push(c),PH),s=null,a=null;t.forEach(c=>{let l=G0e(c,e);if(c.isSignal?(s??=me(T.viewQuerySignal),s=s.callFn(l)):(a??=me(T.viewQuery),a=a.callFn(l)),c.isSignal){i.push(UH);return}let d=o(),f=me(T.loadQuery).callFn([]),p=me(T.queryRefresh).callFn([d.set(f)]),m=pt(ms).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}),s!==null&&n.push(new di(s)),a!==null&&n.push(new di(a));let u=r?`${r}_Query`:null;return kp([new In(Sb,ny),new In(ms,Co)],[i3(1,n),i3(2,W0e(i))],Ra,null,u)}function Pat(t,e,r){let n=[],i=[],o=Uye(c=>i.push(c),PH),s=null,a=null;for(let c of t){let l=G0e(c,e,[pt("dirIndex")]);if(c.isSignal?(s??=me(T.contentQuerySignal),s=s.callFn(l)):(a??=me(T.contentQuery),a=a.callFn(l)),c.isSignal){i.push(UH);continue}let d=o(),f=me(T.loadQuery).callFn([]),p=me(T.queryRefresh).callFn([d.set(f)]),m=pt(ms).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}s!==null&&n.push(new di(s)),a!==null&&n.push(new di(a));let u=r?`${r}_ContentQueries`:null;return kp([new In(Sb,ny),new In(ms,Co),new In("dirIndex",ny)],[i3(1,n),i3(2,W0e(i))],Ra,null,u)}var uH=class extends jrt{constructor(){super(XV)}parse(e,r,n){return super.parse(e,r,n)}};function Nat(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(Dat);return e===null||e[1]=="package"||e[1]=="asset"}var Dat=/^([^:/?#]+):/,Mat="select",Rat="link",kat="rel",$at="href",Lat="stylesheet",Fat="style",jat=new Set([":svg:script","script"]),qat="ngNonBindable",Bat="ngProjectAs";function K0e(t){let e=null,r=null,n=null,i=!1,o="";for(let u of t.attrs){let c=u.name.toLowerCase();c==Mat?e=u.value:c==$at?r=u.value:c==kat?n=u.value:u.name==qat?i=!0:u.name==Bat&&u.value.length>0&&(o=u.value)}e||="*";let s=t.name.toLowerCase(),a=xo.OTHER;return lV(s)?a=xo.NG_CONTENT:Fat===s?a=xo.STYLE:jat.has(s)?a=xo.SCRIPT:s==Rat&&n==Lat&&(a=xo.STYLESHEET),new cH(a,e,r,i,o)}var xo;(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"})(xo||(xo={}));var cH=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,r,n,i,o){this.type=e,this.selectAttr=r,this.hrefAttr=n,this.nonBindable=i,this.projectAs=o}},Uat=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Vat=/^track\s+([\S\s]*)/,Hat=/^(as\s+)(.*)/,v3=/^else[^\S\r\n]+if/,Gat=/^let\s+([\S\s]*)/,Wat=/^[$A-Z_][0-9A-Z_$]*$/i,cye=/(\s*)(\S+)(\s*)/,YT=new Set(["$index","$first","$last","$even","$odd","$count"]);function lye(t){return t==="empty"}function dye(t){return t==="else"||v3.test(t)}function Kat(t,e,r,n){let i=Jat(e),o=[],s=fye(t,i,n);s!==null&&o.push(new Xg(s.expression,Ir(r,t.children,t.children),s.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(v3.test(d.name)){let f=fye(d,i,n);if(f!==null){let p=Ir(r,d.children,d.children);o.push(new Xg(f.expression,p,f.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let f=Ir(r,d.children,d.children);o.push(new Xg(null,f,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=o.length>0?o[0].startSourceSpan:t.startSourceSpan,u=o.length>0?o[o.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,l=o[o.length-1];return l!==void 0&&(c=new Le(a.start,l.sourceSpan.end)),{node:new CM(o,c,t.startSourceSpan,u,t.nameSpan),errors:i}}function zat(t,e,r,n){let i=[],o=Yat(t,i,n),s=null,a=null;for(let u of e)u.name==="empty"?a!==null?i.push(new Pe(u.sourceSpan,"@for loop can only have one @empty block")):u.parameters.length>0?i.push(new Pe(u.sourceSpan,"@empty block cannot have parameters")):a=new Sw(Ir(r,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n):i.push(new Pe(u.sourceSpan,`Unrecognized @for loop block "${u.name}"`));if(o!==null)if(o.trackBy===null)i.push(new Pe(t.startSourceSpan,'@for loop must have a "track" expression'));else{let u=a?.endSourceSpan??t.endSourceSpan,c=new Le(t.sourceSpan.start,u?.end??t.sourceSpan.end);Zat(o.trackBy.expression,o.trackBy.keywordSpan,i),s=new fb(o.itemName,o.expression,o.trackBy.expression,o.trackBy.keywordSpan,o.context,Ir(r,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,u,t.nameSpan,t.i18n)}return{node:s,errors:i}}function Qat(t,e,r){let n=eut(t),i=t.parameters.length>0?Ww(t.parameters[0],r):r.parseBinding("",!1,t.sourceSpan,0),o=[],s=[],a=[],u=null,c=null;for(let d of t.children){if(!(d instanceof Gs))continue;if((d.name!=="case"||d.parameters.length===0)&&d.name!=="default"&&d.name!=="default never"){s.push(new OM(d.name,d.sourceSpan,d.nameSpan));continue}c!==null&&n.push(new Pe(d.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let f=d.name==="case",p=null;if(f)p=Ww(d.parameters[0],r);else if(d.name==="default never"){(d.children.length>0||d.endSourceSpan!==null&&d.endSourceSpan.start.offset!==d.endSourceSpan.end.offset)&&n.push(new Pe(d.sourceSpan,'@default block with "never" parameter cannot have a body')),a.length>0&&n.push(new Pe(d.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),c=new _V(d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);continue}let m=new vV(p,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);if(a.push(m),d.children.length===0&&d.endSourceSpan!==null&&d.endSourceSpan.start.offset===d.endSourceSpan.end.offset){u===null&&(u=d.sourceSpan);continue}let g=d.sourceSpan,_=d.startSourceSpan;u!==null&&(g=new Le(u.start,d.sourceSpan.end),_=new Le(u.start,d.startSourceSpan.end),u=null);let b=new Ew(a,Ir(e,d.children,d.children),g,_,d.endSourceSpan,d.nameSpan,d.i18n);o.push(b),a=[]}return{node:new xM(i,o,s,c,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function Yat(t,e,r){if(t.parameters.length===0)return e.push(new Pe(t.startSourceSpan,"@for loop does not have an expression")),null;let[n,...i]=t.parameters,o=tut(n,e)?.match(Uat);if(!o||o[2].trim().length===0)return e.push(new Pe(n.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,s,a]=o;YT.has(s)&&e.push(new Pe(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(YT).join(", ")}.`));let u=n.expression.split(" ")[0],c=new Le(n.sourceSpan.start,n.sourceSpan.start.moveBy(u.length)),l={itemName:new $p(s,"$implicit",c,c),trackBy:null,expression:Ww(n,r,a),context:Array.from(YT,d=>{let f=new Le(t.startSourceSpan.end,t.startSourceSpan.end);return new $p(d,d,f,f)})};for(let d of i){let f=d.expression.match(Gat);if(f!==null){let m=new Le(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);Xat(d.sourceSpan,f[1],m,s,l.context,e);continue}let p=d.expression.match(Vat);if(p!==null){if(l.trackBy!==null)e.push(new Pe(d.sourceSpan,'@for loop can only have one "track" expression'));else{let m=Ww(d,r,p[1]);m.ast instanceof Oi&&e.push(new Pe(t.startSourceSpan,'@for loop must have a "track" expression'));let y=new Le(d.sourceSpan.start,d.sourceSpan.start.moveBy(5));l.trackBy={expression:m,keywordSpan:y}}continue}e.push(new Pe(d.sourceSpan,`Unrecognized @for loop parameter "${d.expression}"`))}return l}function Zat(t,e,r){let n=new lH;t.ast.visit(n),n.hasPipe&&r.push(new Pe(e,"Cannot use pipes in track expressions"))}function Xat(t,e,r,n,i,o){let s=e.split(","),a=r.start;for(let u of s){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)o.push(new Pe(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!YT.has(d))o.push(new Pe(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(YT).join(", ")}`));else if(l===n)o.push(new Pe(t,`Invalid @for loop "let" parameter. Variable cannot be called "${n}"`));else if(i.some(f=>f.name===l))o.push(new Pe(t,`Duplicate "let" parameter variable "${d}"`));else{let[,f,p]=c[0].match(cye)??[],m=f!==void 0&&c.length===2?new Le(a.moveBy(f.length),a.moveBy(f.length+p.length)):r,y;if(c.length===2){let[,_,b]=c[1].match(cye)??[];y=_!==void 0?new Le(a.moveBy(c[0].length+1+_.length),a.moveBy(c[0].length+1+_.length+b.length)):void 0}let g=new Le(m.start,y?.end??m.end);i.push(new $p(l,d,g,m,y))}a=a.moveBy(u.length+1)}}function Jat(t){let e=[],r=!1;for(let n=0;n<t.length;n++){let i=t[n];i.name==="else"?(r?e.push(new Pe(i.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&n<t.length-1?e.push(new Pe(i.startSourceSpan,"@else block must be last inside the conditional")):i.parameters.length>0&&e.push(new Pe(i.startSourceSpan,"@else block cannot have parameters")),r=!0):v3.test(i.name)||e.push(new Pe(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function eut(t){let e=[],r=!1;if(t.parameters.length!==1)return e.push(new Pe(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let n of t.children)if(!(n instanceof qw||n instanceof _y&&n.value.trim().length===0)){if(!(n instanceof Gs)||n.name!=="case"&&n.name!=="default"&&n.name!=="default never"){e.push(new Pe(n.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}n.name==="default never"?(r&&e.push(new Pe(n.startSourceSpan,"@switch block can only have one @default block")),r=!0):n.name==="default"?(r?e.push(new Pe(n.startSourceSpan,"@switch block can only have one @default block")):n.parameters.length>0&&e.push(new Pe(n.startSourceSpan,"@default block cannot have parameters")),r=!0):n.name==="case"&&n.parameters.length!==1&&e.push(new Pe(n.startSourceSpan,"@case block must have exactly one parameter"))}return e}function Ww(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 fye(t,e,r){if(t.parameters.length===0)return e.push(new Pe(t.startSourceSpan,"Conditional block does not have an expression")),null;let n=Ww(t.parameters[0],r),i=null;for(let o=1;o<t.parameters.length;o++){let s=t.parameters[o],a=s.expression.match(Hat);if(a===null)e.push(new Pe(s.sourceSpan,`Unrecognized conditional parameter "${s.expression}"`));else if(t.name!=="if"&&!v3.test(t.name))e.push(new Pe(s.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(i!==null)e.push(new Pe(s.sourceSpan,'Conditional can only have one "as" expression'));else{let u=a[2].trim();if(Wat.test(u)){let c=s.sourceSpan.start.moveBy(a[1].length),l=new Le(c,c.moveBy(u.length));i=new $p(u,u,l,l)}else e.push(new Pe(s.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:n,expressionAlias:i}}function tut(t,e){let r=t.expression,n=/^\s$/,i=0,o=0,s=r.length-1;for(let a=0;a<r.length;a++){let u=r[a];if(u==="(")o=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(s=a,i--,i===0)break}else{if(n.test(u))continue;break}}return i!==0?(e.push(new Pe(t.sourceSpan,"Unclosed parentheses in expression")),null):r.slice(o,s)}var lH=class extends cb{hasPipe=!1;visitPipe(){this.hasPipe=!0}},rut=/^\d+\.?\d*(ms|s)?$/,nut=/^\s$/,pye=new Map([[Ws,eo],[nl,wd],[to,Tn]]),Ni;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Ni||(Ni={}));function iut({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),o=new Le(e.start.moveBy(i),e.start.moveBy(i+5)),s=VH(t,e),a=HH(t,e);i===-1?n.push(new Pe(e,'Could not find "never" keyword in expression')):GH("never",r,n,new hV(o,e,s,null,a))}function VU({expression:t,sourceSpan:e},r,n,i){let o=t.indexOf("when"),s=new Le(e.start.moveBy(o),e.start.moveBy(o+4)),a=VH(t,e),u=HH(t,e);if(o===-1)i.push(new Pe(e,'Could not find "when" keyword in expression'));else{let c=Kw(t,o+1),l=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);GH("when",n,i,new wM(l,e,a,s,u))}}function HU({expression:t,sourceSpan:e},r,n,i,o){let s=t.indexOf("on"),a=new Le(e.start.moveBy(s),e.start.moveBy(s+2)),u=VH(t,e),c=HH(t,e);if(s===-1)i.push(new Pe(e,'Could not find "on" keyword in expression'));else{let l=Kw(t,s+1),d=t.startsWith("hydrate");new dH(t,r,l,e,n,i,d?fut:dut,d,u,a,c).parse()}}function VH(t,e){return t.startsWith("prefetch")?new Le(e.start,e.start.moveBy(8)):null}function HH(t,e){return t.startsWith("hydrate")?new Le(e.start,e.start.moveBy(7)):null}var dH=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,r,n,i,o,s,a,u,c,l,d){this.expression=e,this.bindingParser=r,this.start=n,this.span=i,this.triggers=o,this.errors=s,this.validator=a,this.isHydrationTrigger=u,this.prefetchSpan=c,this.onSourceSpan=l,this.hydrateSpan=d,this.tokens=new Vw().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(Pi))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(to)){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 Le(n,n.moveBy(e.strValue.length)),o=n.moveBy(this.token().end-e.index),s=e.index===0,a=s?this.onSourceSpan:null,u=s?this.prefetchSpan:null,c=s?this.hydrateSpan:null,l=new Le(s?this.span.start:n,o);try{switch(e.toString()){case Ni.IDLE:this.trackTrigger("idle",out(r,i,l,u,a,c));break;case Ni.TIMER:this.trackTrigger("timer",sut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ni.INTERACTION:this.trackTrigger("interaction",cut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ni.IMMEDIATE:this.trackTrigger("immediate",aut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ni.HOVER:this.trackTrigger("hover",uut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ni.VIEWPORT:this.trackTrigger("viewport",lut(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(to))return this.unexpectedToken(this.token()),e;this.advance();let r=[],n=[];for(;this.index<this.tokens.length;){let i=this.token();if(i.isCharacter(Tn)&&r.length===0){n.length&&e.push({expression:this.tokenRangeText(n),start:n[0].index});break}if(i.type===Re.Character&&pye.has(i.numValue)&&r.push(pye.get(i.numValue)),r.length>0&&i.isCharacter(r[r.length-1])&&r.pop(),r.length===0&&i.isCharacter(Pi)&&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(Tn)||r.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Pi)&&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){GH(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 Pe(new Le(n,i),r))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function GH(t,e,r,n){e[t]?r.push(new Pe(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function out(t,e,r,n,i,o){if(t.length>0)throw new Error(`"${Ni.IDLE}" trigger cannot have parameters`);return new mV(e,r,n,i,o)}function sut(t,e,r,n,i,o){if(t.length!==1)throw new Error(`"${Ni.TIMER}" trigger must have exactly one parameter`);let s=o3(t[0].expression);if(s===null)throw new Error(`Could not parse time value of trigger "${Ni.TIMER}"`);return new yV(s,e,r,n,i,o)}function aut(t,e,r,n,i,o){if(t.length>0)throw new Error(`"${Ni.IMMEDIATE}" trigger cannot have parameters`);return new gV(e,r,n,i,o)}function uut(t,e,r,n,i,o,s){return s(Ni.HOVER,t),new IM(t[0]?.expression??null,e,r,n,i,o)}function cut(t,e,r,n,i,o,s){return s(Ni.INTERACTION,t),new AM(t[0]?.expression??null,e,r,n,i,o)}function lut(t,e,r,n,i,o,s,a,u,c){c(Ni.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,o,o.start.offset+t+n[0].start);if(f.ast instanceof ly){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],y=(g,_)=>_!==p;if(!(m instanceof rl)||!(m.receiver instanceof cl))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');l=m.name,d=new ly(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(y),f.ast.values.filter(y))}}if(e&&l!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let f=fH.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 yw(l,d,i,o,s,a,u)}function dut(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function fut(t,e){if(t===Ni.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 Kw(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(nut.test(t[n]))r=!0;else if(r)return n;return-1}function o3(t){let e=t.match(rut);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var fH=class t extends cb{dynamicNode=null;static findDynamicNode(e){let r=new t;return r.visit(e),r.dynamicNode}visit(e){!(e instanceof Ao)&&!(e instanceof wo)&&!(e instanceof uw)&&!(e instanceof ly)?this.dynamicNode=e:super.visit(e)}},put=/^prefetch\s+when\s/,hut=/^prefetch\s+on\s/,mut=/^hydrate\s+when\s/,gut=/^hydrate\s+on\s/,yut=/^hydrate\s+never(\s*)$/,z0e=/^minimum\s/,vut=/^after\s/,_ut=/^when\s/,but=/^on\s/;function pH(t){return t==="placeholder"||t==="loading"||t==="error"}function Eut(t,e,r,n){let i=[],{placeholder:o,loading:s,error:a}=Sut(e,i,r),{triggers:u,prefetchTriggers:c,hydrateTriggers:l}=Aut(t,n,i),d=t.endSourceSpan,f=t.sourceSpan.end;if(e.length>0){let y=e[e.length-1];d=y.endSourceSpan,f=y.sourceSpan.end}let p=new Le(t.sourceSpan.start,f);return{node:new dy(Ir(r,t.children,t.children),u,c,l,o,s,a,t.nameSpan,p,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:i}}function Sut(t,e,r){let n=null,i=null,o=null;for(let s of t)try{if(!pH(s.name)){e.push(new Pe(s.startSourceSpan,`Unrecognized block "@${s.name}"`));break}switch(s.name){case"placeholder":n!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @placeholder block")):n=Tut(s,r);break;case"loading":i!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @loading block")):i=wut(s,r);break;case"error":o!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @error block")):o=Iut(s,r);break}}catch(a){e.push(new Pe(s.startSourceSpan,a.message))}return{placeholder:n,loading:i,error:o}}function Tut(t,e){let r=null;for(let n of t.parameters)if(z0e.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=o3(n.expression.slice(Kw(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 vw(Ir(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function wut(t,e){let r=null,n=null;for(let i of t.parameters)if(vut.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let o=o3(i.expression.slice(Kw(i.expression)));if(o===null)throw new Error('Could not parse time value of parameter "after"');r=o}else if(z0e.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let o=o3(i.expression.slice(Kw(i.expression)));if(o===null)throw new Error('Could not parse time value of parameter "minimum"');n=o}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new _w(Ir(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Iut(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new bw(Ir(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Aut(t,e,r,n){let i={},o={},s={};for(let a of t.parameters)_ut.test(a.expression)?VU(a,e,i,r):but.test(a.expression)?HU(a,e,i,r):put.test(a.expression)?VU(a,e,o,r):hut.test(a.expression)?HU(a,e,o,r):mut.test(a.expression)?VU(a,e,s,r):gut.test(a.expression)?HU(a,e,s,r):yut.test(a.expression)?iut(a,s,r):r.push(new Pe(a.sourceSpan,"Unrecognized trigger"));return s.never&&Object.keys(s).length>1&&r.push(new Pe(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:o,hydrateTriggers:s}}var xut=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,hye=1,mye=2,gye=3,yye=4,vye=5,Cut=6,$T=7,Ip={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},GU="*",Out=new Set(["link","style","script","ng-template","ng-container","ng-content"]),Put=new Set(["ngProjectAs","ngNonBindable"]);function Nut(t,e,r){let n=new hH(e,r),i=Ir(n,t,t),o=e.errors.concat(n.errors),s={nodes:i,errors:o,styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return r.collectCommentNodes&&(s.commentNodes=n.commentNodes),s}var hH=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=JD(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=K0e(e);if(n.type===xo.SCRIPT)return null;if(n.type===xo.STYLE){let _=Dut(e);return _!==null&&this.styles.push(_),null}else if(n.type===xo.STYLESHEET&&Nat(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=PJe(e.name),{attributes:o,boundEvents:s,references:a,variables:u,templateVariables:c,elementHasInlineTemplate:l,parsedProperties:d,templateParsedProperties:f,i18nAttrsMeta:p}=this.prepareAttributes(e.attrs,i),m=this.extractDirectives(e),y;n.nonBindable?y=Ir(_ye,e.children).flat(1/0):y=Ir(this,e.children,e.children);let g;if(n.type===xo.NG_CONTENT){let _=n.selectAttr,b=e.attrs.map(S=>this.visitAttribute(S));g=new pb(_,b,y,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(_)}else if(i){let _=this.categorizePropertyAttributes(e.name,d,p);g=new ds(e.name,o,_.bound,s,m,[],y,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===Ct.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",b.sourceSpan);g=new ll(e.name,o,_.bound,s,m,y,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return l&&(g=this.wrapInTemplate(g,f,c,p,i,r)),r&&(this.inI18nBlock=!1),g}visitAttribute(e){return new db(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(!JD(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(o=>{let s=r.placeholders[o];if(o.startsWith(RJe)){let a=o.trim(),u=this.bindingParser.parseInterpolationExpression(s.text,s.sourceSpan);n[a]=new lb(u,s.sourceSpan)}else i[o]=this._visitTextWithInterpolation(s.text,s.sourceSpan,null)}),new Fye(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new d3(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 Oi&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new CH(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=JD(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&&Out.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:o,templateVariables:s,elementHasInlineTemplate:a,parsedProperties:u,templateParsedProperties:c,i18nAttrsMeta:l}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(o);let d=this.extractDirectives(e),f;e.attrs.find(y=>y.name==="ngNonBindable")?f=Ir(_ye,e.children).flat(1/0):f=Ir(this,e.children,e.children);let p=this.categorizePropertyAttributes(e.tagName,u,l),m=new VT(e.componentName,e.tagName,e.fullName,n,p.bound,i,d,f,o,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(m=this.wrapInTemplate(m,c,s,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=Eut(e,this.findConnectedBlocks(n,r,pH),this,this.bindingParser);break;case"switch":i=Qat(e,this,this.bindingParser);break;case"for":i=zat(e,this.findConnectedBlocks(n,r,lye),this,this.bindingParser);break;case"if":i=Kat(e,this.findConnectedBlocks(n,r,dye),this,this.bindingParser);break;default:let o;pH(e.name)?(o=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):lye(e.name)?(o=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):dye(e.name)?(o=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):o=`Unrecognized block @${e.name}.`,i={node:new OM(e.name,e.sourceSpan,e.nameSpan),errors:[new Pe(e.sourceSpan,o)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(e,r,n){let i=[];for(let o=e+1;o<r.length;o++){let s=r[o];if(!(s instanceof qw)){if(s instanceof _y&&s.value.trim().length===0){this.processedNodes.add(s);continue}if(!(s instanceof Gs)||!n(s.name))break;i.push(s),this.processedNodes.add(s)}}return i}categorizePropertyAttributes(e,r,n){let i=[],o=[];return r.forEach(s=>{let a=n[s.name];if(s.isLiteral)o.push(new db(s.name,s.expression.source||"",s.sourceSpan,s.keySpan,s.valueSpan,a));else{let u=s.name.toLowerCase().startsWith("attr.on"),c=this.bindingParser.createBoundElementProperty(e,s,!u,!1);i.push(fV.fromBoundElementProperty(c,a))}}),{bound:i,literal:o}}prepareAttributes(e,r){let n=[],i=[],o=[],s=[],a=[],u={},c=[],l=[],d=!1;for(let f of e){let p=!1,m=bye(f.name),y=!1;if(f.i18n&&(u[f.name]=f.i18n),m.startsWith(GU)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.sourceSpan),y=!0,d=!0;let g=f.value,_=m.substring(GU.length),b=[],S=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(_,g,f.sourceSpan,S,[],c,b,!0),l.push(...b.map(x=>new $p(x.name,x.value,x.sourceSpan,x.keySpan,x.valueSpan)))}else p=this.parseAttribute(r,f,[],n,i,o,s);!p&&!y&&a.push(this.visitAttribute(f))}return{attributes:a,boundEvents:i,references:s,variables:o,templateVariables:l,elementHasInlineTemplate:d,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:u}}parseAttribute(e,r,n,i,o,s,a){let u=bye(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,N=_.start.moveBy(b.length+x),z=N.moveBy(S.length);return new Le(N,z,N,S)}let p=u.match(xut);if(p){if(p[hye]!=null){let _=p[$T],b=f(l,p[hye],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b)}else if(p[mye])if(e){let _=p[$T],b=f(l,p[mye],_);this.parseVariable(_,c,l,b,r.valueSpan,s)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(p[gye]){let _=p[$T],b=f(l,p[gye],_);this.parseReference(_,c,l,b,r.valueSpan,a)}else if(p[yye]){let _=[],b=p[$T],S=f(l,p[yye],b);this.bindingParser.parseEvent(b,c,!1,l,r.valueSpan||l,n,_,S),WU(_,o)}else if(p[vye]){let _=p[$T],b=f(l,p[vye],_);this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,o,b,d)}else if(p[Cut]){let _=f(l,"",u);this.bindingParser.parseLiteralAttr(u,c,l,d,r.valueSpan,n,i,_)}return!0}let m=null;if(u.startsWith(Ip.BANANA_BOX.start)?m=Ip.BANANA_BOX:u.startsWith(Ip.PROPERTY.start)?m=Ip.PROPERTY:u.startsWith(Ip.EVENT.start)&&(m=Ip.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===Ip.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,o,b,d);else if(m.start===Ip.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),WU(S,o)}return!0}let y=f(l,"",u);return this.bindingParser.parsePropertyInterpolation(u,c,l,r.valueSpan,n,i,y,r.valueTokens??null)}extractDirectives(e){let r=e instanceof Xi?e.tagName:e.name,n=[],i=new Set;for(let o of e.directives){let s=!1;for(let p of o.attrs)p.name.startsWith(GU)?(s=!0,this.reportError(`Shorthand template syntax "${p.name}" is not supported inside a directive context`,p.sourceSpan)):Put.has(p.name)&&(s=!0,this.reportError(`Attribute "${p.name}" is not supported in a directive context`,p.sourceSpan));if(!s&&i.has(o.name)&&(s=!0,this.reportError(`Cannot apply directive "${o.name}" multiple times on the same element`,o.sourceSpan)),s)continue;let{attributes:a,parsedProperties:u,boundEvents:c,references:l,i18nAttrsMeta:d}=this.prepareAttributes(o.attrs,!1);this.validateSelectorlessReferences(l);let{bound:f}=this.categorizePropertyAttributes(r,u,d);for(let p of f)p.type!==Ct.Property&&p.type!==Ct.TwoWay&&(s=!0,this.reportError("Binding is not supported in a directive context",p.sourceSpan));s||(i.add(o.name),n.push(new Lye(o.name,a,f,c,l,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(r=>!r.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(r=>r.type!==Ct.Animation)}wrapInTemplate(e,r,n,i,o,s){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 ll||e instanceof VT)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let l=o&&s?void 0:e.i18n,d;return e instanceof VT?d=e.tagName:e instanceof ds?d=null:d=e.name,new ds(d,c.attributes,c.inputs,c.outputs,[],u,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,l)}_visitTextWithInterpolation(e,r,n,i){let o=I0e(e),s=this.bindingParser.parseInterpolation(o,r,n);return s?new lb(s,r,i):new Yg(o,r)}parseVariable(e,r,n,i,o,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),s.push(new $p(e,r,n,i,o))}parseReference(e,r,n,i,o,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):s.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),s.push(new Tw(e,r,n,i,o))}parseAssignmentEvent(e,r,n,i,o,s,a,u){let c=[];this.bindingParser.parseEvent(`${e}Change`,r,!0,n,i||n,o,c,a),WU(c,s)}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=Id.ERROR){this.errors.push(new Pe(r,e,n))}},mH=class{visitElement(e){let r=K0e(e);if(r.type===xo.SCRIPT||r.type===xo.STYLE||r.type===xo.STYLESHEET)return null;let n=Ir(this,e.children,null);return new ll(e.name,Ir(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new db(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Yg(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,r){let n=[new Yg(e.startSourceSpan.toString(),e.startSourceSpan),...Ir(this,e.children)];return e.endSourceSpan!==null&&n.push(new Yg(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,r){return null}visitLetDeclaration(e,r){return new Yg(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,r){let n=Ir(this,e.children,null);return new ll(e.fullName,Ir(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,r){return null}},_ye=new mH;function bye(t){return/^data-/i.test(t)?t.substring(5):t}function WU(t,e){e.push(...t.map(r=>pV.fromParsedEvent(r)))}function Dut(t){return t.children.length!==1||!(t.children[0]instanceof _y)?null:t.children[0].value}var Mut=[" ",`
|
|
264
264
|
`,"\r"," "];function Rut(t,e,r={}){let{preserveWhitespaces:n,enableI18nLegacyMessageIdFormat:i}=r,o=r.enableSelectorless??!1,s=s3(o),u=new uH().parse(t,e,{leadingTriviaChars:Mut,...r,tokenizeExpansionForms:!0,tokenizeBlocks:r.enableBlockSyntax??!0,tokenizeLet:r.enableLetSyntax??!0,selectorlessEnabled:o});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 e3(!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=Ir(new XM(!0,void 0,!1),c),d.hasI18nMeta&&(c=Ir(new e3(!1,void 0,!0,l),c)));let{nodes:p,errors:m,styleUrls:y,styles:g,ngContentSelectors:_,commentNodes:b}=Nut(c,s,{collectCommentNodes:!!r.collectCommentNodes});m.push(...u.errors,...f.errors);let S={preserveWhitespaces:n,errors:m.length>0?m:null,nodes:p,styleUrls:y,styles:g,ngContentSelectors:_};return r.collectCommentNodes&&(S.commentNodes=b),S}var kut=new bb;function s3(t=!1){return new oH(new JM(new Vw,t),kut,[])}var Q0e="%COMP%",$ut=`_nghost-${Q0e}`,Lut=`_ngcontent-${Q0e}`;function Y0e(t,e,r){let n=new jp,i=IH(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",K_(i)),t.queries.length>0&&n.set("contentQueries",Pat(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",Oat(t.viewQueries,e,t.name)),n.set("hostBindings",Gut(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",Qme(t.inputs,!0)),n.set("outputs",Qme(t.outputs)),t.exportAs!==null&&n.set("exportAs",or(t.exportAs.map(o=>C(o)))),t.isStandalone===!1&&n.set("standalone",C(!1)),t.isSignal&&n.set("signals",C(!0)),n}function Z0e(t,e){let r=[],n=e.providers,i=e.viewProviders;if(n||i){let o=[n||new ul([])];i&&o.push(i),r.push(me(T.ProvidersFeature).callFn(o))}if(e.hostDirectives?.length&&r.push(me(T.HostDirectivesFeature).callFn([Yut(e.hostDirectives)])),e.usesInheritance&&r.push(me(T.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&r.push(me(T.NgOnChangesFeature)),e.controlCreate!==null&&r.push(me(T.ControlFeature).callFn([C(e.controlCreate.passThroughInput)])),"externalStyles"in e&&e.externalStyles?.length){let o=e.externalStyles.map(s=>C(s));r.push(me(T.ExternalStylesFeature).callFn([or(o)]))}r.length&&t.set("features",or(r))}function Fut(t,e,r){let n=Y0e(t,e,r);Z0e(n,t);let i=me(T.defineDirective).callFn([n.toLiteralMap()],void 0,!0),o=Hut(t);return{expression:i,type:o,statements:[]}}function jut(t,e,r){let n=Y0e(t,e,r);Z0e(n,t);let i=t.selector&&tb.parse(t.selector),o=i&&i[0];if(o){let m=o.getAttrs();m.length&&n.set("attrs",e.getConstLiteral(or(m.map(y=>y!=null?C(y):C(void 0))),!0))}let s=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let m=`${s}_DeferFn`;e.statements.push(new kn(m,t.defer.dependenciesFn,void 0,Zn.Final)),a=pt(m)}let u=t.isStandalone&&!t.hasDirectiveDependencies?Ji.DomOnly:Ji.Full,c=iat(t.name,t.template.nodes,e,u,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,Aat());L0e(c,ue.Tmpl);let l=Yst(c,e);if(c.contentSelectors!==null&&n.set("ngContentSelectors",c.contentSelectors),n.set("decls",C(c.root.decls)),n.set("vars",C(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?n.set("consts",hs([],[...c.constsInitializers,new An(or(c.consts))])):n.set("consts",or(c.consts))),n.set("template",l),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",But(or(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",me(T.getComponentDepsFactory).callFn(m))}t.encapsulation===null&&(t.encapsulation=Op.Emulated);let d=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let y=(t.encapsulation==Op.Emulated?Qut(t.styles,Lut,$ut):t.styles).reduce((g,_)=>(_.trim().length>0&&g.push(e.getConstLiteral(C(_))),g),[]);y.length>0&&(d=!0,n.set("styles",or(y)))}!d&&t.encapsulation===Op.Emulated&&(t.encapsulation=Op.None),t.encapsulation!==Op.Emulated&&n.set("encapsulation",C(t.encapsulation)),t.animations!==null&&n.set("data",Ys([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==rM.Default?n.set("changeDetection",C(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=me(T.defineComponent).callFn([n.toLiteralMap()],void 0,!0),p=qut(t);return{expression:f,type:p,statements:[]}}function qut(t){let e=X0e(t);return e.push(yH(t.template.ngContentSelectors)),e.push(ui(C(t.isStandalone))),e.push(J0e(t)),t.isSignal&&e.push(ui(C(t.isSignal))),ui(me(T.ComponentDeclaration,e))}function But(t,e){switch(e){case 0:return t;case 1:return hs([],t);case 2:let r=t.prop("map").callFn([me(T.resolveForwardRef)]);return hs([],r);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function Uut(t){return ui(C(t))}function gH(t){let e=Object.keys(t).map(r=>{let n=Array.isArray(t[r])?t[r][0]:t[r];return{key:r,value:C(n),quoted:!0}});return Ys(e)}function yH(t){return t.length>0?ui(or(t.map(e=>C(e)))):sl}function X0e(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[l3(t.type.type,t.typeArgumentCount),e!==null?Uut(e):sl,t.exportAs!==null?yH(t.exportAs):sl,ui(Vut(t)),ui(gH(t.outputs)),yH(t.queries.map(r=>r.propertyName))]}function Vut(t){return Ys(Object.keys(t.inputs).map(e=>{let r=t.inputs[e],n=[{key:"alias",value:C(r.bindingPropertyName),quoted:!0},{key:"required",value:C(r.required),quoted:!0}];return r.isSignal&&n.push({key:"isSignal",value:C(r.isSignal),quoted:!0}),{key:e,value:Ys(n),quoted:!0}}))}function Hut(t){let e=X0e(t);return e.push(sl),e.push(ui(C(t.isStandalone))),e.push(J0e(t)),t.isSignal&&e.push(ui(C(t.isSignal))),ui(me(T.DirectiveDeclaration,e))}function Gut(t,e,r,n,i,o,s){let a=r.createBoundHostProperties(t.properties,e),u=r.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=C(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=C(t.specialAttributes.classAttr));let c=oat({componentName:o,componentSelector:i,properties:a,events:u,attributes:t.attributes},r,n);L0e(c,ue.Host),s.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&s.set("hostVars",C(l)),Zst(c)}function Wut(t){let e={},r={},n={},i={};for(let o of Object.keys(t)){let s=t[o];if(o.startsWith("(")&&o.endsWith(")")){if(typeof s!="string")throw new Error("Event binding must be string");r[o.slice(1,-1)]=s}else if(o.startsWith("[")&&o.endsWith("]")){if(typeof s!="string")throw new Error("Property binding must be string");n[o.slice(1,-1)]=s}else switch(o){case"class":if(typeof s!="string")throw new Error("Class binding must be string");i.classAttr=s;break;case"style":if(typeof s!="string")throw new Error("Style binding must be string");i.styleAttr=s;break;default:typeof s=="string"?e[o]=C(s):e[o]=s}}return{attributes:e,listeners:r,properties:n,specialAttributes:i}}function Kut(t,e){let r=s3();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),zut(t,r,e),r.errors}function zut(t,e,r){for(let n in t.properties){let i=n.startsWith("attr."),o=i?n.slice(5):n;if(o.toLowerCase().startsWith("on")){let s=i?"attribute":"property",a=`(${o.slice(2)})=...`,u=`Binding to event ${s} '${o}' is disallowed for security reasons, please use ${a}`;i||(u+=`
|
|
265
265
|
If '${n}' is a directive input, make sure the directive is imported by the current module.`),e.errors.push(new Pe(r,u))}}}function Qut(t,e,r){let n=new CV;return t.map(i=>n.shimCssText(i,e,r))}function J0e(t){return t.hostDirectives?.length?ui(or(t.hostDirectives.map(e=>Ys([{key:"directive",value:zw(e.directive.type),quoted:!1},{key:"inputs",value:gH(e.inputs||{}),quoted:!1},{key:"outputs",value:gH(e.outputs||{}),quoted:!1}])))):sl}function Yut(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 o=Eye(n.inputs);o&&i.push({key:"inputs",value:o,quoted:!1})}if(n.outputs){let o=Eye(n.outputs);o&&i.push({key:"outputs",value:o,quoted:!1})}e.push(Ys(i))}n.isForwardReference&&(r=!0)}return r?new Dp([],[new An(or(e))]):or(e)}function Eye(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(C(r),C(t[r]));return e.length>0?or(e):null}var vH=class extends cb{visit(e){e instanceof Ao?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 wM?this.visit(e.value):e instanceof yw&&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)}visitSwitchExhaustiveCheck(e){}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 _H=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,o=new Map,s=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=a3.apply(e.template);Zut(m,a),bH.apply(e.template,this.directiveMatcher,r,n,i,o,s),u3.applyWithScope(e.template,m,u,c,l,d,f,p)}return e.host&&(r.set(e.host.node,e.host.directives),u3.applyWithScope(e.host.node,a3.apply(e.host.node),u,c,l,d,f,p)),new EH(e,r,n,i,o,s,u,c,l,a,d,f,p)}},a3=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 dy}static newRootScope(){return new t(null,null)}static apply(e){let r=t.newRootScope();return r.ingest(e),r}ingest(e){e instanceof ds?(e.variables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Xg?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(r=>r.visit(this))):e instanceof fb?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Ew||e instanceof Sw||e instanceof dy||e instanceof bw||e instanceof vw||e instanceof _w||e instanceof pb?e.children.forEach(r=>r.visit(this)):e instanceof ww||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)}visitSwitchExhaustiveCheck(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)}},bH=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,r,n,i,o,s){this.directiveMatcher=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=o,this.references=s}static apply(e,r,n,i,o,s,a){new t(r,n,i,o,s,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))}visitSwitchExhaustiveCheck(e){}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 tM){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 tM){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 eM){let r=[],n=LJe(e);this.directiveMatcher.match(n,(i,o)=>r.push(...o)),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,o,s)=>{i[s].hasBindingPropertyName(o.name)&&this.bindings.set(o,i)};for(let i of r)e.inputs.forEach(o=>n(i,o,"inputs")),e.attributes.forEach(o=>n(i,o,"inputs")),e.outputs.forEach(o=>n(i,o,"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 o=null;if(i.value.trim()==="")o=r.find(s=>s.isComponent)||null;else if(o=r.find(s=>s.exportAs!==null&&s.exportAs.some(a=>a===i.value))||null,o===null)return;o!==null?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});let n=(i,o)=>{let s=r.find(u=>u[o].hasBindingPropertyName(i.name)),a=s!==void 0?s:e;this.bindings.set(i,a)};e.inputs.forEach(i=>n(i,"inputs")),e.attributes.forEach(i=>n(i,"inputs")),e instanceof ds&&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){}},u3=class t extends vH{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,r,n,i,o,s,a,u,c){super(),this.bindings=e,this.symbols=r,this.usedPipes=n,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=s,this.scope=a,this.rootNode=u,this.level=c}static applyWithScope(e,r,n,i,o,s,a,u){let c=e instanceof ds?e:null;new t(n,i,s,a,u,o,r,c,0).ingest(e)}ingest(e){if(e instanceof ds)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Xg)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof fb)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 dy){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 Ew||e instanceof Sw||e instanceof bw||e instanceof vw||e instanceof _w||e instanceof pb?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof ww?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)}visitSwitchExhaustiveCheck(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 cl))return;let n=this.scope.lookup(r);n!==null&&this.bindings.set(e,n)}},EH=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,r,n,i,o,s,a,u,c,l,d,f,p){this.target=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=o,this.references=s,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 AM)&&!(r instanceof yw)&&!(r instanceof IM))return null;let n=r.reference;if(n===null){let o=null;if(e.placeholder!==null){for(let s of e.placeholder.children)if(!(s instanceof d3)){if(o!==null)return null;s instanceof ll&&(o=s)}}return o}let i=this.findEntityInScope(e,n);if(i instanceof Tw&&this.getDefinitionNodeOfSymbol(i)!==e){let o=this.getReferenceTarget(i);if(o!==null)return this.referenceTargetToElement(o)}if(e.placeholder!==null){let o=this.findEntityInScope(e.placeholder,n),s=o instanceof Tw?this.getReferenceTarget(o):null;if(s!==null)return this.referenceTargetToElement(s)}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 ll?e:e instanceof ds||e.node instanceof VT||e.node instanceof Lye||e.node instanceof ww?null:this.referenceTargetToElement(e.node)}};function Zut(t,e){let r=new Map;function n(o){if(r.has(o.rootNode))return r.get(o.rootNode);let s=o.namedEntities,a;return o.parentScope!==null?a=new Map([...n(o.parentScope),...s]):a=new Map(s),r.set(o.rootNode,a),a}let i=[t];for(;i.length>0;){let o=i.pop();for(let s of o.childScopes.values())i.push(s);n(o)}for(let[o,s]of r)e.set(o,new Set(s.values()))}var SH=class{},TH=class{jitEvaluator;FactoryTarget=Jc;ResourceLoader=SH;elementSchemaRegistry=new bb;constructor(e=new IV){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:Mn(n.type),typeArgumentCount:0,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},o=sge(i);return this.jitExpression(o.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=hct(n),o=sge(i);return this.jitExpression(o.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:o}=Yme({name:n.name,type:Mn(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:xye(n.providedIn),useClass:U_(n,"useClass"),useFactory:Aye(n,"useFactory"),useValue:U_(n,"useValue"),useExisting:U_(n,"useExisting"),deps:n.deps?.map(nve)},!0);return this.jitExpression(i,e,r,o)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:o}=Yme({name:n.type.name,type:Mn(n.type),typeArgumentCount:0,providedIn:xye(n.providedIn),useClass:U_(n,"useClass"),useFactory:Aye(n,"useFactory"),useValue:U_(n,"useValue"),useExisting:U_(n,"useExisting"),deps:n.deps?.map(Cye)},!0);return this.jitExpression(i,e,r,o)}compileInjector(e,r,n){let i={type:Mn(n.type),providers:n.providers&&n.providers.length>0?new yt(n.providers):null,imports:n.imports.map(s=>new yt(s))},o=oge(i);return this.jitExpression(o.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=mct(n),o=oge(i);return this.jitExpression(o.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:Ad.Global,type:Mn(n.type),bootstrap:n.bootstrap.map(Mn),declarations:n.declarations.map(Mn),publicDeclarationTypes:null,imports:n.imports.map(Mn),includeImportTypes:!0,exports:n.exports.map(Mn),selectorScopeMode:Pw.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(Mn):null,id:n.id?new yt(n.id):null},o=net(i);return this.jitExpression(o.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=iet(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=wye(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),o=tve(n,i);return this.compileDirectiveFromMeta(e,r,o)}compileDirectiveFromMeta(e,r,n){let i=new pM,o=s3(),s=Fut(n,i,o);return this.jitExpression(s.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,defer:o}=rve(n.template,n.name,r,n.preserveWhitespaces,void 0),s={...n,...wye(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(tct),declarationListEmitMode:0,defer:o,styles:[...n.styles,...i.styles],encapsulation:n.encapsulation,changeDetection:n.changeDetection??null,animations:n.animations!=null?new yt(n.animations):null,viewProviders:n.viewProviders!=null?new yt(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null},a=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,a,s)}compileComponentDeclaration(e,r,n){let i=this.createParseSourceSpan("Component",n.type.name,r),o=ect(n,i,r);return this.compileComponentFromMeta(e,r,o)}compileComponentFromMeta(e,r,n){let i=new pM,o=s3(),s=jut(n,i,o);return this.jitExpression(s.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Gg({name:n.name,type:Mn(n.type),typeArgumentCount:n.typeArgumentCount,deps:ict(n.deps),target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}compileFactoryDeclaration(e,r,n){let i=Gg({name:n.type.name,type:Mn(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(Cye):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return YJe(e,r,n)}jitExpression(e,r,n,i){let o=[...i,new kn("$def",e,void 0,Zn.Exported)];return this.jitEvaluator.evaluateStatements(n,o,new xV(r),!0).$def}};function Sye(t){return{...t,isSignal:t.isSignal,predicate:eve(t.predicate),read:t.read?new yt(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function Tye(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:eve(t.predicate),descendants:t.descendants??!1,read:t.read?new yt(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function eve(t){return Array.isArray(t)?t:xH(new yt(t),1)}function wye(t){let e=pct(t.inputs||[]),r=zU(t.outputs||[]),n=t.propMetadata,i={},o={};for(let a in n)n.hasOwnProperty(a)&&n[a].forEach(u=>{cct(u)?i[a]={bindingPropertyName:u.alias||a,classPropertyName:a,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new yt(u.transform):null}:lct(u)&&(o[a]=u.alias||a)});let s=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Mn(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Mn(a.directive),isForwardReference:!1,inputs:a.inputs?zU(a.inputs):null,outputs:a.outputs?zU(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Mn(t.type),deps:null,host:{...sct(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...i},outputs:{...r,...o},queries:t.queries.map(Sye),providers:t.providers!=null?new yt(t.providers):null,viewQueries:t.viewQueries.map(Sye),hostDirectives:s}}function tve(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:Mn(n.directive),isForwardReference:!1,inputs:n.inputs?Iye(n.inputs):null,outputs:n.outputs?Iye(n.outputs):null})):null;return{name:t.type.name,type:Mn(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?dct(t.inputs):{},outputs:t.outputs??{},host:Xut(t.host),queries:(t.queries??[]).map(Tye),viewQueries:(t.viewQueries??[]).map(Tye),providers:t.providers!==void 0?new yt(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,controlCreate:t.controlCreate??null,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:t.isStandalone??$ye(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function Xut(t={}){return{attributes:Jut(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function Iye(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function Jut(t){let e={};for(let r of Object.keys(t))e[r]=new yt(t[r]);return e}function ect(t,e,r){let{template:n,defer:i}=rve(t.template,t.type.name,r,t.preserveWhitespaces??!1,t.deferBlockDependencies),o=[];if(t.dependencies)for(let a of t.dependencies)switch(a.kind){case"directive":case"component":o.push(KU(a));break;case"pipe":o.push(nct(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(a=>KU(a,!0))),t.directives&&o.push(...t.directives.map(a=>KU(a))),t.pipes&&o.push(...rct(t.pipes)));let s=o.some(({kind:a})=>a===py.Directive||a===py.NgModule);return{...tve(t,e),template:n,styles:t.styles??[],declarations:o,viewProviders:t.viewProviders!==void 0?new yt(t.viewProviders):null,animations:t.animations!==void 0?new yt(t.animations):null,defer:i,changeDetection:t.changeDetection??rM.Default,encapsulation:t.encapsulation??Op.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:s}}function tct(t){return{...t,type:new yt(t.type)}}function KU(t,e=null){return{kind:py.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new yt(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function rct(t){return t?Object.keys(t).map(e=>({kind:py.Pipe,name:e,type:new yt(t[e])})):[]}function nct(t){return{kind:py.Pipe,name:t.name,type:new yt(t.type)}}function rve(t,e,r,n,i){let o=Rut(t,r,{preserveWhitespaces:n});if(o.errors!==null){let u=o.errors.map(c=>c.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let a=new _H(null).bind({template:o.nodes});return{template:o,defer:oct(a,i)}}function U_(t,e){if(t.hasOwnProperty(e))return xH(new yt(t[e]),0)}function Aye(t,e){if(t.hasOwnProperty(e))return new yt(t[e])}function xye(t){let e=typeof t=="function"?new yt(t):new li(t??null);return xH(e,0)}function ict(t){return t==null?null:t.map(nve)}function nve(t){let e=t.attribute!=null,r=t.token===null?null:new yt(t.token),n=e?new yt(t.attribute):r;return ive(n,e,t.host,t.optional,t.self,t.skipSelf)}function Cye(t){let e=t.attribute??!1,r=t.token===null?null:new yt(t.token);return ive(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function ive(t,e,r,n,i,o){let s=e?C("unknown"):null;return{token:t,attributeNameType:s,host:r,optional:n,self:i,skipSelf:o}}function oct(t,e){let r=t.getDeferBlocks(),n=new Map;for(let i=0;i<r.length;i++){let o=e?.[i];n.set(r[i],o?new yt(o):null)}return{mode:0,blocks:n}}function sct(t,e,r){let n=Wut(r||{});for(let o in t)t.hasOwnProperty(o)&&t[o].forEach(s=>{act(s)?n.properties[s.hostPropertyName||o]=_Je("this",o):uct(s)&&(n.listeners[s.eventName||o]=`${o}(${(s.args||[]).join(",")})`)});let i=Kut(n,e);if(i.length)throw new Error(i.map(o=>o.msg).join(`
|
|
266
|
-
`));return n}function act(t){return t.ngMetadataName==="HostBinding"}function uct(t){return t.ngMetadataName==="HostListener"}function cct(t){return t.ngMetadataName==="Input"}function lct(t){return t.ngMetadataName==="Output"}function dct(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=fct(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new yt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function fct(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 yt(t[2]):null,required:!1,isSignal:!1}}function pct(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=ove(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 yt(r.transform):null};return e},{})}function zU(t){return t.reduce((e,r)=>{let[n,i]=ove(r);return e[i]=n,e},{})}function ove(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function hct(t){return{name:t.type.name,type:Mn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??$ye(t.version)}}function mct(t){return{name:t.type.name,type:Mn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new yt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new yt(e)):[]}}function gct(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new TH}var Oye;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Oye||(Oye={}));var wH=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Ma.PARSABLE_DATA}},Jxr=new wH;var Pye;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Pye||(Pye={}));var eCr=new rV("21.2.25");gct(BT);import*as Tme from"fs";var ge={};xme(ge,{ANIMATION_MODULE_TYPE:()=>k2e,APP_BOOTSTRAP_LISTENER:()=>R0,APP_ID:()=>Za,APP_INITIALIZER:()=>B$,ApplicationInitStatus:()=>E0,ApplicationModule:()=>YL,ApplicationRef:()=>jn,Attribute:()=>OY,COMPILER_OPTIONS:()=>Pee,CSP_NONCE:()=>F4,CUSTOM_ELEMENTS_SCHEMA:()=>sZ,ChangeDetectionStrategy:()=>Uh,ChangeDetectorRef:()=>HL,Compiler:()=>LA,CompilerFactory:()=>P4,Component:()=>Sxe,ComponentFactory:()=>ix,ComponentFactoryResolver:()=>FE,ComponentRef:()=>ZZ,ContentChild:()=>$9t,ContentChildren:()=>k9t,DEFAULT_CURRENCY_CODE:()=>Cxe,DOCUMENT:()=>lo,DebugElement:()=>Qh,DebugEventListener:()=>D4,DebugNode:()=>_E,DefaultIterableDiffer:()=>KL,DestroyRef:()=>gi,Directive:()=>Oee,ENVIRONMENT_INITIALIZER:()=>uo,ElementRef:()=>Bh,EmbeddedViewRef:()=>Yee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>Ba,EventEmitter:()=>Tl,HOST_TAG_NAME:()=>O9t,Host:()=>wY,HostAttributeToken:()=>zee,HostBinding:()=>Axe,HostListener:()=>xxe,INJECTOR:()=>a8,Inject:()=>Ul,Injectable:()=>de,InjectionToken:()=>F,Injector:()=>Hr,Input:()=>wxe,IterableDiffers:()=>Ix,KeyValueDiffers:()=>Ax,LOCALE_ID:()=>NL,MAX_ANIMATION_TIMEOUT:()=>OZ,MissingTranslationStrategy:()=>N4,ModuleWithComponentFactories:()=>$A,NO_ERRORS_SCHEMA:()=>aZ,NgModule:()=>k0,NgModuleFactory:()=>vX,NgModuleRef:()=>Kh,NgZone:()=>Ot,Optional:()=>w0,Output:()=>Ixe,OutputEmitterRef:()=>WE,PLATFORM_ID:()=>R2e,PLATFORM_INITIALIZER:()=>L4,PendingTasks:()=>Ua,Pipe:()=>Txe,PlatformRef:()=>QE,Query:()=>F0,QueryList:()=>cA,REQUEST:()=>JRt,REQUEST_CONTEXT:()=>tkt,RESPONSE_INIT:()=>ekt,Renderer2:()=>m4,RendererFactory2:()=>hE,RendererStyleFlags2:()=>dE,Sanitizer:()=>IA,SecurityContext:()=>hr,Self:()=>SY,SimpleChange:()=>oA,SkipSelf:()=>TY,TRANSLATIONS:()=>Oxe,TRANSLATIONS_FORMAT:()=>Pxe,TemplateRef:()=>Gh,Testability:()=>DA,TestabilityRegistry:()=>b0,TransferState:()=>Ts,Type:()=>IY,VERSION:()=>Gk,Version:()=>_I,ViewChild:()=>F9t,ViewChildren:()=>L9t,ViewContainerRef:()=>p0,ViewEncapsulation:()=>Vo,ViewRef:()=>GL,afterEveryRender:()=>bA,afterNextRender:()=>JA,afterRenderEffect:()=>nte,asNativeElements:()=>Nxe,assertInInjectionContext:()=>mn,assertNotInReactiveContext:()=>G1,assertPlatform:()=>FCe,booleanAttribute:()=>RRt,computed:()=>Bn,contentChild:()=>ICe,contentChildren:()=>ACe,createComponent:()=>YRt,createEnvironmentInjector:()=>qE,createNgModule:()=>_X,createNgModuleRef:()=>RIe,createPlatform:()=>kCe,createPlatformFactory:()=>$Ce,destroyPlatform:()=>G9t,effect:()=>w1,enableProdMode:()=>Y9t,enableProfiling:()=>NX,forwardRef:()=>I1,getDebugNode:()=>bE,getModuleFactory:()=>pRt,getNgModuleById:()=>hRt,getPlatform:()=>xx,importProvidersFrom:()=>ez,inject:()=>O,input:()=>ote,inputBinding:()=>oX,isDevMode:()=>Q9t,isSignal:()=>ux,isStandalone:()=>Pl,isWritableSignal:()=>F$,linkedSignal:()=>em,makeEnvironmentProviders:()=>yi,makeStateKey:()=>jY,mergeApplicationConfig:()=>XRt,model:()=>ate,numberAttribute:()=>kRt,output:()=>TCe,outputBinding:()=>sX,platformCore:()=>SRt,provideAppInitializer:()=>LX,provideBrowserGlobalErrorListeners:()=>lEe,provideCheckNoChangesConfig:()=>z9t,provideEnvironmentInitializer:()=>c8,provideNgReflectAttributes:()=>BTe,providePlatformInitializer:()=>W9t,provideStabilityDebugging:()=>fRt,provideZoneChangeDetection:()=>j9t,provideZonelessChangeDetection:()=>PL,reflectComponentType:()=>ZRt,resolveForwardRef:()=>ze,resource:()=>kee,resourceFromSnapshots:()=>QRt,runInInjectionContext:()=>Ga,setTestabilityGetter:()=>RX,signal:()=>Li,twoWayBinding:()=>pIe,untracked:()=>sa,viewChild:()=>ste,viewChildren:()=>wCe,\u0275ANIMATIONS_DISABLED:()=>CZ,\u0275AcxChangeDetectionStrategy:()=>s4,\u0275AcxViewEncapsulation:()=>a4,\u0275AfterRenderManager:()=>c0,\u0275CLIENT_RENDER_MODE_FLAG:()=>VCe,\u0275CONTAINER_HEADER_OFFSET:()=>Wt,\u0275ChangeDetectionScheduler:()=>_s,\u0275ComponentFactory:()=>ix,\u0275Console:()=>oa,\u0275DEFAULT_LOCALE_ID:()=>GE,\u0275DEFER_BLOCK_CONFIG:()=>xX,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>AX,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Xa,\u0275DeferBlockBehavior:()=>PA,\u0275DeferBlockState:()=>rr,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>DCe,\u0275EVENT_REPLAY_QUEUE:()=>KY,\u0275EffectScheduler:()=>By,\u0275Framework:()=>Kee,\u0275HydrationStatus:()=>Vh,\u0275IMAGE_CONFIG:()=>FY,\u0275IMAGE_CONFIG_DEFAULTS:()=>LY,\u0275INJECTOR_SCOPE:()=>$1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>C9t,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Ll,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>j2e,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Zh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>H4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>AE,\u0275JSACTION_EVENT_CONTRACT:()=>G4,\u0275LContext:()=>dA,\u0275LocaleDataIndex:()=>zh,\u0275NG_COMP_DEF:()=>Ol,\u0275NG_DIR_DEF:()=>Ih,\u0275NG_ELEMENT_ID:()=>Ah,\u0275NG_INJ_DEF:()=>b1,\u0275NG_MOD_DEF:()=>OI,\u0275NG_PIPE_DEF:()=>D1,\u0275NG_PROV_DEF:()=>Hy,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>XI,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>g0,\u0275NoopNgZone:()=>S1,\u0275PERFORMANCE_MARK_PREFIX:()=>ZCe,\u0275PROVIDED_NG_ZONE:()=>ute,\u0275PROVIDED_ZONELESS:()=>UI,\u0275PendingTasksInternal:()=>ta,\u0275ProfilerEvent:()=>he,\u0275R3Injector:()=>ea,\u0275ReflectionCapabilities:()=>iA,\u0275Render3ComponentFactory:()=>Zd,\u0275Render3ComponentRef:()=>xA,\u0275Render3NgModuleRef:()=>m0,\u0275ResourceImpl:()=>$0,\u0275RuntimeError:()=>L,\u0275SIGNAL:()=>ar,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>XY,\u0275TESTABILITY:()=>MX,\u0275TESTABILITY_GETTER:()=>j$,\u0275TimerScheduler:()=>NA,\u0275TracingAction:()=>pE,\u0275TracingService:()=>Hl,\u0275ViewRef:()=>Yd,\u0275XSS_SECURITY_URL:()=>Va,\u0275ZONELESS_ENABLED:()=>Xy,\u0275_sanitizeHtml:()=>pZ,\u0275_sanitizeUrl:()=>WA,\u0275allLeavingAnimations:()=>Hh,\u0275allowSanitizationBypassAndThrow:()=>O0,\u0275annotateForHydration:()=>ARt,\u0275assertType:()=>qRt,\u0275bypassSanitizationTrustHtml:()=>ETe,\u0275bypassSanitizationTrustResourceUrl:()=>ITe,\u0275bypassSanitizationTrustScript:()=>TTe,\u0275bypassSanitizationTrustStyle:()=>STe,\u0275bypassSanitizationTrustUrl:()=>wTe,\u0275clearResolutionOfComponentResourcesQueue:()=>OIe,\u0275compileComponent:()=>xee,\u0275compileDirective:()=>OL,\u0275compileNgModule:()=>wee,\u0275compileNgModuleDefs:()=>Iee,\u0275compileNgModuleFactory:()=>OCe,\u0275compilePipe:()=>Cee,\u0275convertToBitFlags:()=>vh,\u0275createInjector:()=>Qk,\u0275createOrReusePlatformInjector:()=>jCe,\u0275defaultIterableDiffers:()=>bRt,\u0275defaultKeyValueDiffers:()=>ERt,\u0275depsTracker:()=>Wh,\u0275devModeEqual:()=>O$,\u0275disableProfiling:()=>jRt,\u0275enableProfiling:()=>FRt,\u0275encapsulateResourceError:()=>KE,\u0275findLocaleData:()=>J$,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Tee,\u0275formatRuntimeError:()=>Er,\u0275generateStandaloneInDeclarationsError:()=>Aee,\u0275getAsyncClassMetadataFn:()=>JIe,\u0275getClosestComponentName:()=>hIe,\u0275getComponentDef:()=>ut,\u0275getDeferBlocks:()=>iE,\u0275getDirectives:()=>MY,\u0275getDocument:()=>x0,\u0275getHostElement:()=>RY,\u0275getInjectableDef:()=>C1,\u0275getLContext:()=>Fi,\u0275getLocaleCurrencyCode:()=>vAe,\u0275getLocalePluralCase:()=>bJ,\u0275getOutputDestroyRef:()=>Rxe,\u0275getSanitizationBypassType:()=>fZ,\u0275getTransferState:()=>DX,\u0275getUnknownElementStrictMode:()=>fTe,\u0275getUnknownPropertyStrictMode:()=>hTe,\u0275global:()=>$n,\u0275inferTagNameFromDefinition:()=>uX,\u0275injectChangeDetectorRef:()=>GCe,\u0275internalCreateApplication:()=>TRt,\u0275internalProvideZoneChangeDetection:()=>PCe,\u0275isBoundToModule:()=>qX,\u0275isComponentDefPendingResolution:()=>xIe,\u0275isEnvironmentProviders:()=>N1,\u0275isInjectable:()=>x1e,\u0275isNgModule:()=>$h,\u0275isPromise:()=>q$,\u0275isSubscribable:()=>$X,\u0275isViewDirty:()=>Cwe,\u0275markForRefresh:()=>Owe,\u0275noSideEffects:()=>Ya,\u0275patchComponentDefWithScope:()=>xL,\u0275performanceMarkFeature:()=>Kr,\u0275promiseWithResolvers:()=>cx,\u0275provideZonelessChangeDetectionInternal:()=>Ex,\u0275publishExternalGlobalUtil:()=>sAe,\u0275readHydrationInfo:()=>tZ,\u0275registerLocaleData:()=>yAe,\u0275renderDeferBlockState:()=>ql,\u0275resetCompiledComponents:()=>fxe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>eTe,\u0275resetJitOptions:()=>lxe,\u0275resolveComponentResources:()=>gX,\u0275restoreComponentResolutionQueue:()=>PIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>MIe,\u0275setAlternateWeakRefImpl:()=>y1e,\u0275setClassDebugInfo:()=>bee,\u0275setClassMetadata:()=>qi,\u0275setClassMetadataAsync:()=>OX,\u0275setCurrentInjector:()=>Js,\u0275setDocument:()=>M2e,\u0275setInjectorProfilerContext:()=>hn,\u0275setLocaleId:()=>EJ,\u0275setUnknownElementStrictMode:()=>dTe,\u0275setUnknownPropertyStrictMode:()=>pTe,\u0275startMeasuring:()=>$Rt,\u0275stopMeasuring:()=>LRt,\u0275store:()=>q1,\u0275stringify:()=>Gt,\u0275transitiveScopesFor:()=>CL,\u0275triggerResourceLoading:()=>dx,\u0275truncateMiddle:()=>t8,\u0275unregisterLocaleData:()=>_Ae,\u0275unwrapSafeValue:()=>Vl,\u0275unwrapWritableSignal:()=>dEe,\u0275withDomHydration:()=>uRt,\u0275withEventReplay:()=>BCe,\u0275withI18nSupport:()=>cRt,\u0275withIncrementalHydration:()=>lRt,\u0275\u0275ControlFeature:()=>TX,\u0275\u0275ExternalStylesFeature:()=>JJ,\u0275\u0275FactoryTarget:()=>Ut,\u0275\u0275HostDirectivesFeature:()=>wX,\u0275\u0275InheritDefinitionFeature:()=>M$,\u0275\u0275NgOnChangesFeature:()=>AY,\u0275\u0275ProvidersFeature:()=>XJ,\u0275\u0275advance:()=>AZ,\u0275\u0275animateEnter:()=>oE,\u0275\u0275animateEnterListener:()=>sE,\u0275\u0275animateLeave:()=>aE,\u0275\u0275animateLeaveListener:()=>MA,\u0275\u0275ariaProperty:()=>U$,\u0275\u0275arrowFunction:()=>ZJ,\u0275\u0275attachSourceLocations:()=>qJ,\u0275\u0275attribute:()=>V$,\u0275\u0275classMap:()=>kJ,\u0275\u0275classProp:()=>hL,\u0275\u0275componentInstance:()=>dJ,\u0275\u0275conditional:()=>pJ,\u0275\u0275conditionalBranchCreate:()=>fx,\u0275\u0275conditionalCreate:()=>fJ,\u0275\u0275contentQuery:()=>cL,\u0275\u0275contentQuerySignal:()=>dL,\u0275\u0275control:()=>iX,\u0275\u0275controlCreate:()=>nX,\u0275\u0275declareLet:()=>AL,\u0275\u0275defer:()=>UX,\u0275\u0275deferEnableTimerScheduling:()=>CX,\u0275\u0275deferHydrateNever:()=>WX,\u0275\u0275deferHydrateOnHover:()=>iJ,\u0275\u0275deferHydrateOnIdle:()=>QX,\u0275\u0275deferHydrateOnImmediate:()=>XX,\u0275\u0275deferHydrateOnInteraction:()=>aJ,\u0275\u0275deferHydrateOnTimer:()=>tJ,\u0275\u0275deferHydrateOnViewport:()=>lJ,\u0275\u0275deferHydrateWhen:()=>GX,\u0275\u0275deferOnHover:()=>rJ,\u0275\u0275deferOnIdle:()=>KX,\u0275\u0275deferOnImmediate:()=>YX,\u0275\u0275deferOnInteraction:()=>oJ,\u0275\u0275deferOnTimer:()=>JX,\u0275\u0275deferOnViewport:()=>uJ,\u0275\u0275deferPrefetchOnHover:()=>nJ,\u0275\u0275deferPrefetchOnIdle:()=>zX,\u0275\u0275deferPrefetchOnImmediate:()=>ZX,\u0275\u0275deferPrefetchOnInteraction:()=>sJ,\u0275\u0275deferPrefetchOnTimer:()=>eJ,\u0275\u0275deferPrefetchOnViewport:()=>cJ,\u0275\u0275deferPrefetchWhen:()=>HX,\u0275\u0275deferWhen:()=>VX,\u0275\u0275defineComponent:()=>bX,\u0275\u0275defineDirective:()=>EX,\u0275\u0275defineInjectable:()=>er,\u0275\u0275defineInjector:()=>x1,\u0275\u0275defineNgModule:()=>D$,\u0275\u0275definePipe:()=>SX,\u0275\u0275directiveInject:()=>Xh,\u0275\u0275disableBindings:()=>S8,\u0275\u0275domElement:()=>K$,\u0275\u0275domElementContainer:()=>Y$,\u0275\u0275domElementContainerEnd:()=>Q$,\u0275\u0275domElementContainerStart:()=>yx,\u0275\u0275domElementEnd:()=>mx,\u0275\u0275domElementStart:()=>hx,\u0275\u0275domListener:()=>uL,\u0275\u0275domProperty:()=>Z$,\u0275\u0275domTemplate:()=>k$,\u0275\u0275element:()=>W$,\u0275\u0275elementContainer:()=>z$,\u0275\u0275elementContainerEnd:()=>HE,\u0275\u0275elementContainerStart:()=>gx,\u0275\u0275elementEnd:()=>px,\u0275\u0275elementStart:()=>gE,\u0275\u0275enableBindings:()=>E8,\u0275\u0275getComponentDepsFactory:()=>_ee,\u0275\u0275getCurrentView:()=>_J,\u0275\u0275getInheritedFactory:()=>CY,\u0275\u0275getReplaceMetadataURL:()=>Eee,\u0275\u0275i18n:()=>SJ,\u0275\u0275i18nApply:()=>wJ,\u0275\u0275i18nAttributes:()=>TJ,\u0275\u0275i18nEnd:()=>iL,\u0275\u0275i18nExp:()=>oL,\u0275\u0275i18nPostprocess:()=>IJ,\u0275\u0275i18nStart:()=>nL,\u0275\u0275inject:()=>Xn,\u0275\u0275injectAttribute:()=>qA,\u0275\u0275interpolate:()=>BJ,\u0275\u0275interpolate1:()=>UJ,\u0275\u0275interpolate2:()=>VJ,\u0275\u0275interpolate3:()=>HJ,\u0275\u0275interpolate4:()=>GJ,\u0275\u0275interpolate5:()=>WJ,\u0275\u0275interpolate6:()=>KJ,\u0275\u0275interpolate7:()=>zJ,\u0275\u0275interpolate8:()=>QJ,\u0275\u0275interpolateV:()=>YJ,\u0275\u0275invalidFactory:()=>JZ,\u0275\u0275invalidFactoryDep:()=>NI,\u0275\u0275listener:()=>sL,\u0275\u0275loadQuery:()=>NJ,\u0275\u0275namespaceHTML:()=>M8,\u0275\u0275namespaceMathML:()=>D8,\u0275\u0275namespaceSVG:()=>N8,\u0275\u0275nextContext:()=>xJ,\u0275\u0275ngDeclareClassMetadata:()=>Ar,\u0275\u0275ngDeclareClassMetadataAsync:()=>URt,\u0275\u0275ngDeclareComponent:()=>VRt,\u0275\u0275ngDeclareDirective:()=>BRt,\u0275\u0275ngDeclareFactory:()=>xr,\u0275\u0275ngDeclareInjectable:()=>zr,\u0275\u0275ngDeclareInjector:()=>Cx,\u0275\u0275ngDeclareNgModule:()=>Ox,\u0275\u0275ngDeclarePipe:()=>GRt,\u0275\u0275pipe:()=>fee,\u0275\u0275pipeBind1:()=>pee,\u0275\u0275pipeBind2:()=>hee,\u0275\u0275pipeBind3:()=>mee,\u0275\u0275pipeBind4:()=>gee,\u0275\u0275pipeBindV:()=>yee,\u0275\u0275projection:()=>OJ,\u0275\u0275projectionDef:()=>CJ,\u0275\u0275property:()=>G$,\u0275\u0275pureFunction0:()=>ree,\u0275\u0275pureFunction1:()=>nee,\u0275\u0275pureFunction2:()=>iee,\u0275\u0275pureFunction3:()=>oee,\u0275\u0275pureFunction4:()=>see,\u0275\u0275pureFunction5:()=>aee,\u0275\u0275pureFunction6:()=>uee,\u0275\u0275pureFunction7:()=>cee,\u0275\u0275pureFunction8:()=>lee,\u0275\u0275pureFunctionV:()=>dee,\u0275\u0275queryAdvance:()=>DJ,\u0275\u0275queryRefresh:()=>PJ,\u0275\u0275readContextLet:()=>jJ,\u0275\u0275reference:()=>MJ,\u0275\u0275registerNgModuleType:()=>N$,\u0275\u0275repeater:()=>gJ,\u0275\u0275repeaterCreate:()=>mJ,\u0275\u0275repeaterTrackByIdentity:()=>H$,\u0275\u0275repeaterTrackByIndex:()=>hJ,\u0275\u0275replaceMetadata:()=>See,\u0275\u0275resetView:()=>w8,\u0275\u0275resolveBody:()=>i$,\u0275\u0275resolveDocument:()=>EZ,\u0275\u0275resolveWindow:()=>bZ,\u0275\u0275restoreView:()=>T8,\u0275\u0275sanitizeHtml:()=>J4,\u0275\u0275sanitizeResourceUrl:()=>QA,\u0275\u0275sanitizeScript:()=>r$,\u0275\u0275sanitizeStyle:()=>e$,\u0275\u0275sanitizeUrl:()=>t$,\u0275\u0275sanitizeUrlOrResourceUrl:()=>_Z,\u0275\u0275setComponentScope:()=>eee,\u0275\u0275setNgModuleScope:()=>tee,\u0275\u0275storeLet:()=>FJ,\u0275\u0275styleMap:()=>RJ,\u0275\u0275styleProp:()=>pL,\u0275\u0275syntheticHostListener:()=>aL,\u0275\u0275syntheticHostProperty:()=>X$,\u0275\u0275template:()=>R$,\u0275\u0275templateRefExtractor:()=>vee,\u0275\u0275text:()=>$J,\u0275\u0275textInterpolate:()=>mL,\u0275\u0275textInterpolate1:()=>vx,\u0275\u0275textInterpolate2:()=>gL,\u0275\u0275textInterpolate3:()=>yL,\u0275\u0275textInterpolate4:()=>vL,\u0275\u0275textInterpolate5:()=>_L,\u0275\u0275textInterpolate6:()=>bL,\u0275\u0275textInterpolate7:()=>EL,\u0275\u0275textInterpolate8:()=>SL,\u0275\u0275textInterpolateV:()=>TL,\u0275\u0275trustConstantHtml:()=>yZ,\u0275\u0275trustConstantResourceUrl:()=>vZ,\u0275\u0275twoWayBindingSet:()=>LJ,\u0275\u0275twoWayListener:()=>IL,\u0275\u0275twoWayProperty:()=>wL,\u0275\u0275validateAttribute:()=>n$,\u0275\u0275viewQuery:()=>lL,\u0275\u0275viewQuerySignal:()=>fL});var Mi=null,Jw=!1,WH=1,yct=null,ar=Symbol("SIGNAL");function Oe(t){let e=Mi;return Mi=t,e}function wy(){return Mi}function KH(){return Jw}var Rd={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 kd(t){if(Jw)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Mi===null)return;Mi.consumerOnSignalRead(t);let e=Mi.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Mi.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Mi.producers,r!==void 0&&r.producer===t)){Mi.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Mi&&(!n||vct(i,Mi)))return;let o=xb(Mi),s={producer:t,consumer:Mi,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Mi.producersTail=s,e!==void 0?e.nextProducer=s:Mi.producers=s,o&&lve(t,s)}function sve(){WH++}function Iy(t){if(!(xb(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===WH)){if(!t.producerMustRecompute(t)&&!Ay(t)){Ab(t);return}t.producerRecomputeValue(t),Ab(t)}}function zH(t){if(t.consumers===void 0)return;let e=Jw;Jw=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||ave(n)}}finally{Jw=e}}function QH(){return Mi?.consumerAllowSignalWrites!==!1}function ave(t){t.dirty=!0,zH(t),t.consumerMarkedDirty?.(t)}function Ab(t){t.dirty=!1,t.lastCleanEpoch=WH}function ml(t){return t&&uve(t),Oe(t)}function uve(t){t.producersTail=void 0,t.recomputing=!0}function $d(t,e){Oe(e),t&&cve(t)}function cve(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(xb(t))do r=YH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function Ay(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(Iy(r),n!==r.version))return!0}return!1}function Ld(t){if(xb(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 lve(t,e){let r=t.consumersTail,n=xb(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)lve(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,!xb(e)){let o=e.producers;for(;o!==void 0;)o=YH(o)}return r}function xb(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function eI(t){yct?.(t)}function vct(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 tI(t,e){return Object.is(t,e)}function rI(t,e){let r=Object.create(_ct);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(Iy(r),kd(r),r.value===hl)throw r.error;return r.value};return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Computed${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),n}var Sy=Symbol("UNSET"),Ty=Symbol("COMPUTING"),hl=Symbol("ERRORED"),_ct={...Rd,value:Sy,dirty:!0,error:null,equal:tI,kind:"computed",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=ml(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Sy&&e!==hl&&n!==hl&&t.equal(e,n)}catch(o){n=hl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function bct(){throw new Error}var dve=bct;function fve(t){dve(t)}function ZH(t){dve=t}var Ect=null;function XH(t,e){let r=Object.create(nI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>pve(r);return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Signal${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),[n,s=>zp(r,s),s=>_3(r,s)]}function pve(t){return kd(t),t.value}function zp(t,e){QH()||fve(t),t.equal(t.value,e)||(t.value=e,Sct(t))}function _3(t,e){QH()||fve(t),zp(t,e(t.value))}var nI={...Rd,equal:tI,value:void 0,kind:"signal"};function Sct(t){t.version++,sve(),zH(t),Ect?.(t)}var JH={...Rd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function eG(t){if(t.dirty=!1,t.version>0&&!Ay(t))return;t.version++;let e=ml(t);try{t.cleanup(),t.fn()}finally{$d(t,e)}}var Th=Q(kt(),1);var IK;function Uk(){return IK}function Js(t){let e=IK;return IK=t,e}var p1e=Symbol("NotFound");function y1(t){return t===p1e||t?.name==="\u0275NotFound"}function AK(t,e,r){let n=Object.create(MTt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let o=()=>{if(Iy(n),kd(n),n.value===hl)throw n.error;return n.value};return o[ar]=n,typeof ngDevMode<"u"&&ngDevMode&&(o.toString=()=>`[LinkedSignal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),eI(n),o}function h1e(t,e){Iy(t),zp(t,e),Ab(t)}function m1e(t,e){if(Iy(t),t.value===hl)throw t.error;_3(t,e),Ab(t)}var MTt={...Rd,value:Sy,dirty:!0,error:null,equal:tI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=ml(t),n,i=!1;try{let o=t.source(),s=e!==Sy&&e!==hl,a=s?{source:t.sourceValue,value:e}:void 0;n=t.computation(o,a),t.sourceValue=o,Oe(null),i=s&&n!==hl&&t.equal(e,n)}catch(o){n=hl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function g1e(t){let e=Oe(null);try{return t()}finally{Oe(e)}}function y1e(t){}var CK={header:(t,e)=>{if(!xK(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(o){return["span",`Signal(\u26A0\uFE0F Error)${o.message?`: ${o.message}`:""}`]}let n="computation"in t[ar]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],xK(r)?CK.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:RTt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!xK(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 RTt(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 xK(t){return t[ar]!==void 0}function kTt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===CK)||globalThis.devtoolsFormatters.push(CK)}(typeof ngDevMode>"u"||ngDevMode)&&kTt();var _I=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(".")}},Gk=new _I("21.2.25"),xI=(()=>{let t=Gk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.88.0"?"next":`v${Gk.major}`}.angular.dev`})(),Xk=`${xI}/errors`,Va="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",L=class extends Error{code;constructor(e,r){super(Er(e,r)),this.code=e}};function $Tt(t){return`NG0${Math.abs(t)}`}function Er(t,e){let r=$Tt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let o=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${o} Find more at ${Xk}/${r}`}return n}var $n=globalThis;function LTt(){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 $n.ngDevMode!="object"&&($n.ngDevMode={}),Object.assign($n.ngDevMode,e)):$n.ngDevMode=!1,e}function Jk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&<t(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Jt(t){for(let e in t)if(t[e]===Jt)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function T1e(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Gt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Gt).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
|
+
`));return n}function act(t){return t.ngMetadataName==="HostBinding"}function uct(t){return t.ngMetadataName==="HostListener"}function cct(t){return t.ngMetadataName==="Input"}function lct(t){return t.ngMetadataName==="Output"}function dct(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=fct(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new yt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function fct(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 yt(t[2]):null,required:!1,isSignal:!1}}function pct(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=ove(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 yt(r.transform):null};return e},{})}function zU(t){return t.reduce((e,r)=>{let[n,i]=ove(r);return e[i]=n,e},{})}function ove(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function hct(t){return{name:t.type.name,type:Mn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??$ye(t.version)}}function mct(t){return{name:t.type.name,type:Mn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new yt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new yt(e)):[]}}function gct(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new TH}var Oye;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Oye||(Oye={}));var wH=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Ma.PARSABLE_DATA}},Jxr=new wH;var Pye;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Pye||(Pye={}));var eCr=new rV("21.2.25");gct(BT);import*as Tme from"fs";var ge={};xme(ge,{ANIMATION_MODULE_TYPE:()=>k2e,APP_BOOTSTRAP_LISTENER:()=>R0,APP_ID:()=>Za,APP_INITIALIZER:()=>B$,ApplicationInitStatus:()=>E0,ApplicationModule:()=>YL,ApplicationRef:()=>jn,Attribute:()=>OY,COMPILER_OPTIONS:()=>Pee,CSP_NONCE:()=>F4,CUSTOM_ELEMENTS_SCHEMA:()=>sZ,ChangeDetectionStrategy:()=>Uh,ChangeDetectorRef:()=>HL,Compiler:()=>LA,CompilerFactory:()=>P4,Component:()=>Sxe,ComponentFactory:()=>ix,ComponentFactoryResolver:()=>FE,ComponentRef:()=>ZZ,ContentChild:()=>$9t,ContentChildren:()=>k9t,DEFAULT_CURRENCY_CODE:()=>Cxe,DOCUMENT:()=>lo,DebugElement:()=>Qh,DebugEventListener:()=>D4,DebugNode:()=>_E,DefaultIterableDiffer:()=>KL,DestroyRef:()=>gi,Directive:()=>Oee,ENVIRONMENT_INITIALIZER:()=>uo,ElementRef:()=>Bh,EmbeddedViewRef:()=>Yee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>Ba,EventEmitter:()=>Tl,HOST_TAG_NAME:()=>O9t,Host:()=>wY,HostAttributeToken:()=>zee,HostBinding:()=>Axe,HostListener:()=>xxe,INJECTOR:()=>a8,Inject:()=>Ul,Injectable:()=>de,InjectionToken:()=>F,Injector:()=>Hr,Input:()=>wxe,IterableDiffers:()=>Ix,KeyValueDiffers:()=>Ax,LOCALE_ID:()=>NL,MAX_ANIMATION_TIMEOUT:()=>OZ,MissingTranslationStrategy:()=>N4,ModuleWithComponentFactories:()=>$A,NO_ERRORS_SCHEMA:()=>aZ,NgModule:()=>k0,NgModuleFactory:()=>vX,NgModuleRef:()=>Kh,NgZone:()=>Ot,Optional:()=>w0,Output:()=>Ixe,OutputEmitterRef:()=>WE,PLATFORM_ID:()=>R2e,PLATFORM_INITIALIZER:()=>L4,PendingTasks:()=>Ua,Pipe:()=>Txe,PlatformRef:()=>QE,Query:()=>F0,QueryList:()=>cA,REQUEST:()=>JRt,REQUEST_CONTEXT:()=>tkt,RESPONSE_INIT:()=>ekt,Renderer2:()=>m4,RendererFactory2:()=>hE,RendererStyleFlags2:()=>dE,Sanitizer:()=>IA,SecurityContext:()=>hr,Self:()=>SY,SimpleChange:()=>oA,SkipSelf:()=>TY,TRANSLATIONS:()=>Oxe,TRANSLATIONS_FORMAT:()=>Pxe,TemplateRef:()=>Gh,Testability:()=>DA,TestabilityRegistry:()=>b0,TransferState:()=>Ts,Type:()=>IY,VERSION:()=>Gk,Version:()=>_I,ViewChild:()=>F9t,ViewChildren:()=>L9t,ViewContainerRef:()=>p0,ViewEncapsulation:()=>Vo,ViewRef:()=>GL,afterEveryRender:()=>bA,afterNextRender:()=>JA,afterRenderEffect:()=>nte,asNativeElements:()=>Nxe,assertInInjectionContext:()=>mn,assertNotInReactiveContext:()=>G1,assertPlatform:()=>FCe,booleanAttribute:()=>RRt,computed:()=>Bn,contentChild:()=>ICe,contentChildren:()=>ACe,createComponent:()=>YRt,createEnvironmentInjector:()=>qE,createNgModule:()=>_X,createNgModuleRef:()=>RIe,createPlatform:()=>kCe,createPlatformFactory:()=>$Ce,destroyPlatform:()=>G9t,effect:()=>w1,enableProdMode:()=>Y9t,enableProfiling:()=>NX,forwardRef:()=>I1,getDebugNode:()=>bE,getModuleFactory:()=>pRt,getNgModuleById:()=>hRt,getPlatform:()=>xx,importProvidersFrom:()=>ez,inject:()=>O,input:()=>ote,inputBinding:()=>oX,isDevMode:()=>Q9t,isSignal:()=>ux,isStandalone:()=>Pl,isWritableSignal:()=>F$,linkedSignal:()=>em,makeEnvironmentProviders:()=>yi,makeStateKey:()=>jY,mergeApplicationConfig:()=>XRt,model:()=>ate,numberAttribute:()=>kRt,output:()=>TCe,outputBinding:()=>sX,platformCore:()=>SRt,provideAppInitializer:()=>LX,provideBrowserGlobalErrorListeners:()=>lEe,provideCheckNoChangesConfig:()=>z9t,provideEnvironmentInitializer:()=>c8,provideNgReflectAttributes:()=>BTe,providePlatformInitializer:()=>W9t,provideStabilityDebugging:()=>fRt,provideZoneChangeDetection:()=>j9t,provideZonelessChangeDetection:()=>PL,reflectComponentType:()=>ZRt,resolveForwardRef:()=>ze,resource:()=>kee,resourceFromSnapshots:()=>QRt,runInInjectionContext:()=>Ga,setTestabilityGetter:()=>RX,signal:()=>Li,twoWayBinding:()=>pIe,untracked:()=>sa,viewChild:()=>ste,viewChildren:()=>wCe,\u0275ANIMATIONS_DISABLED:()=>CZ,\u0275AcxChangeDetectionStrategy:()=>s4,\u0275AcxViewEncapsulation:()=>a4,\u0275AfterRenderManager:()=>c0,\u0275CLIENT_RENDER_MODE_FLAG:()=>VCe,\u0275CONTAINER_HEADER_OFFSET:()=>Wt,\u0275ChangeDetectionScheduler:()=>_s,\u0275ComponentFactory:()=>ix,\u0275Console:()=>oa,\u0275DEFAULT_LOCALE_ID:()=>GE,\u0275DEFER_BLOCK_CONFIG:()=>xX,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>AX,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Xa,\u0275DeferBlockBehavior:()=>PA,\u0275DeferBlockState:()=>rr,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>DCe,\u0275EVENT_REPLAY_QUEUE:()=>KY,\u0275EffectScheduler:()=>By,\u0275Framework:()=>Kee,\u0275HydrationStatus:()=>Vh,\u0275IMAGE_CONFIG:()=>FY,\u0275IMAGE_CONFIG_DEFAULTS:()=>LY,\u0275INJECTOR_SCOPE:()=>$1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>C9t,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Ll,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>j2e,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Zh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>H4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>AE,\u0275JSACTION_EVENT_CONTRACT:()=>G4,\u0275LContext:()=>dA,\u0275LocaleDataIndex:()=>zh,\u0275NG_COMP_DEF:()=>Ol,\u0275NG_DIR_DEF:()=>Ih,\u0275NG_ELEMENT_ID:()=>Ah,\u0275NG_INJ_DEF:()=>b1,\u0275NG_MOD_DEF:()=>OI,\u0275NG_PIPE_DEF:()=>D1,\u0275NG_PROV_DEF:()=>Hy,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>XI,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>g0,\u0275NoopNgZone:()=>S1,\u0275PERFORMANCE_MARK_PREFIX:()=>ZCe,\u0275PROVIDED_NG_ZONE:()=>ute,\u0275PROVIDED_ZONELESS:()=>UI,\u0275PendingTasksInternal:()=>ta,\u0275ProfilerEvent:()=>he,\u0275R3Injector:()=>ea,\u0275ReflectionCapabilities:()=>iA,\u0275Render3ComponentFactory:()=>Zd,\u0275Render3ComponentRef:()=>xA,\u0275Render3NgModuleRef:()=>m0,\u0275ResourceImpl:()=>$0,\u0275RuntimeError:()=>L,\u0275SIGNAL:()=>ar,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>XY,\u0275TESTABILITY:()=>MX,\u0275TESTABILITY_GETTER:()=>j$,\u0275TimerScheduler:()=>NA,\u0275TracingAction:()=>pE,\u0275TracingService:()=>Hl,\u0275ViewRef:()=>Yd,\u0275XSS_SECURITY_URL:()=>Va,\u0275ZONELESS_ENABLED:()=>Xy,\u0275_sanitizeHtml:()=>pZ,\u0275_sanitizeUrl:()=>WA,\u0275allLeavingAnimations:()=>Hh,\u0275allowSanitizationBypassAndThrow:()=>O0,\u0275annotateForHydration:()=>ARt,\u0275assertType:()=>qRt,\u0275bypassSanitizationTrustHtml:()=>ETe,\u0275bypassSanitizationTrustResourceUrl:()=>ITe,\u0275bypassSanitizationTrustScript:()=>TTe,\u0275bypassSanitizationTrustStyle:()=>STe,\u0275bypassSanitizationTrustUrl:()=>wTe,\u0275clearResolutionOfComponentResourcesQueue:()=>OIe,\u0275compileComponent:()=>xee,\u0275compileDirective:()=>OL,\u0275compileNgModule:()=>wee,\u0275compileNgModuleDefs:()=>Iee,\u0275compileNgModuleFactory:()=>OCe,\u0275compilePipe:()=>Cee,\u0275convertToBitFlags:()=>vh,\u0275createInjector:()=>Qk,\u0275createOrReusePlatformInjector:()=>jCe,\u0275defaultIterableDiffers:()=>bRt,\u0275defaultKeyValueDiffers:()=>ERt,\u0275depsTracker:()=>Wh,\u0275devModeEqual:()=>O$,\u0275disableProfiling:()=>jRt,\u0275enableProfiling:()=>FRt,\u0275encapsulateResourceError:()=>KE,\u0275findLocaleData:()=>J$,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Tee,\u0275formatRuntimeError:()=>Er,\u0275generateStandaloneInDeclarationsError:()=>Aee,\u0275getAsyncClassMetadataFn:()=>JIe,\u0275getClosestComponentName:()=>hIe,\u0275getComponentDef:()=>ut,\u0275getDeferBlocks:()=>iE,\u0275getDirectives:()=>MY,\u0275getDocument:()=>x0,\u0275getHostElement:()=>RY,\u0275getInjectableDef:()=>C1,\u0275getLContext:()=>Fi,\u0275getLocaleCurrencyCode:()=>vAe,\u0275getLocalePluralCase:()=>bJ,\u0275getOutputDestroyRef:()=>Rxe,\u0275getSanitizationBypassType:()=>fZ,\u0275getTransferState:()=>DX,\u0275getUnknownElementStrictMode:()=>fTe,\u0275getUnknownPropertyStrictMode:()=>hTe,\u0275global:()=>$n,\u0275inferTagNameFromDefinition:()=>uX,\u0275injectChangeDetectorRef:()=>GCe,\u0275internalCreateApplication:()=>TRt,\u0275internalProvideZoneChangeDetection:()=>PCe,\u0275isBoundToModule:()=>qX,\u0275isComponentDefPendingResolution:()=>xIe,\u0275isEnvironmentProviders:()=>N1,\u0275isInjectable:()=>x1e,\u0275isNgModule:()=>$h,\u0275isPromise:()=>q$,\u0275isSubscribable:()=>$X,\u0275isViewDirty:()=>Cwe,\u0275markForRefresh:()=>Owe,\u0275noSideEffects:()=>Ya,\u0275patchComponentDefWithScope:()=>xL,\u0275performanceMarkFeature:()=>Kr,\u0275promiseWithResolvers:()=>cx,\u0275provideZonelessChangeDetectionInternal:()=>Ex,\u0275publishExternalGlobalUtil:()=>sAe,\u0275readHydrationInfo:()=>tZ,\u0275registerLocaleData:()=>yAe,\u0275renderDeferBlockState:()=>ql,\u0275resetCompiledComponents:()=>fxe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>eTe,\u0275resetJitOptions:()=>lxe,\u0275resolveComponentResources:()=>gX,\u0275restoreComponentResolutionQueue:()=>PIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>MIe,\u0275setAlternateWeakRefImpl:()=>y1e,\u0275setClassDebugInfo:()=>bee,\u0275setClassMetadata:()=>qi,\u0275setClassMetadataAsync:()=>OX,\u0275setCurrentInjector:()=>Js,\u0275setDocument:()=>M2e,\u0275setInjectorProfilerContext:()=>hn,\u0275setLocaleId:()=>EJ,\u0275setUnknownElementStrictMode:()=>dTe,\u0275setUnknownPropertyStrictMode:()=>pTe,\u0275startMeasuring:()=>$Rt,\u0275stopMeasuring:()=>LRt,\u0275store:()=>q1,\u0275stringify:()=>Gt,\u0275transitiveScopesFor:()=>CL,\u0275triggerResourceLoading:()=>dx,\u0275truncateMiddle:()=>t8,\u0275unregisterLocaleData:()=>_Ae,\u0275unwrapSafeValue:()=>Vl,\u0275unwrapWritableSignal:()=>dEe,\u0275withDomHydration:()=>uRt,\u0275withEventReplay:()=>BCe,\u0275withI18nSupport:()=>cRt,\u0275withIncrementalHydration:()=>lRt,\u0275\u0275ControlFeature:()=>TX,\u0275\u0275ExternalStylesFeature:()=>JJ,\u0275\u0275FactoryTarget:()=>Ut,\u0275\u0275HostDirectivesFeature:()=>wX,\u0275\u0275InheritDefinitionFeature:()=>M$,\u0275\u0275NgOnChangesFeature:()=>AY,\u0275\u0275ProvidersFeature:()=>XJ,\u0275\u0275advance:()=>AZ,\u0275\u0275animateEnter:()=>oE,\u0275\u0275animateEnterListener:()=>sE,\u0275\u0275animateLeave:()=>aE,\u0275\u0275animateLeaveListener:()=>MA,\u0275\u0275ariaProperty:()=>U$,\u0275\u0275arrowFunction:()=>ZJ,\u0275\u0275attachSourceLocations:()=>qJ,\u0275\u0275attribute:()=>V$,\u0275\u0275classMap:()=>kJ,\u0275\u0275classProp:()=>hL,\u0275\u0275componentInstance:()=>dJ,\u0275\u0275conditional:()=>pJ,\u0275\u0275conditionalBranchCreate:()=>fx,\u0275\u0275conditionalCreate:()=>fJ,\u0275\u0275contentQuery:()=>cL,\u0275\u0275contentQuerySignal:()=>dL,\u0275\u0275control:()=>iX,\u0275\u0275controlCreate:()=>nX,\u0275\u0275declareLet:()=>AL,\u0275\u0275defer:()=>UX,\u0275\u0275deferEnableTimerScheduling:()=>CX,\u0275\u0275deferHydrateNever:()=>WX,\u0275\u0275deferHydrateOnHover:()=>iJ,\u0275\u0275deferHydrateOnIdle:()=>QX,\u0275\u0275deferHydrateOnImmediate:()=>XX,\u0275\u0275deferHydrateOnInteraction:()=>aJ,\u0275\u0275deferHydrateOnTimer:()=>tJ,\u0275\u0275deferHydrateOnViewport:()=>lJ,\u0275\u0275deferHydrateWhen:()=>GX,\u0275\u0275deferOnHover:()=>rJ,\u0275\u0275deferOnIdle:()=>KX,\u0275\u0275deferOnImmediate:()=>YX,\u0275\u0275deferOnInteraction:()=>oJ,\u0275\u0275deferOnTimer:()=>JX,\u0275\u0275deferOnViewport:()=>uJ,\u0275\u0275deferPrefetchOnHover:()=>nJ,\u0275\u0275deferPrefetchOnIdle:()=>zX,\u0275\u0275deferPrefetchOnImmediate:()=>ZX,\u0275\u0275deferPrefetchOnInteraction:()=>sJ,\u0275\u0275deferPrefetchOnTimer:()=>eJ,\u0275\u0275deferPrefetchOnViewport:()=>cJ,\u0275\u0275deferPrefetchWhen:()=>HX,\u0275\u0275deferWhen:()=>VX,\u0275\u0275defineComponent:()=>bX,\u0275\u0275defineDirective:()=>EX,\u0275\u0275defineInjectable:()=>er,\u0275\u0275defineInjector:()=>x1,\u0275\u0275defineNgModule:()=>D$,\u0275\u0275definePipe:()=>SX,\u0275\u0275directiveInject:()=>Xh,\u0275\u0275disableBindings:()=>S8,\u0275\u0275domElement:()=>K$,\u0275\u0275domElementContainer:()=>Y$,\u0275\u0275domElementContainerEnd:()=>Q$,\u0275\u0275domElementContainerStart:()=>yx,\u0275\u0275domElementEnd:()=>mx,\u0275\u0275domElementStart:()=>hx,\u0275\u0275domListener:()=>uL,\u0275\u0275domProperty:()=>Z$,\u0275\u0275domTemplate:()=>k$,\u0275\u0275element:()=>W$,\u0275\u0275elementContainer:()=>z$,\u0275\u0275elementContainerEnd:()=>HE,\u0275\u0275elementContainerStart:()=>gx,\u0275\u0275elementEnd:()=>px,\u0275\u0275elementStart:()=>gE,\u0275\u0275enableBindings:()=>E8,\u0275\u0275getComponentDepsFactory:()=>_ee,\u0275\u0275getCurrentView:()=>_J,\u0275\u0275getInheritedFactory:()=>CY,\u0275\u0275getReplaceMetadataURL:()=>Eee,\u0275\u0275i18n:()=>SJ,\u0275\u0275i18nApply:()=>wJ,\u0275\u0275i18nAttributes:()=>TJ,\u0275\u0275i18nEnd:()=>iL,\u0275\u0275i18nExp:()=>oL,\u0275\u0275i18nPostprocess:()=>IJ,\u0275\u0275i18nStart:()=>nL,\u0275\u0275inject:()=>Xn,\u0275\u0275injectAttribute:()=>qA,\u0275\u0275interpolate:()=>BJ,\u0275\u0275interpolate1:()=>UJ,\u0275\u0275interpolate2:()=>VJ,\u0275\u0275interpolate3:()=>HJ,\u0275\u0275interpolate4:()=>GJ,\u0275\u0275interpolate5:()=>WJ,\u0275\u0275interpolate6:()=>KJ,\u0275\u0275interpolate7:()=>zJ,\u0275\u0275interpolate8:()=>QJ,\u0275\u0275interpolateV:()=>YJ,\u0275\u0275invalidFactory:()=>JZ,\u0275\u0275invalidFactoryDep:()=>NI,\u0275\u0275listener:()=>sL,\u0275\u0275loadQuery:()=>NJ,\u0275\u0275namespaceHTML:()=>M8,\u0275\u0275namespaceMathML:()=>D8,\u0275\u0275namespaceSVG:()=>N8,\u0275\u0275nextContext:()=>xJ,\u0275\u0275ngDeclareClassMetadata:()=>Ar,\u0275\u0275ngDeclareClassMetadataAsync:()=>URt,\u0275\u0275ngDeclareComponent:()=>VRt,\u0275\u0275ngDeclareDirective:()=>BRt,\u0275\u0275ngDeclareFactory:()=>xr,\u0275\u0275ngDeclareInjectable:()=>zr,\u0275\u0275ngDeclareInjector:()=>Cx,\u0275\u0275ngDeclareNgModule:()=>Ox,\u0275\u0275ngDeclarePipe:()=>GRt,\u0275\u0275pipe:()=>fee,\u0275\u0275pipeBind1:()=>pee,\u0275\u0275pipeBind2:()=>hee,\u0275\u0275pipeBind3:()=>mee,\u0275\u0275pipeBind4:()=>gee,\u0275\u0275pipeBindV:()=>yee,\u0275\u0275projection:()=>OJ,\u0275\u0275projectionDef:()=>CJ,\u0275\u0275property:()=>G$,\u0275\u0275pureFunction0:()=>ree,\u0275\u0275pureFunction1:()=>nee,\u0275\u0275pureFunction2:()=>iee,\u0275\u0275pureFunction3:()=>oee,\u0275\u0275pureFunction4:()=>see,\u0275\u0275pureFunction5:()=>aee,\u0275\u0275pureFunction6:()=>uee,\u0275\u0275pureFunction7:()=>cee,\u0275\u0275pureFunction8:()=>lee,\u0275\u0275pureFunctionV:()=>dee,\u0275\u0275queryAdvance:()=>DJ,\u0275\u0275queryRefresh:()=>PJ,\u0275\u0275readContextLet:()=>jJ,\u0275\u0275reference:()=>MJ,\u0275\u0275registerNgModuleType:()=>N$,\u0275\u0275repeater:()=>gJ,\u0275\u0275repeaterCreate:()=>mJ,\u0275\u0275repeaterTrackByIdentity:()=>H$,\u0275\u0275repeaterTrackByIndex:()=>hJ,\u0275\u0275replaceMetadata:()=>See,\u0275\u0275resetView:()=>w8,\u0275\u0275resolveBody:()=>i$,\u0275\u0275resolveDocument:()=>EZ,\u0275\u0275resolveWindow:()=>bZ,\u0275\u0275restoreView:()=>T8,\u0275\u0275sanitizeHtml:()=>J4,\u0275\u0275sanitizeResourceUrl:()=>QA,\u0275\u0275sanitizeScript:()=>r$,\u0275\u0275sanitizeStyle:()=>e$,\u0275\u0275sanitizeUrl:()=>t$,\u0275\u0275sanitizeUrlOrResourceUrl:()=>_Z,\u0275\u0275setComponentScope:()=>eee,\u0275\u0275setNgModuleScope:()=>tee,\u0275\u0275storeLet:()=>FJ,\u0275\u0275styleMap:()=>RJ,\u0275\u0275styleProp:()=>pL,\u0275\u0275syntheticHostListener:()=>aL,\u0275\u0275syntheticHostProperty:()=>X$,\u0275\u0275template:()=>R$,\u0275\u0275templateRefExtractor:()=>vee,\u0275\u0275text:()=>$J,\u0275\u0275textInterpolate:()=>mL,\u0275\u0275textInterpolate1:()=>vx,\u0275\u0275textInterpolate2:()=>gL,\u0275\u0275textInterpolate3:()=>yL,\u0275\u0275textInterpolate4:()=>vL,\u0275\u0275textInterpolate5:()=>_L,\u0275\u0275textInterpolate6:()=>bL,\u0275\u0275textInterpolate7:()=>EL,\u0275\u0275textInterpolate8:()=>SL,\u0275\u0275textInterpolateV:()=>TL,\u0275\u0275trustConstantHtml:()=>yZ,\u0275\u0275trustConstantResourceUrl:()=>vZ,\u0275\u0275twoWayBindingSet:()=>LJ,\u0275\u0275twoWayListener:()=>IL,\u0275\u0275twoWayProperty:()=>wL,\u0275\u0275validateAttribute:()=>n$,\u0275\u0275viewQuery:()=>lL,\u0275\u0275viewQuerySignal:()=>fL});var Mi=null,Jw=!1,WH=1,yct=null,ar=Symbol("SIGNAL");function Oe(t){let e=Mi;return Mi=t,e}function wy(){return Mi}function KH(){return Jw}var Rd={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 kd(t){if(Jw)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Mi===null)return;Mi.consumerOnSignalRead(t);let e=Mi.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Mi.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Mi.producers,r!==void 0&&r.producer===t)){Mi.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Mi&&(!n||vct(i,Mi)))return;let o=xb(Mi),s={producer:t,consumer:Mi,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Mi.producersTail=s,e!==void 0?e.nextProducer=s:Mi.producers=s,o&&lve(t,s)}function sve(){WH++}function Iy(t){if(!(xb(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===WH)){if(!t.producerMustRecompute(t)&&!Ay(t)){Ab(t);return}t.producerRecomputeValue(t),Ab(t)}}function zH(t){if(t.consumers===void 0)return;let e=Jw;Jw=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||ave(n)}}finally{Jw=e}}function QH(){return Mi?.consumerAllowSignalWrites!==!1}function ave(t){t.dirty=!0,zH(t),t.consumerMarkedDirty?.(t)}function Ab(t){t.dirty=!1,t.lastCleanEpoch=WH}function ml(t){return t&&uve(t),Oe(t)}function uve(t){t.producersTail=void 0,t.recomputing=!0}function $d(t,e){Oe(e),t&&cve(t)}function cve(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(xb(t))do r=YH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function Ay(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(Iy(r),n!==r.version))return!0}return!1}function Ld(t){if(xb(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 lve(t,e){let r=t.consumersTail,n=xb(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)lve(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,!xb(e)){let o=e.producers;for(;o!==void 0;)o=YH(o)}return r}function xb(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function eI(t){yct?.(t)}function vct(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 tI(t,e){return Object.is(t,e)}function rI(t,e){let r=Object.create(_ct);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(Iy(r),kd(r),r.value===hl)throw r.error;return r.value};return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Computed${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),n}var Sy=Symbol("UNSET"),Ty=Symbol("COMPUTING"),hl=Symbol("ERRORED"),_ct={...Rd,value:Sy,dirty:!0,error:null,equal:tI,kind:"computed",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=ml(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Sy&&e!==hl&&n!==hl&&t.equal(e,n)}catch(o){n=hl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function bct(){throw new Error}var dve=bct;function fve(t){dve(t)}function ZH(t){dve=t}var Ect=null;function XH(t,e){let r=Object.create(nI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>pve(r);return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Signal${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),[n,s=>zp(r,s),s=>_3(r,s)]}function pve(t){return kd(t),t.value}function zp(t,e){QH()||fve(t),t.equal(t.value,e)||(t.value=e,Sct(t))}function _3(t,e){QH()||fve(t),zp(t,e(t.value))}var nI={...Rd,equal:tI,value:void 0,kind:"signal"};function Sct(t){t.version++,sve(),zH(t),Ect?.(t)}var JH={...Rd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function eG(t){if(t.dirty=!1,t.version>0&&!Ay(t))return;t.version++;let e=ml(t);try{t.cleanup(),t.fn()}finally{$d(t,e)}}var Th=Q(kt(),1);var IK;function Uk(){return IK}function Js(t){let e=IK;return IK=t,e}var p1e=Symbol("NotFound");function y1(t){return t===p1e||t?.name==="\u0275NotFound"}function AK(t,e,r){let n=Object.create(MTt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let o=()=>{if(Iy(n),kd(n),n.value===hl)throw n.error;return n.value};return o[ar]=n,typeof ngDevMode<"u"&&ngDevMode&&(o.toString=()=>`[LinkedSignal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),eI(n),o}function h1e(t,e){Iy(t),zp(t,e),Ab(t)}function m1e(t,e){if(Iy(t),t.value===hl)throw t.error;_3(t,e),Ab(t)}var MTt={...Rd,value:Sy,dirty:!0,error:null,equal:tI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=ml(t),n,i=!1;try{let o=t.source(),s=e!==Sy&&e!==hl,a=s?{source:t.sourceValue,value:e}:void 0;n=t.computation(o,a),t.sourceValue=o,Oe(null),i=s&&n!==hl&&t.equal(e,n)}catch(o){n=hl,t.error=o}finally{$d(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function g1e(t){let e=Oe(null);try{return t()}finally{Oe(e)}}function y1e(t){}var CK={header:(t,e)=>{if(!xK(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(o){return["span",`Signal(\u26A0\uFE0F Error)${o.message?`: ${o.message}`:""}`]}let n="computation"in t[ar]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],xK(r)?CK.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:RTt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!xK(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 RTt(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 xK(t){return t[ar]!==void 0}function kTt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===CK)||globalThis.devtoolsFormatters.push(CK)}(typeof ngDevMode>"u"||ngDevMode)&&kTt();var _I=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(".")}},Gk=new _I("21.2.25"),xI=(()=>{let t=Gk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.88.1"?"next":`v${Gk.major}`}.angular.dev`})(),Xk=`${xI}/errors`,Va="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",L=class extends Error{code;constructor(e,r){super(Er(e,r)),this.code=e}};function $Tt(t){return`NG0${Math.abs(t)}`}function Er(t,e){let r=$Tt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let o=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${o} Find more at ${Xk}/${r}`}return n}var $n=globalThis;function LTt(){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 $n.ngDevMode!="object"&&($n.ngDevMode={}),Object.assign($n.ngDevMode,e)):$n.ngDevMode=!1,e}function Jk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&<t(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Jt(t){for(let e in t)if(t[e]===Jt)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function T1e(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Gt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Gt).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(`
|
|
267
267
|
`);return n>=0?r.slice(0,n):r}function e8(t,e){return t?e?`${t} ${e}`:t:e||""}function t8(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 FTt=Jt({__forward_ref__:Jt});function I1(t){return t.__forward_ref__=I1,ngDevMode&&(t.toString=function(){return Gt(this())}),t}function ze(t){return CI(t)?t():t}function CI(t){return typeof t=="function"&&t.hasOwnProperty(FTt)&&t.__forward_ref__===I1}function ur(t,e){typeof t!="number"&&Ae(e,typeof t,"number","===")}function A1(t,e,r){ur(t,"Expected a number"),w1e(t,r,"Expected number to be less than or equal to"),Cl(t,e,"Expected number to be greater than or equal to")}function Uy(t,e){typeof t!="string"&&Ae(e,t===null?"null":typeof t,"string","===")}function UK(t,e){typeof t!="function"&&Ae(e,t===null?"null":typeof t,"function","===")}function ke(t,e,r){t!=e&&Ae(r,t,e,"==")}function oo(t,e,r){t==e&&Ae(r,t,e,"!=")}function VK(t,e,r){t!==e&&Ae(r,t,e,"===")}function Vy(t,e,r){t===e&&Ae(r,t,e,"!==")}function xl(t,e,r){t<e||Ae(r,t,e,"<")}function w1e(t,e,r){t<=e||Ae(r,t,e,"<=")}function wh(t,e,r){t>e||Ae(r,t,e,">")}function Cl(t,e,r){t>=e||Ae(r,t,e,">=")}function HK(t,e){t!=null&&Ae(e,t,null,"==")}function ee(t,e){t==null&&Ae(e,t,null,"!=")}function Ae(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function Wd(t){t instanceof Node||Ae(`The provided value must be an instance of a DOM Node but got ${Gt(t)}`)}function I1e(t){t instanceof Element||Ae(`The provided value must be an element but got ${Gt(t)}`)}function Lr(t,e){ee(t,"Array must be defined.");let r=t.length;(e<0||e>=r)&&Ae(`Index expected to be less than ${r} but got ${e}`)}function A1e(t,...e){if(e.indexOf(t)!==-1)return!0;Ae(`Expected value to be one of ${JSON.stringify(e)} but was ${JSON.stringify(t)}.`)}function r8(t){wy()!==null&&Ae(`${t}() should never be called in a reactive context.`)}function er(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function x1(t){return{providers:t.providers||[],imports:t.imports||[]}}function C1(t){return jTt(t,Hy)}function x1e(t){return C1(t)!==null}function jTt(t,e){return t.hasOwnProperty(e)&&t[e]||null}function qTt(t){let e=t?.[Hy]??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.
|
|
268
268
|
This will become an error in a future version of Angular. Please add @Injectable() to the "${t.name}" class.`),e):null}function bI(t){return t&&t.hasOwnProperty(b1)?t[b1]:null}var Hy=Jt({\u0275prov:Jt}),b1=Jt({\u0275inj:Jt}),F=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,r){this._desc=e,this.\u0275prov=void 0,typeof r=="number"?((typeof ngDevMode>"u"||ngDevMode)&&xl(r,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=r):r!==void 0&&(this.\u0275prov=er({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},PK;function O1(){return!ngDevMode&&Ae("getInjectorProfilerContext should never be called in production mode"),PK}function hn(t){!ngDevMode&&Ae("setInjectorProfilerContext should never be called in production mode");let e=PK;return PK=t,e}var Fy=[],BTt=()=>{};function UTt(t){let e=Fy.indexOf(t);e!==-1&&Fy.splice(e,1)}function GK(t){return!ngDevMode&&Ae("setInjectorProfiler should never be called in production mode"),t!==null?(Fy.includes(t)||Fy.push(t),()=>UTt(t)):(Fy.length=0,BTt)}function P1(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode");for(let e=0;e<Fy.length;e++){let r=Fy[e];r(t)}}function Wk(t,e=!1){!ngDevMode&&Ae("Injector profiler should never be called in production mode");let r;typeof t=="function"||t instanceof F?r=t:r=ze(t.provide);let n=t;t instanceof F&&(n=t.\u0275prov||t),P1({type:2,context:O1(),providerRecord:{token:r,provider:n,isViewProvider:e}})}function EI(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:5,context:O1(),token:t})}function SI(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:1,context:O1(),instance:{value:t}})}function WK(t,e,r){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:0,context:O1(),service:{token:t,value:e,flags:r}})}function VTt(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:3,context:O1(),effect:t})}function C1e(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:4,context:O1(),effectPhase:t})}function _1(t,e,r){!ngDevMode&&Ae("runInInjectorProfilerContext should never be called in production mode");let n=hn({injector:t,token:e});try{r()}finally{hn(n)}}function N1(t){return t&&!!t.\u0275providers}var Ol=Jt({\u0275cmp:Jt}),Ih=Jt({\u0275dir:Jt}),D1=Jt({\u0275pipe:Jt}),OI=Jt({\u0275mod:Jt}),wl=Jt({\u0275fac:Jt}),Ah=Jt({__NG_ELEMENT_ID__:Jt}),v1e=Jt({__NG_ENV_ID__:Jt});function Ha(t){return n8(t,"@NgModule"),t[OI]||null}function PI(t){let e=Ha(t);if(!e)throw new L(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Gt(t)} does not have '\u0275mod' property.`);return e}function ut(t){return n8(t,"@Component"),t[Ol]||null}function O1e(t){let e=xn(t);if(!e)throw new L(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Gt(t)} does not have '\u0275dir' property.`);return e}function xn(t){return n8(t,"@Directive"),t[Ih]||null}function so(t){return n8(t,"@Pipe"),t[D1]||null}function n8(t,e){if(t==null)throw new L(-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 Pl(t){let e=ut(t)||xn(t)||so(t);return e!==null&&e.standalone}function nt(t){return typeof t=="string"?t:t==null?"":String(t)}function Xe(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():nt(t)}function KK(t){let e=ut(t);return e!==null&&e.debugInfo?HTt(e.debugInfo):Xe(t)}function HTt(t){return!t.filePath||!t.lineNumber?t.className:`${t.className} (at ${t.filePath}:${t.lineNumber})`}var zK=Jt({ngErrorCode:Jt}),P1e=Jt({ngErrorMessage:Jt}),vI=Jt({ngTokenPath:Jt});function i8(t,e){let r=ngDevMode?`Circular dependency detected for \`${t}\`.`:"";return D1e(r,-200,e)}function QK(t,e){return N1e(i8(t,e),null)}function _1e(){throw new Error("Cannot mix multi providers and regular providers")}function NK(t,e,r){if(t&&e){let n=e.map(i=>i==r?"?"+r+"?":"...");throw new Error(`Invalid provider for the NgModule '${Gt(t)}' - only instances of Provider and Type are allowed, got: [${n.join(", ")}]`)}else throw N1(r)?r.\u0275fromNgModule?new L(-207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new L(-207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function o8(t,e){let r=ngDevMode&&`No provider for ${Xe(t)} found${e?` in ${e}`:""}`;throw new L(-201,r)}function GTt(t,e){t[vI]??=[];let r=t[vI],n;typeof e=="object"&&"multi"in e&&e?.multi===!0?(ee(e.provide,"Token with multi: true should have a provide property"),n=Xe(e.provide)):n=Xe(e),r[0]!==n&&t[vI].unshift(n)}function N1e(t,e){let r=t[vI],n=t[zK],i=t[P1e]||t.message;return t.message=KTt(i,n,r,e),t}function D1e(t,e,r){let n=new L(e,t);return n[zK]=e,n[P1e]=t,r&&(n[vI]=r),n}function WTt(t){return t[zK]}function KTt(t,e,r=[],n=null){let i="";r&&r.length>1&&(i=` Path: ${r.join(" -> ")}.`);let o=n?` Source: ${n}.`:"";return Er(e,`${t}${o}${i}`)}var Kk;function M1e(){return Kk}function io(t){let e=Kk;return Kk=t,e}function YK(t,e,r){let n=C1(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;o8(t,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function R1e(t){ngDevMode&&oo(Kk,t,"Calling \u0275\u0275inject would cause infinite recursion")}var zTt={},jy=zTt,DK="__NG_DI_FLAG__",MK=class{injector;constructor(e){this.injector=e}retrieve(e,r){let n=vh(r)||0;try{return this.injector.get(e,n&8?null:jy,n)}catch(i){if(y1(i))return i;throw i}}};function QTt(t,e=0){let r=Uk();if(r===void 0)throw new L(-203,ngDevMode&&`The \`${Gt(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 YK(t,void 0,e);{let n=YTt(e),i=r.retrieve(t,n);if(ngDevMode&&WK(t,i,e),y1(i)){if(n.optional)return null;throw i}return i}}function Xn(t,e=0){return(M1e()||QTt)(ze(t),e)}function NI(t){throw new L(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${t} of the parameter list is invalid.
|
|
269
269
|
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.
|