"use strict";(self.webpackChunkusaepay_developer=self.webpackChunkusaepay_developer||[]).push([[461],{4050:(xt,at,Ss)=>{Ss(6935)},6935:()=>{const xt=globalThis;function at(g){return(xt.__Zone_symbol_prefix||"__zone_symbol__")+g}const vt=Object.getOwnPropertyDescriptor,xn=Object.defineProperty,Hr=Object.getPrototypeOf,ra=Object.create,ia=Array.prototype.slice,Et="addEventListener",_n="removeEventListener",rn=at(Et),xs=at(_n),Ft="true",on="false",Ie=at("");function an(g,E){return Zone.current.wrap(g,E)}function Ur(g,E,I,v,k){return Zone.current.scheduleMacroTask(g,E,I,v,k)}const Le=at,Ys=typeof window<"u",ln=Ys?window:void 0,Ze=Ys&&ln||globalThis,Zs="removeAttribute";function Qs(g,E){for(let I=g.length-1;I>=0;I--)"function"==typeof g[I]&&(g[I]=an(g[I],E+"_"+I));return g}function Js(g){return!g||!1!==g.writable&&!("function"==typeof g.get&&typeof g.set>"u")}const Wr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,_s=!("nw"in Ze)&&typeof Ze.process<"u"&&"[object process]"===Ze.process.toString(),jr=!_s&&!Wr&&!(!Ys||!ln.HTMLElement),Wi=typeof Ze.process<"u"&&"[object process]"===Ze.process.toString()&&!Wr&&!(!Ys||!ln.HTMLElement),Ks={},oa=Le("enable_beforeunload"),ss=function(g){if(!(g=g||Ze.event))return;let E=Ks[g.type];E||(E=Ks[g.type]=Le("ON_PROPERTY"+g.type));const I=this||g.target||Ze,v=I[E];let k;if(jr&&I===ln&&"error"===g.type){const N=g;k=v&&v.call(this,N.message,N.filename,N.lineno,N.colno,N.error),!0===k&&g.preventDefault()}else k=v&&v.apply(this,arguments),"beforeunload"===g.type&&Ze[oa]&&"string"==typeof k?g.returnValue=k:null!=k&&!k&&g.preventDefault();return k};function ji(g,E,I){let v=vt(g,E);if(!v&&I&&vt(I,E)&&(v={enumerable:!0,configurable:!0}),!v||!v.configurable)return;const k=Le("on"+E+"patched");if(g.hasOwnProperty(k)&&g[k])return;delete v.writable,delete v.value;const N=v.get,j=v.set,G=E.slice(2);let ee=Ks[G];ee||(ee=Ks[G]=Le("ON_PROPERTY"+G)),v.set=function(oe){let Y=this;!Y&&g===Ze&&(Y=Ze),Y&&("function"==typeof Y[ee]&&Y.removeEventListener(G,ss),j&&j.call(Y,null),Y[ee]=oe,"function"==typeof oe&&Y.addEventListener(G,ss,!1))},v.get=function(){let oe=this;if(!oe&&g===Ze&&(oe=Ze),!oe)return null;const Y=oe[ee];if(Y)return Y;if(N){let se=N.call(this);if(se)return v.set.call(this,se),"function"==typeof oe[Zs]&&oe.removeAttribute(E),se}return null},xn(g,E,v),g[k]=!0}function zr(g,E,I){if(E)for(let v=0;vfunction(j,G){const ee=I(j,G);return ee.cbIdx>=0&&"function"==typeof G[ee.cbIdx]?Ur(ee.name,G[ee.cbIdx],ee,k):N.apply(j,G)})}function wt(g,E){g[Le("OriginalDelegate")]=E}let zi=!1,Cs=!1;function Gi(){if(zi)return Cs;zi=!0;try{const g=ln.navigator.userAgent;(-1!==g.indexOf("MSIE ")||-1!==g.indexOf("Trident/")||-1!==g.indexOf("Edge/"))&&(Cs=!0)}catch{}return Cs}function Xi(g){return"function"==typeof g}function Ts(g){return"number"==typeof g}let $t=!1;if(typeof window<"u")try{const g=Object.defineProperty({},"passive",{get:function(){$t=!0}});window.addEventListener("test",g,g),window.removeEventListener("test",g,g)}catch{$t=!1}const Ot={useG:!0},Ge={},It={},Yi=new RegExp("^"+Ie+"(\\w+)(true|false)$"),Zi=Le("propagationStopped");function Gr(g,E){const I=(E?E(g):g)+on,v=(E?E(g):g)+Ft,k=Ie+I,N=Ie+v;Ge[g]={},Ge[g][on]=k,Ge[g][Ft]=N}function Dt(g,E,I,v){const k=v&&v.add||Et,N=v&&v.rm||_n,j=v&&v.listeners||"eventListeners",G=v&&v.rmAll||"removeAllListeners",ee=Le(k),oe="."+k+":",Y="prependListener",se="."+Y+":",ge=function(te,B,xe){if(te.isRemoved)return;const Te=te.callback;let ae;"object"==typeof Te&&Te.handleEvent&&(te.callback=W=>Te.handleEvent(W),te.originalDelegate=Te);try{te.invoke(te,B,[xe])}catch(W){ae=W}const _e=te.options;if(_e&&"object"==typeof _e&&_e.once){const W=te.originalDelegate?te.originalDelegate:te.callback;B[N].call(B,xe.type,W,_e)}return ae};function Re(te,B,xe){if(!(B=B||g.event))return;const Te=te||B.target||g,ae=Te[Ge[B.type][xe?Ft:on]];if(ae){const _e=[];if(1===ae.length){const W=ge(ae[0],Te,B);W&&_e.push(W)}else{const W=ae.slice();for(let De=0;De{throw De})}}}const We=function(te){return Re(this,te,!1)},Qe=function(te){return Re(this,te,!0)};function tt(te,B){if(!te)return!1;let xe=!0;B&&void 0!==B.useG&&(xe=B.useG);const Te=B&&B.vh;let ae=!0;B&&void 0!==B.chkDup&&(ae=B.chkDup);let _e=!1;B&&void 0!==B.rt&&(_e=B.rt);let W=te;for(;W&&!W.hasOwnProperty(k);)W=Hr(W);if(!W&&te[k]&&(W=te),!W||W[ee])return!1;const De=B&&B.eventNameToString,F={},Z=W[ee]=W[k],Q=W[Le(N)]=W[N],K=W[Le(j)]=W[j],ze=W[Le(G)]=W[G];let Ae;B&&B.prepend&&(Ae=W[Le(B.prepend)]=W[B.prepend]);const Je=xe?function(x){if(!F.isExisting)return Z.call(F.target,F.eventName,F.capture?Qe:We,F.options)}:function(x){return Z.call(F.target,F.eventName,x.invoke,F.options)},ne=xe?function(x){if(!x.isRemoved){const A=Ge[x.eventName];let _;A&&(_=A[x.capture?Ft:on]);const le=_&&x.target[_];if(le)for(let O=0;Oqt.zone.cancelTask(qt);x.call(qe,"abort",Ct,{once:!0}),qt.removeAbortListener=()=>qe.removeEventListener("abort",Ct)}return F.target=null,As&&(As.taskData=null),Yr&&(F.options.once=!0),!$t&&"boolean"==typeof qt.options||(qt.options=lt),qt.target=he,qt.capture=Hn,qt.eventName=L,Ve&&(qt.originalDelegate=ie),ve?Un.unshift(qt):Un.push(qt),O?he:void 0}};return W[k]=P(Z,oe,Je,ne,_e),Ae&&(W[Y]=P(Ae,se,function(x){return Ae.call(F.target,F.eventName,x.invoke,F.options)},ne,_e,!0)),W[N]=function(){const x=this||g;let A=arguments[0];B&&B.transferEventName&&(A=B.transferEventName(A));const _=arguments[2],le=!!_&&("boolean"==typeof _||_.capture),O=arguments[1];if(!O)return Q.apply(this,arguments);if(Te&&!Te(Q,O,x,arguments))return;const ve=Ge[A];let he;ve&&(he=ve[le?Ft:on]);const L=he&&x[he];if(L)for(let ie=0;iefunction(k,N){k[Zi]=!0,v&&v.apply(k,N)})}const On=Le("zoneTask");function Cn(g,E,I,v){let k=null,N=null;I+=v;const j={};function G(oe){const Y=oe.data;Y.args[0]=function(){return oe.invoke.apply(this,arguments)};const se=k.apply(g,Y.args);return Ts(se)?Y.handleId=se:(Y.handle=se,Y.isRefreshable=Xi(se.refresh)),oe}function ee(oe){const{handle:Y,handleId:se}=oe.data;return N.call(g,Y??se)}k=Gt(g,E+=v,oe=>function(Y,se){if(Xi(se[0])){const ge={isRefreshable:!1,isPeriodic:"Interval"===v,delay:"Timeout"===v||"Interval"===v?se[1]||0:void 0,args:se},Re=se[0];se[0]=function(){try{return Re.apply(this,arguments)}finally{const{handle:xe,handleId:Te,isPeriodic:ae,isRefreshable:_e}=ge;!ae&&!_e&&(Te?delete j[Te]:xe&&(xe[On]=null))}};const We=Ur(E,se[0],ge,G,ee);if(!We)return We;const{handleId:Qe,handle:tt,isRefreshable:Be,isPeriodic:te}=We.data;if(Qe)j[Qe]=We;else if(tt&&(tt[On]=We,Be&&!te)){const B=tt.refresh;tt.refresh=function(){const{zone:xe,state:Te}=We;return"notScheduled"===Te?(We._state="scheduled",xe._updateTaskCount(We,1)):"running"===Te&&(We._state="scheduling"),B.call(this)}}return tt??Qe??We}return oe.apply(g,se)}),N=Gt(g,I,oe=>function(Y,se){const ge=se[0];let Re;Ts(ge)?(Re=j[ge],delete j[ge]):(Re=ge?.[On],Re?ge[On]=null:Re=ge),Re?.type?Re.cancelFn&&Re.zone.cancelTask(Re):oe.apply(g,se)})}function q(g,E,I){if(!I||0===I.length)return E;const v=I.filter(N=>N.target===g);if(!v||0===v.length)return E;const k=v[0].ignoreProperties;return E.filter(N=>-1===k.indexOf(N))}function Xr(g,E,I,v){if(!g)return;zr(g,q(g,E,I),v)}function tr(g){return Object.getOwnPropertyNames(g).filter(E=>E.startsWith("on")&&E.length>2).map(E=>E.substring(2))}function ct(g,E){if(_s&&!Wi||Zone[g.symbol("patchEvents")])return;const I=E.__Zone_ignore_on_properties;let v=[];if(jr){const k=window;v=v.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const N=function aa(){try{const g=ln.navigator.userAgent;if(-1!==g.indexOf("MSIE ")||-1!==g.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:k,ignoreProperties:["error"]}]:[];Xr(k,tr(k),I&&I.concat(N),Hr(k))}v=v.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let k=0;k{const k=Object.getOwnPropertyDescriptor,N=Object.defineProperty;const G=v.symbol,ee=[],oe=!1!==E[G("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],Y=G("Promise"),se=G("then"),ge="__creationTrace__";v.onUnhandledError=M=>{if(v.showUncaughtError()){const P=M&&M.rejection;P?console.error("Unhandled Promise rejection:",P instanceof Error?P.message:P,"; Zone:",M.zone.name,"; Task:",M.task&&M.task.source,"; Value:",P,P instanceof Error?P.stack:void 0):console.error(M)}},v.microtaskDrainDone=()=>{for(;ee.length;){const M=ee.shift();try{M.zone.runGuarded(()=>{throw M.throwOriginal?M.rejection:M})}catch(P){We(P)}}};const Re=G("unhandledPromiseRejectionHandler");function We(M){v.onUnhandledError(M);try{const P=I[Re];"function"==typeof P&&P.call(this,M)}catch{}}function Qe(M){return M&&M.then}function tt(M){return M}function Be(M){return ne.reject(M)}const te=G("state"),B=G("value"),xe=G("finally"),Te=G("parentPromiseValue"),ae=G("parentPromiseState"),_e="Promise.then",W=null,De=!0,F=!1,Z=0;function Q(M,P){return x=>{try{Se(M,P,x)}catch(A){Se(M,!1,A)}}}const K=function(){let M=!1;return function(x){return function(){M||(M=!0,x.apply(null,arguments))}}},ze="Promise resolved with itself",Ae=G("currentTaskTrace");function Se(M,P,x){const A=K();if(M===x)throw new TypeError(ze);if(M[te]===W){let _=null;try{("object"==typeof x||"function"==typeof x)&&(_=x&&x.then)}catch(le){return A(()=>{Se(M,!1,le)})(),M}if(P!==F&&x instanceof ne&&x.hasOwnProperty(te)&&x.hasOwnProperty(B)&&x[te]!==W)T(x),Se(M,x[te],x[B]);else if(P!==F&&"function"==typeof _)try{_.call(x,A(Q(M,P)),A(Q(M,!1)))}catch(le){A(()=>{Se(M,!1,le)})()}else{M[te]=P;const le=M[B];if(M[B]=x,M[xe]===xe&&P===De&&(M[te]=M[ae],M[B]=M[Te]),P===F&&x instanceof Error){const O=I.currentTask&&I.currentTask.data&&I.currentTask.data[ge];O&&N(x,Ae,{configurable:!0,enumerable:!1,writable:!0,value:O})}for(let O=0;O{try{const ve=M[B],he=!!x&&xe===x[xe];he&&(x[Te]=ve,x[ae]=le);const L=P.run(O,void 0,he&&O!==Be&&O!==tt?[]:[ve]);Se(x,!0,L)}catch(ve){Se(x,!1,ve)}},x)}const Me=function(){},Je=E.AggregateError;class ne{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(P){return P instanceof ne?P:Se(new this(null),De,P)}static reject(P){return Se(new this(null),F,P)}static withResolvers(){const P={};return P.promise=new ne((x,A)=>{P.resolve=x,P.reject=A}),P}static any(P){if(!P||"function"!=typeof P[Symbol.iterator])return Promise.reject(new Je([],"All promises were rejected"));const x=[];let A=0;try{for(let O of P)A++,x.push(ne.resolve(O))}catch{return Promise.reject(new Je([],"All promises were rejected"))}if(0===A)return Promise.reject(new Je([],"All promises were rejected"));let _=!1;const le=[];return new ne((O,ve)=>{for(let he=0;he{_||(_=!0,O(L))},L=>{le.push(L),A--,0===A&&(_=!0,ve(new Je(le,"All promises were rejected")))})})}static race(P){let x,A,_=new this((ve,he)=>{x=ve,A=he});function le(ve){x(ve)}function O(ve){A(ve)}for(let ve of P)Qe(ve)||(ve=this.resolve(ve)),ve.then(le,O);return _}static all(P){return ne.allWithCallback(P)}static allSettled(P){return(this&&this.prototype instanceof ne?this:ne).allWithCallback(P,{thenCallback:A=>({status:"fulfilled",value:A}),errorCallback:A=>({status:"rejected",reason:A})})}static allWithCallback(P,x){let A,_,le=new this((L,ie)=>{A=L,_=ie}),O=2,ve=0;const he=[];for(let L of P){Qe(L)||(L=this.resolve(L));const ie=ve;try{L.then(Ve=>{he[ie]=x?x.thenCallback(Ve):Ve,O--,0===O&&A(he)},Ve=>{x?(he[ie]=x.errorCallback(Ve),O--,0===O&&A(he)):_(Ve)})}catch(Ve){_(Ve)}O++,ve++}return O-=2,0===O&&A(he),le}constructor(P){const x=this;if(!(x instanceof ne))throw new Error("Must be an instanceof Promise.");x[te]=W,x[B]=[];try{const A=K();P&&P(A(Q(x,De)),A(Q(x,F)))}catch(A){Se(x,!1,A)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return ne}then(P,x){let A=this.constructor?.[Symbol.species];(!A||"function"!=typeof A)&&(A=this.constructor||ne);const _=new A(Me),le=I.current;return this[te]==W?this[B].push(le,_,P,x):y(this,le,_,P,x),_}catch(P){return this.then(null,P)}finally(P){let x=this.constructor?.[Symbol.species];(!x||"function"!=typeof x)&&(x=ne);const A=new x(Me);A[xe]=xe;const _=I.current;return this[te]==W?this[B].push(_,A,P,P):y(this,_,A,P,P),A}}ne.resolve=ne.resolve,ne.reject=ne.reject,ne.race=ne.race,ne.all=ne.all;const _t=E[Y]=E.Promise;E.Promise=ne;const Xe=G("thenPatched");function Fe(M){const P=M.prototype,x=k(P,"then");if(x&&(!1===x.writable||!x.configurable))return;const A=P.then;P[se]=A,M.prototype.then=function(_,le){return new ne((ve,he)=>{A.call(this,ve,he)}).then(_,le)},M[Xe]=!0}return v.patchThen=Fe,_t&&(Fe(_t),Gt(E,"fetch",M=>function Xt(M){return function(P,x){let A=M.apply(P,x);if(A instanceof ne)return A;let _=A.constructor;return _[Xe]||Fe(_),A}}(M))),Promise[I.__symbol__("uncaughtPromiseErrors")]=ee,ne})}function ue(g,E,I,v,k){const N=Zone.__symbol__(v);if(E[N])return;const j=E[N]=E[v];E[v]=function(G,ee,oe){return ee&&ee.prototype&&k.forEach(function(Y){const se=`${I}.${v}::`+Y,ge=ee.prototype;try{if(ge.hasOwnProperty(Y)){const Re=g.ObjectGetOwnPropertyDescriptor(ge,Y);Re&&Re.value?(Re.value=g.wrapWithCurrentZone(Re.value,se),g._redefineProperty(ee.prototype,Y,Re)):ge[Y]&&(ge[Y]=g.wrapWithCurrentZone(ge[Y],se))}else ge[Y]&&(ge[Y]=g.wrapWithCurrentZone(ge[Y],se))}catch{}}),j.call(E,G,ee,oe)},g.attachOriginToPatched(E[v],j)}const cn=function ns(){const g=globalThis,E=!0===g[at("forceDuplicateZoneCheck")];if(g.Zone&&(E||"function"!=typeof g.Zone.__symbol__))throw new Error("Zone already loaded.");return g.Zone??=function Ss(){const g=xt.performance;function E(Se){g&&g.mark&&g.mark(Se)}function I(Se,S){g&&g.measure&&g.measure(Se,S)}E("Zone");class v{static#e=this.__symbol__=at;static assertZonePatched(){if(xt.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let S=v.current;for(;S.parent;)S=S.parent;return S}static get current(){return Q.zone}static get currentTask(){return K}static __load_patch(S,T,y=!1){if(F.hasOwnProperty(S)){const J=!0===xt[at("forceDuplicateZoneCheck")];if(!y&&J)throw Error("Already loaded patch: "+S)}else if(!xt["__Zone_disable_"+S]){const J="Zone:"+S;E(J),F[S]=T(xt,v,Z),I(J,J)}}get parent(){return this._parent}get name(){return this._name}constructor(S,T){this._parent=S,this._name=T?T.name||"unnamed":"",this._properties=T&&T.properties||{},this._zoneDelegate=new N(this,this._parent&&this._parent._zoneDelegate,T)}get(S){const T=this.getZoneWith(S);if(T)return T._properties[S]}getZoneWith(S){let T=this;for(;T;){if(T._properties.hasOwnProperty(S))return T;T=T._parent}return null}fork(S){if(!S)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,S)}wrap(S,T){if("function"!=typeof S)throw new Error("Expecting function got: "+S);const y=this._zoneDelegate.intercept(this,S,T),J=this;return function(){return J.runGuarded(y,this,arguments,T)}}run(S,T,y,J){Q={parent:Q,zone:this};try{return this._zoneDelegate.invoke(this,S,T,y,J)}finally{Q=Q.parent}}runGuarded(S,T=null,y,J){Q={parent:Q,zone:this};try{try{return this._zoneDelegate.invoke(this,S,T,y,J)}catch(Me){if(this._zoneDelegate.handleError(this,Me))throw Me}}finally{Q=Q.parent}}runTask(S,T,y){if(S.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(S.zone||tt).name+"; Execution: "+this.name+")");const J=S,{type:Me,data:{isPeriodic:Je=!1,isRefreshable:ne=!1}={}}=S;if(S.state===Be&&(Me===De||Me===W))return;const _t=S.state!=xe;_t&&J._transitionTo(xe,B);const Xe=K;K=J,Q={parent:Q,zone:this};try{Me==W&&S.data&&!Je&&!ne&&(S.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,J,T,y)}catch(Fe){if(this._zoneDelegate.handleError(this,Fe))throw Fe}}finally{const Fe=S.state;if(Fe!==Be&&Fe!==ae)if(Me==De||Je||ne&&Fe===te)_t&&J._transitionTo(B,xe,te);else{const Xt=J._zoneDelegates;this._updateTaskCount(J,-1),_t&&J._transitionTo(Be,xe,Be),ne&&(J._zoneDelegates=Xt)}Q=Q.parent,K=Xe}}scheduleTask(S){if(S.zone&&S.zone!==this){let y=this;for(;y;){if(y===S.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${S.zone.name}`);y=y.parent}}S._transitionTo(te,Be);const T=[];S._zoneDelegates=T,S._zone=this;try{S=this._zoneDelegate.scheduleTask(this,S)}catch(y){throw S._transitionTo(ae,te,Be),this._zoneDelegate.handleError(this,y),y}return S._zoneDelegates===T&&this._updateTaskCount(S,1),S.state==te&&S._transitionTo(B,te),S}scheduleMicroTask(S,T,y,J){return this.scheduleTask(new j(_e,S,T,y,J,void 0))}scheduleMacroTask(S,T,y,J,Me){return this.scheduleTask(new j(W,S,T,y,J,Me))}scheduleEventTask(S,T,y,J,Me){return this.scheduleTask(new j(De,S,T,y,J,Me))}cancelTask(S){if(S.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(S.zone||tt).name+"; Execution: "+this.name+")");if(S.state===B||S.state===xe){S._transitionTo(Te,B,xe);try{this._zoneDelegate.cancelTask(this,S)}catch(T){throw S._transitionTo(ae,Te),this._zoneDelegate.handleError(this,T),T}return this._updateTaskCount(S,-1),S._transitionTo(Be,Te),S.runCount=-1,S}}_updateTaskCount(S,T){const y=S._zoneDelegates;-1==T&&(S._zoneDelegates=null);for(let J=0;JSe.hasTask(T,y),onScheduleTask:(Se,S,T,y)=>Se.scheduleTask(T,y),onInvokeTask:(Se,S,T,y,J,Me)=>Se.invokeTask(T,y,J,Me),onCancelTask:(Se,S,T,y)=>Se.cancelTask(T,y)};class N{get zone(){return this._zone}constructor(S,T,y){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=S,this._parentDelegate=T,this._forkZS=y&&(y&&y.onFork?y:T._forkZS),this._forkDlgt=y&&(y.onFork?T:T._forkDlgt),this._forkCurrZone=y&&(y.onFork?this._zone:T._forkCurrZone),this._interceptZS=y&&(y.onIntercept?y:T._interceptZS),this._interceptDlgt=y&&(y.onIntercept?T:T._interceptDlgt),this._interceptCurrZone=y&&(y.onIntercept?this._zone:T._interceptCurrZone),this._invokeZS=y&&(y.onInvoke?y:T._invokeZS),this._invokeDlgt=y&&(y.onInvoke?T:T._invokeDlgt),this._invokeCurrZone=y&&(y.onInvoke?this._zone:T._invokeCurrZone),this._handleErrorZS=y&&(y.onHandleError?y:T._handleErrorZS),this._handleErrorDlgt=y&&(y.onHandleError?T:T._handleErrorDlgt),this._handleErrorCurrZone=y&&(y.onHandleError?this._zone:T._handleErrorCurrZone),this._scheduleTaskZS=y&&(y.onScheduleTask?y:T._scheduleTaskZS),this._scheduleTaskDlgt=y&&(y.onScheduleTask?T:T._scheduleTaskDlgt),this._scheduleTaskCurrZone=y&&(y.onScheduleTask?this._zone:T._scheduleTaskCurrZone),this._invokeTaskZS=y&&(y.onInvokeTask?y:T._invokeTaskZS),this._invokeTaskDlgt=y&&(y.onInvokeTask?T:T._invokeTaskDlgt),this._invokeTaskCurrZone=y&&(y.onInvokeTask?this._zone:T._invokeTaskCurrZone),this._cancelTaskZS=y&&(y.onCancelTask?y:T._cancelTaskZS),this._cancelTaskDlgt=y&&(y.onCancelTask?T:T._cancelTaskDlgt),this._cancelTaskCurrZone=y&&(y.onCancelTask?this._zone:T._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const J=y&&y.onHasTask,Me=T&&T._hasTaskZS;(J||Me)&&(this._hasTaskZS=J?y:k,this._hasTaskDlgt=T,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,y.onScheduleTask||(this._scheduleTaskZS=k,this._scheduleTaskDlgt=T,this._scheduleTaskCurrZone=this._zone),y.onInvokeTask||(this._invokeTaskZS=k,this._invokeTaskDlgt=T,this._invokeTaskCurrZone=this._zone),y.onCancelTask||(this._cancelTaskZS=k,this._cancelTaskDlgt=T,this._cancelTaskCurrZone=this._zone))}fork(S,T){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,S,T):new v(S,T)}intercept(S,T,y){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,S,T,y):T}invoke(S,T,y,J,Me){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,S,T,y,J,Me):T.apply(y,J)}handleError(S,T){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,S,T)}scheduleTask(S,T){let y=T;if(this._scheduleTaskZS)this._hasTaskZS&&y._zoneDelegates.push(this._hasTaskDlgtOwner),y=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,S,T),y||(y=T);else if(T.scheduleFn)T.scheduleFn(T);else{if(T.type!=_e)throw new Error("Task is missing scheduleFn.");We(T)}return y}invokeTask(S,T,y,J){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,S,T,y,J):T.callback.apply(y,J)}cancelTask(S,T){let y;if(this._cancelTaskZS)y=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,S,T);else{if(!T.cancelFn)throw Error("Task is not cancelable");y=T.cancelFn(T)}return y}hasTask(S,T){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,S,T)}catch(y){this.handleError(S,y)}}_updateTaskCount(S,T){const y=this._taskCounts,J=y[S],Me=y[S]=J+T;if(Me<0)throw new Error("More tasks executed then were scheduled.");if(0==J||0==Me){const Je={microTask:y.microTask>0,macroTask:y.macroTask>0,eventTask:y.eventTask>0,change:S};this.hasTask(this._zone,Je)}}}class j{constructor(S,T,y,J,Me,Je){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=S,this.source=T,this.data=J,this.scheduleFn=Me,this.cancelFn=Je,!y)throw new Error("callback is not defined");this.callback=y;const ne=this;S===De&&J&&J.useG?this.invoke=j.invokeTask:this.invoke=function(){return j.invokeTask.call(xt,ne,this,arguments)}}static invokeTask(S,T,y){S||(S=this),ze++;try{return S.runCount++,S.zone.runTask(S,T,y)}finally{1==ze&&Qe(),ze--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Be,te)}_transitionTo(S,T,y){if(this._state!==T&&this._state!==y)throw new Error(`${this.type} '${this.source}': can not transition to '${S}', expecting state '${T}'${y?" or '"+y+"'":""}, was '${this._state}'.`);this._state=S,S==Be&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const G=at("setTimeout"),ee=at("Promise"),oe=at("then");let ge,Y=[],se=!1;function Re(Se){if(ge||xt[ee]&&(ge=xt[ee].resolve(0)),ge){let S=ge[oe];S||(S=ge.then),S.call(ge,Se)}else xt[G](Se,0)}function We(Se){0===ze&&0===Y.length&&Re(Qe),Se&&Y.push(Se)}function Qe(){if(!se){for(se=!0;Y.length;){const Se=Y;Y=[];for(let S=0;SQ,onUnhandledError:Ae,microtaskDrainDone:Ae,scheduleMicroTask:We,showUncaughtError:()=>!v[at("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Ae,patchMethod:()=>Ae,bindArguments:()=>[],patchThen:()=>Ae,patchMacroTask:()=>Ae,patchEventPrototype:()=>Ae,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Ae,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Ae,wrapWithCurrentZone:()=>Ae,filterProperties:()=>[],attachOriginToPatched:()=>Ae,_redefineProperty:()=>Ae,patchCallbacks:()=>Ae,nativeScheduleMicroTask:Re};let Q={parent:null,zone:new v(null,null)},K=null,ze=0;function Ae(){}return I("Zone","Zone"),v}(),g.Zone}();(function qn(g){St(g),function Tn(g){g.__load_patch("toString",E=>{const I=Function.prototype.toString,v=Le("OriginalDelegate"),k=Le("Promise"),N=Le("Error"),j=function(){if("function"==typeof this){const Y=this[v];if(Y)return"function"==typeof Y?I.call(Y):Object.prototype.toString.call(Y);if(this===Promise){const se=E[k];if(se)return I.call(se)}if(this===Error){const se=E[N];if(se)return I.call(se)}}return I.call(this)};j[v]=I,Function.prototype.toString=j;const G=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":G.call(this)}})}(g),function is(g){g.__load_patch("util",(E,I,v)=>{const k=tr(E);v.patchOnProperties=zr,v.patchMethod=Gt,v.bindArguments=Qs,v.patchMacroTask=er;const N=I.__symbol__("BLACK_LISTED_EVENTS"),j=I.__symbol__("UNPATCHED_EVENTS");E[j]&&(E[N]=E[j]),E[N]&&(I[N]=I[j]=E[N]),v.patchEventPrototype=Qi,v.patchEventTarget=Dt,v.isIEOrEdge=Gi,v.ObjectDefineProperty=xn,v.ObjectGetOwnPropertyDescriptor=vt,v.ObjectCreate=ra,v.ArraySlice=ia,v.patchClass=rs,v.wrapWithCurrentZone=an,v.filterProperties=q,v.attachOriginToPatched=wt,v._redefineProperty=Object.defineProperty,v.patchCallbacks=ue,v.getGlobalObjects=()=>({globalSources:It,zoneSymbolEventNames:Ge,eventNames:k,isBrowser:jr,isMix:Wi,isNode:_s,TRUE_STR:Ft,FALSE_STR:on,ZONE_SYMBOL_PREFIX:Ie,ADD_EVENT_LISTENER_STR:Et,REMOVE_EVENT_LISTENER_STR:_n})})}(g)})(cn),function Ne(g){g.__load_patch("legacy",E=>{const I=E[g.__symbol__("legacyPatch")];I&&I()}),g.__load_patch("timers",E=>{const I="set",v="clear";Cn(E,I,v,"Timeout"),Cn(E,I,v,"Interval"),Cn(E,I,v,"Immediate")}),g.__load_patch("requestAnimationFrame",E=>{Cn(E,"request","cancel","AnimationFrame"),Cn(E,"mozRequest","mozCancel","AnimationFrame"),Cn(E,"webkitRequest","webkitCancel","AnimationFrame")}),g.__load_patch("blocking",(E,I)=>{const v=["alert","prompt","confirm"];for(let k=0;kfunction(oe,Y){return I.current.run(j,E,Y,ee)})}}),g.__load_patch("EventTarget",(E,I,v)=>{(function Vn(g,E){E.patchEventPrototype(g,E)})(E,v),function Vt(g,E){if(Zone[E.symbol("patchEventTarget")])return;const{eventNames:I,zoneSymbolEventNames:v,TRUE_STR:k,FALSE_STR:N,ZONE_SYMBOL_PREFIX:j}=E.getGlobalObjects();for(let ee=0;ee{rs("MutationObserver"),rs("WebKitMutationObserver")}),g.__load_patch("IntersectionObserver",(E,I,v)=>{rs("IntersectionObserver")}),g.__load_patch("FileReader",(E,I,v)=>{rs("FileReader")}),g.__load_patch("on_property",(E,I,v)=>{ct(v,E)}),g.__load_patch("customElements",(E,I,v)=>{!function ca(g,E){const{isBrowser:I,isMix:v}=E.getGlobalObjects();if(!I&&!v||!g.customElements||!("customElements"in g))return;E.patchCallbacks(E,g.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(E,v)}),g.__load_patch("XHR",(E,I)=>{!function oe(Y){const se=Y.XMLHttpRequest;if(!se)return;const ge=se.prototype;let We=ge[rn],Qe=ge[xs];if(!We){const Z=Y.XMLHttpRequestEventTarget;if(Z){const Q=Z.prototype;We=Q[rn],Qe=Q[xs]}}const tt="readystatechange",Be="scheduled";function te(Z){const Q=Z.data,K=Q.target;K[j]=!1,K[ee]=!1;const ze=K[N];We||(We=K[rn],Qe=K[xs]),ze&&Qe.call(K,tt,ze);const Ae=K[N]=()=>{if(K.readyState===K.DONE)if(!Q.aborted&&K[j]&&Z.state===Be){const S=K[I.__symbol__("loadfalse")];if(0!==K.status&&S&&S.length>0){const T=Z.invoke;Z.invoke=function(){const y=K[I.__symbol__("loadfalse")];for(let J=0;Jfunction(Z,Q){return Z[k]=0==Q[2],Z[G]=Q[1],Te.apply(Z,Q)}),_e=Le("fetchTaskAborting"),W=Le("fetchTaskScheduling"),De=Gt(ge,"send",()=>function(Z,Q){if(!0===I.current[W]||Z[k])return De.apply(Z,Q);{const K={target:Z,url:Z[G],isPeriodic:!1,args:Q,aborted:!1},ze=Ur("XMLHttpRequest.send",B,K,te,xe);Z&&!0===Z[ee]&&!K.aborted&&ze.state===Be&&ze.invoke()}}),F=Gt(ge,"abort",()=>function(Z,Q){const K=function Re(Z){return Z[v]}(Z);if(K&&"string"==typeof K.type){if(null==K.cancelFn||K.data&&K.data.aborted)return;K.zone.cancelTask(K)}else if(!0===I.current[_e])return F.apply(Z,Q)})}(E);const v=Le("xhrTask"),k=Le("xhrSync"),N=Le("xhrListener"),j=Le("xhrScheduled"),G=Le("xhrURL"),ee=Le("xhrErrorBeforeScheduled")}),g.__load_patch("geolocation",E=>{E.navigator&&E.navigator.geolocation&&function Ui(g,E){const I=g.constructor.name;for(let v=0;v{const ee=function(){return G.apply(this,Qs(arguments,I+"."+k))};return wt(ee,G),ee})(N)}}}(E.navigator.geolocation,["getCurrentPosition","watchPosition"])}),g.__load_patch("PromiseRejectionEvent",(E,I)=>{function v(k){return function(N){yt(E,k).forEach(G=>{const ee=E.PromiseRejectionEvent;if(ee){const oe=new ee(k,{promise:N.promise,reason:N.rejection});G.invoke(oe)}})}}E.PromiseRejectionEvent&&(I[Le("unhandledPromiseRejectionHandler")]=v("unhandledrejection"),I[Le("rejectionHandledHandler")]=v("rejectionhandled"))}),g.__load_patch("queueMicrotask",(E,I,v)=>{!function la(g,E){E.patchMethod(g,"queueMicrotask",I=>function(v,k){Zone.current.scheduleMicroTask("queueMicrotask",k[0])})}(E,v)})}(cn)},9837:(xt,at,Ss)=>{Ss.d(at,{WHm:()=>Tp,udt:()=>JS});const ns=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class vt{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){const t=[],s=(l,c)=>{c.notSelectors.length>0&&!c.element&&0==c.classNames.length&&0==c.attrs.length&&(c.element="*"),l.push(c)};let i,r=new vt,o=r,a=!1;for(ns.lastIndex=0;i=ns.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new vt,r.notSelectors.push(o)}const l=i[2];if(l){const h=i[3];"#"===h?o.addAttribute("id",l.slice(1)):"."===h?o.addClassName(l.slice(1)):o.setElement(l)}const c=i[4];if(c&&o.addAttribute(o.unescapeAttribute(c),i[6]),i[7]&&(a=!1,o=r),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");s(t,r),r=o=new vt}}return s(t,r),t}unescapeAttribute(e){let t="",s=!1;for(let r=0;r0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(t=>e+=`.${t}`),this.attrs)for(let t=0;te+=`:not(${t})`),e}}class xn{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){const t=new xn;return t.addSelectables(e,null),t}addSelectables(e,t){let s=null;e.length>1&&(s=new Hr(e),this._listContexts.push(s));for(let r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!xn.createNotMatcher(this.notSelectors).match(e,null)),s&&t&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),s}}var Et,n,_n,rn;(n=Et||(Et={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(_n||(_n={})),function(n){n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(rn||(rn={}));const xs={name:"custom-elements"},Ft={name:"no-errors-schema"};var Ie,an;function Ys(n){const e=function Ur(n){const e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&"*"!==n.element?n.element:"",...n.attrs,...e]}(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>function Le(n){const e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return n.element?[5,n.element,...n.attrs,...e]:n.attrs.length?[3,...n.attrs,...e]:n.classNames&&n.classNames.length?[9,...n.classNames]:[]}(s)):[];return e.concat(...t)}function ln(n){return n?vt.parse(n).map(Ys):[]}!function(n){n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL"}(Ie||(Ie={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(an||(an={}));let Zs;function Ui(n){return function oa(n){Zs??=new TextEncoder;const e=[...Zs.encode(n)],t=function aa(n,e){const t=n.length+3>>>2,s=[];for(let r=0;r>5]|=128<<24-s%32,t[15+(s+64>>9<<4)]=s;for(let h=0;he.visit(jr,null))}(n.nodes).join("")+`[${n.meaning}]`)}function Js(n,e){return n.id||Wr(n,e)}function Wr(n,e){const t=new Ks(e);return bt(n.nodes.map(r=>r.visit(t,null)).join(""),n.meaning)}class _s{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(s=>s.visit(this)).join(", ")}]`}visitIcu(e,t){const s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${s.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?``:`${e.children.map(s=>s.visit(this)).join(", ")}`}visitPlaceholder(e,t){return e.value?`${e.value}`:``}visitIcuPlaceholder(e,t){return`${e.value.visit(this)}`}visitBlockPlaceholder(e,t){return`${e.children.map(s=>s.visit(this)).join(", ")}`}}const jr=new _s;class Ks extends _s{constructor(e){super(),this.preservePlaceholders=e}visitPlaceholder(e,t){return this.preservePlaceholders?super.visitPlaceholder(e,t):``}visitIcu(e){let t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.type}, ${t.join(", ")}}`}}function ss(n){return(n>>>0).toString(16).padStart(8,"0")}function ji(n,e,t,s){return n<20?[e&t|~e&s,1518500249]:n<40?[e^t^s,1859775393]:n<60?[e&t|e&s|t&s,2400959708]:[e^t^s,3395469782]}function zr(n){Zs??=new TextEncoder;const e=Zs.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength);let s=rs(t,e.length,0),r=rs(t,e.length,102072);return 0==s&&(0==r||1==r)&&(s^=319790063,r^=-1801410264),BigInt.asUintN(32,BigInt(s))<>BigInt(63)&BigInt(1),t+=zr(e)),BigInt.asUintN(63,t).toString()}function rs(n,e,t){let s=2654435769,r=2654435769,i=0;const o=e-12;for(;i<=o;i+=12){s+=n.getUint32(i,!0),r+=n.getUint32(i+4,!0);const l=Gt(s,r,t+=n.getUint32(i+8,!0));s=l[0],r=l[1],t=l[2]}const a=e-i;return t+=e,a>=4?(s+=n.getUint32(i,!0),i+=4,a>=8?(r+=n.getUint32(i,!0),i+=4,a>=9&&(t+=n.getUint8(i++)<<8),a>=10&&(t+=n.getUint8(i++)<<16),11===a&&(t+=n.getUint8(i++)<<24)):(a>=5&&(r+=n.getUint8(i++)),a>=6&&(r+=n.getUint8(i++)<<8),7===a&&(r+=n.getUint8(i++)<<16))):(a>=1&&(s+=n.getUint8(i++)),a>=2&&(s+=n.getUint8(i++)<<8),3===a&&(s+=n.getUint8(i++)<<16)),Gt(s,r,t)[2]}function Gt(n,e,t){return n-=e,n-=t,e-=t,e-=n^=t>>>13,t-=n,t-=e^=n<<8,n-=e,n-=t^=e>>>13,e-=t,e-=n^=t>>>12,t-=n,t-=e^=n<<16,n-=e,n-=t^=e>>>5,e-=t,e-=n^=t>>>3,t-=n,t-=e^=n<<10,[n,e,t^=e>>>15]}var er,Ts,Ot;function wt(n,e){return function zi(n,e){const t=(65535&n)+(65535&e),s=(n>>>16)+(e>>>16)+(t>>>16);return[s>>>16,s<<16|65535&t]}(n,e)[1]}function Cs(n,e){return n<>>32-e}function Gi(n,e){return e>=n.length?0:n[e]}function Xi(n,e,t){let s=0;if(t===er.Big)for(let r=0;r<4;r++)s+=Gi(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=Gi(n,e+r)<<8*r;return s}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(er||(er={})),function(n){n[n.None=0]="None",n[n.Const=1]="Const"}(Ts||(Ts={}));class $t{constructor(e=Ts.None){this.modifiers=e}hasModifier(e){return!!(this.modifiers&e)}}!function(n){n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None"}(Ot||(Ot={}));class Ge extends $t{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}}class It extends $t{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}}const Dt=new Ge(Ot.Dynamic),yt=new Ge(Ot.Inferred),Qi=new Ge(Ot.Bool),On=(new Ge(Ot.Int),new Ge(Ot.Number)),Cn=new Ge(Ot.String),Vt=(new Ge(Ot.Function),new Ge(Ot.None));var Vn,q;function Xr(n,e){return null==n||null==e?n==e:n.isEquivalent(e)}function tr(n,e,t){const s=n.length;if(s!==e.length)return!1;for(let r=0;rt.isEquivalent(s))}!function(n){n[n.Minus=0]="Minus",n[n.Plus=1]="Plus"}(Vn||(Vn={})),function(n){n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseOr=11]="BitwiseOr",n[n.BitwiseAnd=12]="BitwiseAnd",n[n.Lower=13]="Lower",n[n.LowerEquals=14]="LowerEquals",n[n.Bigger=15]="Bigger",n[n.BiggerEquals=16]="BiggerEquals",n[n.NullishCoalesce=17]="NullishCoalesce"}(q||(q={}));class Ne{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new Z(this,e,null,t)}key(e,t,s){return new Q(this,e,t,s)}callFn(e,t,s){return new g(this,e,null,t,s)}instantiate(e,t,s){return new I(this,e,t,s)}conditional(e,t=null,s){return new B(this,e,t,null,s)}equals(e,t){return new F(q.Equals,this,e,null,t)}notEquals(e,t){return new F(q.NotEquals,this,e,null,t)}identical(e,t){return new F(q.Identical,this,e,null,t)}notIdentical(e,t){return new F(q.NotIdentical,this,e,null,t)}minus(e,t){return new F(q.Minus,this,e,null,t)}plus(e,t){return new F(q.Plus,this,e,null,t)}divide(e,t){return new F(q.Divide,this,e,null,t)}multiply(e,t){return new F(q.Multiply,this,e,null,t)}modulo(e,t){return new F(q.Modulo,this,e,null,t)}and(e,t){return new F(q.And,this,e,null,t)}bitwiseOr(e,t,s=!0){return new F(q.BitwiseOr,this,e,null,t,s)}bitwiseAnd(e,t,s=!0){return new F(q.BitwiseAnd,this,e,null,t,s)}or(e,t){return new F(q.Or,this,e,null,t)}lower(e,t){return new F(q.Lower,this,e,null,t)}lowerEquals(e,t){return new F(q.LowerEquals,this,e,null,t)}bigger(e,t){return new F(q.Bigger,this,e,null,t)}biggerEquals(e,t){return new F(q.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(T,e)}nullishCoalesce(e,t){return new F(q.NullishCoalesce,this,e,null,t)}toStmt(){return new Xe(this,null)}}class St extends Ne{constructor(e,t,s){super(t,s),this.name=e}isEquivalent(e){return e instanceof St&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new St(this.name,this.type,this.sourceSpan)}set(e){return new is(this.name,e,null,this.sourceSpan)}}class Tn extends Ne{constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof Tn&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new Tn(this.expr.clone())}}class ue extends Ne{constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof ue&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}clone(){return new ue(this.node,this.type,this.sourceSpan)}}class is extends Ne{constructor(e,t,s,r){super(s||t.type,r),this.name=e,this.value=t}isEquivalent(e){return e instanceof is&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new is(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new ne(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(yt,y.Final)}}class qn extends Ne{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.index=t,this.value=s}isEquivalent(e){return e instanceof qn&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new qn(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}}class cn extends Ne{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.name=t,this.value=s}isEquivalent(e){return e instanceof cn&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new cn(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}}class g extends Ne{constructor(e,t,s,r,i=!1){super(s,r),this.fn=e,this.args=t,this.pure=i}get receiver(){return this.fn}isEquivalent(e){return e instanceof g&&this.fn.isEquivalent(e.fn)&&ct(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new g(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}}class E extends Ne{constructor(e,t,s,r){super(s,r),this.tag=e,this.template=t}isEquivalent(e){return e instanceof E&&this.tag.isEquivalent(e.tag)&&tr(this.template.elements,e.template.elements,(t,s)=>t.text===s.text)&&ct(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}clone(){return new E(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}}class I extends Ne{constructor(e,t,s,r){super(s,r),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof I&&this.classExpr.isEquivalent(e.classExpr)&&ct(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new I(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}}class v extends Ne{constructor(e,t,s){super(t,s),this.value=e}isEquivalent(e){return e instanceof v&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new v(this.value,this.type,this.sourceSpan)}}class k{constructor(e,t){this.elements=e,this.expressions=t}clone(){return new k(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}}class N{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??Qe(ge(e))}clone(){return new N(this.text,this.sourceSpan,this.rawText)}}class j{constructor(e,t){this.text=e,this.sourceSpan=t}}class G{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}}class se extends Ne{constructor(e,t,s,r,i){super(Cn,i),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=s,this.expressions=r}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}clone(){return new se(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(e=>e.clone()),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}|${e}`),this.metaBlock.customId&&(e=`${e}@@${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}\u241f${t}`}),tt(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){const t=this.placeHolderNames[e-1],s=this.messageParts[e];let r=t.text;return 0===t.associatedMessage?.legacyIds.length&&(r+=`@@${bt(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),tt(r,s.text,this.getMessagePartSourceSpan(e))}}const ge=n=>n.replace(/\\/g,"\\\\"),Re=n=>n.replace(/^:/,"\\:"),We=n=>n.replace(/:/g,"\\:"),Qe=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function tt(n,e,t){return""===n?{cooked:e,raw:Qe(Re(ge(e))),range:t}:{cooked:`:${n}:${e}`,raw:Qe(`:${We(ge(n))}:${ge(e)}`),range:t}}class Be extends Ne{constructor(e,t,s=null,r){super(t,r),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof Be&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new Be(this.value,this.type,this.typeParams,this.sourceSpan)}}class B extends Ne{constructor(e,t,s=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=s,this.trueCase=t}isEquivalent(e){return e instanceof B&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Xr(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){return new B(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}}class Te extends Ne{constructor(e,t){super(Qi,t),this.condition=e}isEquivalent(e){return e instanceof Te&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}clone(){return new Te(this.condition.clone(),this.sourceSpan)}}class ae{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}clone(){return new ae(this.name,this.type)}}class _e extends Ne{constructor(e,t,s,r,i){super(s,r),this.params=e,this.statements=t,this.name=i}isEquivalent(e){return(e instanceof _e||e instanceof _t)&&ct(this.params,e.params)&&ct(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new _t(e,this.params,this.statements,this.type,t,this.sourceSpan)}clone(){return new _e(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}}class W extends Ne{constructor(e,t,s,r){super(s,r),this.params=e,this.body=t}isEquivalent(e){return!!(e instanceof W&&ct(this.params,e.params))&&(this.body instanceof Ne&&e.body instanceof Ne?this.body.isEquivalent(e.body):!(!Array.isArray(this.body)||!Array.isArray(e.body))&&ct(this.body,e.body))}isConstant(){return!1}visitExpression(e,t){return e.visitArrowFunctionExpr(this,t)}clone(){return new W(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new ne(e,this,yt,t,this.sourceSpan)}}class De extends Ne{constructor(e,t,s,r,i=!0){super(s||On,r),this.operator=e,this.expr=t,this.parens=i}isEquivalent(e){return e instanceof De&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}clone(){return new De(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}}class F extends Ne{constructor(e,t,s,r,i,o=!0){super(r||t.type,i),this.operator=e,this.rhs=s,this.parens=o,this.lhs=t}isEquivalent(e){return e instanceof F&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new F(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}}class Z extends Ne{constructor(e,t,s,r){super(s,r),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(e){return e instanceof Z&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new cn(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new Z(this.receiver.clone(),this.name,this.type,this.sourceSpan)}}class Q extends Ne{constructor(e,t,s,r){super(s,r),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof Q&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new qn(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new Q(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}}class K extends Ne{constructor(e,t,s){super(t,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof K&&ct(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new K(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}}class ze{constructor(e,t,s){this.key=e,this.value=t,this.quoted=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new ze(this.key,this.value.clone(),this.quoted)}}class Ae extends Ne{constructor(e,t,s){super(t,s),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof Ae&&ct(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){const e=this.entries.map(t=>t.clone());return new Ae(e,this.type,this.sourceSpan)}}const S=new v(null,null,null),T=new v(null,yt,null);var y;!function(n){n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static"}(y||(y={}));class J{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}}class Me extends J{constructor(e){super("",!0,!0),this.tags=e}toString(){return function Ki(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return`*${Un(n[0])} `;let e="*\n";for(const t of n)e+=" *",e+=Un(t).replace(/\n/g,"\n * "),e+="\n";return e+=" ",e}(this.tags)}}class Je{constructor(e=y.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return!!(this.modifiers&e)}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}}class ne extends Je{constructor(e,t,s,r,i,o){super(r,i,o),this.name=e,this.value=t,this.type=s||t&&t.type||null}isEquivalent(e){return e instanceof ne&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}}class _t extends Je{constructor(e,t,s,r,i,o,a){super(i,o,a),this.name=e,this.params=t,this.statements=s,this.type=r||null}isEquivalent(e){return e instanceof _t&&ct(this.params,e.params)&&ct(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}}class Xe extends Je{constructor(e,t,s){super(y.None,t,s),this.expr=e}isEquivalent(e){return e instanceof Xe&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}}class Fe extends Je{constructor(e,t=null,s){super(y.None,t,s),this.value=e}isEquivalent(e){return e instanceof Fe&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}}class Xt extends Je{constructor(e,t,s=[],r,i){super(y.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof Xt&&this.condition.isEquivalent(e.condition)&&ct(this.trueCase,e.trueCase)&&ct(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}}function x(n=[]){return new Me(n)}function A(n,e,t){return new St(n,e,t)}function _(n,e=null,t){return new Be(n,null,e,t)}function O(n,e,t){return new It(n,e,t)}function he(n){return new Tn(n)}function L(n,e,t){return new K(n,e,t)}function ie(n,e=null){return new Ae(n.map(t=>new ze(t.key,t.value,t.quoted)),e,null)}function un(n,e){return new Te(n,e)}function lt(n,e,t,s,r){return new _e(n,e,t,s,r)}function qe(n,e,t,s){return new W(n,e,t,s)}function Hn(n,e,t,s,r){return new Xt(n,e,t,s,r)}function Yr(n,e,t,s){return new E(n,e,t,s)}function d(n,e,t){return new v(n,e,t)}function nr(n,e,t,s,r){return new se(n,e,t,s,r)}function Un(n){let e="";if(n.tagName&&(e+=` @${n.tagName}`),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+n.text.replace(/@/g,"\\@")}return e}const Qr=A(""),As={};class Ct extends Ne{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,t){return t===As?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof Ct&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}}class Ql{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.sharedConstants=new Map,this._claimedNames=new Map,this.nextNameIndex=0}getConstLiteral(e,t){if(e instanceof v&&!Jl(e)||e instanceof Ct)return e;const s=sr.INSTANCE.keyOf(e);let r=this.literals.get(s),i=!1;if(r||(r=new Ct(e),this.literals.set(s,r),i=!0),!i&&!r.shared||i&&t){const o=this.freshName();let a,l;this.isClosureCompilerEnabled&&Jl(e)?(a=A(o).set(new _e([],[new Fe(e)])),l=A(o).callFn([])):(a=A(o).set(e),l=A(o)),this.statements.push(a.toDeclStmt(yt,y.Final)),r.fixup(l)}return r}getSharedConstant(e,t){const s=e.keyOf(t);if(!this.sharedConstants.has(s)){const r=this.freshName();this.sharedConstants.set(s,A(r)),this.statements.push(e.toSharedConstantDeclaration(r,t))}return this.sharedConstants.get(s)}getLiteralFactory(e){if(e instanceof K){const t=e.entries.map(r=>r.isConstant()?r:Qr),s=sr.INSTANCE.keyOf(L(t));return this._getLiteralFactory(s,e.entries,r=>L(r))}{const t=ie(e.entries.map(r=>({key:r.key,value:r.value.isConstant()?r.value:Qr,quoted:r.quoted}))),s=sr.INSTANCE.keyOf(t);return this._getLiteralFactory(s,e.entries.map(r=>r.value),r=>ie(r.map((i,o)=>({key:e.entries[o].key,value:i,quoted:e.entries[o].quoted}))))}}getSharedFunctionReference(e,t,s=!0){const r=e instanceof W;for(const o of this.statements)if(r&&o instanceof ne&&o.value?.isEquivalent(e)||!r&&o instanceof _t&&e instanceof _e&&e.isEquivalent(o))return A(o.name);const i=s?this.uniqueName(t):t;return this.statements.push(e instanceof _e?e.toDeclStmt(i,y.Final):new ne(i,e,yt,y.Final,e.sourceSpan)),A(i)}_getLiteralFactory(e,t,s){let r=this.literalFactories.get(e);const i=t.filter(o=>!o.isConstant());if(!r){const o=t.map((h,p)=>h.isConstant()?this.getConstLiteral(h,!0):A(`a${p}`)),l=qe(o.filter(rf).map(h=>new ae(h.name,Dt)),s(o),yt),c=this.freshName();this.statements.push(A(c).set(l).toDeclStmt(yt,y.Final)),r=A(c),this.literalFactories.set(e,r)}return{literalFactory:r,literalFactoryArguments:i}}uniqueName(e,t=!0){const s=this._claimedNames.get(e)??0,r=0!==s||t?`${e}${s}`:`${e}`;return this._claimedNames.set(e,s+1),r}freshName(){return this.uniqueName("_c")}}class sr{static#e=this.INSTANCE=new sr;keyOf(e){if(e instanceof v&&"string"==typeof e.value)return`"${e.value}"`;if(e instanceof v)return String(e.value);if(e instanceof K){const t=[];for(const s of e.entries)t.push(this.keyOf(s));return`[${t.join(",")}]`}if(e instanceof Ae){const t=[];for(const s of e.entries){let r=s.key;s.quoted&&(r=`"${r}"`),t.push(r+":"+this.keyOf(s.value))}return`{${t.join(",")}}`}if(e instanceof Be)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof St)return`read(${e.name})`;if(e instanceof Tn)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}function rf(n){return n instanceof St}function Jl(n){return n instanceof v&&"string"==typeof n.value&&n.value.length>=50}const m="@angular/core";class f{static#e=this.NEW_METHOD="factory";static#t=this.TRANSFORM_METHOD="transform";static#n=this.PATCH_DEPS="patchedDeps";static#s=this.core={name:null,moduleName:m};static#r=this.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:m};static#i=this.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:m};static#o=this.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:m};static#a=this.element={name:"\u0275\u0275element",moduleName:m};static#l=this.elementStart={name:"\u0275\u0275elementStart",moduleName:m};static#c=this.elementEnd={name:"\u0275\u0275elementEnd",moduleName:m};static#u=this.advance={name:"\u0275\u0275advance",moduleName:m};static#h=this.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:m};static#p=this.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:m};static#f=this.attribute={name:"\u0275\u0275attribute",moduleName:m};static#d=this.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:m};static#m=this.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:m};static#g=this.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:m};static#v=this.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:m};static#E=this.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:m};static#w=this.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:m};static#y=this.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:m};static#S=this.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:m};static#x=this.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:m};static#_=this.classProp={name:"\u0275\u0275classProp",moduleName:m};static#C=this.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:m};static#T=this.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:m};static#A=this.elementContainer={name:"\u0275\u0275elementContainer",moduleName:m};static#k=this.styleMap={name:"\u0275\u0275styleMap",moduleName:m};static#b=this.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:m};static#I=this.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:m};static#D=this.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:m};static#N=this.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:m};static#P=this.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:m};static#L=this.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:m};static#B=this.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:m};static#M=this.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:m};static#R=this.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:m};static#F=this.classMap={name:"\u0275\u0275classMap",moduleName:m};static#$=this.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:m};static#O=this.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:m};static#V=this.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:m};static#q=this.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:m};static#H=this.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:m};static#U=this.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:m};static#W=this.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:m};static#j=this.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:m};static#z=this.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:m};static#G=this.styleProp={name:"\u0275\u0275styleProp",moduleName:m};static#X=this.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:m};static#Y=this.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:m};static#Z=this.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:m};static#Q=this.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:m};static#J=this.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:m};static#K=this.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:m};static#ee=this.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:m};static#te=this.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:m};static#ne=this.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:m};static#se=this.nextContext={name:"\u0275\u0275nextContext",moduleName:m};static#re=this.resetView={name:"\u0275\u0275resetView",moduleName:m};static#ie=this.templateCreate={name:"\u0275\u0275template",moduleName:m};static#oe=this.defer={name:"\u0275\u0275defer",moduleName:m};static#ae=this.deferWhen={name:"\u0275\u0275deferWhen",moduleName:m};static#le=this.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:m};static#ce=this.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:m};static#ue=this.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:m};static#he=this.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:m};static#pe=this.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:m};static#fe=this.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:m};static#de=this.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:m};static#me=this.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:m};static#ge=this.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:m};static#ve=this.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:m};static#Ee=this.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:m};static#we=this.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:m};static#ye=this.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:m};static#Se=this.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:m};static#xe=this.conditional={name:"\u0275\u0275conditional",moduleName:m};static#_e=this.repeater={name:"\u0275\u0275repeater",moduleName:m};static#Ce=this.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:m};static#Te=this.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:m};static#Ae=this.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:m};static#ke=this.componentInstance={name:"\u0275\u0275componentInstance",moduleName:m};static#be=this.text={name:"\u0275\u0275text",moduleName:m};static#Ie=this.enableBindings={name:"\u0275\u0275enableBindings",moduleName:m};static#De=this.disableBindings={name:"\u0275\u0275disableBindings",moduleName:m};static#Ne=this.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:m};static#Pe=this.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:m};static#Le=this.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:m};static#Be=this.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:m};static#Me=this.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:m};static#Re=this.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:m};static#Fe=this.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:m};static#$e=this.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:m};static#Oe=this.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:m};static#Ve=this.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:m};static#qe=this.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:m};static#He=this.restoreView={name:"\u0275\u0275restoreView",moduleName:m};static#Ue=this.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:m};static#We=this.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:m};static#je=this.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:m};static#ze=this.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:m};static#Ge=this.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:m};static#Xe=this.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:m};static#Ye=this.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:m};static#Ze=this.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:m};static#Qe=this.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:m};static#Je=this.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:m};static#Ke=this.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:m};static#et=this.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:m};static#tt=this.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:m};static#nt=this.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:m};static#st=this.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:m};static#rt=this.hostProperty={name:"\u0275\u0275hostProperty",moduleName:m};static#it=this.property={name:"\u0275\u0275property",moduleName:m};static#ot=this.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:m};static#at=this.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:m};static#lt=this.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:m};static#ct=this.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:m};static#ut=this.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:m};static#ht=this.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:m};static#pt=this.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:m};static#ft=this.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:m};static#dt=this.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:m};static#mt=this.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:m};static#gt=this.i18n={name:"\u0275\u0275i18n",moduleName:m};static#vt=this.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:m};static#Et=this.i18nExp={name:"\u0275\u0275i18nExp",moduleName:m};static#wt=this.i18nStart={name:"\u0275\u0275i18nStart",moduleName:m};static#yt=this.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:m};static#St=this.i18nApply={name:"\u0275\u0275i18nApply",moduleName:m};static#xt=this.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:m};static#_t=this.pipe={name:"\u0275\u0275pipe",moduleName:m};static#Ct=this.projection={name:"\u0275\u0275projection",moduleName:m};static#Tt=this.projectionDef={name:"\u0275\u0275projectionDef",moduleName:m};static#At=this.reference={name:"\u0275\u0275reference",moduleName:m};static#kt=this.inject={name:"\u0275\u0275inject",moduleName:m};static#bt=this.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:m};static#It=this.directiveInject={name:"\u0275\u0275directiveInject",moduleName:m};static#Dt=this.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:m};static#Nt=this.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:m};static#Pt=this.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:m};static#Lt=this.forwardRef={name:"forwardRef",moduleName:m};static#Bt=this.resolveForwardRef={name:"resolveForwardRef",moduleName:m};static#Mt=this.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:m};static#Rt=this.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:m};static#Ft=this.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:m};static#$t=this.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:m};static#Ot=this.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:m};static#Vt=this.resolveBody={name:"\u0275\u0275resolveBody",moduleName:m};static#qt=this.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:m};static#Ht=this.defineComponent={name:"\u0275\u0275defineComponent",moduleName:m};static#Ut=this.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:m};static#Wt=this.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:m};static#jt=this.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:m};static#zt=this.ViewEncapsulation={name:"ViewEncapsulation",moduleName:m};static#Gt=this.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:m};static#Xt=this.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:m};static#Yt=this.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:m};static#Zt=this.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:m};static#Qt=this.defineDirective={name:"\u0275\u0275defineDirective",moduleName:m};static#Jt=this.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:m};static#Kt=this.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:m};static#en=this.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:m};static#tn=this.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:m};static#nn=this.defineInjector={name:"\u0275\u0275defineInjector",moduleName:m};static#sn=this.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:m};static#rn=this.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:m};static#in=this.ModuleWithProviders={name:"ModuleWithProviders",moduleName:m};static#on=this.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:m};static#an=this.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:m};static#ln=this.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:m};static#cn=this.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:m};static#un=this.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:m};static#hn=this.definePipe={name:"\u0275\u0275definePipe",moduleName:m};static#pn=this.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:m};static#fn=this.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:m};static#dn=this.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:m};static#mn=this.setClassMetadata={name:"\u0275setClassMetadata",moduleName:m};static#gn=this.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:m};static#vn=this.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:m};static#En=this.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:m};static#wn=this.viewQuery={name:"\u0275\u0275viewQuery",moduleName:m};static#yn=this.loadQuery={name:"\u0275\u0275loadQuery",moduleName:m};static#Sn=this.contentQuery={name:"\u0275\u0275contentQuery",moduleName:m};static#xn=this.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:m};static#_n=this.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:m};static#Cn=this.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:m};static#Tn=this.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:m};static#An=this.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:m};static#kn=this.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:m};static#bn=this.declareLet={name:"\u0275\u0275declareLet",moduleName:m};static#In=this.storeLet={name:"\u0275\u0275storeLet",moduleName:m};static#Dn=this.readContextLet={name:"\u0275\u0275readContextLet",moduleName:m};static#Nn=this.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:m};static#Pn=this.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:m};static#Ln=this.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:m};static#Bn=this.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:m};static#Mn=this.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:m};static#Rn=this.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:m};static#Fn=this.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:m};static#$n=this.listener={name:"\u0275\u0275listener",moduleName:m};static#On=this.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:m};static#Vn=this.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:m};static#qn=this.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:m};static#Hn=this.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:m};static#Un=this.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:m};static#Wn=this.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:m};static#jn=this.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:m};static#zn=this.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:m};static#Gn=this.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:m};static#Xn=this.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:m};static#Yn=this.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:m};static#Zn=this.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:m};static#Qn=this.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:m}}const of=/-+([a-z0-9])/g;function Kl(n,e,t){const s=n.indexOf(e);return-1==s?t:[n.slice(0,s).trim(),n.slice(s+1).trim()]}function ec(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ec).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;if(!n.toString)return"object";const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}const Jr=globalThis;class mf{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,s,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(null==e)throw new Error("The column in the generated code must be provided");if(e{e.set(c,h),t.push(c),s.push(this.sourcesContent.get(c)||null)});let r="",i=0,o=0,a=0,l=0;return this.lines.forEach(c=>{i=0,r+=c.map(h=>{let p=to(h.col0-i);return i=h.col0,null!=h.sourceUrl&&(p+=to(e.get(h.sourceUrl)-o),o=e.get(h.sourceUrl),p+=to(h.sourceLine0-a),a=h.sourceLine0,p+=to(h.sourceCol0-l),l=h.sourceCol0),p}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:t,sourcesContent:s,mappings:r}}toJsComment(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function gf(n){let e="";const t=function hf(n){let e=[];for(let t=0;t=55296&&s<=56319&&n.length>t+1){const r=n.charCodeAt(t+1);r>=56320&&r<=57343&&(t++,s=(s-55296<<10)+r-56320+65536)}s<=127?e.push(s):s<=2047?e.push(s>>6&31|192,63&s|128):s<=65535?e.push(s>>12|224,s>>6&63|128,63&s|128):s<=2097151&&e.push(s>>18&7|240,s>>12&63|128,s>>6&63|128,63&s|128)}return e}(n);for(let s=0;s>2),e+=Kr((3&r)<<4|(null===i?0:i>>4)),e+=null===i?"=":Kr((15&i)<<2|(null===o?0:o>>6)),e+=null===i||null===o?"=":Kr(63&o)}return e}(JSON.stringify(this,null,0)):""}}function to(n){n=n<0?1+(-n<<1):n<<1;let e="";do{let t=31&n;(n>>=5)>0&&(t|=32),e+=Kr(t)}while(n>0);return e}const vf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Kr(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return vf[n]}const Ef=/'|\\|\n|\r|\$/g,wf=/^[$A-Z_][0-9A-Z_$]*$/i;class tc{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}class ha{static createRoot(){return new ha(0)}constructor(e){this._indent=e,this._lines=[new tc(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return 0===this._currentLine.parts.length}lineLength(){return 2*this._currentLine.indent+this._currentLine.partsLength}print(e,t,s=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),s&&this._lines.push(new tc(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?nc(e.indent)+e.parts.join(""):"").join("\n")}toSourceMapGenerator(e,t=0){const s=new mf(e);let r=!1;const i=()=>{r||(s.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let o=0;o{s.addLine();const l=o.srcSpans,c=o.parts;let h=2*o.indent,p=0;for(;pr)return s.srcSpans[i];r-=o.length}}return null}get sourceLines(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}class yf{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(void 0!==e.leadingComments)for(const s of e.leadingComments)s instanceof Me?t.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?t.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split("\n").forEach(r=>{t.println(e,`// ${r}`)})}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");const s=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!s?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),s&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitWriteVarExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),t.print(e,`${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWriteKeyExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWritePropExpr(e,t){const s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,`.${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitInvokeFunctionExpr(e,t){const s=e.fn instanceof W;return s&&t.print(e.fn,"("),e.fn.visitExpression(this,t),s&&t.print(e.fn,")"),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateExpr(e,t){e.tag.visitExpression(this,t),t.print(e,"`"+e.template.elements[0].rawText);for(let s=1;s{t.print(e,`${ks(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.value.visitExpression(this,t)},e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitAllExpressions(e,t,s){this.visitAllObjects(r=>r.visitExpression(this,t),e,t,s)}visitAllObjects(e,t,s,r){let i=!1;for(let o=0;o0&&(s.lineLength()>80?(s.print(null,r,!0),i||(s.incIndent(),s.incIndent(),i=!0)):s.print(null,r,!1)),e(t[o]);i&&(s.decIndent(),s.decIndent())}visitAllStatements(e,t){e.forEach(s=>s.visitStatement(this,t))}}function ks(n,e,t=!0){if(null==n)return null;const s=n.replace(Ef,(...i)=>"$"==i[0]?e?"\\$":"$":"\n"==i[0]?"\\n":"\r"==i[0]?"\\r":`\\${i[0]}`);return t||!wf.test(s)?`'${s}'`:s}function nc(n){let e="";for(let t=0;ts.value));return e?qe([],t):t}function fa(n,e){return{expression:n,forwardRef:e}}function rr({expression:n,forwardRef:e}){switch(e){case 0:case 1:return n;case 2:return da(n)}}function da(n){return _(f.forwardRef).callFn([qe([],n)])}var ei,pn,Wn,Ut,Oe,mn;function bs(n){const e=A("__ngFactoryType__");let t=null;const s=ac(n)?e:new F(q.Or,e,n.type.value);let r=null;null!==n.deps?"invalid"!==n.deps&&(r=new I(s,oc(n.deps,n.target))):(t=A(`\u0275${n.name}_BaseFactory`),r=t.callFn([s]));const i=[];let o=null;function a(c){const h=A("__ngConditionalFactory__");i.push(h.set(S).toDeclStmt());const p=null!==r?h.set(r).toStmt():_(f.invalidFactory).callFn([]).toStmt();return i.push(Hn(e,[p],[h.set(c).toStmt()])),h}if(ac(n)){const c=oc(n.delegateDeps,n.target);o=a(new(n.delegateType===ei.Class?I:g)(n.delegate,c))}else o=function Af(n){return void 0!==n.expression}(n)?a(n.expression):r;if(null===o)i.push(_(f.invalidFactory).callFn([]).toStmt());else if(null!==t){const c=_(f.getInheritedFactory).callFn([n.type.value]),h=new F(q.Or,t,t.set(c));i.push(new Fe(h.callFn([s])))}else i.push(new Fe(o));let l=lt([new ae(e.name,Dt)],i,yt,void 0,`${n.name}_Factory`);return null!==t&&(l=qe([],[new ne(t.name),new Fe(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:ic(n)}}function ic(n){const e=null!==n.deps&&"invalid"!==n.deps?function Cf(n){let e=!1;const t=n.map(s=>{const r=function Tf(n){const e=[];return null!==n.attributeNameType&&e.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&e.push({key:"optional",value:d(!0),quoted:!1}),n.host&&e.push({key:"host",value:d(!0),quoted:!1}),n.self&&e.push({key:"self",value:d(!0),quoted:!1}),n.skipSelf&&e.push({key:"skipSelf",value:d(!0),quoted:!1}),e.length>0?ie(e):null}(s);return null!==r?(e=!0,r):d(null)});return e?O(L(t)):Vt}(n.deps):Vt;return O(_(f.FactoryDeclaration,[no(n.type.type,n.typeArgumentCount),e]))}function oc(n,e){return n.map((t,s)=>function _f(n,e,t){if(null===n.token)return _(f.invalidFactoryDep).callFn([d(t)]);if(null===n.attributeNameType){const s=(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(e===pn.Pipe?16:0);let r=0!==s||n.optional?d(s):null;const i=[n.token];r&&i.push(r);const o=function kf(n){switch(n){case pn.Component:case pn.Directive:case pn.Pipe:return f.directiveInject;case pn.NgModule:case pn.Injectable:default:return f.inject}}(e);return _(o).callFn(i)}return _(f.injectAttribute).callFn([n.token])}(t,e,s))}function ac(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(ei||(ei={})),function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(pn||(pn={}));class ma{constructor(e,t,s,r){this.input=t,this.errLocation=s,this.ctxLocation=r,this.message=`Parser Error: ${e} ${s} [${t}] in ${r}`}}class ti{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new dn(e+this.start,e+this.end)}}class Ke{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}}class so extends Ke{constructor(e,t,s){super(e,t),this.nameSpan=s}}class Ht extends Ke{visit(e,t=null){}}class Is extends Ke{visit(e,t=null){return e.visitImplicitReceiver(this,t)}}class ni extends Is{visit(e,t=null){return e.visitThisReceiver?.(this,t)}}class ir extends Ke{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}}class si extends Ke{constructor(e,t,s,r,i){super(e,t),this.condition=s,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}}class Ds extends so{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}}class ro extends so{constructor(e,t,s,r,i,o){super(e,t,s),this.receiver=r,this.name=i,this.value=o}visit(e,t=null){return e.visitPropertyWrite(this,t)}}class io extends so{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}}class or extends Ke{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}}class oo extends Ke{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}}class ao extends Ke{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}}class lo extends so{constructor(e,t,s,r,i,o){super(e,t,o),this.exp=s,this.name=r,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}}class fn extends Ke{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}}class co extends Ke{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}}class uo extends Ke{constructor(e,t,s,r){super(e,t),this.keys=s,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}}class Ns extends Ke{constructor(e,t,s,r){super(e,t),this.strings=s,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}}class Yt extends Ke{constructor(e,t,s,r,i){super(e,t),this.operation=s,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}}class An extends Yt{static createMinus(e,t,s){return new An(e,t,"-",s,"-",new fn(e,t,0),s)}static createPlus(e,t,s){return new An(e,t,"+",s,"-",s,new fn(e,t,0))}constructor(e,t,s,r,i,o,a){super(e,t,i,o,a),this.operator=s,this.expr=r,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return void 0!==e.visitUnary?e.visitUnary(this,t):e.visitBinary(this,t)}}class ri extends Ke{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}}class ii extends Ke{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}}class ho extends Ke{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}}class po extends Ke{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}}class dn{constructor(e,t){this.start=e,this.end=t}}class kn extends Ke{constructor(e,t,s,r,i){super(new ti(0,null===t?0:t.length),new dn(r,null===t?r:r+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}}class ga{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}class bf{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}}class va{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(const s of e)this.visit(s,t)}}class Ea{constructor(e,t,s,r,i,o){this.name=e,this.expression=t,this.type=s,this.sourceSpan=r,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===Wn.LITERAL_ATTR,this.isAnimation=this.type===Wn.ANIMATION}}!function(n){n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION",n[n.TWO_WAY=3]="TWO_WAY"}(Wn||(Wn={})),function(n){n[n.Regular=0]="Regular",n[n.Animation=1]="Animation",n[n.TwoWay=2]="TwoWay"}(Ut||(Ut={}));class lc{constructor(e,t,s,r,i,o,a){this.name=e,this.targetOrPhase=t,this.type=s,this.handler=r,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}}class If{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}}!function(n){n[n.Property=0]="Property",n[n.Attribute=1]="Attribute",n[n.Class=2]="Class",n[n.Style=3]="Style",n[n.Animation=4]="Animation",n[n.TwoWay=5]="TwoWay"}(Oe||(Oe={}));class cc{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}}function gn(n,e=!0){if(":"!=n[0])return[null,n];const t=n.indexOf(":",1);if(-1===t){if(e)throw new Error(`Unsupported format "${n}" expecting ":namespace:name"`);return[null,n]}return[n.slice(1,t),n.slice(t+1)]}function uc(n){return"ng-container"===gn(n)[1]}function wa(n){return"ng-content"===gn(n)[1]}function ya(n){return null===n?null:gn(n)[0]}function Sa(n,e){return n?`:${n}:${e}`:e}!function(n){n[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA"}(mn||(mn={}));class fo{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}}class Ps{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}}class mo{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s}visit(e){return e.visitBoundText(this)}}class go{constructor(e,t,s,r,i,o){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}}class xa{constructor(e,t,s,r,i,o,a,l,c){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,this.i18n=c}static fromBoundElementProperty(e,t){if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new xa(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}}class _a{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.handler=s,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){const t=e.type===Ut.Regular?e.targetOrPhase:null,s=e.type===Ut.Animation?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new _a(e.name,e.type,e.handler,t,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}}class bn{constructor(e,t,s,r,i,o,a,l,c,h){this.name=e,this.attributes=t,this.inputs=s,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=h}visit(e){return e.visitElement(this)}}class Ls{constructor(e,t,s,r){this.nameSpan=e,this.sourceSpan=t,this.prefetchSpan=s,this.whenOrOnSourceSpan=r}visit(e){return e.visitDeferredTrigger(this)}}class Nf extends Ls{constructor(e,t,s,r){super(null,t,s,r),this.value=e}}class Pf extends Ls{}class Lf extends Ls{}class hc extends Ls{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}}class Bf extends Ls{constructor(e,t,s,r,i){super(t,s,r,i),this.delay=e}}class pc extends Ls{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}}class fc extends Ls{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}}class In{constructor(e,t,s,r){this.nameSpan=e,this.sourceSpan=t,this.startSourceSpan=s,this.endSourceSpan=r}}class Ca extends In{constructor(e,t,s,r,i,o,a){super(s,r,i,o),this.children=e,this.minimumTime=t,this.i18n=a}visit(e){return e.visitDeferredBlockPlaceholder(this)}}class Ta extends In{constructor(e,t,s,r,i,o,a,l){super(r,i,o,a),this.children=e,this.afterTime=t,this.minimumTime=s,this.i18n=l}visit(e){return e.visitDeferredBlockLoading(this)}}class Aa extends In{constructor(e,t,s,r,i,o){super(t,s,r,i),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}}class oi extends In{constructor(e,t,s,r,i,o,a,l,c,h,p,w){super(a,l,h,p),this.children=e,this.placeholder=r,this.loading=i,this.error=o,this.mainBlockSpan=c,this.i18n=w,this.triggers=t,this.prefetchTriggers=s,this.definedTriggers=Object.keys(t),this.definedPrefetchTriggers=Object.keys(s)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),je(e,this.children);je(e,[this.placeholder,this.loading,this.error].filter(s=>null!==s))}visitTriggers(e,t,s){je(s,e.map(r=>t[r]))}}class dc extends In{constructor(e,t,s,r,i,o,a){super(a,r,i,o),this.expression=e,this.cases=t,this.unknownBlocks=s}visit(e){return e.visitSwitchBlock(this)}}class ka extends In{constructor(e,t,s,r,i,o,a){super(o,s,r,i),this.expression=e,this.children=t,this.i18n=a}visit(e){return e.visitSwitchBlockCase(this)}}class vo extends In{constructor(e,t,s,r,i,o,a,l,c,h,p,w,b){super(w,l,h,p),this.item=e,this.expression=t,this.trackBy=s,this.trackKeywordSpan=r,this.contextVariables=i,this.children=o,this.empty=a,this.mainBlockSpan=c,this.i18n=b}visit(e){return e.visitForLoopBlock(this)}}class ba extends In{constructor(e,t,s,r,i,o){super(i,t,s,r),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}}class mc extends In{constructor(e,t,s,r,i){super(i,t,s,r),this.branches=e}visit(e){return e.visitIfBlock(this)}}class ai extends In{constructor(e,t,s,r,i,o,a,l){super(a,r,i,o),this.expression=e,this.children=t,this.expressionAlias=s,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}}class gc{constructor(e,t,s){this.name=e,this.sourceSpan=t,this.nameSpan=s}visit(e){return e.visitUnknownBlock(this)}}class Ia{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}}class vn{constructor(e,t,s,r,i,o,a,l,c,h,p,w){this.tagName=e,this.attributes=t,this.inputs=s,this.outputs=r,this.templateAttrs=i,this.children=o,this.references=a,this.variables=l,this.sourceSpan=c,this.startSourceSpan=h,this.endSourceSpan=p,this.i18n=w}visit(e){return e.visitTemplate(this)}}class Eo{constructor(e,t,s,r,i){this.selector=e,this.attributes=t,this.children=s,this.sourceSpan=r,this.i18n=i,this.name="ng-content"}visit(e){return e.visitContent(this)}}class ar{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitVariable(this)}}class Da{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitReference(this)}}class vc{constructor(e,t,s,r){this.vars=e,this.placeholders=t,this.sourceSpan=s,this.i18n=r}visit(e){return e.visitIcu(this)}}function je(n,e){const t=[];if(n.visit)for(const s of e)n.visit(s)||s.visit(n);else for(const s of e){const r=s.visit(n);r&&t.push(r)}return t}class Nt{constructor(e,t,s,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=s,this.meaning=r,this.description=i,this.customId=o,this.legacyIds=[],this.id=this.customId,this.messageString=function Ff(n){const e=new $f;return n.map(s=>s.visit(e)).join("")}(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}}class Dn{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}}class En{constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}}class lr{constructor(e,t,s,r,i){this.expression=e,this.type=t,this.cases=s,this.sourceSpan=r,this.expressionPlaceholder=i}visit(e,t){return e.visitIcu(this,t)}}class os{constructor(e,t,s,r,i,o,a,l,c){this.tag=e,this.attrs=t,this.startName=s,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,t){return e.visitTagPlaceholder(this,t)}}class jn{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitPlaceholder(this,t)}}class cr{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitIcuPlaceholder(this,t)}}class as{constructor(e,t,s,r,i,o,a,l){this.name=e,this.parameters=t,this.startName=s,this.closeName=r,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l}visit(e,t){return e.visitBlockPlaceholder(this,t)}}class $f{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){const t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){const t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){const t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}}new class Vf{visitTag(e){const t=this._serializeAttributes(e.attrs);if(0==e.children.length)return`<${e.name}${t}/>`;const s=e.children.map(r=>r.visit(this));return`<${e.name}${t}>${s.join("")}`}visitText(e){return e.value}visitDeclaration(e){return``}_serializeAttributes(e){const t=Object.keys(e).map(s=>`${s}="${e[s]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return``}};function La(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}const Sc="i18n",Ba="i18n-";function xc(n){return n===Sc||n.startsWith(Ba)}function _c(n){return n.nodes[0]}function Ma(n={},e){const t={};return n&&Object.keys(n).length&&Object.keys(n).forEach(s=>t[li(s,e)]=n[s]),t}function li(n,e=!0){const t=La(n);if(!e)return t;const s=t.split("_");if(1===s.length)return n.toLowerCase();let r;/^\d+$/.test(s[s.length-1])&&(r=s.pop());let i=s.shift().toLowerCase();return s.length&&(i+=s.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),r?`${i}_${r}`:i}const Ra=/[-.]/,Fa="_t",ci="ctx",$a="rf";function Cc(n,e){let t=null;return()=>(t||(n(new ne(Fa,void 0,Dt)),t=A(e)),t)}function Tt(n){return Array.isArray(n)?L(n.map(Tt)):d(n,yt)}function Oa(n,e){const t=Object.getOwnPropertyNames(n);return 0===t.length?null:ie(t.map(s=>{const r=n[s];let i,o,a,l;if("string"==typeof r)i=s,a=s,o=r,l=Tt(o);else{a=s,i=r.classPropertyName,o=r.bindingPropertyName;const c=o!==i,h=null!==r.transformFunction;let p=rn.None;if(r.isSignal&&(p|=rn.SignalBased),h&&(p|=rn.HasDecoratorInputTransform),e&&(c||h||p!==rn.None)){const w=[d(p),Tt(o)];(c||h)&&(w.push(Tt(i)),h&&w.push(r.transformFunction)),l=L(w)}else l=Tt(o)}return{key:a,quoted:Ra.test(a),value:l}}))}class Ye{constructor(){this.values=[]}set(e,t){if(t){const s=this.values.find(r=>r.key===e);s?s.value=t:this.values.push({key:e,value:t,quoted:!1})}}toLiteralMap(){return ie(this.values)}}function Kf(n){const e=n instanceof bn?n.name:"ng-template",t=function ed(n){const e={};return n instanceof vn&&"ng-template"!==n.tagName?n.templateAttrs.forEach(t=>e[t.name]=""):(n.attributes.forEach(t=>{xc(t.name)||(e[t.name]=t.value)}),n.inputs.forEach(t=>{(t.type===Oe.Property||t.type===Oe.TwoWay)&&(e[t.name]="")}),n.outputs.forEach(t=>{e[t.name]=""})),e}(n),s=new vt,r=gn(e)[1];return s.setElement(r),Object.getOwnPropertyNames(t).forEach(i=>{const o=gn(i)[1],a=t[i];s.addAttribute(o,a),"class"===i.toLowerCase()&&a.trim().split(/\s+/).forEach(c=>s.addClassName(c))}),s}function Tc(n,e){let t=null;const s={name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:[],target:pn.Injectable};if(void 0!==n.useClass){const a=n.useClass.expression.isEquivalent(n.type.value);let l;void 0!==n.deps&&(l=n.deps),t=void 0!==l?bs({...s,delegate:n.useClass.expression,delegateDeps:l,delegateType:ei.Class}):a?bs(s):{statements:[],expression:kc(n.type.value,n.useClass.expression,e)}}else t=void 0!==n.useFactory?void 0!==n.deps?bs({...s,delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:ei.Function}):{statements:[],expression:qe([],n.useFactory.callFn([]))}:void 0!==n.useValue?bs({...s,expression:n.useValue.expression}):void 0!==n.useExisting?bs({...s,expression:_(f.inject).callFn([n.useExisting.expression])}):{statements:[],expression:kc(n.type.value,n.type.value,e)};const r=n.type.value,i=new Ye;return i.set("token",r),i.set("factory",t.expression),null!==n.providedIn.expression.value&&i.set("providedIn",rr(n.providedIn)),{expression:_(f.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:Ac(n),statements:t.statements}}function Ac(n){return new It(_(f.InjectableDeclaration,[no(n.type.type,n.typeArgumentCount)]))}function kc(n,e,t){if(n.node===e.node)return e.prop("\u0275fac");if(!t)return bc(e);return bc(_(f.resolveForwardRef).callFn([e]))}function bc(n){const e=new ae("__ngFactoryType__",Dt);return qe([e],n.prop("\u0275fac").callFn([A(e.name)]))}const td=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];class yo{static fromArray(e){return e?(function nd(n,e){if(null!=e&&(!Array.isArray(e)||2!=e.length))throw new Error(`Expected '${n}' to be an array, [start, end].`);if(null!=e){const t=e[0],s=e[1];td.forEach(r=>{if(r.test(t)||r.test(s))throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`)})}}("interpolation",e),new yo(e[0],e[1])):Zt}constructor(e,t){this.start=e,this.end=t}}const Zt=new yo("{{","}}"),Ic=new Set(["switch"]),ut=0,Va=9,Pc=32,Ua=36,Wa=48,Rc=57,pr=65,ld=70,_o=90,fi=95,$s=97,ja=102,di=122,Nn=123,Pt=125,Wc=160;function mi(n){return n>=Va&&n<=Pc||n==Wc}function Pn(n){return Wa<=n&&n<=Rc}function gi(n){return n>=$s&&n<=di||n>=pr&&n<=_o}function Ga(n){return 10===n||13===n}function jc(n){return Wa<=n&&n<=55}function vi(n){return 39===n||34===n||96===n}class Os{constructor(e,t,s,r){this.file=e,this.offset=t,this.line=s,this.col=r}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){const t=this.file.content,s=t.length;let r=this.offset,i=this.line,o=this.col;for(;r>0&&e<0;)if(r--,e++,10==t.charCodeAt(r)){i--;const l=t.substring(0,r-1).lastIndexOf(String.fromCharCode(10));o=l>0?r-l:r}else o--;for(;r0;){const a=t.charCodeAt(r);r++,e--,10==a?(i++,o=0):o++}return new Os(this.file,r,i,o)}getContext(e,t){const s=this.file.content;let r=this.offset;if(null!=r){r>s.length-1&&(r=s.length-1);let i=r,o=0,a=0;for(;o0&&(r--,o++,"\n"!=s[r]||++a!=t););for(o=0,a=0;o]${e.after}")`:this.msg}toString(){const e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}}let gd=0;function Ei(n){return n.replace(/\W/g,"_")}const zc='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';class Ed extends yf{constructor(){super(!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitTaggedTemplateExpr(e,t){const s=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${zc}(`),t.print(e,`[${s.map(r=>ks(r.text,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>ks(r.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitArrowFunctionExpr(e,t){if(t.print(e,"("),this._visitParams(e.params,t),t.print(e,") =>"),Array.isArray(e.body))t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.print(e,"}");else{const s=e.body instanceof Ae;s&&t.print(e,"("),e.body.visitExpression(this,t),s&&t.print(e,")")}return null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${zc}(`);const s=[e.serializeI18nHead()];for(let r=1;rks(r.cooked,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>ks(r.raw,!1)).join(", ")}])`),e.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(s=>t.print(null,s.name),e,t,",")}}let Co;function yd(n){return function wd(){if(void 0===Co){const n=Jr.trustedTypes;if(Co=null,n)try{Co=n.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return Co}()?.createScript(n)||n}function Gc(...n){if(!Jr.trustedTypes)return new Function(...n);const s=`(function anonymous(${n.slice(0,-1).join(",")}\n) { ${n[n.length-1]}\n})`,r=Jr.eval(yd(s));return void 0===r.bind?new Function(...n):(r.toString=()=>s,r.bind(Jr))}class Sd{evaluateStatements(e,t,s,r){const i=new xd(s),o=ha.createRoot();return t.length>0&&!function _d(n){return n.isEquivalent(d("use strict").toStmt())}(t[0])&&(t=[d("use strict").toStmt(),...t]),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)}evaluateCode(e,t,s,r){let i=`"use strict";${t.toSource()}\n//# sourceURL=${e}`;const o=[],a=[];for(const c in s)a.push(s[c]),o.push(c);if(r){const c=Gc(...o.concat("return null;")).toString(),h=c.slice(0,c.indexOf("return null;")).split("\n").length-1;i+=`\n${t.toSourceMapGenerator(e,h).toJsComment()}`}const l=Gc(...o.concat(i));return this.executeFunction(l,a)}executeFunction(e,t){return e(...t)}}class xd extends Ed{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new Fe(new Ae(this._evalExportedVars.map(s=>new ze(s,A(s),!1)))).visitStatement(this,e)}getArgs(){const e={};for(let t=0;t=0?(t="anonymous_"+gd++,e.__anonymousType=t):t=Ei(t),t}({reference:t})||"val";this._evalArgNames.push(`jit_${i}_${r}`)}s.print(e,this._evalArgNames[r])}}function Xc(n){const e=new Ye;null!==n.providers&&e.set("providers",n.providers),n.imports.length>0&&e.set("imports",L(n.imports));return{expression:_(f.defineInjector).callFn([e.toLiteralMap()],void 0,!0),type:Yc(n),statements:[]}}function Yc(n){return new It(_(f.InjectorDeclaration,[new It(n.type.type)]))}class Cd{constructor(e){this.context=e}resolveExternalReference(e){if("@angular/core"!==e.moduleName)throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}}var wi,Ln,us;function Td(n){const e=[],t=new Ye;if(t.set("type",n.type.value),n.kind===Ln.Global&&n.bootstrap.length>0&&t.set("bootstrap",hn(n.bootstrap,n.containsForwardDecls)),n.selectorScopeMode===wi.Inline)n.declarations.length>0&&t.set("declarations",hn(n.declarations,n.containsForwardDecls)),n.imports.length>0&&t.set("imports",hn(n.imports,n.containsForwardDecls)),n.exports.length>0&&t.set("exports",hn(n.exports,n.containsForwardDecls));else if(n.selectorScopeMode===wi.SideEffect){const i=function kd(n){const e=new Ye;if(n.kind===Ln.Global?n.declarations.length>0&&e.set("declarations",hn(n.declarations,n.containsForwardDecls)):n.declarationsExpression&&e.set("declarations",n.declarationsExpression),n.kind===Ln.Global?n.imports.length>0&&e.set("imports",hn(n.imports,n.containsForwardDecls)):n.importsExpression&&e.set("imports",n.importsExpression),n.kind===Ln.Global?n.exports.length>0&&e.set("exports",hn(n.exports,n.containsForwardDecls)):n.exportsExpression&&e.set("exports",n.exportsExpression),n.kind===Ln.Local&&n.bootstrapExpression&&e.set("bootstrap",n.bootstrapExpression),0===Object.keys(e.values).length)return null;const t=new g(_(f.setNgModuleScope),[n.type.value,e.toLiteralMap()]),s=function xf(n){return rc("ngJitMode",n)}(t),r=new _e([],[s.toStmt()]);return new g(r,[]).toStmt()}(n);null!==i&&e.push(i)}null!==n.schemas&&n.schemas.length>0&&t.set("schemas",L(n.schemas.map(i=>i.value))),null!==n.id&&(t.set("id",n.id),e.push(_(f.registerNgModuleType).callFn([n.type.value,n.id]).toStmt()));return{expression:_(f.defineNgModule).callFn([t.toLiteralMap()],void 0,!0),type:Zc(n),statements:e}}function Zc(n){if(n.kind===Ln.Local)return new It(n.type.value);const{type:e,declarations:t,exports:s,imports:r,includeImportTypes:i,publicDeclarationTypes:o}=n;return new It(_(f.NgModuleDeclaration,[new It(e.type),null===o?Ya(t):bd(o),i?Ya(r):Vt,Ya(s)]))}function Ya(n){const e=n.map(t=>he(t.type));return n.length>0?O(L(e)):Vt}function bd(n){const e=n.map(t=>he(t));return n.length>0?O(L(e)):Vt}function Qc(n){const e=[];e.push({key:"name",value:d(n.pipeName),quoted:!1}),e.push({key:"type",value:n.type.value,quoted:!1}),e.push({key:"pure",value:d(n.pure),quoted:!1}),n.isStandalone&&e.push({key:"standalone",value:d(!0),quoted:!1});return{expression:_(f.definePipe).callFn([ie(e)],void 0,!0),type:Jc(n),statements:[]}}function Jc(n){return new It(_(f.PipeDeclaration,[no(n.type.type,n.typeArgumentCount),new It(new v(n.pipeName)),new It(new v(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(wi||(wi={})),function(n){n[n.Global=0]="Global",n[n.Local=1]="Local"}(Ln||(Ln={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(us||(us={}));const Id=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),Dd=["@media","@supports","@document","@layer","@container","@scope","@starting-style"];class Kc{constructor(){this._animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,t,s=""){const r=[];e=e.replace(Hd,a=>{if(a.match(Ud))r.push(a);else{const l=a.match(qd);r.push((l?.join("")??"")+"\n")}return Ja}),e=this._insertDirectives(e);const i=this._scopeCssText(e,t,s);let o=0;return i.replace(Wd,()=>r[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,t){const s=new Set,r=Ao(e,i=>this._scopeLocalKeyframeDeclarations(i,t,s));return Ao(r,i=>this._scopeAnimationRule(i,t,s))}_scopeLocalKeyframeDeclarations(e,t,s){return{...e,selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,i,o,a,l)=>(s.add(ou(a,o)),`${i}${o}${t}_${a}${o}${l}`))}}_scopeAnimationKeyframe(e,t,s){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,i,o,a,l)=>`${i}${o}${a=`${s.has(ou(a,o))?t+"_":""}${a}`}${o}${l}`)}_scopeAnimationRule(e,t,s){let r=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(l,c,h="",p,w)=>p?`${c}${this._scopeAnimationKeyframe(`${h}${p}${h}`,t,s)}`:Id.has(w)?l:`${c}${this._scopeAnimationKeyframe(w,t,s)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(l=>this._scopeAnimationKeyframe(l,t,s)).join(",")}`),{...e,content:r}}_insertPolyfillDirectivesInCssText(e){return e.replace(Pd,function(...t){return t[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(Ld,(...t)=>{const s=t[0].replace(t[1],"").replace(t[2],"");return t[4]+s})}_scopeCssText(e,t,s){const r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,s)),(e=e+"\n"+r).trim()}_extractUnscopedRulesFromCssText(e){let s,t="";for(eu.lastIndex=0;null!==(s=eu.exec(e));){t+=s[0].replace(s[2],"").replace(s[1],s[4])+"\n\n"}return t}_convertColonHost(e){return e.replace(Bd,(t,s,r)=>{if(s){const i=[],o=s.split(",").map(a=>a.trim());for(const a of o){if(!a)break;const l=Vs+a.replace(To,"")+r;i.push(l)}return i.join(",")}return Vs+r})}_convertColonHostContext(e){return e.replace(Md,t=>{const s=[[]];let r;for(;r=Rd.exec(t);){const i=(r[1]??"").trim().split(",").map(a=>a.trim()).filter(a=>""!==a),o=s.length;nm(s,i.length);for(let a=0;afunction tm(n,e){const t=Vs;mr.lastIndex=0;const s=mr.test(e);if(0===n.length)return t+e;const r=[n.pop()||""];for(;n.length>0;){const i=r.length,o=n.pop();for(let a=0;as?`${i}${e}`:`${i}${t}${e}, ${i} ${t}${e}`).join(",")}(i,t)).join(", ")})}_convertShadowDOMSelectors(e){return Fd.reduce((t,s)=>t.replace(s," "),e)}_scopeSelectors(e,t,s){return Ao(e,r=>{let i=r.selector,o=r.content;return"@"!==r.selector[0]?i=this._scopeSelector(r.selector,t,s):Dd.some(a=>r.selector.startsWith(a))?o=this._scopeSelectors(r.content,t,s):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(r.content)),new el(i,o)})}_stripScopingSelectors(e){return Ao(e,t=>{const s=t.selector.replace(nu," ").replace(tu," ");return new el(s,t.content)})}_scopeSelector(e,t,s){return e.split(/ ?, ?/).map(r=>r.split(nu)).map(r=>{const[i,...o]=r;return[(l=>this._selectorNeedsScoping(l,t)?this._applySelectorScope(l,t,s):l)(i),...o].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+$d,"m")}_applySimpleSelectorScope(e,t,s){if(mr.lastIndex=0,mr.test(e)){const r=`[${s}]`;return e.replace(tu,(i,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,l,c,h)=>l+r+c+h)).replace(mr,r+" ")}return t+" "+e}_applySelectorScope(e,t,s){const i="["+(t=t.replace(/\[is=([^\]]*)\]/g,(V,...U)=>U[0]))+"]",o=V=>{let U=V.trim();if(!U)return V;if(V.includes(Vs))U=this._applySimpleSelectorScope(V,t,s);else{const X=V.replace(mr,"");if(X.length>0){const ye=X.match(/([^:]*)(:*)(.*)/);ye&&(U=ye[1]+i+ye[2]+ye[3])}}return U},a=new Nd(e);let h,l="",c=0;const p=/( |>|\+|~(?!=))\s*/g;let b=!(e=a.content()).includes(Vs);for(;null!==(h=p.exec(e));){const V=h[1],U=e.slice(c,h.index);if(U.match(/__esc-ph-(\d+)__/)&&e[h.index+1]?.match(/[a-fA-F\d]/))continue;b=b||U.includes(Vs);l+=`${b?o(U):U} ${V} `,c=p.lastIndex}const D=e.substring(c);return b=b||D.includes(Vs),l+=b?o(D):D,a.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(Vd,Za).replace(Od,To)}}class Nd{constructor(e){this.placeholders=[],this.index=0,e=(e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g)).replace(/(\\.)/g,(t,s)=>{const r=`__esc-ph-${this.index}__`;return this.placeholders.push(s),this.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(t,s,r)=>{const i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,s+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(t,s)=>this.placeholders[+s])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(s,r)=>{const i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,i})}}const Pd=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Ld=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,eu=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,To="-shadowcsshost",Za="-shadowcsscontext",Qa="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Bd=new RegExp(To+Qa,"gim"),Md=new RegExp(Za+Qa,"gim"),Rd=new RegExp(Za+Qa,"im"),Vs=To+"-no-combinator",tu=/-shadowcsshost-no-combinator([^\s]*)/,Fd=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],nu=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,$d="([>\\s~+[.,{:][\\s\\S]*)?$",mr=/-shadowcsshost/gim,Od=/:host/gim,Vd=/:host-context/gim,qd=/\r?\n/g,Hd=/\/\*[\s\S]*?\*\//g,Ud=/\/\*\s*#\s*source(Mapping)?URL=/g,Ja="%COMMENT%",Wd=new RegExp(Ja,"g"),Ka="%BLOCK%",jd=new RegExp(`(\\s*(?:${Ja}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),zd=new Map([["{","}"]]),su="%COMMA_IN_PLACEHOLDER%",ru="%SEMI_IN_PLACEHOLDER%",iu="%COLON_IN_PLACEHOLDER%",Gd=new RegExp(su,"g"),Xd=new RegExp(ru,"g"),Yd=new RegExp(iu,"g");class el{constructor(e,t){this.selector=e,this.content=t}}function Ao(n,e){const t=function Kd(n){let e=n,t=null;for(let s=0;s{const a=o[2];let l="",c=o[4],h="";c&&c.startsWith("{"+Ka)&&(l=s.blocks[r++],c=c.substring(Ka.length+1),h="{");const p=e(new el(a,l));return`${o[1]}${p.selector}${o[3]}${h}${p.content}${c}`}))}class Zd{constructor(e,t){this.escapedString=e,this.blocks=t}}const Jd={";":ru,",":su,":":iu};function ou(n,e){return e?n.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):n}function nm(n,e){const t=n.length;for(let s=1;st.isEquivalent(this.args[s])))}isConstant(){return!1}transformInternalExpressions(e,t){null!==this.body?this.body=$(this.body,e,t|be.InChildOperation):null!==this.fn&&(this.fn=$(this.fn,e,t));for(let s=0;st.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}}class Us extends He{constructor(e){super(),this.index=e,this.kind=H.PureFunctionParameterExpr}visitExpression(){}isEquivalent(e){return e instanceof Us&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new Us(this.index)}}class Ws extends He{static#e=(mu=vr,gu=ko);constructor(e,t,s,r){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r,this.kind=H.PipeBinding,this[mu]=!0,this[gu]=!0,this.varOffset=null}visitExpression(e,t){for(const s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){for(let s=0;st.clone()));return e.varOffset=this.varOffset,e}}class Po extends He{static#e=(vu=vr,Eu=ko);constructor(e,t,s,r,i){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r,this.numArgs=i,this.kind=H.PipeBindingVariadic,this[vu]=!0,this[Eu]=!0,this.varOffset=null}visitExpression(e,t){this.args.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.args=$(this.args,e,t)}clone(){const e=new Po(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}}class Sr extends He{constructor(e,t){super(),this.receiver=e,this.name=t,this.kind=H.SafePropertyRead}get index(){return this.name}visitExpression(e,t){this.receiver.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=$(this.receiver,e,t)}clone(){return new Sr(this.receiver.clone(),this.name)}}class xr extends He{constructor(e,t,s){super(s),this.receiver=e,this.index=t,this.kind=H.SafeKeyedRead}visitExpression(e,t){this.receiver.visitExpression(e,t),this.index.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=$(this.receiver,e,t),this.index=$(this.index,e,t)}clone(){return new xr(this.receiver.clone(),this.index.clone(),this.sourceSpan)}}class ds extends He{constructor(e,t){super(),this.receiver=e,this.args=t,this.kind=H.SafeInvokeFunction}visitExpression(e,t){this.receiver.visitExpression(e,t);for(const s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=$(this.receiver,e,t);for(let s=0;se.clone()))}}class _r extends He{constructor(e,t){super(),this.guard=e,this.expr=t,this.kind=H.SafeTernaryExpr}visitExpression(e,t){this.guard.visitExpression(e,t),this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.guard=$(this.guard,e,t),this.expr=$(this.expr,e,t)}clone(){return new _r(this.guard.clone(),this.expr.clone())}}class Cr extends He{constructor(){super(...arguments),this.kind=H.EmptyExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof Cr}isConstant(){return!0}clone(){return new Cr}transformInternalExpressions(){}}class yn extends He{constructor(e,t){super(),this.expr=e,this.xref=t,this.kind=H.AssignTemporaryExpr,this.name=null}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.expr=$(this.expr,e,t)}clone(){const e=new yn(this.expr.clone(),this.xref);return e.name=this.name,e}}class Yn extends He{constructor(e){super(),this.xref=e,this.kind=H.ReadTemporaryExpr,this.name=null}visitExpression(e,t){}isEquivalent(){return this.xref==this.xref}isConstant(){return!1}transformInternalExpressions(e,t){}clone(){const e=new Yn(this.xref);return e.name=this.name,e}}class Ci extends He{constructor(e){super(),this.slot=e,this.kind=H.SlotLiteralExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof Ci&&e.slot===this.slot}isConstant(){return!0}clone(){return new Ci(this.slot)}transformInternalExpressions(){}}class Ti extends He{constructor(e,t,s,r=null){super(),this.expr=e,this.target=t,this.targetSlot=s,this.alias=r,this.kind=H.ConditionalCase}visitExpression(e,t){null!==this.expr&&this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof Ti&&e.expr===this.expr}isConstant(){return!0}clone(){return new Ti(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,t){null!==this.expr&&(this.expr=$(this.expr,e,t))}}class Tr extends He{constructor(e){super(),this.expr=e,this.kind=H.ConstCollected}transformInternalExpressions(e,t){this.expr=e(this.expr,t)}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof Tr&&this.expr.isEquivalent(e.expr)}isConstant(){return this.expr.isConstant()}clone(){return new Tr(this.expr)}}function ft(n,e){it(n,(t,s)=>(e(t,s),t),be.None)}function sl(n,e,t){for(let s=0;s$(s,e,t));else if(n instanceof W)if(Array.isArray(n.body))for(let s=0;s",q.Bigger],[">=",q.BiggerEquals],["|",q.BitwiseOr],["&",q.BitwiseAnd],["/",q.Divide],["==",q.Equals],["===",q.Identical],["<",q.Lower],["<=",q.LowerEquals],["-",q.Minus],["%",q.Modulo],["*",q.Multiply],["!=",q.NotEquals],["!==",q.NotIdentical],["??",q.NullishCoalesce],["||",q.Or],["+",q.Plus]]);function Iu(n){const e=new Map([["svg",ht.SVG],["math",ht.Math]]);return null===n?ht.HTML:e.get(n)??ht.HTML}function Ym(n,e){return e===ht.HTML?n:`:${function Xm(n){const e=new Map([["svg",ht.SVG],["math",ht.Math]]);for(const[t,s]of e.entries())if(s===n)return t;return null}(e)}:${n}`}function kr(n){return Array.isArray(n)?L(n.map(kr)):d(n)}function Du(n,e,t){const s=e.get(t);if(void 0!==s){const r=ll(s);if(r.entries.length>0)return n.addConst(r)}return null}const br=Object.freeze([]);class Qm{get attributes(){return this.byKind.get(z.Attribute)??br}get classes(){return this.byKind.get(z.ClassName)??br}get styles(){return this.byKind.get(z.StyleProperty)??br}get bindings(){return this.propertyBindings??br}get template(){return this.byKind.get(z.Template)??br}get i18n(){return this.byKind.get(z.I18n)??br}constructor(e){this.compatibility=e,this.known=new Map,this.byKind=new Map,this.propertyBindings=null,this.projectAs=null}isKnown(e,t){const s=this.known.get(e)??new Set;return this.known.set(e,s),!!s.has(t)||(s.add(t),!1)}add(e,t,s,r,i){if((this.compatibility!==Lt.TemplateDefinitionBuilder||e!==z.Attribute&&e!==z.ClassName&&e!==z.StyleProperty)&&this.isKnown(e,t))return;if("ngProjectAs"===t){if(null===s||!(s instanceof v)||null==s.value||"string"!=typeof s.value?.toString())throw Error("ngProjectAs must have a string literal value");this.projectAs=s.value.toString()}const a=this.arrayFor(e);if(a.push(...function Jm(n,e){const t=d(e);return n?[d(0),d(n),t]:[t]}(r,t)),e===z.Attribute||e===z.StyleProperty){if(null===s)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(null!==i){if(!wu(s))throw Error("AssertionError: extracted attribute value should be string literal");a.push(Yr(i,new k([new N(s.value)],[]),void 0,s.sourceSpan))}else a.push(s)}}arrayFor(e){return e===z.Property||e===z.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}}function ll({attributes:n,bindings:e,classes:t,i18n:s,projectAs:r,styles:i,template:o}){const a=[...n];if(null!==r){const l=ln(r)[0];a.push(d(5),kr(l))}return t.length>0&&a.push(d(1),...t),i.length>0&&a.push(d(2),...i),e.length>0&&a.push(d(3),...e),o.length>0&&a.push(d(4),...o),s.length>0&&a.push(d(6),...s),L(a)}class ig{constructor(){this.targets=new Map}}const og=new Map([[u.ElementEnd,[u.ElementStart,u.Element]],[u.ContainerEnd,[u.ContainerStart,u.Container]],[u.I18nEnd,[u.I18nStart,u.I18n]]]),ag=new Set([u.Pipe]);[g,K,Ae,ds,Ws].map(n=>n.constructor.name);function tn(n){return n instanceof De?tn(n.expr):n instanceof F?tn(n.lhs)||tn(n.rhs):n instanceof B?!(!n.falseCase||!tn(n.falseCase))||(tn(n.condition)||tn(n.trueCase)):n instanceof Te?tn(n.condition):n instanceof yn?tn(n.expr):n instanceof Z?tn(n.receiver):n instanceof Q?tn(n.receiver)||tn(n.index):n instanceof g||n instanceof K||n instanceof Ae||n instanceof ds||n instanceof Ws}function Ir(n,e,t){let s;if(tn(n)){const r=t.job.allocateXrefId();s=[new yn(n,r),new Yn(r)]}else s=[n,n.clone()],function hg(n,e,t){return $(n,s=>{if(s instanceof yn&&e.has(s.xref)){const r=new Yn(s.xref);return t.job.compatibility===Lt.TemplateDefinitionBuilder?new yn(r,r.xref):r}return s},be.None),n}(s[1],function ug(n){const e=new Set;return $(n,t=>(t instanceof yn&&e.add(t.xref),t),be.None),e}(s[0]),t);return new _r(s[0],e(s[1]))}function Nu(n){return function pg(n){return n instanceof Sr||n instanceof xr||n instanceof ds}(n)||function fg(n){return n instanceof Z||n instanceof Q||n instanceof g}(n)}function mg(n,e){if(!Nu(n))return n;const t=function dg(n){if(Nu(n)&&n.receiver instanceof _r){let e=n.receiver;for(;e.expr instanceof _r;)e=e.expr;return e}return null}(n);if(t){if(n instanceof g)return t.expr=t.expr.callFn(n.args),n.receiver;if(n instanceof Z)return t.expr=t.expr.prop(n.name),n.receiver;if(n instanceof Q)return t.expr=t.expr.key(n.index),n.receiver;if(n instanceof ds)return t.expr=Ir(t.expr,s=>s.callFn(n.args),e),n.receiver;if(n instanceof Sr)return t.expr=Ir(t.expr,s=>s.prop(n.name),e),n.receiver;if(n instanceof xr)return t.expr=Ir(t.expr,s=>s.key(n.index),e),n.receiver}else{if(n instanceof ds)return Ir(n.receiver,s=>s.callFn(n.args),e);if(n instanceof Sr)return Ir(n.receiver,s=>s.prop(n.name),e);if(n instanceof xr)return Ir(n.receiver,s=>s.key(n.index),e)}return n}function gg(n){return n instanceof _r?new B(new F(q.Equals,n.guard,S),S,n.expr):n}const Pu="\ufffd",vg="#",Eg="*",wg="/",yg=":",Sg="[",xg="]",_g="|";function Tg(n,e,t){let s=Lu(e.params);const r=Lu(e.postprocessingParams);let i=[...e.params.values()].some(o=>o.length>1);return function km(n,e,t,s,r,i,o,a){return{kind:u.I18nMessage,xref:n,i18nContext:e,i18nBlock:t,message:s,messagePlaceholder:r,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[],...de}}(n.allocateXrefId(),e.xref,e.i18nBlock,e.message,t??null,s,r,i)}function Ag(n){if(n.strings.length!==n.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${n.strings.length} strings and ${n.expressionPlaceholders.length} expressions`);const e=n.expressionPlaceholders.map(Dr);return n.strings.flatMap((t,s)=>[t,e[s]||""]).join("")}function Lu(n){const e=new Map;for(const[t,s]of n){const r=kg(s);null!==r&&e.set(t,d(r))}return e}function kg(n){if(0===n.length)return null;const e=n.map(t=>Dr(t));return 1===e.length?e[0]:`${Sg}${e.join(_g)}${xg}`}function Dr(n){if(n.flags&$e.ElementTag&&n.flags&$e.TemplateTag){if("object"!=typeof n.value)throw Error("AssertionError: Expected i18n param value to have an element and template slot");const r=Dr({...n,value:n.value.element,flags:n.flags&~$e.TemplateTag}),i=Dr({...n,value:n.value.template,flags:n.flags&~$e.ElementTag});return n.flags&$e.OpenTag&&n.flags&$e.CloseTag?`${i}${r}${i}`:n.flags&$e.CloseTag?`${r}${i}`:`${i}${r}`}if(n.flags&$e.OpenTag&&n.flags&$e.CloseTag)return`${Dr({...n,flags:n.flags&~$e.CloseTag})}${Dr({...n,flags:n.flags&~$e.OpenTag})}`;if(n.flags===$e.None)return`${n.value}`;let e="",t="";n.flags&$e.ElementTag?e=vg:n.flags&$e.TemplateTag&&(e=Eg),""!==e&&(t=n.flags&$e.CloseTag?wg:"");const s=null===n.subTemplateIndex?"":`${yg}${n.subTemplateIndex}`;return`${Pu}${t}${e}${n.value}${s}${Pu}`}function ki(n,e){const t=function Ng(n,e){const t={view:n.xref,viewContextVariable:{kind:st.Context,name:null,view:n.xref},contextVariables:new Map,aliases:n.aliases,references:[],letDeclarations:[],parent:e};for(const s of n.contextVariables.keys())t.contextVariables.set(s,{kind:st.Identifier,name:null,identifier:s,local:!1});for(const s of n.create)switch(s.kind){case u.ElementStart:case u.Template:if(!Array.isArray(s.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let r=0;re.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function ul(n){const e=n.indexOf("!important");-1!==e&&(n=e>0?n.substring(0,e):"");let t=null,s=n;const r=n.lastIndexOf(".");return r>0&&(t=n.slice(r+1),s=n.substring(0,r)),{property:s,suffix:t}}function Ro(n,e=!1){return ie(Object.keys(n).map(t=>({key:t,quoted:e,value:n[t]})))}const $g=new class Fg{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){const t=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}formatPh(e){return`{${li(e,!1)}}`}};function $u(n){return n.visit($g)}class Nr{constructor(e,t){this.sourceSpan=e,this.i18n=t}}class Pr extends Nr{constructor(e,t,s,r){super(t,r),this.value=e,this.tokens=s}visit(e,t){return e.visitText(this,t)}}class Lr extends Nr{constructor(e,t,s,r,i,o){super(r,o),this.switchValue=e,this.type=t,this.cases=s,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}}class hl{constructor(e,t,s,r,i){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}}class Fo extends Nr{constructor(e,t,s,r,i,o,a){super(s,a),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=o}visit(e,t){return e.visitAttribute(this,t)}}class nn extends Nr{constructor(e,t,s,r,i,o=null,a){super(r,a),this.name=e,this.attrs=t,this.children=s,this.startSourceSpan=i,this.endSourceSpan=o}visit(e,t){return e.visitElement(this,t)}}class Br{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}}class $n extends Nr{constructor(e,t,s,r,i,o,a=null,l){super(r,l),this.name=e,this.parameters=t,this.children=s,this.nameSpan=i,this.startSourceSpan=o,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}}class Ou{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}}class Vu{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}}function re(n,e,t=null){const s=[],r=n.visit?i=>n.visit(i,t)||i.visit(n,t):i=>i.visit(n,t);return e.forEach(i=>{const o=r(i);o&&s.push(o)}),s}const $o={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\u{1d504}",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\u{1d538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\u{1d49c}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\u{1d505}",Bopf:"\u{1d539}",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\u{1d49e}",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1d507}",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1d53b}",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\u{1d49f}",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\u{1d508}",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\u{1d53c}",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1d509}",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\u{1d53d}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1d50a}",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\u{1d53e}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1d4a2}",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\u{1d540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1d50d}",Jopf:"\u{1d541}",Jscr:"\u{1d4a5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\u{1d50e}",Kopf:"\u{1d542}",Kscr:"\u{1d4a6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1d50f}",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\u{1d543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1d510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1d544}",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\u{1d511}",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1d4a9}",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\u{1d512}",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\u{1d546}",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\u{1d4aa}",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\u{1d513}",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\u{1d4ab}",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\u{1d514}",Qopf:"\u211a",rationals:"\u211a",Qscr:"\u{1d4ac}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\u{1d516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1d54a}",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1d4ae}",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1d517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1d54b}",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\u{1d4af}",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1d518}",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\u{1d54c}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\u{1d4b0}",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\u{1d519}",Vopf:"\u{1d54d}",Vscr:"\u{1d4b1}",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\u{1d51a}",Wopf:"\u{1d54e}",Wscr:"\u{1d4b2}",Xfr:"\u{1d51b}",Xi:"\u039e",Xopf:"\u{1d54f}",Xscr:"\u{1d4b3}",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\u{1d51c}",Yopf:"\u{1d550}",Yscr:"\u{1d4b4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1d4b5}",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\u{1d51e}",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\u{1d552}",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\u{1d4b6}",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\u{1d51f}",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\u{1d553}",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\u{1d4b7}",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\u{1d520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\u{1d554}",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1d522}",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1d4bb}",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\u{1d558}",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\u{1d559}",horbar:"\u2015",hscr:"\u{1d4bd}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\u{1d526}",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\u{1d55a}",iota:"\u03b9",iquest:"\xbf",iscr:"\u{1d4be}",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1d527}",jmath:"\u0237",jopf:"\u{1d55b}",jscr:"\u{1d4bf}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\u{1d528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\u{1d55c}",kscr:"\u{1d4c0}",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\u{1d529}",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\u{1d55e}",mscr:"\u{1d4c2}",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1d52b}",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\u{1d55f}",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\u{1d4c3}",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\u{1d52c}",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\u{1d560}",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1d52d}",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\u{1d561}",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\u{1d4c5}",psi:"\u03c8",puncsp:"\u2008",qfr:"\u{1d52e}",qopf:"\u{1d562}",qprime:"\u2057",qscr:"\u{1d4c6}",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\u{1d52f}",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\u{1d4c7}",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1d530}",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\u{1d4c8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1d531}",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\u{1d532}",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\u{1d566}",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\u{1d4ca}",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\u{1d533}",vopf:"\u{1d567}",vscr:"\u{1d4cb}",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1d534}",wopf:"\u{1d568}",wscr:"\u{1d4cc}",xfr:"\u{1d535}",xi:"\u03be",xnis:"\u22fb",xopf:"\u{1d569}",xscr:"\u{1d4cd}",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\u{1d536}",yicy:"\u0457",yopf:"\u{1d56a}",yscr:"\u{1d4ce}",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\u{1d537}",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\u{1d56b}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"},qu="\ue500";$o.ngsp=qu;class pl extends fe{constructor(e,t,s){super(s,e),this.tokenType=t}}class Og{constructor(e,t,s){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=s}}const qg=/\r\n?/g;function bi(n){return`Unexpected character "${n===ut?"EOF":String.fromCharCode(n)}"`}function Hu(n){return`Unknown entity "${n}" - use the "&#;" or "&#x;" syntax`}var Oo;!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(Oo||(Oo={}));class fl{constructor(e){this.error=e}}class Ug{constructor(e,t,s){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||Zt,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(i=>i.codePointAt(0)||0);const r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new Vo(e,r):new Ii(e,r),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks??!0,this._tokenizeLet=s.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(qg,"\n")}tokenize(){for(;this._cursor.peek()!==ut;){const e=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(45)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(47)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&64===this._cursor.peek()&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):!this._tokenizeBlocks||this._inInterpolation||this._isInExpansionCase()||this._isInExpansionForm()||!this._attemptCharCode(Pt)?this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart()):this._consumeBlockEnd(e)}catch(t){this.handleError(t)}}this._beginToken(33),this._endToken([])}_getBlockName(){let e=!1;const t=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>mi(s)?!e:!function Yg(n){return gi(n)||Pn(n)||n===fi}(s)||(e=!0,!1)),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(24,e);const t=this._endToken([this._getBlockName()]);if(40===this._cursor.peek()){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ot),!this._attemptCharCode(41))return void(t.type=28);this._attemptCharCodeUntilFn(ot)}this._attemptCharCode(Nn)?(this._beginToken(25),this._endToken([])):t.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ju);41!==this._cursor.peek()&&this._cursor.peek()!==ut;){this._beginToken(27);const e=this._cursor.clone();let t=null,s=0;for(;59!==this._cursor.peek()&&this._cursor.peek()!==ut||null!==t;){const r=this._cursor.peek();if(92===r)this._cursor.advance();else if(r===t)t=null;else if(null===t&&vi(r))t=r;else if(40===r&&null===t)s++;else if(41===r&&null===t){if(0===s)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ju)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),!mi(this._cursor.peek())){return void(this._endToken([this._cursor.getChars(e)]).type=32)}this._attemptCharCodeUntilFn(ot);const t=this._endToken([this._getLetDeclarationName()]);this._attemptCharCodeUntilFn(ot),this._attemptCharCode(61)?(this._attemptCharCodeUntilFn(r=>ot(r)&&!Ga(r)),this._consumeLetDeclarationValue(),59===this._cursor.peek()?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(t.type=32,t.sourceSpan=this._cursor.getSpan(e))):t.type=32}_getLetDeclarationName(){const e=this._cursor.clone();let t=!1;return this._attemptCharCodeUntilFn(s=>!(gi(s)||s===Ua||s===fi||t&&Pn(s))||(t=!0,!1)),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){const e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==ut;){const t=this._cursor.peek();if(59===t)break;vi(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>92===s?(this._cursor.advance(),!1):s===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function Gg(n){return n!==Pt}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Pt){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(null===this._currentTokenStart)throw new pl("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new pl("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));const s={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');const s=new pl(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new fl(s)}handleError(e){if(e instanceof dl&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof fl))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!function Xg(n,e){return Wu(n)===Wu(e)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){const t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(bi(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){const t=e.length;if(this._cursor.charsLeft()this._attemptStr("--\x3e")),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);const t=this._cursor.clone();this._attemptUntilChar(62);const s=this._cursor.getChars(t);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(){const e=this._cursor.clone();let s,t="";for(;58!==this._cursor.peek()&&!Wg(this._cursor.peek());)this._cursor.advance();58===this._cursor.peek()?(t=this._cursor.getChars(e),this._cursor.advance(),s=this._cursor.clone()):s=e,this._requireCharCodeUntilFn(Uu,""===t?0:1);return[t,this._cursor.getChars(s)]}_consumeTagOpen(e){let t,s,r;try{if(!gi(this._cursor.peek()))throw this._createError(bi(this._cursor.peek()),this._cursor.getSpan(e));for(r=this._consumeTagOpenStart(e),s=r.parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(ot);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&this._cursor.peek()!==ut;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ot),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(ot),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ot);this._consumeTagOpenEnd()}catch(o){if(o instanceof fl)return void(r?r.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw o}const i=this._getTagDefinition(t).getContentType(s);i===mn.RAW_TEXT?this._consumeRawTextWithTagClose(s,t,!1):i===mn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,t,!0)}_consumeRawTextWithTagClose(e,t,s){this._consumeRawText(s,()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(ot),this._attemptStrCaseInsensitive(t)))&&(this._attemptCharCodeUntilFn(ot),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(r=>62===r,3),this._cursor.advance(),this._endToken([e,t])}_consumeTagOpenStart(e){this._beginToken(0,e);const t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){const e=this._cursor.peek();if(39===e||34===e)throw this._createError(bi(e),this._cursor.getSpan());this._beginToken(14);const t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){if(39===this._cursor.peek()||34===this._cursor.peek()){const e=this._cursor.peek();this._consumeQuote(e);const t=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,t,t),this._consumeQuote(e)}else{const e=()=>Uu(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){const e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(ot);const t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ot),this._requireCharCode(62),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Nn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);const e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{const r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ot),this._beginToken(7);const s=this._readUntil(44);this._endToken([s]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ot)}_consumeExpansionCaseStart(){this._beginToken(20);const e=this._readUntil(Nn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ot),this._beginToken(21),this._requireCharCode(Nn),this._endToken([]),this._attemptCharCodeUntilFn(ot),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(Pt),this._endToken([]),this._attemptCharCodeUntilFn(ot),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(Pt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,s,r){this._beginToken(e);const i=[];for(;!s();){const o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(t,o,r),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(i.join(""))])}_consumeInterpolation(e,t,s){const r=[];this._beginToken(e,t),r.push(this._interpolationConfig.start);const i=this._cursor.clone();let o=null,a=!1;for(;this._cursor.peek()!==ut&&(null===s||!s());){const l=this._cursor.clone();if(this._isTagStart())return this._cursor=l,r.push(this._getProcessedChars(i,l)),void this._endToken(r);if(null===o){if(this._attemptStr(this._interpolationConfig.end))return r.push(this._getProcessedChars(i,l)),r.push(this._interpolationConfig.end),void this._endToken(r);this._attemptStr("//")&&(a=!0)}const c=this._cursor.peek();this._cursor.advance(),92===c?this._cursor.advance():c===o?o=null:!a&&null===o&&vi(c)&&(o=c)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!(!(this._isTagStart()||this._cursor.peek()===ut||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Pt&&this._isInExpansionCase()))&&(!this._tokenizeBlocks||this._inInterpolation||this._isInExpansion()||64!==this._cursor.peek()&&this._cursor.peek()!==Pt))}_isTagStart(){if(60===this._cursor.peek()){const e=this._cursor.clone();e.advance();const t=e.peek();if($s<=t&&t<=di||pr<=t&&t<=_o||47===t||33===t)return!0}return!1}_readUntil(e){const t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(this._cursor.peek()!==Nn)return!1;if(this._interpolationConfig){const e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}}function ot(n){return!mi(n)||n===ut}function Uu(n){return mi(n)||62===n||60===n||47===n||39===n||34===n||61===n||n===ut}function Wg(n){return(n<$s||diRc)}function jg(n){return 59===n||n===ut||!function dd(n){return n>=$s&&n<=ja||n>=pr&&n<=ld||Pn(n)}(n)}function zg(n){return 59===n||n===ut||!gi(n)}function Wu(n){return n>=$s&&n<=di?n-$s+pr:n}function ju(n){return 59!==n&&ot(n)}class Ii{constructor(e,t){if(e instanceof Ii){this.file=e.file,this.input=e.input,this.end=e.end;const s=e.state;this.state={peek:s.peek,offset:s.offset,line:s.line,column:s.column}}else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new Ii(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){let s=e=e||this;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)s===e&&(e=e.clone()),e.advance();const r=this.locationFromCursor(e),i=this.locationFromCursor(this),o=s!==e?this.locationFromCursor(s):r;return new pe(r,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new dl('Unexpected character "EOF"',this);const t=this.charAt(e.offset);10===t?(e.line++,e.column=0):Ga(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?ut:this.charAt(e.offset)}locationFromCursor(e){return new Os(e.file,e.state.offset,e.state.line,e.state.column)}}class Vo extends Ii{constructor(e,t){e instanceof Vo?(super(e),this.internalState={...e.internalState}):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Vo(this)}getChars(e){const t=e.clone();let s="";for(;t.internalState.offsetthis.internalState.peek;if(92===e())if(this.internalState={...this.state},this.advanceState(this.internalState),110===e())this.state.peek=10;else if(114===e())this.state.peek=13;else if(118===e())this.state.peek=11;else if(116===e())this.state.peek=Va;else if(98===e())this.state.peek=8;else if(e()===ja)this.state.peek=12;else if(117===e())if(this.advanceState(this.internalState),e()===Nn){this.advanceState(this.internalState);const t=this.clone();let s=0;for(;e()!==Pt;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(t,s)}else{const t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(120===e()){this.advanceState(this.internalState);const t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(jc(e())){let t="",s=0,r=this.clone();for(;jc(e())&&s<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else Ga(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){const s=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(s,16);if(isNaN(r))throw e.state=e.internalState,new dl("Invalid hexadecimal escape sequence",e);return r}}class dl{constructor(e,t){this.msg=e,this.cursor=t}}class dt extends fe{static create(e,t,s){return new dt(e,t,s)}constructor(e,t,s){super(t,s),this.elementName=e}}class Di{constructor(e,t){this.rootNodes=e,this.errors=t}}class zu{constructor(e){this.getTagDefinition=e}parse(e,t,s){const r=function Vg(n,e,t,s={}){const r=new Ug(new Xa(n,e),t,s);return r.tokenize(),new Og(function Zg(n){const e=[];let t;for(let s=0;s0)return this.errors=this.errors.concat(i.errors),null;const o=new pe(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),a=new pe(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);return new hl(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){const t=[],s=[21];for(;;){if((19===this._peek.type||21===this._peek.type)&&s.push(this._peek.type),22===this._peek.type){if(!Gu(s,21))return this.errors.push(dt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(s.pop(),0===s.length)return t}if(23===this._peek.type){if(!Gu(s,19))return this.errors.push(dt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;s.pop()}if(33===this._peek.type)return this.errors.push(dt.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){const t=[e],s=e.sourceSpan;let r=e.parts[0];if(r.length>0&&"\n"===r[0]){const i=this._getContainer();null!=i&&0===i.children.length&&this.getTagDefinition(i.name).ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),t.push(e),8===e.type?r+=e.parts.join("").replace(/&([^;]+);/g,Xu):9===e.type?r+=e.parts[0]:r+=e.parts.join("");if(r.length>0){const i=e.sourceSpan;this._addToParent(new Pr(r,new pe(s.start,i.end,s.fullStart,s.details),t))}}_closeVoidElement(){const e=this._getContainer();e instanceof nn&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){const[t,s]=e.parts,r=[];for(;14===this._peek.type;)r.push(this._consumeAttr(this._advance()));const i=this._getElementFullName(t,s,this._getClosestParentElement());let o=!1;if(2===this._peek.type){this._advance(),o=!0;const w=this.getTagDefinition(i);w.canSelfClose||null!==ya(i)||w.isVoid||this.errors.push(dt.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),o=!1);const a=this._peek.sourceSpan.fullStart,l=new pe(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new pe(e.sourceSpan.start,a,e.sourceSpan.fullStart),h=new nn(i,r,[],l,c,void 0),p=this._getContainer();this._pushContainer(h,p instanceof nn&&this.getTagDefinition(p.name).isClosedByChild(h.name)),o?this._popContainer(i,nn,l):4===e.type&&(this._popContainer(i,nn,null),this.errors.push(dt.create(i,l,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){const t=this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(this.getTagDefinition(t).isVoid)this.errors.push(dt.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,nn,e.sourceSpan)){const s=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(dt.create(t,e.sourceSpan,s))}}_popContainer(e,t,s){let r=!1;for(let i=this._containerStack.length-1;i>=0;i--){const o=this._containerStack[i];if((o.name===e||null===e)&&o instanceof t)return o.endSourceSpan=s,o.sourceSpan.end=null!==s?s.end:o.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!r;(o instanceof $n||o instanceof nn&&!this.getTagDefinition(o.name).closedByParent)&&(r=!0)}return!1}_consumeAttr(e){const t=Sa(e.parts[0],e.parts[1]);let s=e.sourceSpan.end;15===this._peek.type&&this._advance();let r="";const i=[];let o,a;if(16===this._peek.type)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){const h=this._advance();i.push(h),17===h.type?r+=h.parts.join("").replace(/&([^;]+);/g,Xu):9===h.type?r+=h.parts[0]:r+=h.parts.join(""),a=s=h.sourceSpan.end}15===this._peek.type&&(s=this._advance().sourceSpan.end);const c=o&&a&&new pe(o.start,a,o.fullStart);return new Fo(t,r,new pe(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,c,i.length>0?i:void 0,void 0)}_consumeBlockOpen(e){const t=[];for(;27===this._peek.type;){const a=this._advance();t.push(new Ou(a.parts[0],a.sourceSpan))}25===this._peek.type&&this._advance();const s=this._peek.sourceSpan.fullStart,r=new pe(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new pe(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new $n(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,$n,e.sourceSpan)||this.errors.push(dt.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){const t=[];for(;27===this._peek.type;){const a=this._advance();t.push(new Ou(a.parts[0],a.sourceSpan))}const s=this._peek.sourceSpan.fullStart,r=new pe(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new pe(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new $n(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,$n,null),this.errors.push(dt.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){const t=e.parts[0];let s,r;if(30!==this._peek.type)return void this.errors.push(dt.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));if(s=this._advance(),31!==this._peek.type)return void this.errors.push(dt.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));r=this._advance();const i=r.sourceSpan.fullStart,o=new pe(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(t),l=e.sourceSpan.start.moveBy(a),c=new pe(l,e.sourceSpan.end),h=new Vu(t,s.parts[0],o,c,s.sourceSpan);this._addToParent(h)}_consumeIncompleteLet(e){const t=e.parts[0]??"",s=t?` "${t}"`:"";if(t.length>0){const r=e.sourceSpan.toString().lastIndexOf(t),i=e.sourceSpan.start.moveBy(r),o=new pe(i,e.sourceSpan.end),a=new pe(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new Vu(t,"",e.sourceSpan,o,a);this._addToParent(l)}this.errors.push(dt.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof nn)return this._containerStack[e];return null}_addToParent(e){const t=this._getContainer();null===t?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t,s){if(""===e&&(""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=s)){const r=gn(s.name)[1];this.getTagDefinition(r).preventNamespaceInheritance||(e=ya(s.name))}return Sa(e,t)}}function Gu(n,e){return n.length>0&&n[n.length-1]===e}function Xu(n,e){return void 0!==$o[e]?$o[e]||n:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):n}const Yu="ngPreserveWhitespaces",Qg=new Set(["pre","template","textarea","script","style"]),Zu=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",Jg=new RegExp(`[^${Zu}]`),Kg=new RegExp(`[${Zu}]{2,}`,"g");function Qu(n){return n.replace(new RegExp(qu,"g")," ")}class qo{constructor(e,t,s=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=t,this.requireContext=s,this.icuExpansionDepth=0}visitElement(e,t){if(Qg.has(e.name)||function ev(n){return n.some(e=>e.name===Yu)}(e.attrs)){const r=new nn(e.name,vs(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(r,e),r}const s=new nn(e.name,e.attrs,vs(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(s,e),s}visitAttribute(e,t){return e.name!==Yu?e:null}visitText(e,t){const s=e.value.match(Jg),r=t&&(t.prev instanceof Lr||t.next instanceof Lr);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(s||r){const o=e.tokens.map(h=>5===h.type?function rv({type:n,parts:e,sourceSpan:t}){return{type:n,parts:[Ku(e[0])],sourceSpan:t}}(h):h);if(!this.preserveSignificantWhitespace&&o.length>0){const h=o[0];o.splice(0,1,function tv(n,e){return 5!==n.type||e?.prev?n:Ju(n,s=>s.trimStart())}(h,t));const p=o[o.length-1];o.splice(o.length-1,1,function nv(n,e){return 5!==n.type||e?.next?n:Ju(n,s=>s.trimEnd())}(p,t))}const a=Ku(e.value),l=this.preserveSignificantWhitespace?a:function sv(n,e){const t=!e?.prev,s=!e?.next,r=t?n.trimStart():n;return s?r.trimEnd():r}(a,t),c=new Pr(l,e.sourceSpan,o,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,t){return e}visitExpansion(e,t){let s;this.icuExpansionDepth++;try{s=new Lr(e.switchValue,e.type,vs(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(s,e),s}visitExpansionCase(e,t){const s=new hl(e.value,vs(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(s,e),s}visitBlock(e,t){const s=new $n(e.name,e.parameters,vs(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(s,e),s}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}visit(e,t){if(this.requireContext&&!t)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}}function Ju({type:n,parts:e,sourceSpan:t},s){return{type:n,parts:[s(e[0])],sourceSpan:t}}function Ku(n){return Qu(n).replace(Kg," ")}function vs(n,e){const t=[];return e.forEach((s,r)=>{const i={prev:e[r-1],next:e[r+1]},o=s.visit(n,i);o&&t.push(o)}),t}var Ee;!function(n){n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error"}(Ee||(Ee={}));const iv=["var","let","as","null","undefined","true","false","if","else","this"];class gl{tokenize(e){const t=new th(e),s=[];let r=t.scanToken();for(;null!=r;)s.push(r),r=t.scanToken();return s}}class Zn{constructor(e,t,s,r,i){this.index=e,this.end=t,this.type=s,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==Ee.Character&&this.numValue==e}isNumber(){return this.type==Ee.Number}isString(){return this.type==Ee.String}isOperator(e){return this.type==Ee.Operator&&this.strValue==e}isIdentifier(){return this.type==Ee.Identifier}isPrivateIdentifier(){return this.type==Ee.PrivateIdentifier}isKeyword(){return this.type==Ee.Keyword}isKeywordLet(){return this.type==Ee.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==Ee.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==Ee.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==Ee.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==Ee.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==Ee.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==Ee.Keyword&&"this"==this.strValue}isError(){return this.type==Ee.Error}toNumber(){return this.type==Ee.Number?this.numValue:-1}toString(){switch(this.type){case Ee.Character:case Ee.Identifier:case Ee.Keyword:case Ee.Operator:case Ee.PrivateIdentifier:case Ee.String:case Ee.Error:return this.strValue;case Ee.Number:return this.numValue.toString();default:return null}}}function eh(n,e,t){return new Zn(n,e,Ee.Character,t,String.fromCharCode(t))}function vl(n,e,t){return new Zn(n,e,Ee.Operator,0,t)}const El=new Zn(-1,-1,Ee.Character,0,"");class th{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?ut:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let s=this.peek,r=this.index;for(;s<=Pc;){if(++r>=t){s=ut;break}s=e.charCodeAt(r)}if(this.peek=s,this.index=r,r>=t)return null;if(wl(s))return this.scanIdentifier();if(Pn(s))return this.scanNumber(r);const i=r;switch(s){case 46:return this.advance(),Pn(this.peek)?this.scanNumber(i):eh(i,this.index,46);case 40:case 41:case Nn:case Pt:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,s);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(s));case 63:return this.scanQuestion(i);case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(s),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(s),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case Wc:for(;mi(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),eh(e,this.index,t)}scanOperator(e,t){return this.advance(),vl(e,this.index,t)}scanComplexOperator(e,t,s,r,i,o){this.advance();let a=t;return this.peek==s&&(this.advance(),a+=r),null!=i&&this.peek==i&&(this.advance(),a+=o),vl(e,this.index,a)}scanIdentifier(){const e=this.index;for(this.advance();yl(this.peek);)this.advance();const t=this.input.substring(e,this.index);return iv.indexOf(t)>-1?function lv(n,e,t){return new Zn(n,e,Ee.Keyword,0,t)}(e,this.index,t):function ov(n,e,t){return new Zn(n,e,Ee.Identifier,0,t)}(e,this.index,t)}scanPrivateIdentifier(){const e=this.index;if(this.advance(),!wl(this.peek))return this.error("Invalid character [#]",-1);for(;yl(this.peek);)this.advance();const t=this.input.substring(e,this.index);return function av(n,e,t){return new Zn(n,e,Ee.PrivateIdentifier,0,t)}(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!Pn(this.peek))if(this.peek===fi){if(!Pn(this.input.charCodeAt(this.index-1))||!Pn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(46===this.peek)t=!1;else{if(!pv(this.peek))break;if(this.advance(),fv(this.peek)&&this.advance(),!Pn(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));const i=t?function mv(n){const e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}(r):parseFloat(r);return function uv(n,e,t){return new Zn(n,e,Ee.Number,t,"")}(e,this.index,i)}scanString(){const e=this.index,t=this.peek;this.advance();let s="",r=this.index;const i=this.input;for(;this.peek!=t;)if(92==this.peek){let a;if(s+=i.substring(r,this.index),this.advance(),117==this.peek){const l=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(l))return this.error(`Invalid unicode escape [\\u${l}]`,0);a=parseInt(l,16);for(let c=0;c<5;c++)this.advance()}else a=dv(this.peek),this.advance();s+=String.fromCharCode(a),r=this.index}else{if(this.peek==ut)return this.error("Unterminated quote",0);this.advance()}const o=i.substring(r,this.index);return this.advance(),function cv(n,e,t){return new Zn(n,e,Ee.String,0,t)}(e,this.index,s+o)}scanQuestion(e){this.advance();let t="?";return(63===this.peek||46===this.peek)&&(t+=46===this.peek?".":"?",this.advance()),vl(e,this.index,t)}error(e,t){const s=this.index+t;return function hv(n,e,t){return new Zn(n,e,Ee.Error,0,t)}(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}}function wl(n){return $s<=n&&n<=di||pr<=n&&n<=_o||n==fi||n==Ua}function yl(n){return gi(n)||Pn(n)||n==fi||n==Ua}function pv(n){return 101==n||69==n}function fv(n){return 45==n||43==n}function dv(n){switch(n){case 110:return 10;case ja:return 12;case 114:return 13;case 116:return Va;case 118:return 11;default:return n}}class gv{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}}class vv{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}}class nh{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,r=Zt){this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),o=this._lexer.tokenize(i),a=new Ni(e,t,s,o,1,this.errors,0).parseChain();return new kn(a,e,t,s,this.errors)}parseBinding(e,t,s,r=Zt){const i=this._parseBindingAst(e,t,s,r);return new kn(i,e,t,s,this.errors)}checkSimpleExpression(e){const t=new Ev;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,r=Zt){const i=this._parseBindingAst(e,t,s,r),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,t),new kn(i,e,t,s,this.errors)}_reportError(e,t,s,r){this.errors.push(new ma(e,t,s,r))}_parseBindingAst(e,t,s,r){this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),o=this._lexer.tokenize(i);return new Ni(e,t,s,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,r,i){const o=this._lexer.tokenize(t);return new Ni(t,s,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new dn(r,r+e.length)})}parseInterpolation(e,t,s,r,i=Zt){const{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,t,r,i);if(0===a.length)return null;const c=[];for(let h=0;hh.text),c,e,t,s)}parseInterpolationExpression(e,t,s){const r=this._stripComments(e),i=this._lexer.tokenize(r),o=new Ni(e,t,s,i,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[o],e,t,s)}createInterpolationAst(e,t,s,r,i){const o=new ti(0,s.length),a=new Ns(o,o.toAbsolute(i),e,t);return new kn(a,s,r,i,this.errors)}splitInterpolation(e,t,s,r=Zt){const i=[],o=[],a=[],l=s?function wv(n){let e=new Map,t=0,s=0,r=0;for(;ra+l.length,0);s+=o,t+=o}e.set(s,t),r++}return e}(s):null;let c=0,h=!1,p=!1,{start:w,end:b}=r;for(;c-1)break;i>-1&&o>-1&&this._reportError(`Got interpolation (${s}${r}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,s){for(const r of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let s=null,r=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(void 0!==t&&t>this.currentEndIndex&&(s=t),e>s){const r=s;s=e,e=r}return new ti(e,s)}sourceSpan(e,t){const s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;const s=t();return this.context^=e,s}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===El?"end of input":`token ${e}`}expectIdentifierOrKeyword(){const e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){const e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),"")}parseChain(){const e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();const r=this.parseAdditive();t=new Yt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseAdditive(){const e=this.inputIndex;let t=this.parseMultiplicative();for(;this.next.type==Ee.Operator;){const s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new Yt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseMultiplicative(){const e=this.inputIndex;let t=this.parsePrefix();for(;this.next.type==Ee.Operator;){const s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new Yt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parsePrefix(){if(this.next.type==Ee.Operator){const e=this.inputIndex;let s;switch(this.next.strValue){case"+":return this.advance(),s=this.parsePrefix(),An.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),An.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new ri(this.span(e),this.sourceSpan(e),s)}}return this.parseCallChain()}parseCallChain(){const e=this.inputIndex;let t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))t=this.consumeOptionalCharacter(40)?this.parseCall(t,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(91))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(40))t=this.parseCall(t,e,!1);else{if(!this.consumeOptionalOperator("!"))return t;t=new ii(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){const e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new fn(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new fn(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new fn(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new fn(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ni(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;const t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new co(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(Nn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Is(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){const t=this.next.toNumber();return this.advance(),new fn(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){const t=this.next.toString();return this.advance(),new fn(this.span(e),this.sourceSpan(e),t)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ht(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Ht(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new Ht(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const t=[];do{if(this.next.isCharacter(e))break;t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t}parseLiteralMap(){const e=[],t=[],s=this.inputIndex;if(this.expectCharacter(Nn),!this.consumeOptionalCharacter(Pt)){this.rbracesExpected++;do{const r=this.inputIndex,i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a={key:o,quoted:i};if(e.push(a),i)this.expectCharacter(58),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))t.push(this.parsePipe());else{a.isShorthandInitialized=!0;const l=this.span(r),c=this.sourceSpan(r);t.push(new Ds(l,c,c,new Is(l,c),o))}}while(this.consumeOptionalCharacter(44)&&!this.next.isCharacter(Pt));this.rbracesExpected--,this.expectCharacter(Pt)}return new uo(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){const r=this.inputIndex,i=this.withContext(Mr.Writable,()=>{const l=this.expectIdentifierOrKeyword()??"";return 0===l.length&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(r);let a;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new Ht(this.span(t),this.sourceSpan(t))):a=new io(this.span(t),this.sourceSpan(t),o,e,i);else if(this.consumeOptionalOperator("=")){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new Ht(this.span(t),this.sourceSpan(t));const l=this.parseConditional();a=new ro(this.span(t),this.sourceSpan(t),o,e,i,l)}else a=new Ds(this.span(t),this.sourceSpan(t),o,e,i);return a}parseCall(e,t,s){const r=this.inputIndex;this.rparensExpected++;const i=this.parseCallArguments(),o=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;const a=this.span(t),l=this.sourceSpan(t);return s?new po(a,l,e,i,o):new ho(a,l,e,i,o)}parseCallArguments(){if(this.next.isCharacter(41))return[];const e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1;const s=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-")}while(t);return{source:e,span:new dn(s,s+e.length)}}parseTemplateBindings(e){const t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;const r=this.parsePipe();if(r instanceof Ht&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.consumeOptionalOperator("="))return s?new oo(this.span(t),this.sourceSpan(t),e,r):new or(this.span(t),this.sourceSpan(t),e,r);if(!s){const i=this.parseConditional();return new ao(this.span(t),this.sourceSpan(t),e,r,i)}return this.error("The '?.' operator cannot be used in the assignment"),new Ht(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){const t=[];this.consumeOptionalCharacter(58);const s=this.getDirectiveBoundTarget();let r=this.currentAbsoluteOffset;const i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);const o=new dn(e.span.start,r);return t.push(new bf(o,e,s)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===El||this.peekKeywordAs()||this.peekKeywordLet())return null;const e=this.parsePipe(),{start:t,end:s}=e.span,r=this.input.substring(t,s);return new kn(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();const t=this.expectTemplateBindingKey();this.consumeStatementTerminator();const s=new dn(e.span.start,this.currentAbsoluteOffset);return new ga(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;const e=this.currentAbsoluteOffset;this.advance();const t=this.expectTemplateBindingKey();let s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();const r=new dn(e,this.currentAbsoluteOffset);return new ga(r,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,t=null){this.errors.push(new ma(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return null==e&&(e=this.index),e(n.set(e,t),n),new Map);class Wo extends xv{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,kv.forEach(e=>{const t=new Map,s=new Set,[r,i]=e.split("|"),o=i.split(","),[a,l]=r.split("^");a.split(",").forEach(h=>{this._schema.set(h.toLowerCase(),t),this._eventSchema.set(h.toLowerCase(),s)});const c=l&&this._schema.get(l.toLowerCase());if(c){for(const[h,p]of c)t.set(h,p);for(const h of this._eventSchema.get(l.toLowerCase()))s.add(h)}o.forEach(h=>{if(h.length>0)switch(h[0]){case"*":s.add(h.substring(1));break;case"!":t.set(h.substring(1),"boolean");break;case"#":t.set(h.substring(1),"number");break;case"%":t.set(h.substring(1),"object");break;default:t.set(h,"string")}})})}hasProperty(e,t,s){if(s.some(i=>i.name===Ft.name))return!0;if(e.indexOf("-")>-1){if(uc(e)||wa(e))return!1;if(s.some(i=>i.name===xs.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return!!(t.some(s=>s.name===Ft.name)||e.indexOf("-")>-1&&(uc(e)||wa(e)||t.some(s=>s.name===xs.name)))||this._schema.has(e.toLowerCase())}securityContext(e,t,s){s&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=sh()[e+"|"+t];return r||(r=sh()["*|"+t],r||Ie.NONE)}getMappedPropName(e){return rh.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){const t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(s=>bv.get(s)??s)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return function af(n){return n.replace(of,(...e)=>e[1].toUpperCase())}(e)}normalizeAnimationStyleValue(e,t,s){let r="";const i=s.toString().trim();let o=null;if(function Iv(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==s&&"0"!==s)if("number"==typeof s)r="px";else{const a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&(o=`Please provide a CSS unit value for ${t}:${s}`)}return{error:o,value:i+r}}}class we{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:s=mn.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=l??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return"object"==typeof this.contentType?(void 0===e?void 0:this.contentType[e])??this.contentType.default:this.contentType}}let ih,Rr;function oh(n){return Rr||(ih=new we({canSelfClose:!0}),Rr=Object.assign(Object.create(null),{base:new we({isVoid:!0}),meta:new we({isVoid:!0}),area:new we({isVoid:!0}),embed:new we({isVoid:!0}),link:new we({isVoid:!0}),img:new we({isVoid:!0}),input:new we({isVoid:!0}),param:new we({isVoid:!0}),hr:new we({isVoid:!0}),br:new we({isVoid:!0}),source:new we({isVoid:!0}),track:new we({isVoid:!0}),wbr:new we({isVoid:!0}),p:new we({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new we({closedByChildren:["tbody","tfoot"]}),tbody:new we({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new we({closedByChildren:["tbody"],closedByParent:!0}),tr:new we({closedByChildren:["tr"],closedByParent:!0}),td:new we({closedByChildren:["td","th"],closedByParent:!0}),th:new we({closedByChildren:["td","th"],closedByParent:!0}),col:new we({isVoid:!0}),svg:new we({implicitNamespacePrefix:"svg"}),foreignObject:new we({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new we({implicitNamespacePrefix:"math"}),li:new we({closedByChildren:["li"],closedByParent:!0}),dt:new we({closedByChildren:["dt","dd"]}),dd:new we({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new we({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new we({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new we({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new we({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new we({closedByChildren:["optgroup"],closedByParent:!0}),option:new we({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new we({ignoreFirstLf:!0}),listing:new we({ignoreFirstLf:!0}),style:new we({contentType:mn.RAW_TEXT}),script:new we({contentType:mn.RAW_TEXT}),title:new we({contentType:{default:mn.ESCAPABLE_RAW_TEXT,svg:mn.PARSABLE_DATA}}),textarea:new we({contentType:mn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),(new Wo).allKnownElementNames().forEach(e=>{!Rr[e]&&null===ya(e)&&(Rr[e]=new we({canSelfClose:!1}))})),Rr[n]??Rr[n.toLowerCase()]??ih}const ah={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"};class Dv{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,s){const r=this._hashTag(e,t,s);if(this._signatureToName[r])return this._signatureToName[r];const i=e.toUpperCase(),o=ah[i]||`TAG_${i}`,a=this._generateUniqueName(s?o:`START_${o}`);return this._signatureToName[r]=a,a}getCloseTagPlaceholderName(e){const t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];const s=e.toUpperCase(),r=ah[s]||`TAG_${s}`,i=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=i,i}getPlaceholderName(e,t){const s=e.toUpperCase(),r=`PH: ${s}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];const i=this._generateUniqueName(s);return this._signatureToName[r]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,t){const s=this._hashBlock(e,t);if(this._signatureToName[s])return this._signatureToName[s];const r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[s]=r,r}getCloseBlockPlaceholderName(e){const t=this._hashClosingBlock(e);if(this._signatureToName[t])return this._signatureToName[t];const s=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[t]=s,s}_hashTag(e,t,s){return`<${e}`+Object.keys(t).sort().map(a=>` ${a}=${t[a]}`).join("")+(s?"/>":`>`)}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,t){return`@${e}${0===t.length?"":` (${t.sort().join("; ")})`} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;const s=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=s+1,`${e}_${s}`}}const Nv=new nh(new gl);function lh(n,e,t){const s=new Lv(Nv,n,e,t);return(r,i,o,a,l)=>s.toI18nMessage(r,i,o,a,l)}function Pv(n,e){return e}class Lv{constructor(e,t,s,r){this._expressionParser=e,this._interpolationConfig=t,this._containerBlocks=s,this._retainEmptyTokens=r}toI18nMessage(e,t="",s="",r="",i){const o={isIcu:1==e.length&&e[0]instanceof Lr,icuDepth:0,placeholderRegistry:new Dv,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||Pv},a=re(this,e,o);return new Nt(a,o.placeholderToContent,o.placeholderToMessage,t,s,r)}visitElement(e,t){const s=re(this,e.children,t),r={};e.attrs.forEach(c=>{r[c.name]=c.value});const i=oh(e.name).isVoid,o=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);t.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";i||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:``,sourceSpan:e.endSourceSpan??e.sourceSpan});const l=new os(e.name,r,o,a,s,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,l)}visitAttribute(e,t){const s=void 0===e.valueTokens||1===e.valueTokens.length?new Dn(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitText(e,t){const s=1===e.tokens.length?new Dn(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;const s={},r=new lr(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach(a=>{s[a.value]=new En(a.expression.map(l=>l.visit(this,t)),a.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){const a=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=a,t.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}const i=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);const o=new cr(r,i,e.sourceSpan);return t.visitNodeFn(e,o)}visitExpansionCase(e,t){throw new Error("Unreachable code")}visitBlock(e,t){const s=re(this,e.children,t);if(this._containerBlocks.has(e.name))return new En(s,e.sourceSpan);const r=e.parameters.map(l=>l.expression),i=t.placeholderRegistry.getStartBlockPlaceholderName(e.name,r),o=t.placeholderRegistry.getCloseBlockPlaceholderName(e.name);t.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},t.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};const a=new as(e.name,r,i,o,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,a)}visitBlockParameter(e,t){throw new Error("Unreachable code")}visitLetDeclaration(e,t){return null}_visitTextWithInterpolation(e,t,s,r){const i=[];let o=!1;for(const a of e)switch(a.type){case 8:case 17:o=!0;const l=a.parts[1],c=$v(l)||"INTERPOLATION",h=s.placeholderRegistry.getPlaceholderName(c,l);s.placeholderToContent[h]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new jn(l,h,a.sourceSpan));break;default:if(a.parts[0].length>0||this._retainEmptyTokens){const p=i[i.length-1];p instanceof Dn?(p.value+=a.parts[0],p.sourceSpan=new pe(p.sourceSpan.start,a.sourceSpan.end,p.sourceSpan.fullStart,p.sourceSpan.details)):i.push(new Dn(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new Dn(a.parts[0],a.sourceSpan))}return o?(function Bv(n,e){if(e instanceof Nt&&(function Mv(n){const e=n.nodes;if(1!==e.length||!(e[0]instanceof En))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(e),e=e.nodes[0]),e instanceof En){!function Rv(n,e){if(n.length!==e.length)throw new Error(`\nThe number of i18n message children changed between first and second pass.\n\nFirst pass (${n.length} tokens):\n${n.map(t=>`"${t.sourceSpan.toString()}"`).join("\n")}\n\nSecond pass (${e.length} tokens):\n${e.map(t=>`"${t.sourceSpan.toString()}"`).join("\n")}\n `.trim());if(n.some((t,s)=>e[s].constructor!==t.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}(e.children,n);for(let t=0;t(e,t)=>{const s=n.get(e)??e;return s instanceof Nr&&(t instanceof cr&&s.i18n instanceof Nt&&(t.previousMessage=s.i18n),s.i18n=t),t};class uh{constructor(e=Zt,t=!1,s=!1,r=Ic,i=!0,o=!i){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=s,this.containerBlocks=r,this.preserveSignificantWhitespace=i,this.retainEmptyTokens=o,this.hasI18nMeta=!1,this._errors=[]}_generateI18nMessage(e,t="",s){const{meaning:r,description:i,customId:o}=this._parseMetadata(t),l=lh(this.interpolationConfig,this.containerBlocks,this.retainEmptyTokens)(e,r,i,o,s);return this._setMessageId(l,t),this._setLegacyIds(l,t),l}visitAllWithErrors(e){const t=e.map(s=>s.visit(this,null));return new Di(t,this._errors)}visitElement(e){let t;if(function Jf(n){return n.attrs.some(e=>xc(e.name))}(e)){this.hasI18nMeta=!0;const s=[],r={};for(const i of e.attrs)if(i.name===Sc){const o=e.i18n||i.value,a=new Map,l=this.preserveSignificantWhitespace?e.children:vs(new qo(!1,a),e.children);t=this._generateI18nMessage(l,o,Vv(a)),0===t.nodes.length&&(t=void 0),e.i18n=t}else if(i.name.startsWith(Ba)){const o=i.name.slice(Ba.length);Ov(e.name,o)?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):r[o]=i.value}else s.push(i);if(Object.keys(r).length)for(const i of s){const o=r[i.name];void 0!==o&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=s)}return re(this,e.children,t),e}visitExpansion(e,t){let s;const r=e.i18n;if(this.hasI18nMeta=!0,r instanceof cr){const i=r.name;s=this._generateI18nMessage([e],r);_c(s).name=i,null!==t&&(t.placeholderToMessage[i]=s)}else s=this._generateI18nMessage([e],t||r);return e.i18n=s,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,t){return re(this,e.children,t),e}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}_parseMetadata(e){return"string"==typeof e?function Uv(n=""){let e,t,s;if(n=n.trim(),n){const r=n.indexOf(Hv),i=n.indexOf(qv);let o;[o,e]=r>-1?[n.slice(0,r),n.slice(r+2)]:[n,""],[t,s]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:t,description:s}}(e):e instanceof Nt?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof Nt&&t.id||Js(e,this.preserveSignificantWhitespace))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Ui(e),Wr(e,this.preserveSignificantWhitespace)];else if("string"!=typeof t){const s=t instanceof Nt?t:t instanceof cr?t.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,t){this._errors.push(new Qn(e.sourceSpan,t))}}const qv="|",Hv="@@";const jv="goog.getMsg";function zv(n,e,t,s){const r=function Yv(n){return n.nodes.map(e=>e.visit(Xv,null)).join("")}(e),i=[d(r)];Object.keys(s).length&&(i.push(Ro(Ma(s,!0),!0)),i.push(Ro({original_code:ie(Object.keys(s).map(l=>({key:li(l),quoted:!0,value:e.placeholders[l]?d(e.placeholders[l].sourceSpan.toString()):d(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));const o=t.set(A(jv).callFn(i)).toConstDecl();o.addLeadingComment(function Wv(n){const e=[];return n.description?e.push({tagName:"desc",text:n.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&e.push({tagName:"meaning",text:n.meaning}),x(e)}(e));return[o,new Xe(n.set(t))]}const Xv=new class Gv{formatPh(e){return`{$${li(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){return $u(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}};function Zv(n,e,t){const{messageParts:s,placeHolders:r}=function Jv(n){const e=[],t=new Qv(n.placeholderToMessage,e);return n.nodes.forEach(s=>s.visit(t)),function eE(n){const e=[],t=[];n[0]instanceof G&&e.push(Sl(n[0].sourceSpan.start));for(let s=0;st[c.text]),a=nr(e,s,r,o,i),l=n.set(a);return[new Xe(l)]}class Qv{constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof j)this.pieces[this.pieces.length-1].text+=e.value;else{const t=new pe(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new j(e.value,t))}}visitContainer(e){e.children.forEach(t=>t.visit(this))}visitIcu(e){this.pieces.push(new j($u(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(t=>t.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(t=>t.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,t,s){return new G(li(e,!1),t,s)}}function Sl(n){return new j("",new pe(n,n))}const hh="ngI18nClosureMode",tE="i18n_",nE="I18N_EXP_",ph="\ufffd",sE="MSG_";function fh(n){return`${sE}${n}`.toUpperCase()}function rE(n){return new ne(n.name,void 0,yt,void 0,n.sourceSpan)}function dh(n,e,t,s){const r=[],i=new Map;for(const c of s.subMessages){const h=t.get(c),{mainVar:p,statements:w}=dh(n,e,t,h);r.push(...w);const b=i.get(h.messagePlaceholder)??[];b.push(p),i.set(h.messagePlaceholder,b)}(function oE(n,e){for(const[t,s]of e)1===s.length?n.params.set(t,s[0]):(n.params.set(t,d(`${ph}${nE}${t}${ph}`)),n.postprocessingParams.set(t,L(s)))})(s,i),s.params=new Map([...s.params.entries()].sort());const o=A(n.pool.uniqueName(tE)),a=function cE(n,e,t,s){let r;const i=t;if(s){const o=fh("EXTERNAL_"),a=n.uniqueName(i);r=`${o}${Ei(e)}$$${a}`}else{const o=fh(i);r=n.uniqueName(o)}return A(r)}(n.pool,s.message.id,e,n.i18nUseExternalIds);let l;if(s.needsPostprocessing||s.postprocessingParams.size>0){const h=Ma(Object.fromEntries([...s.postprocessingParams.entries()].sort()),!1),p=[];s.postprocessingParams.size>0&&p.push(Ro(h,!0)),l=w=>_(f.i18nPostprocess).callFn([w,...p])}return r.push(...function aE(n,e,t,s,r){const i=Object.fromEntries(s),o=[rE(e),Hn(lE(),zv(e,n,t,i),Zv(e,n,Ma(i,!1)))];return r&&o.push(new Xe(e.set(r(e)))),o}(s.message,o,a,s.params,l)),{mainVar:o,statements:r}}function lE(){return he(A(hh)).notIdentical(d("undefined",Cn)).and(A(hh))}function pE(n){const e=[];for(const t of n)e.push(d(t.name),d(t.target));return L(e)}function dE(n){const e=[];let t=0,s=0,r=0,i=0,o=0,a=null;for(;t0&&0===s&&0===r){const c=n.substring(i,t-1).trim();e.push(a,c),o=t,i=0,a=null}}if(a&&i){const l=n.slice(i).trim();e.push(a,l)}return e}function mh(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Pi(n,e,t,s){null===n.fnName&&(n.fnName=n.job.pool.uniqueName(Ei(`${e}_${n.job.fnSuffix}`),!1));const r=new Map;for(const i of n.ops())switch(i.kind){case u.Property:case u.HostProperty:i.isAnimationTrigger&&(i.name="@"+i.name);break;case u.Listener:if(null!==i.handlerFnName)break;if(!i.hostListener&&null===i.targetSlot.slot)throw new Error("Expected a slot to be assigned");let o="";i.isAnimationListener&&(i.name=`@${i.name}.${i.animationPhase}`,o="animation"),i.hostListener?i.handlerFnName=`${e}_${o}${i.name}_HostBindingHandler`:i.handlerFnName=`${n.fnName}_${i.tag.replace("-","_")}_${o}${i.name}_${i.targetSlot.slot}_listener`,i.handlerFnName=Ei(i.handlerFnName);break;case u.TwoWayListener:if(null!==i.handlerFnName)break;if(null===i.targetSlot.slot)throw new Error("Expected a slot to be assigned");i.handlerFnName=Ei(`${n.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case u.Variable:r.set(i.xref,vE(n,i.variable,t));break;case u.RepeaterCreate:if(!(n instanceof gs))throw new Error("AssertionError: must be compiling a component");if(null===i.handle.slot)throw new Error("Expected slot to be assigned");if(null!==i.emptyView){Pi(n.job.views.get(i.emptyView),`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,t,s)}Pi(n.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,t,s);break;case u.Projection:if(!(n instanceof gs))throw new Error("AssertionError: must be compiling a component");if(null===i.handle.slot)throw new Error("Expected slot to be assigned");if(null!==i.fallbackView){Pi(n.job.views.get(i.fallbackView),`${e}_ProjectionFallback_${i.handle.slot}`,t,s)}break;case u.Template:if(!(n instanceof gs))throw new Error("AssertionError: must be compiling a component");const a=n.job.views.get(i.xref);if(null===i.handle.slot)throw new Error("Expected slot to be assigned");Pi(a,`${e}${0===i.functionNameSuffix.length?"":`_${i.functionNameSuffix}`}_${i.handle.slot}`,t,s);break;case u.StyleProp:i.name=EE(i.name),s&&(i.name=gh(i.name));break;case u.ClassProp:s&&(i.name=gh(i.name))}for(const i of n.ops())ft(i,o=>{if(o instanceof Fn&&null===o.name){if(!r.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=r.get(o.xref)}})}function vE(n,e,t){if(null===e.name)switch(e.kind){case st.Context:e.name="ctx_r"+t.index++;break;case st.Identifier:if(n.job.compatibility===Lt.TemplateDefinitionBuilder){const s="ctx"===e.identifier?"i":"";e.name=`${e.identifier}_${s}r${++t.index}`}else e.name=`${e.identifier}_i${t.index++}`;break;default:e.name="_r"+ ++t.index}return e.name}function EE(n){return n.startsWith("--")?n:mh(n)}function gh(n){const e=n.indexOf("!important");return e>-1?n.substring(0,e):n}function vh(n){for(const e of n){if(!(e.kind===u.Statement&&e.statement instanceof Xe&&e.statement.expr instanceof xi))continue;const t=e.statement.expr.steps;let s=!0;for(let r=e.next;r.kind!==u.ListEnd&&s;r=r.next)ft(r,(i,o)=>{if(!Jt(i))return i;if(s&&!(o&be.InChildOperation))switch(i.kind){case H.NextContext:i.steps+=t,C.remove(e),s=!1;break;case H.GetCurrentView:case H.Reference:case H.ContextLetReference:s=!1}})}}function xE(n,e){const t=n.get(e);if(void 0===t)throw new Error("All attributes should have an element-like target.");return t}function Jn(n){return e=>e.kind===n}function Li(n,e){return t=>t.kind===n&&e===t.expression instanceof rt}const kE=[{test:n=>n.kind===u.Listener&&n.hostListener&&n.isAnimationListener},{test:function TE(n){return n.kind===u.Listener&&!(n.hostListener&&n.isAnimationListener)||n.kind===u.TwoWayListener}}],bE=[{test:Jn(u.StyleMap),transform:jo},{test:Jn(u.ClassMap),transform:jo},{test:Jn(u.StyleProp)},{test:Jn(u.ClassProp)},{test:Li(u.Attribute,!0)},{test:Li(u.Property,!0)},{test:function AE(n){return!(n.kind!==u.Property&&n.kind!==u.TwoWayProperty||n.expression instanceof rt)}},{test:Li(u.Attribute,!1)}],IE=[{test:Li(u.HostProperty,!0)},{test:Li(u.HostProperty,!1)},{test:Jn(u.Attribute)},{test:Jn(u.StyleMap),transform:jo},{test:Jn(u.ClassMap),transform:jo},{test:Jn(u.StyleProp)},{test:Jn(u.ClassProp)}],Eh=new Set([u.Listener,u.TwoWayListener,u.StyleMap,u.ClassMap,u.StyleProp,u.ClassProp,u.Property,u.TwoWayProperty,u.HostProperty,u.Attribute]);function wh(n,e){let t=[],s=null;for(const r of n){const i=bo(r)?r.target:null;(!Eh.has(r.kind)||i!==s&&null!==s&&null!==i)&&(C.insertBefore(yh(t,e),r),t=[],s=null),Eh.has(r.kind)&&(t.push(r),C.remove(r),s=i??s)}n.push(yh(t,e))}function yh(n,e){const t=Array.from(e,()=>new Array);for(const s of n){t[e.findIndex(i=>i.test(s))].push(s)}return t.flatMap((s,r)=>{const i=e[r].transform;return i?i(s):s})}function jo(n){return n.slice(n.length-1)}function PE(n){return"select"===n.toLowerCase()}function LE(n,e){const t=n.get(e);if(void 0===t)throw new Error("All attributes should have an slottable target.");return t}function ME(n){for(const e of n.update)ft(e,(t,s)=>{if(Jt(t)&&t.kind===H.PipeBinding){if(s&be.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(n.job.compatibility){if(null==e.target)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");RE(n,e.target,t)}else n.create.push(xu(t.target,t.targetSlot,t.name))}})}function RE(n,e,t){for(let s=n.create.head.next;s.kind!==u.ListEnd;s=s.next){if(!Er(s)||s.xref!==e)continue;for(;s.next.kind===u.Pipe;)s=s.next;const r=xu(t.target,t.targetSlot,t.name);return void C.insertBefore(r,s.next)}throw new Error(`AssertionError: unable to find insertion point for pipe ${t.name}`)}function Sh(n,e){let t=null;for(const s of n.create)switch(s.kind){case u.I18nStart:s.subTemplateIndex=0===e?null:e,t=s;break;case u.I18nEnd:null===t.subTemplateIndex&&(e=0),t=null;break;case u.Template:e=xl(n.job.views.get(s.xref),t,s.i18nPlaceholder,e);break;case u.RepeaterCreate:e=xl(n.job.views.get(s.xref),t,s.i18nPlaceholder,e),null!==s.emptyView&&(e=xl(n.job.views.get(s.emptyView),t,s.emptyI18nPlaceholder,e))}return e}function xl(n,e,t,s){if(void 0!==t){if(null===e)throw Error("Expected template with i18n placeholder to be in an i18n block.");s++,function OE(n,e){if(n.create.head.next?.kind!==u.I18nStart){const t=n.job.allocateXrefId();C.insertAfter(Bo(t,e.message,e.root,null),n.create.head),C.insertBefore(Mo(t,null),n.create.tail)}}(n,e)}return Sh(n,s)}class qE extends sr{constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Us?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,t){const s=[];for(let i=0;ii instanceof Us?A("a"+i.index):i,be.None);return new ne(e,new W(s,r),void 0,y.Final)}}function UE(n){const e=[],t=[];for(const s of n.entries)if(s.isConstant())e.push(s);else{const r=t.length;t.push(s),e.push(new Us(r))}return new fs(L(e),t)}function WE(n){let e=[];const t=[];for(const s of n.entries)if(s.value.isConstant())e.push(s);else{const r=t.length;t.push(s.value),e.push(new ze(s.key,new Us(r),s.quoted))}return new fs(ie(e),t)}function jE(n,e,t,s,r){return zo(f.element,n,e,t,s,r)}function zE(n,e,t,s,r){return zo(f.elementStart,n,e,t,s,r)}function zo(n,e,t,s,r,i){const o=[d(e)];return null!==t&&o.push(d(t)),null!==r?o.push(d(s),d(r)):null!==s&&o.push(d(s)),Ce(n,o,i)}function GE(n){return Ce(f.elementEnd,[],n)}function XE(n,e,t,s){return zo(f.elementContainerStart,n,null,e,t,s)}function YE(n,e,t,s){return zo(f.elementContainer,n,null,e,t,s)}function QE(n,e,t,s,r,i,o,a){const l=[d(n),e,d(t),d(s),d(r),d(i)];for(null!==o&&(l.push(d(o)),l.push(_(f.templateRefExtractor)));l[l.length-1].isEquivalent(S);)l.pop();return Ce(f.templateCreate,l,a)}function ew(n,e,t,s,r){const i=[d(n),e];return null!==t&&(i.push(d(!1)),i.push(_(t))),Ce(s?f.syntheticHostListener:f.listener,i,r)}function xh(n,e){return _(f.twoWayBindingSet).callFn([n,e])}function tw(n,e,t){return Ce(f.twoWayListener,[d(n),e],t)}function nw(n,e){return Ce(f.pipe,[d(n),d(e)],null)}function ow(n,e){return Ce(f.advance,n>1?[d(n)]:[],e)}function pw(n,e,t){const s=[d(n,null)];return""!==e&&s.push(d(e)),Ce(f.text,s,t)}function fw(n,e,t,s,r,i,o,a,l,c){const h=[d(n),d(e),t??d(null),d(s),d(r),d(i),o??d(null),a??d(null),l?_(f.deferEnableTimerScheduling):d(null)];let p;for(;null!==(p=h[h.length-1])&&p instanceof v&&null===p.value;)h.pop();return Ce(f.defer,h,c)}const dw=new Map([[Ue.Idle,[f.deferOnIdle,f.deferPrefetchOnIdle]],[Ue.Immediate,[f.deferOnImmediate,f.deferPrefetchOnImmediate]],[Ue.Timer,[f.deferOnTimer,f.deferPrefetchOnTimer]],[Ue.Hover,[f.deferOnHover,f.deferPrefetchOnHover]],[Ue.Interaction,[f.deferOnInteraction,f.deferPrefetchOnInteraction]],[Ue.Viewport,[f.deferOnViewport,f.deferPrefetchOnViewport]]]);function mw(n,e,t,s){const r=dw.get(n);if(void 0===r)throw new Error(`Unable to determine instruction for trigger ${n}`);return Ce(t?r[1]:r[0],e.map(o=>d(o)),s)}function gw(n){return Ce(f.projectionDef,n?[n]:[],null)}function vw(n,e,t,s,r,i,o){const a=[d(n)];return(0!==e||null!==t||null!==s)&&(a.push(d(e)),null!==t&&a.push(t),null!==s&&(null===t&&a.push(d(null)),a.push(A(s),d(r),d(i)))),Ce(f.projection,a,o)}function Ew(n,e,t,s){const r=[d(n),d(e)];return null!==t&&r.push(d(t)),Ce(f.i18nStart,r,s)}function ww(n,e,t,s,r,i,o,a,l,c,h,p,w,b){const D=[d(n),A(e),d(t),d(s),d(r),d(i),o];return(a||null!==l)&&(D.push(d(a)),null!==l&&(D.push(A(l),d(c),d(h)),(null!==p||null!==w)&&D.push(d(p)),null!==w&&D.push(d(w)))),Ce(f.repeaterCreate,D,b)}function yw(n,e){return Ce(f.repeater,[n],e)}function Sw(n,e,t){return Ce(n?f.deferPrefetchWhen:f.deferWhen,[e],t)}function xw(n,e){return Ce(f.declareLet,[d(n)],e)}function Tw(n,e,t,s){const r=[d(n),d(e)];return t&&r.push(d(t)),Ce(f.i18n,r,s)}function Aw(n){return Ce(f.i18nEnd,[],n)}function kw(n,e){const t=[d(n),d(e)];return Ce(f.i18nAttributes,t,null)}function bw(n,e,t,s){const r=[d(n),e];return null!==t&&r.push(t),Ce(f.property,r,s)}function Iw(n,e,t,s){const r=[d(n),e];return null!==t&&r.push(t),Ce(f.twoWayProperty,r,s)}function Dw(n,e,t,s){const r=[d(n),e];return(null!==t||null!==s)&&r.push(t??d(null)),null!==s&&r.push(d(s)),Ce(f.attribute,r,null)}function Nw(n,e,t,s){const r=[d(n),e];return null!==t&&r.push(d(t)),Ce(f.styleProp,r,s)}function Pw(n,e,t){return Ce(f.classProp,[d(n),e],t)}function Lw(n,e){return Ce(f.styleMap,[n],e)}function Bw(n,e){return Ce(f.classMap,[n],e)}const _h=[f.pipeBind1,f.pipeBind2,f.pipeBind3,f.pipeBind4];function Fw(n,e,t){const s=Fr(n,e);return $r(Yw,[],s,[],t)}function $w(n,e){return Ce(f.i18nExp,[n],e)}function Ow(n,e){return Ce(f.i18nApply,[d(n)],e)}function Vw(n,e,t,s,r){const i=Fr(e,t),o=[];return null!==s&&o.push(s),$r(Zw,[d(n)],i,o,r)}function qw(n,e,t,s,r){const i=Fr(e,t),o=[];return null!==s&&o.push(s),$r(Jw,[d(n)],i,o,r)}function Hw(n,e,t,s,r){const i=Fr(e,t),o=[];return null!==s&&o.push(d(s)),$r(Qw,[d(n)],i,o,r)}function Uw(n,e,t){const s=Fr(n,e);return $r(Kw,[],s,[],t)}function Ww(n,e,t){const s=Fr(n,e);return $r(e2,[],s,[],t)}function jw(n,e,t,s){const r=[d(n),e];return null!==t&&r.push(t),Ce(f.hostProperty,r,s)}function zw(n,e,t){return Ce(f.syntheticHostProperty,[d(n),e],t)}function Fr(n,e){if(n.length<1||e.length!==n.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");const t=[];if(1===e.length&&""===n[0]&&""===n[1])t.push(e[0]);else{let s;for(s=0;s{if(n%2==0)throw new Error("Expected odd number of arguments");return(n-1)/2}},Zw={constant:[f.propertyInterpolate,f.propertyInterpolate1,f.propertyInterpolate2,f.propertyInterpolate3,f.propertyInterpolate4,f.propertyInterpolate5,f.propertyInterpolate6,f.propertyInterpolate7,f.propertyInterpolate8],variable:f.propertyInterpolateV,mapping:n=>{if(n%2==0)throw new Error("Expected odd number of arguments");return(n-1)/2}},Qw={constant:[f.styleProp,f.stylePropInterpolate1,f.stylePropInterpolate2,f.stylePropInterpolate3,f.stylePropInterpolate4,f.stylePropInterpolate5,f.stylePropInterpolate6,f.stylePropInterpolate7,f.stylePropInterpolate8],variable:f.stylePropInterpolateV,mapping:n=>{if(n%2==0)throw new Error("Expected odd number of arguments");return(n-1)/2}},Jw={constant:[f.attribute,f.attributeInterpolate1,f.attributeInterpolate2,f.attributeInterpolate3,f.attributeInterpolate4,f.attributeInterpolate5,f.attributeInterpolate6,f.attributeInterpolate7,f.attributeInterpolate8],variable:f.attributeInterpolateV,mapping:n=>{if(n%2==0)throw new Error("Expected odd number of arguments");return(n-1)/2}},Kw={constant:[f.styleMap,f.styleMapInterpolate1,f.styleMapInterpolate2,f.styleMapInterpolate3,f.styleMapInterpolate4,f.styleMapInterpolate5,f.styleMapInterpolate6,f.styleMapInterpolate7,f.styleMapInterpolate8],variable:f.styleMapInterpolateV,mapping:n=>{if(n%2==0)throw new Error("Expected odd number of arguments");return(n-1)/2}},e2={constant:[f.classMap,f.classMapInterpolate1,f.classMapInterpolate2,f.classMapInterpolate3,f.classMapInterpolate4,f.classMapInterpolate5,f.classMapInterpolate6,f.classMapInterpolate7,f.classMapInterpolate8],variable:f.classMapInterpolateV,mapping:n=>{if(n%2==0)throw new Error("Expected odd number of arguments");return(n-1)/2}},t2={constant:[f.pureFunction0,f.pureFunction1,f.pureFunction2,f.pureFunction3,f.pureFunction4,f.pureFunction5,f.pureFunction6,f.pureFunction7,f.pureFunction8],variable:f.pureFunctionV,mapping:n=>n};function Ch(n,e,t,s,r){const i=n.mapping(t.length);if(i_h.length)throw new Error("pipeBind() argument count out of bounds");return _(_h[t.length-1]).callFn([d(n),d(e),...t])}(n.targetSlot.slot,n.varOffset,n.args);case H.PipeBindingVariadic:return function Rw(n,e,t){return _(f.pipeBindV).callFn([d(n),d(e),t])}(n.targetSlot.slot,n.varOffset,n.args);case H.SlotLiteralExpr:return d(n.slot.slot);case H.ContextLetReference:return function Cw(n){return _(f.readContextLet).callFn([d(n)])}(n.targetSlot.slot);case H.StoreLet:return function _w(n,e){return _(f.storeLet).callFn([n],e)}(n.value,n.sourceSpan);default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${H[n.kind]}`)}}function kh(n,e,t,s){Th(0,t);const r=[];for(const o of t){if(o.kind!==u.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${u[o.kind]}`);r.push(o.statement)}const i=[];return s&&i.push(new ae("$event")),lt(i,r,void 0,void 0,e)}function _l(n,e){const t=new Map;t.set(n.xref,A("ctx"));for(const s of e)switch(s.kind){case u.Variable:if(s.variable.kind===st.Context)t.set(s.variable.view,new Fn(s.xref));break;case u.Listener:case u.TwoWayListener:_l(n,s.handlerOps)}n===n.job.root&&t.set(n.xref,A("ctx"));for(const s of e)it(s,r=>{if(r instanceof Rn){if(!t.has(r.view))throw new Error(`No context found for reference to view ${r.view} from view ${n.xref}`);return t.get(r.view)}return r},be.None)}function bh(n){for(const e of n)(e.kind===u.Listener||e.kind===u.TwoWayListener)&&it(e,t=>t instanceof pt&&"$event"===t.name?(e.kind===u.Listener&&(e.consumesDollarEvent=!0),new St(t.name)):t,be.InChildOperation)}function Es(n,e,t,s,r){let i=null,o=new Map;for(const a of e.create)switch(a.kind){case u.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:t.get(a.context)};break;case u.I18nEnd:i=null;break;case u.ElementStart:if(void 0!==a.i18nPlaceholder){if(null===i)throw Error("i18n tag placeholder should only occur inside an i18n block");Ih(a,i.i18nContext,i.i18nBlock,r),r&&a.i18nPlaceholder.closeName&&o.set(a.xref,r),r=void 0}break;case u.ElementEnd:const l=s.get(a.xref);if(l&&void 0!==l.i18nPlaceholder){if(null===i)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Dh(l,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case u.Projection:if(void 0!==a.i18nPlaceholder){if(null===i)throw Error("i18n tag placeholder should only occur inside an i18n block");Ih(a,i.i18nContext,i.i18nBlock,r),Dh(a,i.i18nContext,i.i18nBlock,r),r=void 0}break;case u.Template:const c=n.views.get(a.xref);if(void 0===a.i18nPlaceholder)Es(n,c,t,s);else{if(null===i)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===Bt.Structural?Es(n,c,t,s,a):(Cl(n,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),Es(n,c,t,s),Tl(n,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0)}break;case u.RepeaterCreate:if(void 0!==r)throw Error("AssertionError: Unexpected structural directive associated with @for block");const h=a.handle.slot+1,p=n.views.get(a.xref);if(void 0===a.i18nPlaceholder)Es(n,p,t,s);else{if(null===i)throw Error("i18n tag placeholder should only occur inside an i18n block");Cl(n,p,h,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),Es(n,p,t,s),Tl(n,p,h,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}if(null!==a.emptyView){const w=a.handle.slot+2,b=n.views.get(a.emptyView);if(void 0===a.emptyI18nPlaceholder)Es(n,b,t,s);else{if(null===i)throw Error("i18n tag placeholder should only occur inside an i18n block");Cl(n,b,w,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),Es(n,b,t,s),Tl(n,b,w,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}}}}function Ih(n,e,t,s){const{startName:r,closeName:i}=n.i18nPlaceholder;let o=$e.ElementTag|$e.OpenTag,a=n.handle.slot;void 0!==s&&(o|=$e.TemplateTag,a={element:a,template:s.handle.slot}),i||(o|=$e.CloseTag),Or(e.params,r,a,t.subTemplateIndex,o)}function Dh(n,e,t,s){const{closeName:r}=n.i18nPlaceholder;if(r){let i=$e.ElementTag|$e.CloseTag,o=n.handle.slot;void 0!==s&&(i|=$e.TemplateTag,o={element:o,template:s.handle.slot}),Or(e.params,r,o,t.subTemplateIndex,i)}}function Cl(n,e,t,s,r,i,o){let{startName:a,closeName:l}=s,c=$e.TemplateTag|$e.OpenTag;l||(c|=$e.CloseTag),void 0!==o&&Or(r.params,a,o.handle.slot,i.subTemplateIndex,c),Or(r.params,a,t,Nh(n,i,e),c)}function Tl(n,e,t,s,r,i,o){const{closeName:a}=s,l=$e.TemplateTag|$e.CloseTag;a&&(Or(r.params,a,t,Nh(n,i,e),l),void 0!==o&&Or(r.params,a,o.handle.slot,i.subTemplateIndex,l))}function Nh(n,e,t){for(const s of t.create)if(s.kind===u.I18nStart)return s.subTemplateIndex;return e.subTemplateIndex}function Or(n,e,t,s,r){const i=n.get(e)??[];i.push({value:t,subTemplateIndex:s,flags:r}),n.set(e,i)}function p2(n,e,t,s){if(null!==n.i18nPlaceholder){const r=t.get(n.context),i=n.resolutionTime===gr.Creation?r.params:r.postprocessingParams,o=i.get(n.i18nPlaceholder)||[];o.push(e),i.set(n.i18nPlaceholder,o)}null!==n.icuPlaceholder&&s.get(n.icuPlaceholder)?.expressionPlaceholders.push(e)}function Al(n,e,t){const s=new Map,r=new Map;for(const i of e)switch(i.kind){case u.Variable:switch(i.variable.kind){case st.Identifier:if(i.variable.local){if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref)}else if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case st.Alias:if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case st.SavedView:t={view:i.variable.view,variable:i.xref}}break;case u.Listener:case u.TwoWayListener:Al(n,i.handlerOps,t)}for(const i of e)i.kind==u.Listener||i.kind===u.TwoWayListener||it(i,o=>{if(o instanceof pt)return r.has(o.name)?new Fn(r.get(o.name)):s.has(o.name)?new Fn(s.get(o.name)):new Z(new Rn(n.job.root.xref),o.name);if(o instanceof _i&&"number"==typeof o.view){if(null===t||t.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${n.xref}`);return o.view=new Fn(t.variable),o}return o},be.None);for(const i of e)ft(i,o=>{if(o instanceof pt)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}const d2=new Map([[Ie.HTML,f.sanitizeHtml],[Ie.RESOURCE_URL,f.sanitizeResourceUrl],[Ie.SCRIPT,f.sanitizeScript],[Ie.STYLE,f.sanitizeStyle],[Ie.URL,f.sanitizeUrl]]),m2=new Map([[Ie.HTML,f.trustConstantHtml],[Ie.RESOURCE_URL,f.trustConstantResourceUrl]]);function v2(n){return n.kind===u.ElementStart&&"iframe"===n.tag?.toLowerCase()}function Ph(n){if(Array.isArray(n)){if(n.length>1)throw Error("AssertionError: Ambiguous security context");return n[0]||Ie.NONE}return n}function y2(n,e){e.handlerOps.prepend([ps(n.job.allocateXrefId(),{kind:st.Context,name:null,view:n.xref},new _i(n.xref),jt.None)]);for(const t of e.handlerOps)t.kind===u.Statement&&t.statement instanceof Fe&&(t.statement.value=new Do(t.statement.value))}function kl(n){let e=0,t=[];for(const s of n){const r=new Map;ft(s,(c,h)=>{h&be.InChildOperation||c instanceof Yn&&r.set(c.xref,c)});let i=0;const o=new Set,a=new Set,l=new Map;ft(s,(c,h)=>{h&be.InChildOperation||(c instanceof yn?(o.has(c.xref)||(o.add(c.xref),l.set(c.xref,`tmp_${e}_${i++}`)),Lh(l,c)):c instanceof Yn&&(r.get(c.xref)===c&&(a.add(c.xref),i--),Lh(l,c)))}),t.push(...Array.from(new Set(l.values())).map(c=>Mn(new ne(c)))),e++,(s.kind===u.Listener||s.kind===u.TwoWayListener)&&s.handlerOps.prepend(kl(s.handlerOps))}return t}function Lh(n,e){const t=n.get(e.xref);if(void 0===t)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=t}function A2(n,e){if(!(e instanceof g)||0===e.args.length||e.args.length>2||!(e.receiver instanceof Z&&e.receiver.receiver instanceof Rn)||e.receiver.receiver.view!==n)return!1;const[t,s]=e.args;return t instanceof St&&"$index"===t.name&&(1===e.args.length||!(!(s instanceof St)||"$item"!==s.name))}function I2(n){let e;switch(n.kind){case u.Property:case u.HostProperty:case u.Attribute:return e=1,n.expression instanceof rt&&!function D2(n){return!(1!==n.expressions.length||2!==n.strings.length||""!==n.strings[0]||""!==n.strings[1])}(n.expression)&&(e+=n.expression.expressions.length),e;case u.TwoWayProperty:return 1;case u.StyleProp:case u.ClassProp:case u.StyleMap:case u.ClassMap:return e=2,n.expression instanceof rt&&(e+=n.expression.expressions.length),e;case u.InterpolateText:return n.interpolation.expressions.length;case u.I18nExpression:case u.Conditional:case u.DeferWhen:case u.StoreLet:return 1;case u.RepeaterCreate:return n.emptyView?1:0;default:throw new Error(`Unhandled op: ${u[n.kind]}`)}}function Bh(n){switch(n.kind){case H.PureFunctionExpr:case H.PipeBinding:return 1+n.args.length;case H.PipeBindingVariadic:return 1+n.numArgs;case H.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${n.constructor.name}`)}}var et;function bl(n){const e=new Map;for(const t of n)t.kind===u.Variable&&t.flags&jt.AlwaysInline&&(ft(t,s=>{if(Jt(s)&&Dl(s)!==et.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(t.xref,t)),it(t,s=>s instanceof Fn&&e.has(s.xref)?e.get(s.xref).initializer.clone():s,be.None);for(const t of e.values())C.remove(t)}function Il(n,e){const t=new Map,s=new Map,r=new Set,i=new Map;for(const c of n){if(c.kind===u.Variable){if(t.has(c.xref)||s.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);t.set(c.xref,c),s.set(c.xref,0)}i.set(c,P2(c)),L2(c,s,r)}let o=!1;for(const c of n.reversed()){const h=i.get(c);if(c.kind!==u.Variable||0!==s.get(c.xref))h.fences&et.ViewContextRead&&(o=!0);else{if(o&&h.fences&et.ViewContextWrite||h.fences&et.SideEffectful){const p=Mn(c.initializer.toStmt());i.set(p,h),C.replace(c,p)}else B2(c,s),C.remove(c);i.delete(c),t.delete(c.xref),s.delete(c.xref)}}const a=[];for(const[c,h]of s){const w=!!(t.get(c).flags&jt.AlwaysInline);1!==h||w||r.has(c)||a.push(c)}let l;for(;l=a.pop();){const c=t.get(l),h=i.get(c);if(c.flags&jt.AlwaysInline)throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let w=c.next;w.kind!==u.ListEnd;w=w.next){const b=i.get(w);if(b.variablesUsed.has(l)){if(e===Lt.TemplateDefinitionBuilder&&!R2(c,w))break;if(M2(l,c.initializer,w,h.fences)){b.variablesUsed.delete(l);for(const D of h.variablesUsed)b.variablesUsed.add(D);b.fences|=h.fences,t.delete(l),s.delete(l),i.delete(c),C.remove(c)}break}if(!Mh(b.fences,h.fences))break}}}function Dl(n){switch(n.kind){case H.NextContext:return et.ViewContextRead|et.ViewContextWrite;case H.RestoreView:return et.ViewContextRead|et.ViewContextWrite|et.SideEffectful;case H.StoreLet:return et.SideEffectful;case H.Reference:case H.ContextLetReference:return et.ViewContextRead;default:return et.None}}function P2(n){let e=et.None;const t=new Set;return ft(n,s=>{if(Jt(s))if(s.kind===H.ReadVariable)t.add(s.xref);else e|=Dl(s)}),{fences:e,variablesUsed:t}}function L2(n,e,t){ft(n,(s,r)=>{if(!Jt(s)||s.kind!==H.ReadVariable)return;const i=e.get(s.xref);void 0!==i&&(e.set(s.xref,i+1),r&be.InChildOperation&&t.add(s.xref))})}function B2(n,e){ft(n,t=>{if(!Jt(t)||t.kind!==H.ReadVariable)return;const s=e.get(t.xref);if(void 0!==s){if(0===s)throw new Error(`Inaccurate variable count: ${t.xref} - found another read but count is already 0`);e.set(t.xref,s-1)}})}function Mh(n,e){if(n&et.ViewContextWrite){if(e&et.ViewContextRead)return!1}else if(n&et.ViewContextRead&&e&et.ViewContextWrite)return!1;return!0}function M2(n,e,t,s){let r=!1,i=!0;return it(t,(o,a)=>{if(!Jt(o)||r||!i)return o;if(a&be.InChildOperation&&s&et.ViewContextRead)return o;if(o.kind===H.ReadVariable){if(o.xref===n)return r=!0,e}else{const l=Dl(o);i=i&&Mh(l,s)}return o},be.None),r}function R2(n,e){switch(n.variable.kind){case st.Identifier:return n.initializer instanceof St&&"ctx"===n.initializer.name;case st.Context:return e.kind===u.Variable;default:return!0}}!function(n){n[n.None=0]="None",n[n.ViewContextRead=1]="ViewContextRead",n[n.ViewContextWrite=2]="ViewContextWrite",n[n.SideEffectful=4]="SideEffectful"}(et||(et={}));const q2=[{kind:R.Tmpl,fn:function NE(n){for(const e of n.units){const t=al(e);for(const s of e.ops())if(s.kind===u.Binding){const r=LE(t,s.target);PE(s.name)&&r.kind===u.Projection&&C.remove(s)}}}},{kind:R.Host,fn:function Bg(n){for(const e of n.root.update)if(e.kind===u.Binding&&e.bindingKind===z.Property)if(e.name.endsWith(Fu)&&(e.name=e.name.substring(0,e.name.length-10)),e.name.startsWith("style.")){e.bindingKind=z.StyleProperty,e.name=e.name.substring(6),Mg(e.name)||(e.name=Rg(e.name));const{property:t,suffix:s}=ul(e.name);e.name=t,e.unit=s}else e.name.startsWith("style!")?(e.bindingKind=z.StyleProperty,e.name="style"):(e.name.startsWith("class.")||e.name.startsWith("class!"))&&(e.bindingKind=z.ClassName,e.name=ul(e.name.substring(6)).property)}},{kind:R.Tmpl,fn:function fE(n){for(const e of n.units){let t=ht.HTML;for(const s of e.create)s.kind===u.ElementStart&&s.namespace!==t&&(C.insertBefore(xm(s.namespace),s),t=s.namespace)}}},{kind:R.Tmpl,fn:function $E(n){Sh(n.root,0)}},{kind:R.Tmpl,fn:function F2(n){for(const e of n.units){let t=null,s=null;for(const r of e.create)switch(r.kind){case u.I18nStart:t=r;break;case u.I18nEnd:t=null;break;case u.IcuStart:null===t&&(s=n.allocateXrefId(),C.insertBefore(Bo(s,r.message,void 0,null),r));break;case u.IcuEnd:null!==s&&(C.insertAfter(Mo(s,null),r),s=null)}}}},{kind:R.Both,fn:function ng(n){const e=new Map;for(const t of n.units)for(const s of t.update.reversed())if(s.kind===u.Binding&&s.isTextAttribute){const r=e.get(s.target)||new Set;r.has(s.name)&&n.compatibility===Lt.TemplateDefinitionBuilder&&("style"===s.name||"class"===s.name)&&C.remove(s),r.add(s.name),e.set(s.target,r)}}},{kind:R.Both,fn:function x2(n){for(const e of n.units)for(const t of e.update)if(t.kind===u.Binding)switch(t.bindingKind){case z.ClassName:if(t.expression instanceof rt)throw new Error("Unexpected interpolation in ClassName binding");C.replace(t,am(t.target,t.name,t.expression,t.sourceSpan));break;case z.StyleProperty:C.replace(t,om(t.target,t.name,t.expression,t.unit,t.sourceSpan));break;case z.Property:case z.Template:"style"===t.name?C.replace(t,lm(t.target,t.expression,t.sourceSpan)):"class"===t.name&&C.replace(t,cm(t.target,t.expression,t.sourceSpan))}}},{kind:R.Both,fn:function qm(n){const e=new Map;for(const t of n.units)for(const s of t.create)ms(s)&&e.set(s.xref,s);for(const t of n.units)for(const s of t.ops())if(s.kind===u.Binding)switch(s.bindingKind){case z.Attribute:if("ngNonBindable"===s.name){C.remove(s);Vm(e,s.target).nonBindable=!0}else{const[r,i]=gn(s.name);C.replace(s,um(s.target,r,i,s.expression,s.securityContext,s.isTextAttribute,s.isStructuralTemplateAttribute,s.templateKind,s.i18nMessage,s.sourceSpan))}break;case z.Property:case z.Animation:n.kind===R.Host?C.replace(s,Nm(s.name,s.expression,s.bindingKind===z.Animation,s.i18nContext,s.securityContext,s.sourceSpan)):C.replace(s,rm(s.target,s.name,s.expression,s.bindingKind===z.Animation,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case z.TwoWayProperty:if(!(s.expression instanceof Ne))throw new Error(`Expected value of two-way property binding "${s.name}" to be an expression`);C.replace(s,im(s.target,s.name,s.expression,s.securityContext,s.isStructuralTemplateAttribute,s.templateKind,s.i18nContext,s.i18nMessage,s.sourceSpan));break;case z.I18n:case z.ClassName:case z.StyleProperty:throw new Error(`Unhandled binding of kind ${z[s.bindingKind]}`)}}},{kind:R.Both,fn:function $m(n){for(const e of n.units){const t=al(e);for(const s of e.ops())switch(s.kind){case u.Attribute:Om(e,s,t);break;case u.Property:if(!s.isAnimationTrigger){let r;r=null!==s.i18nMessage&&null===s.templateKind?z.I18n:s.isStructuralTemplateAttribute?z.Template:z.Property,C.insertBefore(en(s.target,r,null,s.name,null,null,null,s.securityContext),Ar(t,s.target))}break;case u.TwoWayProperty:C.insertBefore(en(s.target,z.TwoWayProperty,null,s.name,null,null,null,s.securityContext),Ar(t,s.target));break;case u.StyleProp:case u.ClassProp:e.job.compatibility===Lt.TemplateDefinitionBuilder&&s.expression instanceof Cr&&C.insertBefore(en(s.target,z.Property,null,s.name,null,null,null,Ie.STYLE),Ar(t,s.target));break;case u.Listener:if(!s.isAnimationListener){const r=en(s.target,z.Property,null,s.name,null,null,null,Ie.NONE);if(n.kind===R.Host){if(n.compatibility)break;e.create.push(r)}else C.insertBefore(r,Ar(t,s.target))}break;case u.TwoWayListener:if(n.kind!==R.Host){const r=en(s.target,z.Property,null,s.name,null,null,null,Ie.NONE);C.insertBefore(r,Ar(t,s.target))}}}}},{kind:R.Tmpl,fn:function tg(n){const e=new Map;for(const r of n.units)for(const i of r.ops())switch(i.kind){case u.Binding:case u.Property:case u.Attribute:case u.ExtractedAttribute:if(null===i.i18nMessage)continue;if(!e.has(i.i18nMessage)){const o=il(hs.Attr,n.allocateXrefId(),null,i.i18nMessage,null);r.create.push(o),e.set(i.i18nMessage,o.xref)}i.i18nContext=e.get(i.i18nMessage)}const t=new Map;for(const r of n.units)for(const i of r.create)if(i.kind===u.I18nStart)if(i.xref===i.root){const o=il(hs.RootI18n,n.allocateXrefId(),i.xref,i.message,null);r.create.push(o),i.context=o.xref,t.set(i.xref,o)}for(const r of n.units)for(const i of r.create)if(i.kind===u.I18nStart&&i.xref!==i.root){const o=t.get(i.root);if(void 0===o)throw Error("AssertionError: Root i18n block i18n context should have been created.");i.context=o.xref,t.set(i.xref,o)}let s=null;for(const r of n.units)for(const i of r.create)switch(i.kind){case u.I18nStart:s=i;break;case u.I18nEnd:s=null;break;case u.IcuStart:if(null===s)throw Error("AssertionError: Unexpected ICU outside of an i18n block.");if(i.message.id!==s.message.id){const o=il(hs.Icu,n.allocateXrefId(),s.root,i.message,null);r.create.push(o),i.context=o.xref}else i.context=s.context,t.get(s.xref).contextKind=hs.Icu}}},{kind:R.Both,fn:function mE(n){const e=new Map;for(const t of n.units)for(const s of t.create)ms(s)&&e.set(s.xref,s);for(const t of n.units)for(const s of t.create)if(s.kind===u.ExtractedAttribute&&s.bindingKind===z.Attribute&&wu(s.expression)){const r=e.get(s.target);if(void 0!==r&&r.kind===u.Template&&r.templateKind===Bt.Structural)continue;if("style"===s.name){const i=dE(s.expression.value);for(let o=0;o""===r)&&(t.expression=t.expression.expressions[0])}},{kind:R.Both,fn:function DE(n){for(const e of n.units){wh(e.create,kE);const t=e.job.kind===R.Host?IE:bE;wh(e.update,t)}}},{kind:R.Tmpl,fn:function zm(n){for(const e of n.units)for(const t of e.ops()){if(t.kind!==u.Conditional)continue;let s;const r=t.conditions.findIndex(o=>null===o.expr);if(r>=0){const o=t.conditions.splice(r,1)[0].targetSlot;s=new Ci(o)}else s=d(-1);let i=null==t.test?null:new yn(t.test,n.allocateXrefId());for(let o=t.conditions.length-1;o>=0;o--){let a=t.conditions[o];if(null!==a.expr){if(null!==i){const l=0===o?i:new Yn(i.xref);a.expr=new F(q.Identical,l,a.expr)}else if(null!==a.alias){const l=n.allocateXrefId();a.expr=new yn(a.expr,l),t.contextValue=new Yn(l)}s=new B(a.expr,new Ci(a.targetSlot),s)}}t.processed=s,t.conditions=[]}}},{kind:R.Tmpl,fn:function BE(n){for(const e of n.units)ME(e)}},{kind:R.Tmpl,fn:function sg(n){for(const e of n.units)for(const t of e.create)t.kind===u.Defer&&(null!==t.placeholderMinimumTime&&(t.placeholderConfig=new Tr(kr([t.placeholderMinimumTime]))),(null!==t.loadingMinimumTime||null!==t.loadingAfterTime)&&(t.loadingConfig=new Tr(kr([t.loadingMinimumTime,t.loadingAfterTime]))))}},{kind:R.Tmpl,fn:function uE(n){for(const e of n.units){let t=null,s=null;const r=new Map,i=new Map,o=new Map;for(const a of e.create)switch(a.kind){case u.I18nStart:if(null===a.context)throw Error("I18n op should have its context set.");t=a;break;case u.I18nEnd:t=null;break;case u.IcuStart:if(null===a.context)throw Error("Icu op should have its context set.");s=a;break;case u.IcuEnd:s=null;break;case u.Text:if(null!==t)if(r.set(a.xref,t),i.set(a.xref,s),null!==a.icuPlaceholder){const l=Dm(n.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);C.replace(a,l),o.set(a.xref,l)}else C.remove(a)}for(const a of e.update)if(a.kind===u.InterpolateText){if(!r.has(a.target))continue;const l=r.get(a.target),c=i.get(a.target),h=o.get(a.target),p=c?c.context:l.context,w=c?gr.Postproccessing:gr.Creation,b=[];for(let D=0;D!(s instanceof Ws)||s.args.length<=4?s:new Po(s.target,s.targetSlot,s.name,L(s.args),s.args.length),be.None)}},{kind:R.Both,fn:function HE(n){for(const e of n.units)for(const t of e.update)it(t,(s,r)=>r&be.InChildOperation?s:s instanceof K?UE(s):s instanceof Ae?WE(s):s,be.None)}},{kind:R.Tmpl,fn:function Ig(n){const e=n.compatibility===Lt.TemplateDefinitionBuilder,t=[];let s=0;for(const r of n.units)for(const i of r.create)i.kind===u.Projection&&(t.push(i.selector),i.projectionSlotIndex=s++);if(t.length>0){let r=null;if(t.length>1||"*"!==t[0]){const i=t.map(o=>"*"===o?o:ln(o));r=n.pool.getConstLiteral(kr(i),e)}n.contentSelectors=n.pool.getConstLiteral(kr(t),e),n.root.create.prepend([_m(r)])}}},{kind:R.Tmpl,fn:function V2(n){for(const e of n.units)for(const t of e.update){if(t.kind!==u.StoreLet)continue;const s={kind:st.Identifier,name:null,identifier:t.declaredName,local:!0};C.replace(t,ps(n.allocateXrefId(),s,new wr(t.target,t.value,t.sourceSpan),jt.None))}}},{kind:R.Tmpl,fn:function Dg(n){ki(n.root,null)}},{kind:R.Tmpl,fn:function w2(n){for(const e of n.units){e.create.prepend([ps(e.job.allocateXrefId(),{kind:st.SavedView,name:null,view:e.xref},new Io,jt.None)]);for(const t of e.create){if(t.kind!==u.Listener&&t.kind!==u.TwoWayListener)continue;let s=e!==n.root;if(!s)for(const r of t.handlerOps)ft(r,i=>{(i instanceof yi||i instanceof yr)&&(s=!0)});s&&y2(e,t)}}}},{kind:R.Both,fn:function Lm(n){for(const e of n.units)for(const t of e.ops())it(t,Bm,be.None)}},{kind:R.Both,fn:function c2(n){for(const e of n.units)bh(e.create),bh(e.update)}},{kind:R.Tmpl,fn:function k2(n){for(const e of n.units)for(const t of e.create)t.kind===u.RepeaterCreate&&(t.track=$(t.track,s=>{if(s instanceof pt){if(t.varNames.$index.has(s.name))return A("$index");if(s.name===t.varNames.$implicit)return A("$item")}return s},be.None))}},{kind:R.Tmpl,fn:function O2(n){for(const e of n.units)for(const t of e.update){if(t.kind!==u.Variable||t.variable.kind!==st.Identifier||!(t.initializer instanceof wr))continue;const s=t.variable.identifier;let r=t;for(;r&&r.kind!==u.ListEnd;)it(r,i=>i instanceof pt&&i.name===s?d(void 0):i,be.None),r=r.prev}}},{kind:R.Both,fn:function f2(n){for(const e of n.units)Al(e,e.create,null),Al(e,e.update,null)}},{kind:R.Tmpl,fn:function rg(n){const e=new Map;function t(r){if(e.has(r.xref))return e.get(r.xref);const i=new ig;for(const o of r.create)if(ms(o)&&null!==o.localRefs){if(!Array.isArray(o.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(const a of o.localRefs)""===a.target&&i.targets.set(a.name,{xref:o.xref,slot:o.handle})}return e.set(r.xref,i),i}function s(r,i,o){switch(i.trigger.kind){case Ue.Idle:case Ue.Immediate:case Ue.Timer:return;case Ue.Hover:case Ue.Interaction:case Ue.Viewport:if(null===i.trigger.targetName){if(null===o)throw new Error("defer on trigger with no target name must have a placeholder block");const c=n.views.get(o);if(null==c)throw new Error("AssertionError: could not find placeholder view for defer on trigger");for(const h of c.create)if(Er(h)&&(ms(h)||h.kind===u.Projection))return i.trigger.targetXref=h.xref,i.trigger.targetView=o,i.trigger.targetSlotViewSteps=-1,void(i.trigger.targetSlot=h.handle);return}let a=null!==o?n.views.get(o):r,l=null!==o?-1:0;for(;null!==a;){const c=t(a);if(c.targets.has(i.trigger.targetName)){const{xref:h,slot:p}=c.targets.get(i.trigger.targetName);return i.trigger.targetXref=h,i.trigger.targetView=a.xref,i.trigger.targetSlotViewSteps=l,void(i.trigger.targetSlot=p)}a=null!==a.parent?n.views.get(a.parent):null,l++}break;default:throw new Error(`Trigger kind ${i.trigger.kind} not handled`)}}for(const r of n.units){const i=new Map;for(const o of r.create)switch(o.kind){case u.Defer:i.set(o.xref,o);break;case u.DeferOn:s(r,o,i.get(o.defer).placeholderView)}}}},{kind:R.Tmpl,fn:function E2(n){for(const e of n.units)for(const t of e.create)t.kind===u.TwoWayListener&&it(t,s=>{if(!(s instanceof No))return s;const{target:r,value:i}=s;if(r instanceof Z||r instanceof Q)return xh(r,i).or(r.set(i));if(r instanceof Fn)return xh(r,i);throw new Error("Unsupported expression in two-way action binding.")},be.InChildOperation)}},{kind:R.Tmpl,fn:function T2(n){for(const e of n.units)for(const t of e.create)t.kind===u.RepeaterCreate&&(t.track instanceof St&&"$index"===t.track.name?t.trackByFn=_(f.repeaterTrackByIndex):t.track instanceof St&&"$item"===t.track.name?t.trackByFn=_(f.repeaterTrackByIdentity):A2(n.root.xref,t.track)?(t.usesComponentInstance=!0,t.track.receiver.receiver.view===e.xref?t.trackByFn=t.track.receiver:(t.trackByFn=_(f.componentInstance).callFn([]).prop(t.track.receiver.name),t.track=t.trackByFn)):t.track=$(t.track,s=>s instanceof Rn?(t.usesComponentInstance=!0,new Si(s.view)):s,be.None))}},{kind:R.Both,fn:function l2(n){for(const e of n.units)_l(e,e.create),_l(e,e.update)}},{kind:R.Both,fn:function g2(n){for(const e of n.units){const t=al(e);if(n.kind!==R.Host)for(const s of e.create)if(s.kind===u.ExtractedAttribute){const r=m2.get(Ph(s.securityContext))??null;s.trustedValueFn=null!==r?_(r):null}for(const s of e.update)switch(s.kind){case u.Property:case u.Attribute:case u.HostProperty:let r=null;if(r=Array.isArray(s.securityContext)&&2===s.securityContext.length&&s.securityContext.indexOf(Ie.URL)>-1&&s.securityContext.indexOf(Ie.RESOURCE_URL)>-1?f.sanitizeUrlOrResourceUrl:d2.get(Ph(s.securityContext))??null,s.sanitizer=null!==r?_(r):null,null===s.sanitizer){let i=!1;if(n.kind===R.Host||s.kind===u.HostProperty)i=!0;else{const o=t.get(s.target);if(void 0===o||!ms(o))throw Error("Property should have an element-like owner");i=v2(o)}i&&Sv(s.name)&&(s.sanitizer=_(f.validateIframeAttribute))}}}}},{kind:R.Tmpl,fn:function hE(n){for(const e of n.units)for(const t of e.create)switch(t.kind){case u.ElementStart:case u.Template:if(!Array.isArray(t.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(t.numSlotsUsed+=t.localRefs.length,t.localRefs.length>0){const s=pE(t.localRefs);t.localRefs=n.addConst(s)}else t.localRefs=null}}},{kind:R.Both,fn:function CE(n){for(const e of n.units)for(const t of e.ops())it(t,s=>{if(!(s instanceof F)||s.operator!==q.NullishCoalesce)return s;const r=new yn(s.lhs.clone(),n.allocateXrefId()),i=new Yn(r.xref);return new B(new F(q.And,new F(q.NotIdentical,r,S),new F(q.NotIdentical,i,new v(void 0))),i.clone(),s.rhs)},be.None)}},{kind:R.Both,fn:function cg(n){for(const e of n.units)for(const t of e.ops())it(t,s=>mg(s,{job:n}),be.None),it(t,gg,be.None)}},{kind:R.Both,fn:function _2(n){for(const e of n.units)e.create.prepend(kl(e.create)),e.update.prepend(kl(e.update))}},{kind:R.Both,fn:function N2(n){for(const e of n.units){bl(e.create),bl(e.update);for(const t of e.create)(t.kind===u.Listener||t.kind===u.TwoWayListener)&&bl(t.handlerOps);Il(e.create,n.compatibility),Il(e.update,n.compatibility);for(const t of e.create)(t.kind===u.Listener||t.kind===u.TwoWayListener)&&Il(t.handlerOps,n.compatibility)}}},{kind:R.Both,fn:function $2(n){const e=new Set;for(const t of n.units)for(const s of t.ops())ft(s,r=>{r instanceof yr&&e.add(r.target)});for(const t of n.units)for(const s of t.update)it(s,r=>r instanceof wr&&!e.has(r.target)?r.value:r,be.None)}},{kind:R.Tmpl,fn:function S2(n){const e=new Map;for(const t of n.units){let s=0;for(const r of t.create)Er(r)&&(r.handle.slot=s,e.set(r.xref,r.handle.slot),s+=r.numSlotsUsed);t.decls=s}for(const t of n.units)for(const s of t.ops())if(s.kind===u.Template||s.kind===u.RepeaterCreate){const r=n.views.get(s.xref);s.decls=r.decls}}},{kind:R.Tmpl,fn:function u2(n){const e=new Map,t=new Map;for(const s of n.units)for(const r of s.create)switch(r.kind){case u.I18nContext:e.set(r.xref,r);break;case u.ElementStart:t.set(r.xref,r)}Es(n,n.root,e,t)}},{kind:R.Tmpl,fn:function h2(n){const e=new Map,t=new Map,s=new Map;for(const o of n.units)for(const a of o.create)switch(a.kind){case u.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case u.I18nContext:t.set(a.xref,a);break;case u.IcuPlaceholder:s.set(a.xref,a)}const r=new Map,i=o=>o.usage===qs.I18nText?o.i18nOwner:o.context;for(const o of n.units)for(const a of o.update)if(a.kind===u.I18nExpression){const l=r.get(i(a))||0;p2(a,{value:l,subTemplateIndex:e.get(a.i18nOwner)??null,flags:$e.ExpressionIndex},t,s),r.set(i(a),l+1)}}},{kind:R.Tmpl,fn:function Cg(n){const e=new Map,t=new Map,s=new Map;for(const i of n.units)for(const o of i.create)switch(o.kind){case u.I18nContext:const a=Tg(n,o);i.create.push(a),e.set(o.xref,a),s.set(o.xref,o);break;case u.I18nStart:t.set(o.xref,o)}let r=null;for(const i of n.units)for(const o of i.create)switch(o.kind){case u.IcuStart:r=o,C.remove(o);const a=s.get(o.context);if(a.contextKind!==hs.Icu)continue;const l=t.get(a.i18nBlock);if(l.context===a.xref)continue;const c=t.get(l.root),h=e.get(c.context);if(void 0===h)throw Error("AssertionError: ICU sub-message should belong to a root message.");const p=e.get(a.xref);p.messagePlaceholder=o.messagePlaceholder,h.subMessages.push(p.xref);break;case u.IcuEnd:r=null,C.remove(o);break;case u.IcuPlaceholder:if(null===r||null==r.context)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(r.context).postprocessingParams.set(o.name,d(Ag(o))),C.remove(o)}}},{kind:R.Tmpl,fn:function C2(n){for(const e of n.units)for(const t of e.create){if(t.kind!==u.RepeaterCreate||null!==t.trackByFn)continue;let r,s=!1;t.track=$(t.track,o=>{if(o instanceof Ws||o instanceof Po)throw new Error("Illegal State: Pipes are not allowed in this context");return o instanceof Si?(s=!0,A("this")):o},be.None);const i=[new ae("$index"),new ae("$item")];r=s?new _e(i,[new Fe(t.track)]):qe(i,t.track),t.trackByFn=n.pool.getSharedFunctionReference(r,"_forTrack")}}},{kind:R.Tmpl,fn:function iE(n){const e=n.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",t=new Map,s=new Map,r=new Map,i=new Map;for(const l of n.units)for(const c of l.ops())if(c.kind===u.ExtractedAttribute&&null!==c.i18nContext){const h=t.get(c.i18nContext)??[];h.push(c),t.set(c.i18nContext,h)}else if(c.kind===u.I18nAttributes)s.set(c.target,c);else if(c.kind===u.I18nExpression&&c.usage===qs.I18nAttribute){const h=r.get(c.target)??[];h.push(c),r.set(c.target,h)}else c.kind===u.I18nMessage&&i.set(c.xref,c);const o=new Map,a=new Map;for(const l of n.units)for(const c of l.create)if(c.kind===u.I18nMessage){if(null===c.messagePlaceholder){const{mainVar:h,statements:p}=dh(n,e,i,c);if(null!==c.i18nBlock){const w=n.addConst(h,p);a.set(c.i18nBlock,w)}else{n.constsInitializers.push(...p),o.set(c.i18nContext,h);const w=t.get(c.i18nContext);if(void 0!==w)for(const b of w)b.expression=h.clone()}}C.remove(c)}for(const l of n.units)for(const c of l.create)if(ms(c)){const h=s.get(c.xref);if(void 0===h)continue;let p=r.get(c.xref);if(void 0===p)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");const w=new Set;p=p.filter(D=>{const V=w.has(D.name);return w.add(D.name),!V});const b=p.flatMap(D=>{const V=o.get(D.context);if(void 0===V)throw new Error("AssertionError: Could not find i18n expression's value");return[d(D.name),V]});h.i18nAttributesConfig=n.addConst(new K(b))}for(const l of n.units)for(const c of l.create)if(c.kind===u.I18nStart){const h=a.get(c.root);if(void 0===h)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=h}}},{kind:R.Tmpl,fn:function Pg(n){for(const e of n.units)for(const t of e.ops())it(t,s=>s instanceof Tr?d(n.addConst(s.expr)):s,be.None)}},{kind:R.Both,fn:function Zm(n){const e=new Map;for(const t of n.units)for(const s of t.create)if(s.kind===u.ExtractedAttribute){const r=e.get(s.target)||new Qm(n.compatibility);e.set(s.target,r),r.add(s.bindingKind,s.name,s.expression,s.namespace,s.trustedValueFn),C.remove(s)}if(n instanceof ol)for(const t of n.units)for(const s of t.create)if(s.kind==u.Projection){const r=e.get(s.xref);if(void 0!==r){const i=ll(r);i.entries.length>0&&(s.attributes=i)}}else ms(s)&&(s.attributes=Du(n,e,s.xref),s.kind===u.RepeaterCreate&&null!==s.emptyView&&(s.emptyAttributes=Du(n,e,s.emptyView)));else if(n instanceof ku)for(const[t,s]of e.entries()){if(t!==n.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");const r=ll(s);r.entries.length>0&&(n.root.attributes=r)}}},{kind:R.Tmpl,fn:function o2(n){for(const e of n.units)for(const t of e.create)switch(t.kind){case u.I18nContext:C.remove(t);break;case u.I18nStart:t.context=null}}},{kind:R.Both,fn:function b2(n){for(const e of n.units){let t=0;for(const s of e.ops())nl(s)&&(t+=I2(s));for(const s of e.ops())ft(s,r=>{Jt(r)&&(n.compatibility===Lt.TemplateDefinitionBuilder&&r instanceof fs||(lu(r)&&(r.varOffset=t),nl(r)&&(t+=Bh(r))))});if(n.compatibility===Lt.TemplateDefinitionBuilder)for(const s of e.ops())ft(s,r=>{!Jt(r)||!(r instanceof fs)||(lu(r)&&(r.varOffset=t),nl(r)&&(t+=Bh(r)))});e.vars=t}if(n instanceof ol)for(const e of n.units)for(const t of e.create){if(t.kind!==u.Template&&t.kind!==u.RepeaterCreate)continue;const s=n.views.get(t.xref);t.vars=s.vars}}},{kind:R.Tmpl,fn:function bg(n){for(const e of n.units){const t=new Map;for(const r of e.create)if(Er(r)){if(null===r.handle.slot)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls");t.set(r.xref,r.handle.slot)}let s=0;for(const r of e.update){let i=null;if(bo(r)?i=r:ft(r,a=>{null===i&&bo(a)&&(i=a)}),null===i)continue;if(!t.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);const o=t.get(i.target);if(s!==o){const a=o-s;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");C.insertBefore(hm(a,i.sourceSpan),r),s=o}}}}},{kind:R.Both,fn:function gE(n){Pi(n.root,n.componentName,{index:0},n.compatibility===Lt.TemplateDefinitionBuilder)}},{kind:R.Tmpl,fn:function eg(n){for(const e of n.units)for(const t of e.create)if(t.kind===u.Defer){if(null!==t.resolverFn)continue;if(null!==t.ownResolverFn){if(null===t.handle.slot)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");const s=e.fnName?.replace("_Template","");t.resolverFn=n.pool.getSharedFunctionReference(t.ownResolverFn,`${s}_Defer_${t.handle.slot}_DepsFn`,!1)}}}},{kind:R.Tmpl,fn:function wE(n){for(const e of n.units){for(const t of e.create)(t.kind===u.Listener||t.kind===u.TwoWayListener)&&vh(t.handlerOps);vh(e.update)}}},{kind:R.Tmpl,fn:function SE(n){for(const e of n.units){const t=new Set;for(const s of e.create)s.kind===u.ElementStart&&"ng-container"===s.tag&&(s.kind=u.ContainerStart,t.add(s.xref)),s.kind===u.ElementEnd&&t.has(s.xref)&&(s.kind=u.ContainerEnd)}}},{kind:R.Tmpl,fn:function lg(n){for(const e of n.units)for(const t of e.create){const s=og.get(t.kind);if(void 0===s)continue;const[r,i]=s;let o=t.prev;for(;null!==o&&ag.has(o.kind);)o=o.prev;null!==o&&o.kind===r&&(o.kind=i,C.remove(t))}}},{kind:R.Tmpl,fn:function _E(n){const e=new Map;for(const t of n.units)for(const s of t.create)ms(s)&&e.set(s.xref,s);for(const t of n.units)for(const s of t.create)(s.kind===u.ElementStart||s.kind===u.ContainerStart)&&s.nonBindable&&C.insertAfter(ym(s.xref),s),(s.kind===u.ElementEnd||s.kind===u.ContainerEnd)&&xE(e,s.xref).nonBindable&&C.insertBefore(Sm(s.xref),s)}},{kind:R.Both,fn:function VE(n){for(const e of n.units)for(const t of e.ops())ft(t,s=>{if(!(s instanceof fs)||null===s.body)return;const r=new qE(s.args.length);s.fn=n.pool.getSharedConstant(r,s.body),s.body=null})}},{kind:R.Both,fn:function s2(n){for(const e of n.units)r2(e,e.create),Th(e,e.update)}},{kind:R.Both,fn:function Wm(n){for(const e of n.units)bu(e.create),bu(e.update)}}];function Rh(n,e){for(const t of q2)(t.kind===e||t.kind===R.Both)&&t.fn(n)}function H2(n,e){const t=$h(n.root);return Fh(n.root,e),t}function Fh(n,e){for(const t of n.job.units){if(t.parent!==n.xref)continue;Fh(t,e);const s=$h(t);e.statements.push(s.toDeclStmt(s.name))}}function $h(n){if(null===n.fnName)throw new Error(`AssertionError: view ${n.xref} is unnamed`);const e=[];for(const i of n.create){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${u[i.kind]}`);e.push(i.statement)}const t=[];for(const i of n.update){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${u[i.kind]}`);t.push(i.statement)}const s=Go(1,e),r=Go(2,t);return lt([new ae("rf"),new ae("ctx")],[...s,...r],void 0,void 0,n.fnName)}function Go(n,e){return 0===e.length?[]:[Hn(new F(q.BitwiseAnd,A("rf"),d(n)),e)]}const Oh=Lt.TemplateDefinitionBuilder,zs=new Wo,Gs="ng-template";function Nl(n){return n instanceof Nt}function G2(n,e,t,s){let r;const i=e.expression.ast;r=i instanceof Ns?new rt(i.strings,i.expressions.map(o=>me(o,n,e.sourceSpan)),[]):me(i,n,e.sourceSpan),n.root.update.push(Hs(n.root.xref,t,e.name,r,null,s,!1,!1,null,null,e.sourceSpan))}function X2(n,e,t,s){const r=Hs(n.root.xref,z.Attribute,e,t,null,s,!0,!1,null,null,t.sourceSpan);n.root.update.push(r)}function Y2(n,e){const[t,s]=e.type!==Ut.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],r=rl(n.root.xref,new Kt,e.name,null,Ll(n.root,e.handler,e.handlerSpan),t,s,!0,e.sourceSpan);n.root.create.push(r)}function Kn(n,e){for(const t of e)if(t instanceof bn)Z2(n,t);else if(t instanceof vn)Q2(n,t);else if(t instanceof Eo)J2(n,t);else if(t instanceof Ps)Vh(n,t,null);else if(t instanceof mo)qh(n,t,null);else if(t instanceof mc)K2(n,t);else if(t instanceof dc)ey(n,t);else if(t instanceof oi)ty(n,t);else if(t instanceof vc)ny(n,t);else if(t instanceof vo)sy(n,t);else{if(!(t instanceof Ia))throw new Error(`Unsupported template node: ${t.constructor.name}`);iy(n,t)}}function Z2(n,e){if(void 0!==e.i18n&&!(e.i18n instanceof Nt||e.i18n instanceof os))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);const t=n.job.allocateXrefId(),[s,r]=gn(e.name),i=function vm(n,e,t,s,r,i){return{kind:u.ElementStart,xref:e,tag:n,handle:new Kt,attributes:null,localRefs:[],nonBindable:!1,namespace:t,i18nPlaceholder:s,startSourceSpan:r,wholeSourceSpan:i,...Bn,...de}}(r,t,Iu(s),e.i18n instanceof os?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);n.create.push(i),function ay(n,e,t){let s=new Array,r=new Set;for(const i of t.attributes){const o=zs.securityContext(t.name,i.name,!0);s.push(Hs(e.xref,z.Attribute,i.name,Pl(n.job,i.value,i.i18n),null,o,!0,!1,null,es(i.i18n),i.sourceSpan)),i.i18n&&r.add(i.name)}for(const i of t.inputs)r.has(i.name)&&console.error(`On component ${n.job.componentName}, the binding ${i.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),s.push(Hs(e.xref,Hh.get(i.type),i.name,Pl(n.job,Bi(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,es(i.i18n)??null,i.sourceSpan));n.create.push(s.filter(i=>i?.kind===u.ExtractedAttribute)),n.update.push(s.filter(i=>i?.kind===u.Binding));for(const i of t.outputs){if(i.type===Ut.Animation&&null===i.phase)throw Error("Animation listener should have a phase");i.type===Ut.TwoWay?n.create.push(Su(e.xref,e.handle,i.name,e.tag,Uh(n,i.handler,i.handlerSpan),i.sourceSpan)):n.create.push(rl(e.xref,e.handle,i.name,e.tag,Ll(n,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}null!==s.some(i=>i?.i18nMessage)&&n.create.push(_u(n.job.allocateXrefId(),new Kt,e.xref))}(n,i,e),Wh(i,e);let o=null;e.i18n instanceof Nt&&(o=n.job.allocateXrefId(),n.create.push(Bo(o,e.i18n,void 0,e.startSourceSpan))),Kn(n,e.children);const a=function wm(n,e){return{kind:u.ElementEnd,xref:n,sourceSpan:e,...de}}(t,e.endSourceSpan??e.startSourceSpan);n.create.push(a),null!==o&&C.insertBefore(Mo(o,e.endSourceSpan??e.startSourceSpan),a)}function Q2(n,e){if(void 0!==e.i18n&&!(e.i18n instanceof Nt||e.i18n instanceof os))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);const t=n.job.allocateView(n.xref);let s=e.tagName,r="";e.tagName&&([r,s]=gn(e.tagName));const i=e.i18n instanceof os?e.i18n:void 0,o=Iu(r),a=null===s?"":Ym(s,o),l=function oy(n){return gn(n.tagName??"")[1]===Gs}(e)?Bt.NgTemplate:Bt.Structural,c=Lo(t.xref,l,s,a,o,i,e.startSourceSpan,e.sourceSpan);n.create.push(c),function ly(n,e,t,s){let r=new Array;for(const i of t.templateAttrs)if(i instanceof go){const o=zs.securityContext(Gs,i.name,!0);r.push(Yo(n,e.xref,Oe.Attribute,i.name,i.value,null,o,!0,s,es(i.i18n),i.sourceSpan))}else r.push(Yo(n,e.xref,i.type,i.name,Bi(i.value),i.unit,i.securityContext,!0,s,es(i.i18n),i.sourceSpan));for(const i of t.attributes){const o=zs.securityContext(Gs,i.name,!0);r.push(Yo(n,e.xref,Oe.Attribute,i.name,i.value,null,o,!1,s,es(i.i18n),i.sourceSpan))}for(const i of t.inputs)r.push(Yo(n,e.xref,i.type,i.name,Bi(i.value),i.unit,i.securityContext,!1,s,es(i.i18n),i.sourceSpan));n.create.push(r.filter(i=>i?.kind===u.ExtractedAttribute)),n.update.push(r.filter(i=>i?.kind===u.Binding));for(const i of t.outputs){if(i.type===Ut.Animation&&null===i.phase)throw Error("Animation listener should have a phase");if(s===Bt.NgTemplate&&(i.type===Ut.TwoWay?n.create.push(Su(e.xref,e.handle,i.name,e.tag,Uh(n,i.handler,i.handlerSpan),i.sourceSpan)):n.create.push(rl(e.xref,e.handle,i.name,e.tag,Ll(n,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),s===Bt.Structural&&i.type!==Ut.Animation){const o=zs.securityContext(Gs,i.name,!1);n.create.push(en(e.xref,z.Property,null,i.name,null,null,null,o))}}null!==r.some(i=>i?.i18nMessage)&&n.create.push(_u(n.job.allocateXrefId(),new Kt,e.xref))}(n,c,e,l),Wh(c,e),Kn(t,e.children);for(const{name:h,value:p}of e.variables)t.contextVariables.set(h,""!==p?p:"$implicit");if(l===Bt.NgTemplate&&e.i18n instanceof Nt){const h=n.job.allocateXrefId();C.insertAfter(Bo(h,e.i18n,void 0,e.startSourceSpan),t.create.head),C.insertBefore(Mo(h,e.endSourceSpan??e.startSourceSpan),t.create.tail)}}function J2(n,e){if(void 0!==e.i18n&&!(e.i18n instanceof os))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=null;e.children.some(i=>!(i instanceof fo||i instanceof Ps&&!(i.value.trim().length>0)))&&(t=n.job.allocateView(n.xref),Kn(t,e.children));const r=function Cm(n,e,t,s,r){return{kind:u.Projection,xref:n,handle:new Kt,selector:e,i18nPlaceholder:t,fallbackView:s,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:r,...de,...Bn,numSlotsUsed:null===s?1:2}}(n.job.allocateXrefId(),e.selector,e.i18n,t?.xref??null,e.sourceSpan);for(const i of e.attributes){const o=zs.securityContext(e.name,i.name,!0);n.update.push(Hs(r.xref,z.Attribute,i.name,d(i.value),null,o,!0,!1,null,es(i.i18n),i.sourceSpan))}n.create.push(r)}function Vh(n,e,t){n.create.push(yu(n.job.allocateXrefId(),e.value,t,e.sourceSpan))}function qh(n,e,t){let s=e.value;if(s instanceof kn&&(s=s.ast),!(s instanceof Ns))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${s.constructor.name}`);if(void 0!==e.i18n&&!(e.i18n instanceof En))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);const r=e.i18n instanceof En?e.i18n.children.filter(a=>a instanceof jn).map(a=>a.name):[];if(r.length>0&&r.length!==s.expressions.length)throw Error(`Unexpected number of i18n placeholders (${s.expressions.length}) for BoundText with ${s.expressions.length} expressions`);const i=n.job.allocateXrefId();n.create.push(yu(i,"",t,e.sourceSpan));const o=n.job.compatibility?null:e.sourceSpan;n.update.push(function sm(n,e,t){return{kind:u.InterpolateText,target:n,interpolation:e,sourceSpan:t,...zt,...Mt,...de}}(i,new rt(s.strings,s.expressions.map(a=>me(a,n.job,o)),r),e.sourceSpan))}function K2(n,e){let t=null,s=[];for(let r=0;rme(s,e,t)),void 0,mt(n.span,t))}if(n instanceof fn)return d(n.value,void 0,mt(n.span,t));if(!(n instanceof An)){if(n instanceof Yt){const s=Gm.get(n.operation);if(void 0===s)throw new Error(`AssertionError: unknown binary operator ${n.operation}`);return new F(s,me(n.left,e,t),me(n.right,e,t),void 0,mt(n.span,t))}if(n instanceof ni)return new Rn(e.root.xref);if(n instanceof or)return new Q(me(n.receiver,e,t),me(n.key,e,t),void 0,mt(n.span,t));if(n instanceof ir)throw new Error("AssertionError: Chain in unknown context");if(n instanceof uo){const s=n.keys.map((r,i)=>{const o=n.values[i];return new ze(r.key,me(o,e,t),r.quoted)});return new Ae(s,void 0,mt(n.span,t))}if(n instanceof co)return new K(n.expressions.map(s=>me(s,e,t)));if(n instanceof si)return new B(me(n.condition,e,t),me(n.trueExp,e,t),me(n.falseExp,e,t),void 0,mt(n.span,t));if(n instanceof ii)return me(n.expression,e,t);if(n instanceof lo)return new Ws(e.allocateXrefId(),new Kt,n.name,[me(n.exp,e,t),...n.args.map(s=>me(s,e,t))]);if(n instanceof oo)return new xr(me(n.receiver,e,t),me(n.key,e,t),mt(n.span,t));if(n instanceof io)return new Sr(me(n.receiver,e,t),n.name);if(n instanceof po)return new ds(me(n.receiver,e,t),n.args.map(s=>me(s,e,t)));if(n instanceof Ht)return new Cr(mt(n.span,t));if(n instanceof ri)return un(me(n.expression,e,t),mt(n.span,t));throw new Error(`Unhandled expression type "${n.constructor.name}" in file "${t?.start.file.url}"`)}switch(n.operator){case"+":return new De(Vn.Plus,me(n.expr,e,t),void 0,mt(n.span,t));case"-":return new De(Vn.Minus,me(n.expr,e,t),void 0,mt(n.span,t));default:throw new Error(`AssertionError: unknown unary operator ${n.operator}`)}}function Pl(n,e,t,s){let r;return r=e instanceof Ns?new rt(e.strings,e.expressions.map(i=>me(i,n,s??null)),Object.keys(es(t)?.placeholders??{})):e instanceof Ke?me(e,n,s??null):d(e),r}const Hh=new Map([[Oe.Property,z.Property],[Oe.TwoWay,z.TwoWayProperty],[Oe.Attribute,z.Attribute],[Oe.Class,z.ClassName],[Oe.Style,z.StyleProperty],[Oe.Animation,z.Animation]]);function es(n){if(null==n)return null;if(!(n instanceof Nt))throw Error(`Expected i18n meta to be a Message, but got: ${n.constructor.name}`);return n}function Yo(n,e,t,s,r,i,o,a,l,c,h){const p="string"==typeof r;if(l===Bt.Structural){if(!a)switch(t){case Oe.Property:case Oe.Class:case Oe.Style:return en(e,z.Property,null,s,null,null,c,o);case Oe.TwoWay:return en(e,z.TwoWayProperty,null,s,null,null,c,o)}if(!p&&(t===Oe.Attribute||t===Oe.Animation))return null}let w=Hh.get(t);return l===Bt.NgTemplate&&(t===Oe.Class||t===Oe.Style||t===Oe.Attribute&&!p)&&(w=z.Property),Hs(e,w,s,Pl(n.job,r,c),i,o,p,a,l,c,h)}function Ll(n,e,t){e=Bi(e);const s=new Array;let r=e instanceof ir?e.expressions:[e];if(0===r.length)throw new Error("Expected listener to have non-empty expression list.");const i=r.map(a=>me(a,n.job,t)),o=i.pop();return s.push(...i.map(a=>Mn(new Xe(a,a.sourceSpan)))),s.push(Mn(new Fe(o,o.sourceSpan))),s}function Uh(n,e,t){e=Bi(e);const s=new Array;if(e instanceof ir){if(1!==e.expressions.length)throw new Error("Expected two-way listener to have a single expression.");e=e.expressions[0]}const r=me(e,n.job,t),i=new pt("$event"),o=new No(r,i);return s.push(Mn(new Xe(o))),s.push(Mn(new Fe(i))),s}function Bi(n){return n instanceof kn?n.ast:n}function Wh(n,e){!function cy(n){if(!Array.isArray(n))throw new Error("AssertionError: expected an array")}(n.localRefs);for(const{name:t,value:s}of e.references)n.localRefs.push({name:t,target:s})}function mt(n,e){if(null===e)return null;const t=e.start.moveBy(n.start),s=e.start.moveBy(n.end),r=e.fullStart.moveBy(n.start);return new pe(t,s,r)}function Zo(n,e,t){let s=null;for(const r of t.children)if(!(r instanceof fo)){if(null!==s)return null;(r instanceof bn||r instanceof vn&&null!==r.tagName)&&(s=r)}if(null!==s){for(const i of s.attributes){const o=zs.securityContext(Gs,i.name,!0);n.update.push(Hs(e,z.Attribute,i.name,d(i.value),null,o,!0,!1,null,es(i.i18n),i.sourceSpan))}for(const i of s.inputs)if(i.type!==Oe.Animation&&i.type!==Oe.Attribute){const o=zs.securityContext(Gs,i.name,!0);n.create.push(en(e,z.Property,null,i.name,null,null,null,o))}const r=s instanceof bn?s.name:s.tagName;return r===Gs?null:r}return null}function Qo(n,e){return Hn(A($a).bitwiseAnd(d(n),null,!1),e)}function jh(n,e,t,s){const r=[];void 0!==s&&r.push(...s),n.isSignal&&r.push(new Z(A(ci),n.propertyName)),r.push(function hy(n,e){if(Array.isArray(n.predicate)){let t=[];return n.predicate.forEach(s=>{const r=s.split(",").map(i=>d(i.trim()));t.push(...r)}),e.getConstLiteral(L(t),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return _(f.resolveForwardRef).callFn([n.predicate.expression])}}(n,e),d(function uy(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}(n))),n.read&&r.push(n.read);return _(n.isSignal?t.signalBased:t.nonSignal).callFn(r)}const Bl=Symbol("queryAdvancePlaceholder");function zh(n){const e=[];let t=0;const s=()=>{t>0&&(e.unshift(_(f.queryAdvance).callFn(1===t?[]:[d(t)]).toStmt()),t=0)};for(let r=n.length-1;r>=0;r--){const i=n[r];i===Bl?t++:(s(),e.unshift(i))}return s(),e}class Gh extends zu{constructor(){super(oh)}parse(e,t,s){return super.parse(e,t,s)}}const Ml="animate-";class Ey{constructor(e,t,s,r,i=!1){this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=s,this.errors=r,this._allowInvalidAssignmentEvents=i}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,t){const s=[];for(const r of Object.keys(e)){const i=e[r];"string"==typeof i?this.parsePropertyBinding(r,i,!0,!1,t,t.start.offset,void 0,[],s,t):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}createDirectiveHostEventAsts(e,t){const s=[];for(const r of Object.keys(e)){const i=e[r];"string"==typeof i?this.parseEvent(r,i,!1,t,t,[],s,t):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}parseInterpolation(e,t,s){const r=t.start.toString(),i=t.fullStart.offset;try{const o=this._exprParser.parseInterpolation(e,r,i,s,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,t),o}catch(o){return this._reportError(`${o}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}parseInterpolationExpression(e,t){const s=t.start.toString(),r=t.start.offset;try{const i=this._exprParser.parseInterpolationExpression(e,s,r);return i&&this._reportExpressionParserErrors(i.errors,t),i}catch(i){return this._reportError(`${i}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}parseInlineTemplateBinding(e,t,s,r,i,o,a,l){const c=s.start.offset+1,h=this._parseTemplateBindings(e,t,s,c,r);for(const p of h){const w=ws(s,p.sourceSpan),b=p.key.source,D=ws(s,p.key.span);if(p instanceof ga){const V=p.value?p.value.source:"$implicit",U=p.value?ws(s,p.value.span):void 0;a.push(new If(b,V,w,D,U))}else if(p.value){const V=l?w:s,U=ws(s,p.value.ast.sourceSpan);this._parsePropertyAst(b,p.value,!1,V,D,U,i,o)}else i.push([b,""]),this.parseLiteralAttr(b,null,D,r,void 0,i,o,D)}}_parseTemplateBindings(e,t,s,r,i){const o=s.start.toString();try{const a=this._exprParser.parseTemplateBindings(e,t,o,r,i);return this._reportExpressionParserErrors(a.errors,s),a.warnings.forEach(l=>{this._reportError(l,s,Xn.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,s),[]}}parseLiteralAttr(e,t,s,r,i,o,a,l){Rl(e)?(e=e.substring(1),void 0!==l&&(l=ws(l,new dn(l.start.offset+1,l.end.offset))),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',s,Xn.ERROR),this._parseAnimation(e,t,s,r,l,i,o,a)):a.push(new Ea(e,this._exprParser.wrapLiteralPrimitive(t,"",r),Wn.LITERAL_ATTR,s,l,i))}parsePropertyBinding(e,t,s,r,i,o,a,l,c,h){0===e.length&&this._reportError("Property name is missing in binding",i);let p=!1;e.startsWith(Ml)?(p=!0,e=e.substring(8),void 0!==h&&(h=ws(h,new dn(h.start.offset+8,h.end.offset)))):Rl(e)&&(p=!0,e=e.substring(1),void 0!==h&&(h=ws(h,new dn(h.start.offset+1,h.end.offset)))),p?this._parseAnimation(e,t,i,o,h,a,l,c):this._parsePropertyAst(e,this.parseBinding(t,s,a||i,o),r,i,h,a,l,c)}parsePropertyInterpolation(e,t,s,r,i,o,a,l){const c=this.parseInterpolation(t,r||s,l);return!!c&&(this._parsePropertyAst(e,c,!1,s,a,r,i,o),!0)}_parsePropertyAst(e,t,s,r,i,o,a,l){a.push([e,t.source]),l.push(new Ea(e,t,s?Wn.TWO_WAY:Wn.DEFAULT,r,i,o))}_parseAnimation(e,t,s,r,i,o,a,l){0===e.length&&this._reportError("Animation trigger is missing",s);const c=this.parseBinding(t||"undefined",!1,o||s,r);a.push([e,c.source]),l.push(new Ea(e,c,Wn.ANIMATION,s,i,o))}parseBinding(e,t,s,r){const i=(s&&s.start||"(unknown)").toString();try{const o=t?this._exprParser.parseSimpleBinding(e,i,r,this._interpolationConfig):this._exprParser.parseBinding(e,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,s),o}catch(o){return this._reportError(`${o}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}}createBoundElementProperty(e,t,s=!1,r=!0){if(t.isAnimation)return new cc(t.name,Oe.Animation,Ie.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let o,i=null,a=null;const l=t.name.split(".");let c;if(l.length>1)if("attr"==l[0]){a=l.slice(1).join("."),s||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=Fl(this._schemaRegistry,e,a,!0);const h=a.indexOf(":");if(h>-1){const p=a.substring(0,h),w=a.substring(h+1);a=Sa(p,w)}o=Oe.Attribute}else"class"==l[0]?(a=l[1],o=Oe.Class,c=[Ie.NONE]):"style"==l[0]&&(i=l.length>2?l[2]:null,a=l[1],o=Oe.Style,c=[Ie.STYLE]);if(null===a){const h=this._schemaRegistry.getMappedPropName(t.name);a=r?h:t.name,c=Fl(this._schemaRegistry,e,h,!1),o=t.type===Wn.TWO_WAY?Oe.TwoWay:Oe.Property,s||this._validatePropertyOrAttributeName(h,t.sourceSpan,!1)}return new cc(a,o,c[0],t.expression,i,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,s,r,i,o,a,l){0===e.length&&this._reportError("Event name is missing in binding",r),Rl(e)?(e=e.slice(1),void 0!==l&&(l=ws(l,new dn(l.start.offset+1,l.end.offset))),this._parseAnimationEvent(e,t,r,i,a,l)):this._parseRegularEvent(e,t,s,r,i,o,a,l)}calcPossibleSecurityContexts(e,t,s){const r=this._schemaRegistry.getMappedPropName(t);return Fl(this._schemaRegistry,e,r,s)}_parseAnimationEvent(e,t,s,r,i,o){const a=function cf(n,e){return Kl(n,".",e)}(e,[e,""]),l=a[0],c=a[1].toLowerCase(),h=this._parseAction(t,r);i.push(new lc(l,c,Ut.Animation,h,s,r,o)),0===l.length&&this._reportError("Animation event name is missing in binding",s),c?"start"!==c&&"done"!==c&&this._reportError(`The provided animation output phase value "${c}" for "@${l}" is not supported (use start or done)`,s):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,s)}_parseRegularEvent(e,t,s,r,i,o,a,l){const[c,h]=function lf(n,e){return Kl(n,":",e)}(e,[null,e]),p=this.errors.length,w=this._parseAction(t,i),b=this.errors.length===p;o.push([e,w.source]),s&&b&&!this._isAllowedAssignmentEvent(w)&&this._reportError("Unsupported expression in a two-way binding",r),a.push(new lc(h,c,s?Ut.TwoWay:Ut.Regular,w,r,i,l))}_parseAction(e,t){const s=(t&&t.start||"(unknown").toString(),r=t&&t.start?t.start.offset:0;try{const i=this._exprParser.parseAction(e,s,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),!i||i.ast instanceof Ht?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)):i}catch(i){return this._reportError(`${i}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}_reportError(e,t,s=Xn.ERROR){this.errors.push(new fe(t,e,s))}_reportExpressionParserErrors(e,t){for(const s of e)this._reportError(s.message,t)}_validatePropertyOrAttributeName(e,t,s){const r=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,Xn.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof kn?this._isAllowedAssignmentEvent(e.ast):e instanceof ii?this._isAllowedAssignmentEvent(e.expression):e instanceof Ds||e instanceof or||!!this._allowInvalidAssignmentEvents&&(e instanceof Yt?("&&"===e.operation||"||"===e.operation||"??"===e.operation)&&(e.right instanceof Ds||e.right instanceof or):e instanceof si||e instanceof ri)}}function Rl(n){return"@"==n[0]}function Fl(n,e,t,s){const r=[];return vt.parse(e).forEach(i=>{const o=i.element?[i.element]:n.allKnownElementNames(),a=new Set(i.notSelectors.filter(c=>c.isElementSelector()).map(c=>c.element)),l=o.filter(c=>!a.has(c));r.push(...l.map(c=>n.securityContext(c,t,s)))}),0===r.length?[Ie.NONE]:Array.from(new Set(r)).sort()}function ws(n,e){const t=e.start-n.start.offset,s=e.end-n.end.offset;return new pe(n.start.moveBy(t),n.end.moveBy(s),n.fullStart.moveBy(t),n.details)}const yy=/^([^:/?#]+):/;function Yh(n){let e=null,t=null,s=null,r=!1,i="";n.attrs.forEach(l=>{const c=l.name.toLowerCase();"select"==c?e=l.value:"href"==c?t=l.value:"rel"==c?s=l.value:"ngNonBindable"==l.name?r=!0:"ngProjectAs"==l.name&&l.value.length>0&&(i=l.value)}),e=function Ny(n){return null===n||0===n.length?"*":n}(e);const o=n.name.toLowerCase();let a=Rt.OTHER;return wa(o)?a=Rt.NG_CONTENT:"style"==o?a=Rt.STYLE:"script"==o?a=Rt.SCRIPT:"link"==o&&"stylesheet"==s&&(a=Rt.STYLESHEET),new Dy(a,e,t,r,i)}var Rt;!function(n){n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER"}(Rt||(Rt={}));class Dy{constructor(e,t,s,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=r,this.projectAs=i}}const Py=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Ly=/^track\s+([\S\s]*)/,By=/^(as\s)+(.*)/,$l=/^else[^\S\r\n]+if/,My=/^let\s+([\S\s]*)/,Zh=/(\s*)(\S+)(\s*)/,Mi=new Set(["$index","$first","$last","$even","$odd","$count"]);function Qh(n){return"empty"===n}function Jh(n){return"else"===n||$l.test(n)}function Ry(n,e,t,s){const r=function qy(n){const e=[];let t=!1;for(let s=0;s1&&s0&&e.push(new fe(r.startSourceSpan,"@else block cannot have parameters")),t=!0):$l.test(r.name)||e.push(new fe(r.startSourceSpan,`Unrecognized conditional block @${r.name}`))}return e}(e),i=[],o=Kh(n,r,s);null!==o&&i.push(new ai(o.expression,re(t,n.children,n.children),o.expressionAlias,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan,n.i18n));for(const p of e)if($l.test(p.name)){const w=Kh(p,r,s);if(null!==w){const b=re(t,p.children,p.children);i.push(new ai(w.expression,b,w.expressionAlias,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}}else if("else"===p.name){const w=re(t,p.children,p.children);i.push(new ai(null,w,null,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}const a=i.length>0?i[0].startSourceSpan:n.startSourceSpan,l=i.length>0?i[i.length-1].endSourceSpan:n.endSourceSpan;let c=n.sourceSpan;const h=i[i.length-1];return void 0!==h&&(c=new pe(a.start,h.sourceSpan.end)),{node:new mc(i,c,n.startSourceSpan,l,n.nameSpan),errors:r}}function Fy(n,e,t,s){const r=[],i=function Oy(n,e,t){if(0===n.parameters.length)return e.push(new fe(n.startSourceSpan,"@for loop does not have an expression")),null;const[s,...r]=n.parameters,i=function Uy(n,e){const t=n.expression,s=/^\s$/;let r=0,i=0,o=t.length-1;for(let a=0;a-1;a--){const l=t[a];if(")"!==l){if(s.test(l))continue;break}if(o=a,r--,0===r)break}return 0!==r?(e.push(new fe(n.sourceSpan,"Unclosed parentheses in expression")),null):t.slice(i,o)}(s,e)?.match(Py);if(!i||0===i[2].trim().length)return e.push(new fe(s.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern " of "')),null;const[,o,a]=i;Mi.has(o)&&e.push(new fe(s.sourceSpan,`@for loop item name cannot be one of ${Array.from(Mi).join(", ")}.`));const l=s.expression.split(" ")[0],c=new pe(s.sourceSpan.start,s.sourceSpan.start.moveBy(l.length)),h={itemName:new ar(o,"$implicit",c,c),trackBy:null,expression:Ri(s,t,a),context:Array.from(Mi,p=>{const w=new pe(n.startSourceSpan.end,n.startSourceSpan.end);return new ar(p,p,w,w)})};for(const p of r){const w=p.expression.match(My);if(null!==w){const D=new pe(p.sourceSpan.start.moveBy(w[0].length-w[1].length),p.sourceSpan.end);Vy(p.sourceSpan,w[1],D,o,h.context,e);continue}const b=p.expression.match(Ly);if(null===b)e.push(new fe(p.sourceSpan,`Unrecognized @for loop paramater "${p.expression}"`));else if(null!==h.trackBy)e.push(new fe(p.sourceSpan,'@for loop can only have one "track" expression'));else{const D=Ri(p,t,b[1]);D.ast instanceof Ht&&e.push(new fe(n.startSourceSpan,'@for loop must have a "track" expression'));const V=new pe(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));h.trackBy={expression:D,keywordSpan:V}}}return h}(n,r,s);let o=null,a=null;for(const l of e)"empty"===l.name?null!==a?r.push(new fe(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?r.push(new fe(l.sourceSpan,"@empty block cannot have parameters")):a=new ba(re(t,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):r.push(new fe(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(null!==i)if(null===i.trackBy)r.push(new fe(n.startSourceSpan,'@for loop must have a "track" expression'));else{const l=a?.endSourceSpan??n.endSourceSpan,c=new pe(n.sourceSpan.start,l?.end??n.sourceSpan.end);o=new vo(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,re(t,n.children,n.children),a,c,n.sourceSpan,n.startSourceSpan,l,n.nameSpan,n.i18n)}return{node:o,errors:r}}function $y(n,e,t){const s=function Hy(n){const e=[];let t=!1;if(1!==n.parameters.length)return e.push(new fe(n.startSourceSpan,"@switch block must have exactly one parameter")),e;for(const s of n.children)if(!(s instanceof Br||s instanceof Pr&&0===s.value.trim().length)){if(!(s instanceof $n)||"case"!==s.name&&"default"!==s.name){e.push(new fe(s.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}"default"===s.name?(t?e.push(new fe(s.startSourceSpan,"@switch block can only have one @default block")):s.parameters.length>0&&e.push(new fe(s.startSourceSpan,"@default block cannot have parameters")),t=!0):"case"===s.name&&1!==s.parameters.length&&e.push(new fe(s.startSourceSpan,"@case block must have exactly one parameter"))}return e}(n),r=n.parameters.length>0?Ri(n.parameters[0],t):t.parseBinding("",!1,n.sourceSpan,0),i=[],o=[];let a=null;for(const l of n.children){if(!(l instanceof $n))continue;if(("case"!==l.name||0===l.parameters.length)&&"default"!==l.name){o.push(new gc(l.name,l.sourceSpan,l.nameSpan));continue}const c="case"===l.name?Ri(l.parameters[0],t):null,h=new ka(c,re(e,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n);null===c?a=h:i.push(h)}return null!==a&&i.push(a),{node:new dc(r,i,o,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan),errors:s}}function Vy(n,e,t,s,r,i){const o=e.split(",");let a=t.start;for(const l of o){const c=l.split("="),h=2===c.length?c[0].trim():"",p=2===c.length?c[1].trim():"";if(0===h.length||0===p.length)i.push(new fe(n,'Invalid @for loop "let" parameter. Parameter should match the pattern " = "'));else if(Mi.has(p))if(h===s)i.push(new fe(n,`Invalid @for loop "let" parameter. Variable cannot be called "${s}"`));else if(r.some(w=>w.name===h))i.push(new fe(n,`Duplicate "let" parameter variable "${p}"`));else{const[,w,b]=c[0].match(Zh)??[],D=void 0!==w&&2===c.length?new pe(a.moveBy(w.length),a.moveBy(w.length+b.length)):t;let V;if(2===c.length){const[,X,ye]=c[1].match(Zh)??[];V=void 0!==X?new pe(a.moveBy(c[0].length+1+X.length),a.moveBy(c[0].length+1+X.length+ye.length)):void 0}const U=new pe(D.start,V?.end??D.end);r.push(new ar(h,p,U,D,V))}else i.push(new fe(n,`Unknown "let" parameter variable "${p}". The allowed variables are: ${Array.from(Mi).join(", ")}`));a=a.moveBy(l.length+1)}}function Ri(n,e,t){let s,r;return"string"==typeof t?(s=Math.max(0,n.expression.lastIndexOf(t)),r=s+t.length):(s=0,r=n.expression.length),e.parseBinding(n.expression.slice(s,r),!1,n.sourceSpan,n.sourceSpan.start.offset+s)}function Kh(n,e,t){if(0===n.parameters.length)return e.push(new fe(n.startSourceSpan,"Conditional block does not have an expression")),null;const s=Ri(n.parameters[0],t);let r=null;for(let i=1;i0&&this.index0)throw new Error(`"${At.IDLE}" trigger cannot have parameters`);return new Pf(e,t,s,r)}(t,r,c,l,a));break;case At.TIMER:this.trackTrigger("timer",function Xy(n,e,t,s,r){if(1!==n.length)throw new Error(`"${At.TIMER}" trigger must have exactly one parameter`);const i=Jo(n[0]);if(null===i)throw new Error(`Could not parse time value of trigger "${At.TIMER}"`);return new Bf(i,e,t,s,r)}(t,r,c,this.prefetchSpan,this.onSourceSpan));break;case At.INTERACTION:this.trackTrigger("interaction",function Qy(n,e,t,s,r,i){return Ol(At.INTERACTION,n,i),new pc(n[0]??null,e,t,s,r)}(t,r,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case At.IMMEDIATE:this.trackTrigger("immediate",function Yy(n,e,t,s,r){if(n.length>0)throw new Error(`"${At.IMMEDIATE}" trigger cannot have parameters`);return new Lf(e,t,s,r)}(t,r,c,this.prefetchSpan,this.onSourceSpan));break;case At.HOVER:this.trackTrigger("hover",function Zy(n,e,t,s,r,i){return Ol(At.HOVER,n,i),new hc(n[0]??null,e,t,s,r)}(t,r,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;case At.VIEWPORT:this.trackTrigger("viewport",function Jy(n,e,t,s,r,i){return Ol(At.VIEWPORT,n,i),new fc(n[0]??null,e,t,s,r)}(t,r,c,this.prefetchSpan,this.onSourceSpan,this.placeholder));break;default:throw new Error(`Unrecognized trigger type "${e}"`)}}catch(h){this.error(e,h.message)}}consumeParameters(){const e=[];if(!this.token().isCharacter(40))return this.unexpectedToken(this.token()),e;this.advance();const t=[];let s="";for(;this.index0&&r.isCharacter(t[t.length-1])&&t.pop(),0===t.length&&r.isCharacter(44)&&s.length>0)?(e.push(s),s="",this.advance()):(s+=this.tokenText(),this.advance())}return(!this.token().isCharacter(41)||t.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index1)throw new Error(`"${n}" trigger can only have zero or one parameters`);if(0===e.length){if(null===t)throw new Error(`"${n}" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);if(1!==t.children.length||!(t.children[0]instanceof bn))throw new Error(`"${n}" trigger with no parameters can only be placed on an @defer that has a @placeholder block with exactly one root element node`)}}function Fi(n,e=0){let t=!1;for(let s=e;s0){const D=e[e.length-1];h=D.endSourceSpan,p=D.sourceSpan.end}const w=new pe(n.sourceSpan.start,p);return{node:new oi(re(t,n.children,n.children),l,c,i,o,a,n.nameSpan,w,n.sourceSpan,n.startSourceSpan,h,n.i18n),errors:r}}function oS(n,e){let t=null;for(const s of n.parameters){if(!ip.test(s.expression))throw new Error(`Unrecognized parameter in @placeholder block: "${s.expression}"`);{if(null!=t)throw new Error('@placeholder block can only have one "minimum" parameter');const r=Jo(s.expression.slice(Fi(s.expression)));if(null===r)throw new Error('Could not parse time value of parameter "minimum"');t=r}}return new Ca(re(e,n.children,n.children),t,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function aS(n,e){let t=null,s=null;for(const r of n.parameters)if(tS.test(r.expression)){if(null!=t)throw new Error('@loading block can only have one "after" parameter');const i=Jo(r.expression.slice(Fi(r.expression)));if(null===i)throw new Error('Could not parse time value of parameter "after"');t=i}else{if(!ip.test(r.expression))throw new Error(`Unrecognized parameter in @loading block: "${r.expression}"`);{if(null!=s)throw new Error('@loading block can only have one "minimum" parameter');const i=Jo(r.expression.slice(Fi(r.expression)));if(null===i)throw new Error('Could not parse time value of parameter "minimum"');s=i}}return new Ta(re(e,n.children,n.children),t,s,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function lS(n,e){if(n.parameters.length>0)throw new Error("@error block cannot have parameters");return new Aa(re(e,n.children,n.children),n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}const uS=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,ys_BANANA_BOX={start:"[(",end:")]"},ys_PROPERTY={start:"[",end:"]"},ys_EVENT={start:"(",end:")"};class fS{constructor(e,t){this.bindingParser=e,this.options=t,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1,this.processedNodes=new Set}visitElement(e){const t=Nl(e.i18n);t&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);const s=Yh(e);if(s.type===Rt.SCRIPT)return null;if(s.type===Rt.STYLE){const U=function gS(n){return 1===n.children.length&&n.children[0]instanceof Pr?n.children[0].value:null}(e);return null!==U&&this.styles.push(U),null}if(s.type===Rt.STYLESHEET&&function wy(n){if(null==n||0===n.length||"/"==n[0])return!1;const e=n.match(yy);return null===e||"package"==e[1]||"asset"==e[1]}(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;const r=function Df(n){return"ng-template"===gn(n)[1]}(e.name),i=[],o=[],a=[],l=[],c=[],h={},p=[],w=[];let D,V,b=!1;for(const U of e.attrs){let X=!1;const ye=pp(U.name);let gt=!1;if(U.i18n&&(h[U.name]=U.i18n),ye.startsWith("*")){b&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",U.sourceSpan),gt=!0,b=!0;const sn=U.value,kt=ye.substring(1),sa=[],f_=U.valueSpan?U.valueSpan.start.offset:U.sourceSpan.start.offset+U.name.length;this.bindingParser.parseInlineTemplateBinding(kt,sn,U.sourceSpan,f_,[],p,sa,!0),w.push(...sa.map(Hi=>new ar(Hi.name,Hi.value,Hi.sourceSpan,Hi.keySpan,Hi.valueSpan)))}else X=this.parseAttribute(r,U,[],i,o,a,l);!X&&!gt&&c.push(this.visitAttribute(U))}if(D=s.nonBindable?re(mS,e.children).flat(1/0):re(this,e.children,e.children),s.type===Rt.NG_CONTENT){const U=s.selectAttr,X=e.attrs.map(ye=>this.visitAttribute(ye));V=new Eo(U,X,D,e.sourceSpan,e.i18n),this.ngContentSelectors.push(U)}else if(r){const U=this.extractAttributes(e.name,i,h);V=new vn(e.name,c,U.bound,o,[],D,l,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{const U=this.extractAttributes(e.name,i,h);V=new bn(e.name,c,U.bound,o,D,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(b){const U=this.extractAttributes("ng-template",p,h),X=[];U.literal.forEach(kt=>X.push(kt)),U.bound.forEach(kt=>X.push(kt));const ye=V instanceof bn?{attributes:V.attributes,inputs:V.inputs,outputs:V.outputs}:{attributes:[],inputs:[],outputs:[]},gt=r&&t?void 0:e.i18n,sn=V instanceof vn?null:V.name;V=new vn(sn,ye.attributes,ye.inputs,ye.outputs,X,[V],[],w,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,gt)}return t&&(this.inI18nBlock=!1),V}visitAttribute(e){return new go(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(!Nl(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);const t=e.i18n,s={},r={};return Object.keys(t.placeholders).forEach(i=>{const o=t.placeholders[i];if(i.startsWith("VAR_")){const a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);s[a]=new mo(l,o.sourceSpan)}else r[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new vc(s,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new fo(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,t){const s=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return 0===s.errors.length&&s.ast instanceof Ht&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Ia(e.name,s,e.sourceSpan,e.nameSpan,e.valueSpan)}visitBlockParameter(){return null}visitBlock(e,t){const s=Array.isArray(t)?t.indexOf(e):-1;if(-1===s)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let r=null;switch(e.name){case"defer":r=rS(e,this.findConnectedBlocks(s,t,Vl),this,this.bindingParser);break;case"switch":r=$y(e,this,this.bindingParser);break;case"for":r=Fy(e,this.findConnectedBlocks(s,t,Qh),this,this.bindingParser);break;case"if":r=Ry(e,this.findConnectedBlocks(s,t,Jh),this,this.bindingParser);break;default:let i;Vl(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Qh(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Jh(e.name)?(i=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):i=`Unrecognized block @${e.name}.`,r={node:new gc(e.name,e.sourceSpan,e.nameSpan),errors:[new fe(e.sourceSpan,i)]}}return this.errors.push(...r.errors),r.node}findConnectedBlocks(e,t,s){const r=[];for(let i=e+1;i{const a=s[o.name];if(o.isLiteral)i.push(new go(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{const l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);r.push(xa.fromBoundElementProperty(l,a))}}),{bound:r,literal:i}}parseAttribute(e,t,s,r,i,o,a){const l=pp(t.name),c=t.value,h=t.sourceSpan,p=t.valueSpan?t.valueSpan.start.offset:h.start.offset;function w(X,ye,gt){const sn=t.name.length-l.length,kt=X.start.moveBy(ye.length+sn),sa=kt.moveBy(gt.length);return new pe(kt,sa,kt,gt)}const b=l.match(uS);if(b){if(null!=b[1]){const X=b[7],ye=w(h,b[1],X);this.bindingParser.parsePropertyBinding(X,c,!1,!1,h,p,t.valueSpan,s,r,ye)}else if(b[2])if(e){const X=b[7],ye=w(h,b[2],X);this.parseVariable(X,c,h,ye,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',h);else if(b[3]){const X=b[7],ye=w(h,b[3],X);this.parseReference(X,c,h,ye,t.valueSpan,a)}else if(b[4]){const X=[],ye=b[7],gt=w(h,b[4],ye);this.bindingParser.parseEvent(ye,c,!1,h,t.valueSpan||h,s,X,gt),ql(X,i)}else if(b[5]){const X=b[7],ye=w(h,b[5],X);this.bindingParser.parsePropertyBinding(X,c,!1,!0,h,p,t.valueSpan,s,r,ye),this.parseAssignmentEvent(X,c,h,t.valueSpan,s,i,ye)}else if(b[6]){const X=w(h,"",l);this.bindingParser.parseLiteralAttr(l,c,h,p,t.valueSpan,s,r,X)}return!0}let D=null;if(l.startsWith(ys_BANANA_BOX.start)?D=ys_BANANA_BOX:l.startsWith(ys_PROPERTY.start)?D=ys_PROPERTY:l.startsWith(ys_EVENT.start)&&(D=ys_EVENT),null!==D&&l.endsWith(D.end)&&l.length>D.start.length+D.end.length){const X=l.substring(D.start.length,l.length-D.end.length),ye=w(h,D.start,X);if(D.start===ys_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(X,c,!1,!0,h,p,t.valueSpan,s,r,ye),this.parseAssignmentEvent(X,c,h,t.valueSpan,s,i,ye);else if(D.start===ys_PROPERTY.start)this.bindingParser.parsePropertyBinding(X,c,!1,!1,h,p,t.valueSpan,s,r,ye);else{const gt=[];this.bindingParser.parseEvent(X,c,!1,h,t.valueSpan||h,s,gt,ye),ql(gt,i)}return!0}const V=w(h,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,h,t.valueSpan,s,r,V,t.valueTokens??null)}_visitTextWithInterpolation(e,t,s,r){const i=Qu(e),o=this.bindingParser.parseInterpolation(i,t,s);return o?new mo(o,t,r):new Ps(i,t)}parseVariable(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):0===e.length&&this.reportError("Variable does not have a name",s),o.push(new ar(e,t,s,r,i))}parseReference(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):0===e.length?this.reportError("Reference does not have a name",s):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,s),o.push(new Da(e,t,s,r,i))}parseAssignmentEvent(e,t,s,r,i,o,a){const l=[];this.bindingParser.parseEvent(`${e}Change`,t,!0,s,r||s,i,l,a),ql(l,o)}reportError(e,t,s=Xn.ERROR){this.errors.push(new fe(t,e,s))}}const mS=new class dS{visitElement(e){const t=Yh(e);if(t.type===Rt.SCRIPT||t.type===Rt.STYLE||t.type===Rt.STYLESHEET)return null;const s=re(this,e.children,null);return new bn(e.name,re(this,e.attrs),[],[],s,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new go(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Ps(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,t){const s=[new Ps(e.startSourceSpan.toString(),e.startSourceSpan),...re(this,e.children)];return null!==e.endSourceSpan&&s.push(new Ps(e.endSourceSpan.toString(),e.endSourceSpan)),s}visitBlockParameter(e,t){return null}visitLetDeclaration(e,t){return new Ps(`@let ${e.name} = ${e.value};`,e.sourceSpan)}};function pp(n){return/^data-/i.test(n)?n.substring(5):n}function ql(n,e){e.push(...n.map(t=>_a.fromParsedEvent(t)))}const vS=[" ","\n","\r","\t"];function fp(n,e,t={}){const{interpolationConfig:s,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:i,allowInvalidAssignmentEvents:o}=t,a=Ko(s,o),c=(new Gh).parse(n,e,{leadingTriviaChars:vS,...t,tokenizeExpansionForms:!0,tokenizeBlocks:t.enableBlockSyntax??!0,tokenizeLet:t.enableLetSyntax??!0});if(!t.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){const kt={interpolationConfig:s,preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(kt.commentNodes=[]),kt}let h=c.rootNodes;const p=!(t.preserveSignificantWhitespace??1),w=new uh(s,!r,i,void 0,t.preserveSignificantWhitespace,p),b=w.visitAllWithErrors(h);if(!t.alwaysAttemptHtmlToR3AstConversion&&b.errors&&b.errors.length>0){const kt={interpolationConfig:s,preserveWhitespaces:r,errors:b.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(kt.commentNodes=[]),kt}h=b.rootNodes,r||(h=re(new qo(!0,void 0,!1),h),w.hasI18nMeta&&(h=re(new uh(s,!1,void 0,void 0,!0,p),h)));const{nodes:D,errors:V,styleUrls:U,styles:X,ngContentSelectors:ye,commentNodes:gt}=function pS(n,e,t){const s=new fS(e,t),o={nodes:re(s,n,n),errors:e.errors.concat(s.errors),styleUrls:s.styleUrls,styles:s.styles,ngContentSelectors:s.ngContentSelectors};return t.collectCommentNodes&&(o.commentNodes=s.commentNodes),o}(h,a,{collectCommentNodes:!!t.collectCommentNodes});V.push(...c.errors,...b.errors);const sn={interpolationConfig:s,preserveWhitespaces:r,errors:V.length>0?V:null,nodes:D,styleUrls:U,styles:X,ngContentSelectors:ye};return t.collectCommentNodes&&(sn.commentNodes=gt),sn}const ES=new Wo;function Ko(n=Zt,e=!1){return new Ey(new nh(new gl),n,ES,[],e)}const mp="_nghost-%COMP%",gp="_ngcontent-%COMP%";function vp(n,e,t){const s=new Ye,r=ln(n.selector);return s.set("type",n.type.value),r.length>0&&s.set("selectors",Tt(r)),n.queries.length>0&&s.set("contentQueries",function fy(n,e,t){const s=[],r=[],i=Cc(a=>r.push(a),Fa);for(const a of n){if(s.push(jh(a,e,{nonSignal:f.contentQuery,signalBased:f.contentQuerySignal},[A("dirIndex")]).toStmt()),a.isSignal){r.push(Bl);continue}const l=i(),c=_(f.loadQuery).callFn([]),h=_(f.queryRefresh).callFn([l.set(c)]),p=A(ci).prop(a.propertyName).set(a.first?l.prop("first"):l);r.push(h.and(p).toStmt())}const o=t?`${t}_ContentQueries`:null;return lt([new ae($a,On),new ae(ci,null),new ae("dirIndex",null)],[Qo(1,s),Qo(2,zh(r))],yt,null,o)}(n.queries,e,n.name)),n.viewQueries.length&&s.set("viewQuery",function py(n,e,t){const s=[],r=[],i=Cc(a=>r.push(a),Fa);n.forEach(a=>{const l=jh(a,e,{signalBased:f.viewQuerySignal,nonSignal:f.viewQuery});if(s.push(l.toStmt()),a.isSignal)return void r.push(Bl);const c=i(),h=_(f.loadQuery).callFn([]),p=_(f.queryRefresh).callFn([c.set(h)]),w=A(ci).prop(a.propertyName).set(a.first?c.prop("first"):c);r.push(p.and(w).toStmt())});const o=t?`${t}_Query`:null;return lt([new ae($a,On),new ae(ci,null)],[Qo(1,s),Qo(2,zh(r))],yt,null,o)}(n.viewQueries,e,n.name)),s.set("hostBindings",function CS(n,e,t,s,r,i,o){const a=t.createBoundHostProperties(n.properties,e),l=t.createDirectiveHostEventAsts(n.listeners,e);n.specialAttributes.styleAttr&&(n.attributes.style=d(n.specialAttributes.styleAttr)),n.specialAttributes.classAttr&&(n.attributes.class=d(n.specialAttributes.classAttr));const c=function z2(n,e,t){const s=new ku(n.componentName,t,Oh);for(const r of n.properties??[]){let i=z.Property;r.name.startsWith("attr.")&&(r.name=r.name.substring(5),i=z.Attribute),r.isAnimation&&(i=z.Animation),G2(s,r,i,e.calcPossibleSecurityContexts(n.componentSelector,r.name,i===z.Attribute).filter(a=>a!==Ie.NONE))}for(const[r,i]of Object.entries(n.attributes)??[])X2(s,r,i,e.calcPossibleSecurityContexts(n.componentSelector,r,!0).filter(a=>a!==Ie.NONE));for(const r of n.events??[])Y2(s,r);return s}({componentName:i,componentSelector:r,properties:a,events:l,attributes:n.attributes},t,s);Rh(c,R.Host),o.set("hostAttrs",c.root.attributes);const h=c.root.vars;return null!==h&&h>0&&o.set("hostVars",d(h)),function U2(n){if(null===n.root.fnName)throw new Error("AssertionError: host binding function is unnamed");const e=[];for(const i of n.root.create){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${u[i.kind]}`);e.push(i.statement)}const t=[];for(const i of n.root.update){if(i.kind!==u.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${u[i.kind]}`);t.push(i.statement)}if(0===e.length&&0===t.length)return null;const s=Go(1,e),r=Go(2,t);return lt([new ae("rf"),new ae("ctx")],[...s,...r],void 0,void 0,n.root.fnName)}(c)}(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,s)),s.set("inputs",Oa(n.inputs,!0)),s.set("outputs",Oa(n.outputs)),null!==n.exportAs&&s.set("exportAs",L(n.exportAs.map(i=>d(i)))),n.isStandalone&&s.set("standalone",d(!0)),n.isSignal&&s.set("signals",d(!0)),s}function Ep(n,e){const t=[],s=e.providers,r=e.viewProviders,i=Object.keys(e.inputs);if(s||r){const o=[s||new K([])];r&&o.push(r),t.push(_(f.ProvidersFeature).callFn(o))}for(const o of i)if(null!==e.inputs[o].transformFunction){t.push(_(f.InputTransformsFeatureFeature));break}e.hostDirectives?.length&&t.push(_(f.HostDirectivesFeature).callFn([IS(e.hostDirectives)])),e.usesInheritance&&t.push(_(f.InheritDefinitionFeature)),e.fullInheritance&&t.push(_(f.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&t.push(_(f.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&t.push(_(f.StandaloneFeature)),t.length&&n.set("features",L(t))}function yS(n,e,t){const s=vp(n,e,t);Ep(s,n);const r=n.selector&&vt.parse(n.selector),i=r&&r[0];if(i){const w=i.getAttrs();w.length&&s.set("attrs",e.getConstLiteral(L(w.map(b=>d(null!=b?b:void 0))),!0))}const o=n.name;let a=null;if(1===n.defer.mode&&null!==n.defer.dependenciesFn){const w=`${o}_DeferFn`;e.statements.push(new ne(w,n.defer.dependenciesFn,void 0,y.Final)),a=A(w)}const l=function j2(n,e,t,s,r,i,o){const a=new ol(n,t,Oh,s,r,i,o);return Kn(a.root,e),a}(n.name,n.template.nodes,e,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,a);Rh(l,R.Tmpl);const c=H2(l,e);if(null!==l.contentSelectors&&s.set("ngContentSelectors",l.contentSelectors),s.set("decls",d(l.root.decls)),s.set("vars",d(l.root.vars)),l.consts.length>0&&(l.constsInitializers.length>0?s.set("consts",qe([],[...l.constsInitializers,new Fe(L(l.consts))])):s.set("consts",L(l.consts))),s.set("template",c),3!==n.declarationListEmitMode&&n.declarations.length>0)s.set("dependencies",function SS(n,e){switch(e){case 0:return n;case 1:return qe([],n);case 2:return qe([],n.prop("map").callFn([_(f.resolveForwardRef)]));case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}(L(n.declarations.map(w=>w.type)),n.declarationListEmitMode));else if(3===n.declarationListEmitMode){const w=[n.type.value];n.rawImports&&w.push(n.rawImports),s.set("dependencies",_(f.getComponentDepsFactory).callFn(w))}if(null===n.encapsulation&&(n.encapsulation=Et.Emulated),n.styles&&n.styles.length){const b=(n.encapsulation==Et.Emulated?function bS(n,e,t){const s=new Kc;return n.map(r=>s.shimCssText(r,e,t))}(n.styles,gp,mp):n.styles).reduce((D,V)=>(V.trim().length>0&&D.push(e.getConstLiteral(d(V))),D),[]);b.length>0&&s.set("styles",L(b))}else n.encapsulation===Et.Emulated&&(n.encapsulation=Et.None);n.encapsulation!==Et.Emulated&&s.set("encapsulation",d(n.encapsulation)),null!==n.animations&&s.set("data",ie([{key:"animation",value:n.animations,quoted:!1}])),null!==n.changeDetection&&("number"==typeof n.changeDetection&&n.changeDetection!==_n.Default?s.set("changeDetection",d(n.changeDetection)):"object"==typeof n.changeDetection&&s.set("changeDetection",n.changeDetection));return{expression:_(f.defineComponent).callFn([s.toLiteralMap()],void 0,!0),type:wp(n),statements:[]}}function wp(n){const e=yp(n);return e.push(Ul(n.template.ngContentSelectors)),e.push(O(d(n.isStandalone))),e.push(xp(n)),n.isSignal&&e.push(O(d(n.isSignal))),O(_(f.ComponentDeclaration,e))}function xS(n){return O(d(n))}function Hl(n){return ie(Object.keys(n).map(t=>({key:t,value:d(Array.isArray(n[t])?n[t][0]:n[t]),quoted:!0})))}function Ul(n){return n.length>0?O(L(n.map(e=>d(e)))):Vt}function yp(n){const e=null!==n.selector?n.selector.replace(/\n/g,""):null;return[no(n.type.type,n.typeArgumentCount),null!==e?xS(e):Vt,null!==n.exportAs?Ul(n.exportAs):Vt,O(_S(n)),O(Hl(n.outputs)),Ul(n.queries.map(t=>t.propertyName))]}function _S(n){return ie(Object.keys(n.inputs).map(e=>{const t=n.inputs[e],s=[{key:"alias",value:d(t.bindingPropertyName),quoted:!0},{key:"required",value:d(t.required),quoted:!0}];return t.isSignal&&s.push({key:"isSignal",value:d(t.isSignal),quoted:!0}),{key:e,value:ie(s),quoted:!0}}))}function Sp(n){const e=yp(n);return e.push(Vt),e.push(O(d(n.isStandalone))),e.push(xp(n)),n.isSignal&&e.push(O(d(n.isSignal))),O(_(f.DirectiveDeclaration,e))}const TS=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function xp(n){return n.hostDirectives?.length?O(L(n.hostDirectives.map(e=>ie([{key:"directive",value:he(e.directive.type),quoted:!1},{key:"inputs",value:Hl(e.inputs||{}),quoted:!1},{key:"outputs",value:Hl(e.outputs||{}),quoted:!1}])))):Vt}function IS(n){const e=[];let t=!1;for(const s of n){if(s.inputs||s.outputs){const r=[{key:"directive",value:s.directive.type,quoted:!1}];if(s.inputs){const i=ea(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){const i=ea(s.outputs);i&&r.push({key:"outputs",value:i,quoted:!1})}e.push(ie(r))}else e.push(s.directive.type);s.isForwardReference&&(t=!0)}return t?new _e([],[new Fe(L(e))]):L(e)}function ea(n){const e=[];for(const t in n)n.hasOwnProperty(t)&&e.push(d(t),d(n[t]));return e.length>0?L(e):null}class Cp{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");const t=Oi.apply(e.template),s=function NS(n){const e=new Map;function t(i){if(e.has(i.rootNode))return e.get(i.rootNode);const o=i.namedEntities;let a;return a=null!==i.parentScope?new Map([...t(i.parentScope),...o]):new Map(o),e.set(i.rootNode,a),a}const s=[n];for(;s.length>0;){const i=s.pop();for(const o of i.childScopes.values())s.push(o);t(i)}const r=new Map;for(const[i,o]of e)r.set(i,new Set(o.values()));return r}(t),{directives:r,eagerDirectives:i,bindings:o,references:a}=Wl.apply(e.template,this.directiveMatcher),{expressions:l,symbols:c,nestingLevel:h,usedPipes:p,eagerPipes:w,deferBlocks:b}=ta.applyWithScope(e.template,t);return new DS(e,r,i,o,a,l,c,h,s,p,w,b)}}class Oi{constructor(e,t){this.parentScope=e,this.rootNode=t,this.namedEntities=new Map,this.elementsInScope=new Set,this.childScopes=new Map,this.isDeferred=!(null===e||!e.isDeferred)||t instanceof oi}static newRootScope(){return new Oi(null,null)}static apply(e){const t=Oi.newRootScope();return t.ingest(e),t}ingest(e){e instanceof vn?(e.variables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof ai?(null!==e.expressionAlias&&this.visitVariable(e.expressionAlias),e.children.forEach(t=>t.visit(this))):e instanceof vo?(this.visitVariable(e.item),e.contextVariables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof ka||e instanceof ba||e instanceof oi||e instanceof Aa||e instanceof Ca||e instanceof Ta||e instanceof Eo?e.children.forEach(t=>t.visit(this)):e.forEach(t=>t.visit(this))}visitElement(e){e.references.forEach(t=>this.visitReference(t)),e.children.forEach(t=>t.visit(this)),this.elementsInScope.add(e)}visitTemplate(e){e.references.forEach(t=>this.visitReference(t)),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.cases.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){this.ingestScopedNode(e)}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):null!==this.parentScope?this.parentScope.lookup(e):null}getChildScope(e){const t=this.childScopes.get(e);if(void 0===t)throw new Error(`Assertion error: child scope for ${e} not found`);return t}ingestScopedNode(e){const t=new Oi(this,e);t.ingest(e),this.childScopes.set(e,t)}}class Wl{constructor(e,t,s,r,i){this.matcher=e,this.directives=t,this.eagerDirectives=s,this.bindings=r,this.references=i,this.isInDeferBlock=!1}static apply(e,t){const s=new Map,r=new Map,i=new Map,o=[];return new Wl(t,s,o,r,i).ingest(e),{directives:s,eagerDirectives:o,bindings:r,references:i}}ingest(e){e.forEach(t=>t.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitElementOrTemplate(e){const t=Kf(e),s=[];this.matcher.match(t,(i,o)=>s.push(...o)),s.length>0&&(this.directives.set(e,s),this.isInDeferBlock||this.eagerDirectives.push(...s)),e.references.forEach(i=>{let o=null;if(""===i.value.trim())o=s.find(a=>a.isComponent)||null;else if(o=s.find(a=>null!==a.exportAs&&a.exportAs.some(l=>l===i.value))||null,null===o)return;null!==o?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});const r=(i,o)=>{const a=s.find(c=>c[o].hasBindingPropertyName(i.name)),l=void 0!==a?a:e;this.bindings.set(i,l)};e.inputs.forEach(i=>r(i,"inputs")),e.attributes.forEach(i=>r(i,"inputs")),e instanceof vn&&e.templateAttrs.forEach(i=>r(i,"inputs")),e.outputs.forEach(i=>r(i,"outputs")),e.children.forEach(i=>i.visit(this))}visitDeferredBlock(e){const t=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(s=>s.visit(this)),this.isInDeferBlock=t,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockError(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(t=>t.visit(this))}visitSwitchBlock(e){e.cases.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){e.children.forEach(t=>t.visit(this))}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEach(t=>t.visit(this)),e.children.forEach(t=>t.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(t=>t.visit(this))}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(t=>t.visit(this))}visitContent(e){e.children.forEach(t=>t.visit(this))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}}class ta extends va{constructor(e,t,s,r,i,o,a,l,c){super(),this.bindings=e,this.symbols=t,this.usedPipes=s,this.eagerPipes=r,this.deferBlocks=i,this.nestingLevel=o,this.scope=a,this.rootNode=l,this.level=c,this.visitNode=h=>h.visit(this)}visit(e,t){e instanceof Ke?e.visit(this,t):e.visit(this)}static applyWithScope(e,t){const s=new Map,r=new Map,i=new Map,o=new Set,a=new Set,c=[];return new ta(s,r,o,a,c,i,t,e instanceof vn?e:null,0).ingest(e),{expressions:s,symbols:r,nestingLevel:i,usedPipes:o,eagerPipes:a,deferBlocks:c}}ingest(e){if(e instanceof vn)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof ai)null!==e.expressionAlias&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof vo)this.visitNode(e.item),e.contextVariables.forEach(t=>this.visitNode(t)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof oi){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(t=>t.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof ka||e instanceof ba||e instanceof Aa||e instanceof Ca||e instanceof Ta||e instanceof Eo?(e.children.forEach(t=>t.visit(this)),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)}visitElement(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode),e.references.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){null!==this.rootNode&&this.symbols.set(e,this.rootNode)}visitReference(e){null!==this.rootNode&&this.symbols.set(e,this.rootNode)}visitText(e){}visitTextAttribute(e){}visitUnknownBlock(e){}visitDeferredTrigger(){}visitIcu(e){Object.keys(e.vars).forEach(t=>e.vars[t].visit(this)),Object.keys(e.placeholders).forEach(t=>e.placeholders[t].visit(this))}visitBoundAttribute(e){e.value.visit(this)}visitBoundEvent(e){e.handler.visit(this)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.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)}visitSwitchBlock(e){e.expression.visit(this),e.cases.forEach(this.visitNode)}visitSwitchBlockCase(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitBoundText(e){e.value.visit(this)}visitLetDeclaration(e){e.value.visit(this),null!==this.rootNode&&this.symbols.set(e,this.rootNode)}visitPipe(e,t){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,t)}visitPropertyRead(e,t){return this.maybeMap(e,e.name),super.visitPropertyRead(e,t)}visitSafePropertyRead(e,t){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,t)}visitPropertyWrite(e,t){return this.maybeMap(e,e.name),super.visitPropertyWrite(e,t)}ingestScopedNode(e){const t=this.scope.getChildScope(e);new ta(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,t,e,this.level+1).ingest(e)}maybeMap(e,t){if(!(e.receiver instanceof Is))return;const s=this.scope.lookup(t);s instanceof Ia&&e.receiver instanceof ni||null!==s&&this.bindings.set(e,s)}}class DS{constructor(e,t,s,r,i,o,a,l,c,h,p,w){this.target=e,this.directives=t,this.eagerDirectives=s,this.bindings=r,this.references=i,this.exprTargets=o,this.symbols=a,this.nestingLevel=l,this.scopedNodeEntities=c,this.usedPipes=h,this.eagerPipes=p,this.deferredBlocks=w.map(b=>b[0]),this.deferredScopes=new Map(w)}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(){const e=new Set;return this.directives.forEach(t=>t.forEach(s=>e.add(s))),Array.from(e.values())}getEagerlyUsedDirectives(){const e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,t){if(!(t instanceof pc||t instanceof fc||t instanceof hc))return null;const s=t.reference;if(null===s){let i=null;if(null!==e.placeholder)for(const o of e.placeholder.children)if(!(o instanceof fo)){if(null!==i)return null;o instanceof bn&&(i=o)}return i}const r=this.findEntityInScope(e,s);if(r instanceof Da&&this.getDefinitionNodeOfSymbol(r)!==e){const i=this.getReferenceTarget(r);if(null!==i)return this.referenceTargetToElement(i)}if(null!==e.placeholder){const i=this.findEntityInScope(e.placeholder,s),o=i instanceof Da?this.getReferenceTarget(i):null;if(null!==o)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(const t of this.deferredBlocks){if(!this.deferredScopes.has(t))continue;const s=[this.deferredScopes.get(t)];for(;s.length>0;){const r=s.pop();if(r.elementsInScope.has(e))return!0;s.push(...r.childScopes.values())}}return!1}findEntityInScope(e,t){const s=this.getEntitiesInScope(e);for(const r of s)if(r.name===t)return r;return null}referenceTargetToElement(e){return e instanceof bn?e:e instanceof vn?null:this.referenceTargetToElement(e.node)}}class Tp{}class PS{constructor(e=new Sd){this.jitEvaluator=e,this.FactoryTarget=pn,this.ResourceLoader=Tp,this.elementSchemaRegistry=new Wo}compilePipe(e,t,s){const i=Qc({name:s.name,type:nt(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone});return this.jitExpression(i.expression,e,t,[])}compilePipeDeclaration(e,t,s){const r=function YS(n){return{name:n.type.name,type:nt(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:n.pure??!0,isStandalone:n.isStandalone??!1}}(s),i=Qc(r);return this.jitExpression(i.expression,e,t,[])}compileInjectable(e,t,s){const{expression:r,statements:i}=Tc({name:s.name,type:nt(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:Bp(s.providedIn),useClass:Vr(s,"useClass"),useFactory:Lp(s,"useFactory"),useValue:Vr(s,"useValue"),useExisting:Vr(s,"useExisting"),deps:s.deps?.map(Mp)},!0);return this.jitExpression(r,e,t,i)}compileInjectableDeclaration(e,t,s){const{expression:r,statements:i}=Tc({name:s.type.name,type:nt(s.type),typeArgumentCount:0,providedIn:Bp(s.providedIn),useClass:Vr(s,"useClass"),useFactory:Lp(s,"useFactory"),useValue:Vr(s,"useValue"),useExisting:Vr(s,"useExisting"),deps:s.deps?.map(Rp)},!0);return this.jitExpression(r,e,t,i)}compileInjector(e,t,s){const i=Xc({name:s.name,type:nt(s.type),providers:s.providers&&s.providers.length>0?new ue(s.providers):null,imports:s.imports.map(o=>new ue(o))});return this.jitExpression(i.expression,e,t,[])}compileInjectorDeclaration(e,t,s){const r=function ZS(n){return{name:n.type.name,type:nt(n.type),providers:void 0!==n.providers&&n.providers.length>0?new ue(n.providers):null,imports:void 0!==n.imports?n.imports.map(e=>new ue(e)):[]}}(s),i=Xc(r);return this.jitExpression(i.expression,e,t,[])}compileNgModule(e,t,s){const i=Td({kind:Ln.Global,type:nt(s.type),bootstrap:s.bootstrap.map(nt),declarations:s.declarations.map(nt),publicDeclarationTypes:null,imports:s.imports.map(nt),includeImportTypes:!0,exports:s.exports.map(nt),selectorScopeMode:wi.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(nt):null,id:s.id?new ue(s.id):null});return this.jitExpression(i.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){const r=function Ad(n){const e=new Ye;return e.set("type",new ue(n.type)),void 0!==n.bootstrap&&e.set("bootstrap",new ue(n.bootstrap)),void 0!==n.declarations&&e.set("declarations",new ue(n.declarations)),void 0!==n.imports&&e.set("imports",new ue(n.imports)),void 0!==n.exports&&e.set("exports",new ue(n.exports)),void 0!==n.schemas&&e.set("schemas",new ue(n.schemas)),void 0!==n.id&&e.set("id",new ue(n.id)),_(f.defineNgModule).callFn([e.toLiteralMap()])}(s);return this.jitExpression(r,e,t,[])}compileDirective(e,t,s){const r=Ip(s);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,s){const i=Dp(s,this.createParseSourceSpan("Directive",s.type.name,t));return this.compileDirectiveFromMeta(e,t,i)}compileDirectiveFromMeta(e,t,s){const r=new Ql,o=function wS(n,e,t){const s=vp(n,e,t);return Ep(s,n),{expression:_(f.defineDirective).callFn([s.toLiteralMap()],void 0,!0),type:Sp(n),statements:[]}}(s,r,Ko());return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,s){const{template:r,interpolation:i,defer:o}=Pp(s.template,s.name,t,s.preserveWhitespaces,s.interpolation,void 0),a={...s,...Ip(s),selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(RS),declarationListEmitMode:0,defer:o,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,interpolation:i,changeDetection:s.changeDetection??null,animations:null!=s.animations?new ue(s.animations):null,viewProviders:null!=s.viewProviders?new ue(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},l=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,l,a)}compileComponentDeclaration(e,t,s){const i=function MS(n,e,t){const{template:s,interpolation:r,defer:i}=Pp(n.template,n.type.name,t,n.preserveWhitespaces??!1,n.interpolation,n.deferBlockDependencies),o=[];if(n.dependencies)for(const a of n.dependencies)switch(a.kind){case"directive":case"component":o.push(jl(a));break;case"pipe":o.push($S(a))}else(n.components||n.directives||n.pipes)&&(n.components&&o.push(...n.components.map(a=>jl(a,!0))),n.directives&&o.push(...n.directives.map(a=>jl(a))),n.pipes&&o.push(...function FS(n){return n?Object.keys(n).map(e=>({kind:us.Pipe,name:e,type:new ue(n[e])})):[]}(n.pipes)));return{...Dp(n,e),template:s,styles:n.styles??[],declarations:o,viewProviders:void 0!==n.viewProviders?new ue(n.viewProviders):null,animations:void 0!==n.animations?new ue(n.animations):null,defer:i,changeDetection:n.changeDetection??_n.Default,encapsulation:n.encapsulation??Et.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}(s,this.createParseSourceSpan("Component",s.type.name,t),t);return this.compileComponentFromMeta(e,t,i)}compileComponentFromMeta(e,t,s){const r=new Ql,o=yS(s,r,Ko(s.interpolation));return this.jitExpression(o.expression,e,t,r.statements)}compileFactory(e,t,s){const r=bs({name:s.name,type:nt(s.type),typeArgumentCount:s.typeArgumentCount,deps:OS(s.deps),target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,s){const r=bs({name:s.type.name,type:nt(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(Rp):s.deps,target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,s){return function md(n,e,t){const r=new Xa("",`in ${n} ${e} in ${t}`);return new pe(new Os(r,-1,-1,-1),new Os(r,-1,-1,-1))}(e,t,s)}jitExpression(e,t,s,r){const i=[...r,new ne("$def",e,void 0,y.Exported)];return this.jitEvaluator.evaluateStatements(s,i,new Cd(t),!0).$def}}function Ap(n){return{...n,isSignal:n.isSignal,predicate:bp(n.predicate),read:n.read?new ue(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly}}function kp(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:bp(n.predicate),descendants:n.descendants??!1,read:n.read?new ue(n.read):null,static:n.static??!1,emitDistinctChangesOnly:n.emitDistinctChangesOnly??!0,isSignal:!!n.isSignal}}function bp(n){return Array.isArray(n)?n:fa(new ue(n),1)}function Ip(n){const e=function XS(n){return n.reduce((e,t)=>{if("string"==typeof t){const[s,r]=$p(t);e[r]={bindingPropertyName:s,classPropertyName:r,required:!1,isSignal:!1,transformFunction:null}}else e[t.name]={bindingPropertyName:t.alias||t.name,classPropertyName:t.name,required:t.required||!1,isSignal:!1,transformFunction:null!=t.transform?new ue(t.transform):null};return e},{})}(n.inputs||[]),t=zl(n.outputs||[]),s=n.propMetadata,r={},i={};for(const a in s)s.hasOwnProperty(a)&&s[a].forEach(l=>{WS(l)?r[a]={bindingPropertyName:l.alias||a,classPropertyName:a,required:l.required||!1,isSignal:!!l.isSignal,transformFunction:null!=l.transform?new ue(l.transform):null}:jS(l)&&(i[a]=l.alias||a)});const o=n.hostDirectives?.length?n.hostDirectives.map(a=>"function"==typeof a?{directive:nt(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:nt(a.directive),isForwardReference:!1,inputs:a.inputs?zl(a.inputs):null,outputs:a.outputs?zl(a.outputs):null}):null;return{...n,typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:nt(n.type),deps:null,host:{...qS(n.propMetadata,n.typeSourceSpan,n.host)},inputs:{...e,...r},outputs:{...t,...i},queries:n.queries.map(Ap),providers:null!=n.providers?new ue(n.providers):null,viewQueries:n.viewQueries.map(Ap),fullInheritance:!1,hostDirectives:o}}function Dp(n,e){const t=n.hostDirectives?.length?n.hostDirectives.map(s=>({directive:nt(s.directive),isForwardReference:!1,inputs:s.inputs?Np(s.inputs):null,outputs:s.outputs?Np(s.outputs):null})):null;return{name:n.type.name,type:nt(n.type),typeSourceSpan:e,selector:n.selector??null,inputs:n.inputs?zS(n.inputs):{},outputs:n.outputs??{},host:LS(n.host),queries:(n.queries??[]).map(kp),viewQueries:(n.viewQueries??[]).map(kp),providers:void 0!==n.providers?new ue(n.providers):null,exportAs:n.exportAs??null,usesInheritance:n.usesInheritance??!1,lifecycle:{usesOnChanges:n.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:n.isStandalone??!1,isSignal:n.isSignal??!1,hostDirectives:t}}function LS(n={}){return{attributes:BS(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function Np(n){let e=null;for(let t=1;tp.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${h}`)}return{template:a,interpolation:o,defer:VS(new Cp(new xn).bind({template:a.nodes}),i)}}function Vr(n,e){if(n.hasOwnProperty(e))return fa(new ue(n[e]),0)}function Lp(n,e){if(n.hasOwnProperty(e))return new ue(n[e])}function Bp(n){return fa("function"==typeof n?new ue(n):new v(n??null),0)}function OS(n){return null==n?null:n.map(Mp)}function Mp(n){const e=null!=n.attribute,t=null===n.token?null:new ue(n.token);return Fp(e?new ue(n.attribute):t,e,n.host,n.optional,n.self,n.skipSelf)}function Rp(n){const e=n.attribute??!1;return Fp(null===n.token?null:new ue(n.token),e,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function Fp(n,e,t,s,r,i){return{token:n,attributeNameType:e?d("unknown"):null,host:t,optional:s,self:r,skipSelf:i}}function VS(n,e){const t=n.getDeferBlocks(),s=new Map;for(let r=0;ri.msg).join("\n"));for(const i in n)n.hasOwnProperty(i)&&n[i].forEach(o=>{HS(o)?s.properties[o.hostPropertyName||i]=Sf("this",i):US(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return s}function HS(n){return"HostBinding"===n.ngMetadataName}function US(n){return"HostListener"===n.ngMetadataName}function WS(n){return"Input"===n.ngMetadataName}function jS(n){return"Output"===n.ngMetadataName}function zS(n){return Object.keys(n).reduce((e,t)=>{const s=n[t];return"string"==typeof s||Array.isArray(s)?e[t]=function GS(n){return"string"==typeof n?{bindingPropertyName:n,classPropertyName:n,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:n[0],classPropertyName:n[1],transformFunction:n[2]?new ue(n[2]):null,required:!1,isSignal:!1}}(s):e[t]={bindingPropertyName:s.publicName,classPropertyName:t,transformFunction:null!==s.transformFunction?new ue(s.transformFunction):null,required:s.isRequired,isSignal:s.isSignal},e},{})}function zl(n){return n.reduce((e,t)=>{const[s,r]=$p(t);return e[r]=s,e},{})}function $p(n){const[e,t]=n.split(":",2).map(s=>s.trim());return[t??e,e]}new class pf{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}("18.2.13");class JS{constructor({defaultEncapsulation:e=Et.Emulated,preserveWhitespaces:t,strictInjectionParameters:s}={}){this.defaultEncapsulation=e,this.preserveWhitespaces=function KS(n,e=!1){return null===n?e:n}(function uf(n){return void 0===n?null:n}(t)),this.strictInjectionParameters=!0===s}}var Sn;!function(n){n[n.Extract=0]="Extract",n[n.Merge=1]="Merge"}(Sn||(Sn={}));new class cx{constructor(){this.closedByParent=!1,this.implicitNamespacePrefix=null,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return mn.PARSABLE_DATA}};var Zp;!function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(Zp||(Zp={}));!function QS(n){(n.ng||(n.ng={})).\u0275compilerFacade=new PS}(Jr)}},xt=>{var at=ns=>xt(xt.s=ns);at(4050),at(9837)}]);