diff --git a/docs/index.html b/docs/index.html index bb7fb4d..1340f0f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,5 +1,5 @@ - + Reactive Storage @@ -10,5 +10,5 @@ - + diff --git a/docs/main-627XSDTO.js b/docs/main-U6IZHJQ4.js similarity index 99% rename from docs/main-627XSDTO.js rename to docs/main-U6IZHJQ4.js index 94951c9..b58a9a8 100644 --- a/docs/main-627XSDTO.js +++ b/docs/main-U6IZHJQ4.js @@ -4,4 +4,4 @@ ${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `);return i===-1?e:e.substring(0,i)}function La(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Jv=de({__forward_ref__:de});function qt(t){return t.__forward_ref__=qt,t.toString=function(){return st(this())},t}function Ge(t){return uf(t)?t():t}function uf(t){return typeof t=="function"&&t.hasOwnProperty(Jv)&&t.__forward_ref__===qt}function df(t){return t&&!!t.\u0275providers}var e_="https://g.co/ng/security#xss",O=class extends Error{constructor(e,i){super(Cc(e,i)),this.code=e}};function Cc(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var t_=de({\u0275cmp:de}),n_=de({\u0275dir:de}),i_=de({\u0275pipe:de});var Ds=de({\u0275fac:de}),zi=de({__NG_ELEMENT_ID__:de}),xd=de({__NG_ENV_ID__:de});function Mc(t){return typeof t=="string"?t:t==null?"":String(t)}function r_(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Mc(t)}function s_(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new O(-200,`Circular dependency in DI detected for ${t}${i}`)}function Tc(t,e){let i=e?` in ${e}`:"";throw new O(-201,!1)}function o_(t,e){t==null&&a_(e,t,null,"!=")}function a_(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${i} ${n} ${e} <=Actual]`))}function Q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function fe(t){return{providers:t.providers||[],imports:t.imports||[]}}function Sc(t){return Nd(t,ff)||Nd(t,hf)}function Nd(t,e){return t.hasOwnProperty(e)?t[e]:null}function c_(t){let e=t&&(t[ff]||t[hf]);return e||null}function Od(t){return t&&(t.hasOwnProperty(Rd)||t.hasOwnProperty(l_))?t[Rd]:null}var ff=de({\u0275prov:de}),Rd=de({\u0275inj:de}),hf=de({ngInjectableDef:de}),l_=de({ngInjectorDef:de}),Y=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Y||{}),Va;function u_(){return Va}function Rt(t){let e=Va;return Va=t,e}function pf(t,e,i){let n=Sc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&Y.Optional)return null;if(e!==void 0)return e;Tc(st(t),"Injector")}var Wi=globalThis;var V=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=Q({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var d_={},Ki=d_,f_="__NG_DI_FLAG__",Es="ngTempTokenPath",h_="ngTokenPath",p_=/\n/gm,m_="\u0275",kd="__source",Gi;function ti(t){let e=Gi;return Gi=t,e}function g_(t,e=Y.Default){if(Gi===void 0)throw new O(-203,!1);return Gi===null?pf(t,void 0,e):Gi.get(t,e&Y.Optional?null:void 0,e)}function F(t,e=Y.Default){return(u_()||g_)(Ge(t),e)}function pe(t,e=Y.Default){return F(t,Us(e))}function Us(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ja(t){let e=[];for(let i=0;i ");else if(typeof e=="object"){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+(typeof a=="string"?JSON.stringify(a):st(a)))}r=`{${s.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(p_,` - `)}`}function Hs(t){return{toString:t}.toString()}var mf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(mf||{}),Lt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Lt||{}),oi={},Je=[];function gf(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let s=e.length;if(r+s===n||t.charCodeAt(r+s)<=32)return r}i=r+1}}function Ba(t,e,i){let n=0;for(;ne){o=s-1;break}}}for(;ss?p="":p=r[h+1].toLowerCase();let _=n&8?p:null;if(_&&gf(_,l,0)!==-1||n&2&&l!==p){if(Et(n))return!1;o=!0}}}}return Et(n)||o}function Et(t){return(t&1)===0}function I_(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let s=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Et(o)&&(e+=Pd(s,r),r=""),n=o,s=s||!Et(n);i++}return r!==""&&(e+=Pd(s,r)),e}function x_(t){return t.map(A_).join(",")}function N_(t){let e=[],i=[],n=1,r=2;for(;n{let e=Ef(t),i=We(Z({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===mf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Lt.Emulated,styles:t.styles||Je,_:null,schemas:t.schemas||null,tView:null,id:""});If(i);let n=t.dependencies;return i.directiveDefs=Vd(n,!1),i.pipeDefs=Vd(n,!0),i.id=F_(i),i})}function O_(t){return ai(t)||wf(t)}function R_(t){return t!==null}function he(t){return Hs(()=>({type:t.type,bootstrap:t.bootstrap||Je,declarations:t.declarations||Je,imports:t.imports||Je,exports:t.exports||Je,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ld(t,e){if(t==null)return oi;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),i[r]=n,e&&(e[r]=s)}return i}function _e(t){return Hs(()=>{let e=Ef(t);return If(e),e})}function ai(t){return t[t_]||null}function wf(t){return t[n_]||null}function Df(t){return t[i_]||null}function k_(t){let e=ai(t)||wf(t)||Df(t);return e!==null?e.standalone:!1}function Ef(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||oi,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Je,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ld(t.inputs,e),outputs:Ld(t.outputs),debugInfo:null}}function If(t){t.features?.forEach(e=>e(t))}function Vd(t,e){if(!t)return null;let i=e?Df:O_;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(R_)}function F_(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483647+1,"c"+e}var Kt=0,$=1,U=2,Ae=3,Ct=4,ot=5,Yi=6,Zi=7,je=8,ci=9,Xi=10,Ie=11,Ji=12,jd=13,mi=14,mt=15,rr=16,ni=17,Pt=18,$s=19,Cf=20,qi=21,wa=22,En=23,Be=25,Mf=1;var In=7,Is=8,li=9,Ue=10,ui=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t[t.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",t}(ui||{});function tn(t){return Array.isArray(t)&&typeof t[Mf]=="object"}function Mt(t){return Array.isArray(t)&&t[Mf]===!0}function Tf(t){return(t.flags&4)!==0}function zs(t){return t.componentOffset>-1}function Ac(t){return(t.flags&1)===1}function nn(t){return!!t.template}function P_(t){return(t[U]&512)!==0}function di(t,e){let i=t.hasOwnProperty(Ds);return i?t[Ds]:null}var Ua=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function on(){return Sf}function Sf(t){return t.type.prototype.ngOnChanges&&(t.setInput=V_),L_}on.ngInherit=!0;function L_(){let t=xf(this),e=t?.current;if(e){let i=t.previous;if(i===oi)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function V_(t,e,i,n){let r=this.declaredInputs[i],s=xf(t)||j_(t,{previous:oi,current:null}),o=s.current||(s.current={}),a=s.previous,c=a[r];o[r]=new Ua(c&&c.currentValue,e,a===oi),t[n]=e}var Af="__ngSimpleChanges__";function xf(t){return t[Af]||null}function j_(t,e){return t[Af]=e}var Bd=null;var kt=function(t,e,i){Bd?.(t,e,i)},Nf="svg",B_="math";function Vt(t){for(;Array.isArray(t);)t=t[Kt];return t}function Of(t,e){return Vt(e[t])}function gt(t,e){return Vt(e[t.index])}function xc(t,e){return t.data[e]}function U_(t,e){return t[e]}function an(t,e){let i=e[t];return tn(i)?i:i[Kt]}function H_(t){return(t[U]&4)===4}function Nc(t){return(t[U]&128)===128}function $_(t){return Mt(t[Ae])}function Cs(t,e){return e==null?null:t[e]}function Rf(t){t[ni]=0}function z_(t){t[U]&1024||(t[U]|=1024,Nc(t)&&Ws(t))}function W_(t,e){for(;t>0;)e=e[mi],t--;return e}function kf(t){t[U]&9216&&Ws(t)}function Ws(t){let e=t[Ae];for(;e!==null&&!(Mt(e)&&e[U]&ui.HasChildViewsToRefresh||tn(e)&&e[U]&8192);){if(Mt(e))e[U]|=ui.HasChildViewsToRefresh;else if(e[U]|=8192,!Nc(e))break;e=e[Ae]}}function G_(t,e){if((t[U]&256)===256)throw new O(911,!1);t[qi]===null&&(t[qi]=[]),t[qi].push(e)}var G={lFrame:zf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function q_(){return G.lFrame.elementDepthCount}function K_(){G.lFrame.elementDepthCount++}function Q_(){G.lFrame.elementDepthCount--}function Ff(){return G.bindingsEnabled}function Pf(){return G.skipHydrationRootTNode!==null}function Y_(t){return G.skipHydrationRootTNode===t}function Z_(){G.skipHydrationRootTNode=null}function ee(){return G.lFrame.lView}function Pe(){return G.lFrame.tView}function tt(){let t=Lf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Lf(){return G.lFrame.currentTNode}function X_(){let t=G.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function sr(t,e){let i=G.lFrame;i.currentTNode=t,i.isParent=e}function Vf(){return G.lFrame.isParent}function jf(){G.lFrame.isParent=!1}function J_(){return G.lFrame.contextLView}function ey(t){return G.lFrame.bindingIndex=t}function gi(){return G.lFrame.bindingIndex++}function Bf(t){let e=G.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ty(){return G.lFrame.inI18n}function ny(t,e){let i=G.lFrame;i.bindingIndex=i.bindingRootIndex=t,Ha(e)}function iy(){return G.lFrame.currentDirectiveIndex}function Ha(t){G.lFrame.currentDirectiveIndex=t}function ry(t){let e=G.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Uf(){return G.lFrame.currentQueryIndex}function Oc(t){G.lFrame.currentQueryIndex=t}function sy(t){let e=t[$];return e.type===2?e.declTNode:e.type===1?t[ot]:null}function Hf(t,e,i){if(i&Y.SkipSelf){let r=e,s=t;for(;r=r.parent,r===null&&!(i&Y.Host);)if(r=sy(s),r===null||(s=s[mi],r.type&10))break;if(r===null)return!1;e=r,t=s}let n=G.lFrame=$f();return n.currentTNode=e,n.lView=t,!0}function Rc(t){let e=$f(),i=t[$];G.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function $f(){let t=G.lFrame,e=t===null?null:t.child;return e===null?zf(t):e}function zf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Wf(){let t=G.lFrame;return G.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Gf=Wf;function kc(){let t=Wf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function oy(t){return(G.lFrame.contextLView=W_(t,G.lFrame.contextLView))[je]}function kn(){return G.lFrame.selectedIndex}function Cn(t){G.lFrame.selectedIndex=t}function Fc(){let t=G.lFrame;return xc(t.tView,t.selectedIndex)}function qf(){G.lFrame.currentNamespace=Nf}function ay(){return G.lFrame.currentNamespace}var Kf=!0;function Pc(){return Kf}function Lc(t){Kf=t}function cy(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){let o=Sf(e);(i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o)}r&&(i.preOrderHooks??=[]).push(0-t,r),s&&((i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s))}function Vc(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[c]<0&&(t[ni]+=65536),(a>14>16&&(t[U]&3)===e&&(t[U]+=16384,Ud(a,s)):Ud(a,s)}var si=-1,Mn=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function uy(t){return t instanceof Mn}function dy(t){return(t.flags&8)!==0}function fy(t){return(t.flags&16)!==0}function Yf(t){return t!==si}function Ms(t){let e=t&32767;return t&32767}function hy(t){return t>>16}function Ts(t,e){let i=hy(t),n=e;for(;i>0;)n=n[mi],i--;return n}var $a=!0;function Hd(t){let e=$a;return $a=t,e}var py=256,Zf=py-1,Xf=5,my=0,Ft={};function gy(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(zi)&&(n=i[zi]),n==null&&(n=i[zi]=my++);let r=n&Zf,s=1<>Xf)]|=s}function Ss(t,e){let i=Jf(t,e);if(i!==-1)return i;let n=e[$];n.firstCreatePass&&(t.injectorIndex=e.length,Ea(n.data,t),Ea(e,null),Ea(n.blueprint,null));let r=jc(t,e),s=t.injectorIndex;if(Yf(r)){let o=Ms(r),a=Ts(r,e),c=a[$].data;for(let l=0;l<8;l++)e[s+l]=a[o+l]|c[o+l]}return e[s+8]=r,s}function Ea(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function jc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=rh(r),n===null)return si;if(i++,r=r[mi],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return si}function za(t,e,i){gy(t,e,i)}function vy(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r>20,h=n?a:a+u,p=r?a+u:l;for(let _=h;_=c&&b.type===i)return _}if(r){let _=o[c];if(_&&nn(_)&&_.type===i)return c}return null}function Tn(t,e,i,n){let r=t[i],s=e.data;if(uy(r)){let o=r;o.resolving&&s_(r_(s[i]));let a=Hd(o.canSeeViewProviders);o.resolving=!0;let c,l=o.injectImpl?Rt(o.injectImpl):null,u=Hf(t,n,Y.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&cy(i,s[i],e)}finally{l!==null&&Rt(l),Hd(a),o.resolving=!1,Gf()}}return r}function yy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(zi)?t[zi]:void 0;return typeof e=="number"?e>=0?e&Zf:by:e}function $d(t,e,i){let n=1<>Xf)]&n)}function zd(t,e){return!(t&Y.Self)&&!(t&Y.Host&&e)}var Dn=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return nh(this._tNode,this._lView,e,Us(n),i)}};function by(){return new Dn(tt(),ee())}function vi(t){return Hs(()=>{let e=t.prototype.constructor,i=e[Ds]||Wa(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let s=r[Ds]||Wa(r);if(s&&s!==i)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Wa(t){return uf(t)?()=>{let e=Wa(Ge(t));return e&&e()}:di(t)}function wy(t,e,i,n,r){let s=t,o=e;for(;s!==null&&o!==null&&o[U]&2048&&!(o[U]&512);){let a=ih(s,o,i,n|Y.Self,Ft);if(a!==Ft)return a;let c=s.parent;if(!c){let l=o[Cf];if(l){let u=l.get(i,Ft,n);if(u!==Ft)return u}c=rh(o),o=o[mi]}s=c}return r}function rh(t){let e=t[$],i=e.type;return i===2?e.declTNode:i===1?t[ot]:null}function Gs(t){return vy(tt(),t)}function Dy(t){return typeof t=="function"}function Ey(t,e,i){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(i)?Bc(i,e):e(i))}function sh(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function As(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function oh(t,e){let i=[];for(let n=0;ne;){let s=r-2;t[r]=t[s],r--}t[e]=i,t[e+1]=n}}function Uc(t,e,i){let n=or(t,e);return n>=0?t[n|1]=i:(n=~n,Cy(t,n,e,i)),n}function Ia(t,e){let i=or(t,e);if(i>=0)return t[i|1]}function or(t,e){return My(t,e,1)}function My(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let s=n+(r-n>>1),o=t[s<e?r=s:n=s+1}return~(r<{i.push(o)};return Bc(e,o=>{let a=o;Ga(a,s,[],n)&&(r||=[],r.push(a))}),r!==void 0&&dh(r,s),i}function dh(t,e){for(let i=0;i{e(s,n)})}}function Ga(t,e,i,n){if(t=Ge(t),!t)return!1;let r=null,s=Od(t),o=!s&&ai(t);if(!s&&!o){let c=t.ngModule;if(s=Od(c),s)r=c;else return!1}else{if(o&&!o.standalone)return!1;r=t}let a=n.has(r);if(o){if(a)return!1;if(n.add(r),o.dependencies){let c=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let l of c)Ga(l,e,i,n)}}else if(s){if(s.imports!=null&&!a){n.add(r);let l;try{Bc(s.imports,u=>{Ga(u,e,i,n)&&(l||=[],l.push(u))})}finally{}l!==void 0&&dh(l,e)}if(!a){let l=di(r)||(()=>new r);e({provide:r,useFactory:l,deps:Je},r),e({provide:ch,useValue:r,multi:!0},r),e({provide:qs,useValue:()=>F(r),multi:!0},r)}let c=s.providers;if(c!=null&&!a){let l=t;Hc(c,u=>{e(u,l)})}}else return!1;return r!==t&&t.providers!==void 0}function Hc(t,e){for(let i of t)df(i)&&(i=i.\u0275providers),Array.isArray(i)?Hc(i,e):e(i)}var Sy=de({provide:String,useValue:de});function fh(t){return t!==null&&typeof t=="object"&&Sy in t}function Ay(t){return!!(t&&t.useExisting)}function xy(t){return!!(t&&t.useFactory)}function fi(t){return typeof t=="function"}function Ny(t){return!!t.useClass}var Ks=new V("Set Injector scope."),ys={},Oy={},Ca;function $c(){return Ca===void 0&&(Ca=new xs),Ca}var rn=class{},Ns=class extends rn{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ka(e,o=>this.processProvider(o)),this.records.set(ah,ii(void 0,this)),r.has("environment")&&this.records.set(rn,ii(void 0,this));let s=this.records.get(Ks);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(ch,Je,Y.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=ti(this),n=Rt(void 0),r;try{return e()}finally{ti(i),Rt(n)}}get(e,i=Ki,n=Y.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(xd))return e[xd](this);n=Us(n);let r,s=ti(this),o=Rt(void 0);try{if(!(n&Y.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=Ly(e)&&Sc(e);l&&this.injectableDefInScope(l)?c=ii(qa(e),ys):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&Y.Self?$c():this.parent;return i=n&Y.Optional&&i===Ki?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Es]=a[Es]||[]).unshift(st(e)),s)throw a;return __(a,e,"R3InjectorError",this.source)}else throw a}finally{Rt(o),ti(s)}}resolveInjectorInitializers(){let e=ti(this),i=Rt(void 0),n;try{let r=this.get(qs,Je,Y.Self);for(let s of r)s()}finally{ti(e),Rt(i)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(st(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(e){e=Ge(e);let i=fi(e)?e:Ge(e&&e.provide),n=ky(e);if(!fi(e)&&e.multi===!0){let r=this.records.get(i);r||(r=ii(void 0,ys,!0),r.factory=()=>ja(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}else{let r=this.records.get(i)}this.records.set(i,n)}hydrate(e,i){return i.value===ys&&(i.value=Oy,i.value=i.factory()),typeof i.value=="object"&&i.value&&Py(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Ge(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function qa(t){let e=Sc(t),i=e!==null?e.factory:di(t);if(i!==null)return i;if(t instanceof V)throw new O(204,!1);if(t instanceof Function)return Ry(t);throw new O(204,!1)}function Ry(t){let e=t.length;if(e>0){let n=oh(e,"?");throw new O(204,!1)}let i=c_(t);return i!==null?()=>i.factory(t):()=>new t}function ky(t){if(fh(t))return ii(void 0,t.useValue);{let e=hh(t);return ii(e,ys)}}function hh(t,e,i){let n;if(fi(t)){let r=Ge(t);return di(r)||qa(r)}else if(fh(t))n=()=>Ge(t.useValue);else if(xy(t))n=()=>t.useFactory(...ja(t.deps||[]));else if(Ay(t))n=()=>F(Ge(t.useExisting));else{let r=Ge(t&&(t.useClass||t.provide));if(Fy(t))n=()=>new r(...ja(t.deps));else return di(r)||qa(r)}return n}function ii(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Fy(t){return!!t.deps}function Py(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ly(t){return typeof t=="function"||typeof t=="object"&&t instanceof V}function Ka(t,e){for(let i of t)Array.isArray(i)?Ka(i,e):i&&df(i)?Ka(i.\u0275providers,e):e(i)}function Wd(t,e=null,i=null,n){let r=Vy(t,e,i,n);return r.resolveInjectorInitializers(),r}function Vy(t,e=null,i=null,n,r=new Set){let s=[i||Je,Ty(t)];return n=n||(typeof t=="object"?void 0:st(t)),new Ns(s,e||$c(),n||null,r)}var _i=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return Wd({name:""},r,n,"");{let s=n.name??"";return Wd({name:s},n.parent,n.providers,s)}}};e.THROW_IF_NOT_FOUND=Ki,e.NULL=new xs,e.\u0275prov=Q({token:e,providedIn:"any",factory:()=>F(ah)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var Qa;function ph(t){Qa=t}function jy(){if(Qa!==void 0)return Qa;if(typeof document<"u")return document;throw new O(210,!1)}var Qs=new V("AppId",{providedIn:"root",factory:()=>By}),By="ng",zc=new V("Platform Initializer"),cn=new V("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var nt=new V("AnimationModuleType"),ar=new V("CSP nonce",{providedIn:"root",factory:()=>jy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function mh(t){return(t.flags&128)===128}var Wt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Wt||{});var gh=new Map,Uy=0;function Hy(){return Uy++}function $y(t){gh.set(t[$s],t)}function zy(t){gh.delete(t[$s])}var Gd="__ngContext__";function Sn(t,e){tn(e)?(t[Gd]=e[$s],$y(e)):t[Gd]=e}var Wy;function Wc(t,e){return Wy(t,e)}function Gc(t){let e=t[Ae];return Mt(e)?e[Ae]:e}function vh(t){return yh(t[Ji])}function _h(t){return yh(t[Ct])}function yh(t){for(;t!==null&&!Mt(t);)t=t[Ct];return t}function ri(t,e,i,n,r){if(n!=null){let s,o=!1;Mt(n)?s=n:tn(n)&&(o=!0,n=n[Kt]);let a=Vt(n);t===0&&i!==null?r==null?Eh(e,i,a):Os(e,i,a,r||null,!0):t===1&&i!==null?Os(e,i,a,r||null,!0):t===2?ab(e,a,o):t===3&&e.destroyNode(a),s!=null&&lb(e,t,s,i,r)}}function Gy(t,e){return t.createText(e)}function qy(t,e,i){t.setValue(e,i)}function bh(t,e,i){return t.createElement(e,i)}function Ky(t,e){let i=e[Ie];cr(t,e,i,2,null,null),e[Kt]=null,e[ot]=null}function Qy(t,e,i,n,r,s){n[Kt]=r,n[ot]=e,cr(t,n,i,1,r,s)}function Yy(t,e){cr(t,e,e[Ie],2,null,null)}function Zy(t){let e=t[Ji];if(!e)return Ma(t[$],t);for(;e;){let i=null;if(tn(e))i=e[Ji];else{let n=e[Ue];n&&(i=n)}if(!i){for(;e&&!e[Ct]&&e!==t;)tn(e)&&Ma(e[$],e),e=e[Ae];e===null&&(e=t),tn(e)&&Ma(e[$],e),i=e&&e[Ct]}e=i}}function Xy(t,e,i,n){let r=Ue+n,s=i.length;n>0&&(i[r-1][Ct]=e),n0&&(t[i-1][Ct]=n[Ct]);let s=As(t,Ue+e);Ky(n[$],n);let o=s[Pt];o!==null&&o.detachView(s[$]),n[Ae]=null,n[Ct]=null,n[U]&=-129}return n}function Ys(t,e){if(!(e[U]&256)){let i=e[Ie];e[En]&&Zu(e[En]),i.destroyNode&&cr(t,e,i,3,null,null),Zy(e)}}function Ma(t,e){if(!(e[U]&256)){e[U]&=-129,e[U]|=256,tb(t,e),eb(t,e),e[$].type===1&&e[Ie].destroy();let i=e[rr];if(i!==null&&Mt(e[Ae])){i!==e[Ae]&&wh(i,e);let n=e[Pt];n!==null&&n.detachView(t)}zy(e)}}function eb(t,e){let i=t.cleanup,n=e[Zi];if(i!==null)for(let s=0;s=0?n[o]():n[-o].unsubscribe(),s+=2}else{let o=n[i[s+1]];i[s].call(o)}n!==null&&(e[Zi]=null);let r=e[qi];if(r!==null){e[qi]=null;for(let s=0;s-1){let{encapsulation:s}=t.data[n.directiveStart+r];if(s===Lt.None||s===Lt.Emulated)return null}return gt(n,i)}}function Os(t,e,i,n,r){t.insertBefore(e,i,n,r)}function Eh(t,e,i){t.appendChild(e,i)}function qd(t,e,i,n,r){n!==null?Os(t,e,i,n,r):Eh(t,e,i)}function ib(t,e,i,n){t.removeChild(e,i,n)}function qc(t,e){return t.parentNode(e)}function rb(t,e){return t.nextSibling(e)}function Ih(t,e,i){return ob(t,e,i)}function sb(t,e,i){return t.type&40?gt(t,i):null}var ob=sb,Kd;function Kc(t,e,i,n){let r=Dh(t,n,e),s=e[Ie],o=n.parent||e[ot],a=Ih(o,n,e);if(r!=null)if(Array.isArray(i))for(let c=0;cnull;function Yc(t,e,i=!1){return pb(t,e,i)}var Xa=class{},Rs=class{};function mb(t){let e=Error(`No component factory found for ${st(t)}.`);return e[gb]=t,e}var gb="ngComponent";var Ja=class{resolveComponentFactory(e){throw mb(e)}},lr=(()=>{let e=class e{};e.NULL=new Ja;let t=e;return t})();function vb(){return yi(tt(),ee())}function yi(t,e){return new me(gt(t,e))}var me=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=vb;let t=e;return t})();function _b(t){return t instanceof me?t.nativeElement:t}var An=class{},Xs=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>yb();let t=e;return t})();function yb(){let t=ee(),e=tt(),i=an(e.index,t);return(tn(i)?i:t)[Ie]}var bb=(()=>{let e=class e{};e.\u0275prov=Q({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),xn=class{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}},wb=new xn("17.0.3"),Ta={};function Zc(t,e){let i=id(t),n=i[Fi];return e?.equal&&(n.equal=e.equal),i.set=r=>oa(n,r),i.update=r=>rd(n,r),i.asReadonly=Db.bind(i),i}function Db(){let t=this[Fi];if(t.readonlyFn===void 0){let e=()=>this();e[Fi]=t,t.readonlyFn=e}return t.readonlyFn}function ks(t,e,i,n,r=!1){for(;i!==null;){let s=e[i.index];s!==null&&n.push(Vt(s)),Mt(s)&&Eb(s,n);let o=i.type;if(o&8)ks(t,e,i.child,n);else if(o&32){let a=Wc(i,e),c;for(;c=a();)n.push(c)}else if(o&16){let a=Ch(e,i);if(Array.isArray(a))n.push(...a);else{let c=Gc(e[mt]);ks(c[$],c,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function Eb(t,e){for(let i=Ue;i{Ws(t.lView)},consumerOnSignalRead(){this.lView[En]=this}}),Sb="ngOriginalError";function Sa(t){return t[Sb]}var Gt=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Sa(e);for(;i&&Sa(i);)i=Sa(i);return i||null}};var xh=!1,Ab=new V("",{providedIn:"root",factory:()=>xh});var ln={};function Ce(t){Nh(Pe(),ee(),kn()+t,!1)}function Nh(t,e,i,n){if(!n)if((e[U]&3)===3){let s=t.preOrderCheckHooks;s!==null&&gs(e,s,i)}else{let s=t.preOrderHooks;s!==null&&vs(e,s,0,i)}Cn(i)}function A(t,e=Y.Default){let i=ee();if(i===null)return F(t,e);let n=tt();return nh(n,i,Ge(t),e)}function xb(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;nBe&&Nh(t,e,Be,!1),kt(o?2:0,r),i(n,r)}finally{Cn(s),kt(o?3:1,r)}}function kh(t,e,i){if(Tf(e)){let n=Fe(null);try{let r=e.directiveStart,s=e.directiveEnd;for(let o=r;onull;function Pb(t,e,i,n){let r=Wh(e);r.push(i),t.firstCreatePass&&Gh(t).push(n,r.length-1)}function Lb(t,e,i,n,r,s){let o=e?e.injectorIndex:-1,a=0;return Pf()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Qd(t,e,i,n){for(let r in t)if(t.hasOwnProperty(r)){i=i===null?{}:i;let s=t[r];n===null?Yd(i,e,r,s):n.hasOwnProperty(r)&&Yd(i,e,n[r],s)}return i}function Yd(t,e,i,n){t.hasOwnProperty(i)?t[i].push(e,n):t[i]=[e,n]}function Vb(t,e,i){let n=e.directiveStart,r=e.directiveEnd,s=t.data,o=e.attrs,a=[],c=null,l=null;for(let u=n;u0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function $b(t,e,i,n){let r=i.directiveStart,s=i.directiveEnd;zs(i)&&Yb(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Ss(i,e),Sn(n,e);let o=i.initialInputs;for(let a=r;a-1&&(er(e,n),As(i,n))}this._attachedToViewContainer=!1}Ys(this._lView[$],this._lView)}onDestroy(e){G_(this._lView,e)}markForCheck(){el(this._cdRefInjectingView||this._lView)}detach(){this._lView[U]&=-129}reattach(){kf(this._lView),this._lView[U]|=128}detectChanges(){iw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Yy(this._lView[$],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=e}},it=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=cw;let t=e;return t})();function cw(t){return lw(tt(),ee(),(t&16)===16)}function lw(t,e,i){if(zs(t)&&!i){let n=an(t.index,e);return new Nn(n,n)}else if(t.type&47){let n=e[mt];return new Nn(n,e)}return null}var Zd=new Set;function to(t){Zd.has(t)||(Zd.add(t),performance?.mark?.("mark_use_counter",{detail:{feature:t}}))}var nc=class extends ce{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,i,n){let r=e,s=i||(()=>null),o=n;if(e&&typeof e=="object"){let c=e;r=c.next?.bind(c),s=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(s=Aa(s),r&&(r=Aa(r)),o&&(o=Aa(o)));let a=super.subscribe({next:r,error:s,complete:o});return e instanceof De&&e.add(a),a}};function Aa(t){return e=>{setTimeout(t,void 0,e)}}var J=nc;function Xd(...t){}function uw(){let t=typeof Wi.requestAnimationFrame=="function",e=Wi[t?"requestAnimationFrame":"setTimeout"],i=Wi[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}var ne=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=uw().nativeRequestAnimationFrame,hw(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new O(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,dw,Xd,Xd);try{return s.runTask(o,i,n)}finally{s.cancelTask(o)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},dw={};function tl(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function fw(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Wi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ic(t),t.isCheckStableRunning=!0,tl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ic(t))}function hw(t){let e=()=>{fw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,a)=>{if(pw(a))return i.invokeTask(r,s,o,a);try{return Jd(t),i.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),ef(t)}},onInvoke:(i,n,r,s,o,a,c)=>{try{return Jd(t),i.invoke(r,s,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),ef(t)}},onHasTask:(i,n,r,s)=>{i.hasTask(r,s),n===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ic(t),tl(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,n,r,s)=>(i.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ic(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Jd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ef(t){t._nesting--,tl(t)}var Jh=new V("",{providedIn:"root",factory:ep});function ep(){let t=pe(ne),e=!0,i=new se(r=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(e),r.complete()})}),n=new se(r=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,r.next(!0))})})});let o=t.onUnstable.subscribe(()=>{ne.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{s.unsubscribe(),o.unsubscribe()}});return Bi(i,n.pipe(Jn()))}function pw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var mw=(()=>{let e=class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=Q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function gw(t,e){let i=an(e,t),n=i[$];vw(n,i);let r=i[Kt];r!==null&&i[Yi]===null&&(i[Yi]=Yc(r,i[ci])),nl(n,i,i[je])}function vw(t,e){for(let i=e.length;i0&&Th(t,i,s.join(" "))}}function Cw(t,e,i){let n=t.projection=[];for(let r=0;r=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Qi(r.hostAttrs,i=Qi(i,r.hostAttrs))}}function ps(t){return t===oi?{}:t===Je?[]:t}function Aw(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function xw(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,s)=>{e(n,r,s),i(n,r,s)}:t.contentQueries=e}function Nw(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function Fn(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[2]&&(i[n]=r[2])}t.inputTransforms=i}function un(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function at(t,e,i,n){let r=ee(),s=gi();if(un(r,s,e)){let o=Pe(),a=Fc();Zb(a,r,t,e,i,n)}return at}function Ow(t,e,i,n){return un(t,gi(),i)?e+Mc(i)+n:ln}function ms(t,e){return t<<17|e<<2}function On(t){return t>>17&32767}function Rw(t){return(t&2)==2}function kw(t,e){return t&131071|e<<17}function cc(t){return t|2}function hi(t){return(t&131068)>>2}function xa(t,e){return t&-131069|e<<2}function Fw(t){return(t&1)===1}function lc(t){return t|1}function Pw(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,a=On(o),c=hi(o);t[n]=i;let l=!1,u;if(Array.isArray(i)){let h=i;u=h[1],(u===null||or(h,u)>0)&&(l=!0)}else u=i;if(r)if(c!==0){let p=On(t[a+1]);t[n+1]=ms(p,a),p!==0&&(t[p+1]=xa(t[p+1],n)),t[a+1]=kw(t[a+1],n)}else t[n+1]=ms(a,0),a!==0&&(t[a+1]=xa(t[a+1],n)),a=n;else t[n+1]=ms(c,0),a===0?a=n:t[c+1]=xa(t[c+1],n),c=n;l&&(t[n+1]=cc(t[n+1])),nf(t,u,n,!0,s),nf(t,u,n,!1,s),Lw(e,u,t,n,s),o=ms(a,c),s?e.classBindings=o:e.styleBindings=o}function Lw(t,e,i,n,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof e=="string"&&or(s,e)>=0&&(i[n+1]=lc(i[n+1]))}function nf(t,e,i,n,r){let s=t[i+1],o=e===null,a=n?On(s):hi(s),c=!1;for(;a!==0&&(c===!1||o);){let l=t[a],u=t[a+1];Vw(l,e)&&(c=!0,t[a+1]=n?lc(u):cc(u)),a=n?On(u):hi(u)}c&&(t[i+1]=n?cc(s):lc(s))}function Vw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?or(t,e)>=0:!1}var It={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jw(t){return t.substring(It.key,It.keyEnd)}function Bw(t){return Uw(t),tp(t,np(t,0,It.textEnd))}function tp(t,e){let i=It.textEnd;return i===e?-1:(e=It.keyEnd=Hw(t,It.key=e,i),np(t,e,i))}function Uw(t){It.key=0,It.keyEnd=0,It.value=0,It.valueEnd=0,It.textEnd=t.length}function np(t,e,i){for(;e32;)e++;return e}function xe(t,e,i){let n=ee(),r=gi();if(un(n,r,e)){let s=Pe(),o=Fc();Vh(s,o,n,t,e,n[Ie],i,!1)}return xe}function uc(t,e,i,n,r){let s=e.inputs,o=r?"class":"style";Jc(t,i,s[o],o,n)}function dr(t,e,i){return ip(t,e,i,!1),dr}function He(t,e){return ip(t,e,null,!0),He}function no(t){zw(Yw,$w,t,!0)}function $w(t,e){for(let i=Bw(e);i>=0;i=tp(e,i))Uc(t,jw(e),!0)}function ip(t,e,i,n){let r=ee(),s=Pe(),o=Bf(2);if(s.firstUpdatePass&&sp(s,t,o,n),e!==ln&&un(r,o,e)){let a=s.data[kn()];op(s,a,r,r[Ie],t,r[o+1]=Xw(e,i),n,o)}}function zw(t,e,i,n){let r=Pe(),s=Bf(2);r.firstUpdatePass&&sp(r,null,s,n);let o=ee();if(i!==ln&&un(o,s,i)){let a=r.data[kn()];if(ap(a,n)&&!rp(r,s)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(i=La(c,i||"")),uc(r,a,o,i,n)}else Zw(r,a,o,o[Ie],o[s+1],o[s+1]=Qw(t,e,i),n,s)}}function rp(t,e){return e>=t.expandoStartIndex}function sp(t,e,i,n){let r=t.data;if(r[i+1]===null){let s=r[kn()],o=rp(t,i);ap(s,n)&&e===null&&!o&&(e=!1),e=Ww(r,s,e,n),Pw(r,s,e,i,o,n)}}function Ww(t,e,i,n){let r=ry(t),s=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Na(null,t,e,i,n),i=tr(i,e.attrs,n),s=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==r)if(i=Na(r,t,e,i,n),s===null){let c=Gw(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Na(null,t,e,c[1],n),c=tr(c,e.attrs,n),qw(t,e,n,c))}else s=Kw(t,e,n)}return s!==void 0&&(n?e.residualClasses=s:e.residualStyles=s),i}function Gw(t,e,i){let n=i?e.classBindings:e.styleBindings;if(hi(n)!==0)return t[On(n)]}function qw(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[On(r)]=n}function Kw(t,e,i){let n,r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0;){let c=t[r],l=Array.isArray(c),u=l?c[1]:c,h=u===null,p=i[r+1];p===ln&&(p=h?Je:void 0);let _=h?Ia(p,n):u===n?p:void 0;if(l&&!Ps(_)&&(_=Ia(c,n)),Ps(_)&&(a=_,o))return a;let b=t[r+1];r=o?On(b):hi(b)}if(e!==null){let c=s?e.residualClasses:e.residualStyles;c!=null&&(a=Ia(c,n))}return a}function Ps(t){return t!==void 0}function Xw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=st(Zs(t)))),t}function ap(t,e){return(t.flags&(e?8:16))!==0}var cN=new RegExp(`^(\\d+)*(${hb}|${fb})*(.*)`);var Jw=(t,e)=>null;function nr(t,e){return Jw(t,e)}var dc=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),s=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,s),this.attach(r,o)}else this.attach(n,s)}move(e,i){this.attach(i,this.detach(e))}};function Oa(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function eD(t,e,i){let n,r,s=0,o=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;s<=o&&s<=a;){let c=t.at(s),l=e[s],u=Oa(s,c,s,l,i);if(u!==0){u<0&&t.updateValue(s,l),s++;continue}let h=t.at(o),p=e[a],_=Oa(o,h,a,p,i);if(_!==0){_<0&&t.updateValue(o,p),o--,a--;continue}let b=i(s,c),D=i(o,h),N=i(s,l);if(Object.is(N,D)){let S=i(a,p);Object.is(S,b)?(t.swap(s,o),t.updateValue(o,p),a--,o--):t.move(o,s),t.updateValue(s,l),s++;continue}if(n??=new Ls,r??=of(t,s,o,i),fc(t,n,s,N))t.updateValue(s,l),s++,o++;else if(r.has(N))n.set(b,t.detach(s)),o--;else{let S=t.create(s,e[s]);t.attach(s,S),s++,o++}}for(;s<=a;)sf(t,n,i,s,e[s]),s++}else if(e!=null){let a=e[Symbol.iterator](),c=a.next();for(;!c.done&&s<=o;){let l=t.at(s),u=c.value,h=Oa(s,l,s,u,i);if(h!==0)h<0&&t.updateValue(s,u),s++,c=a.next();else{n??=new Ls,r??=of(t,s,o,i);let p=i(s,u);if(fc(t,n,s,p))t.updateValue(s,u),s++,o++,c=a.next();else if(!r.has(p))t.attach(s,t.create(s,u)),s++,o++,c=a.next();else{let _=i(s,l);n.set(_,t.detach(s)),o--}}}for(;!c.done;)sf(t,n,i,t.length,c.value),c=a.next()}for(;s<=o;)t.destroy(t.detach(o--));n?.forEach(a=>{t.destroy(a)})}function fc(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function sf(t,e,i,n,r){if(fc(t,e,n,i(n,r)))t.updateValue(n,r);else{let s=t.create(n,r);t.attach(n,s)}}function of(t,e,i,n){let r=new Set;for(let s=e;s<=i;s++)r.add(n(s,t.at(s)));return r}var Ls=class{constructor(){this.map=new Map}has(e){let i=this.map.get(e);return i!==void 0&&i.length>0}delete(e){let i=this.map.get(e);return i!==void 0?(i.shift(),!0):!1}get(e){let i=this.map.get(e);return i!==void 0&&i.length>0?i[0]:void 0}set(e,i){if(!this.map.has(e)){this.map.set(e,[i]);return}this.map.get(e)?.push(i)}forEach(e){for(let[i,n]of this.map)for(let r of n)e(r,i)}};function io(t,e,i,n){let r=e.tView,o=t[U]&4096?4096:16,a=Js(t,r,i,o,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),c=t[e.index];a[rr]=c;let l=t[Pt];return l!==null&&(a[Pt]=l.createEmbeddedView(r)),nl(r,a,i),a}function cp(t,e){let i=Ue+e;if(i{let e=class e{};e.__NG_ELEMENT_ID__=tD;let t=e;return t})();function tD(){let t=tt();return dp(t,ee())}var nD=Pn,up=class extends nD{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return yi(this._hostTNode,this._hostLView)}get injector(){return new Dn(this._hostTNode,this._hostLView)}get parentInjector(){let e=jc(this._hostTNode,this._hostLView);if(Yf(e)){let i=Ts(e,this._hostLView),n=Ms(e),r=i[$].data[n+8];return new Dn(r,i)}else return new Dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=af(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(e,i,n){let r,s;typeof n=="number"?r=n:n!=null&&(r=n.index,s=n.injector);let o=nr(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},s,o);return this.insertImpl(a,r,ir(this._hostTNode,o)),a}createComponent(e,i,n,r,s){let o=e&&!Dy(e),a;if(o)a=i;else{let b=i||{};a=b.index,n=b.injector,r=b.projectableNodes,s=b.environmentInjector||b.ngModuleRef}let c=o?e:new Fs(ai(e)),l=n||this.parentInjector;if(!s&&c.ngModule==null){let D=(o?l:this.parentInjector).get(rn,null);D&&(s=D)}let u=ai(c.componentType??{}),h=nr(this._lContainer,u?.id??null),p=h?.firstChild??null,_=c.create(l,r,p,s);return this.insertImpl(_.hostView,a,ir(this._hostTNode,h)),_}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if($_(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=r[Ae],l=new up(c,c[ot],c[Ae]);l.detach(l.indexOf(e))}}let s=this._adjustIndex(i),o=this._lContainer;return ro(o,r,s,n),e.attachToViewContainerRef(),sh(Ra(o),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=af(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=er(this._lContainer,i);n&&(As(Ra(this._lContainer),i),Ys(n[$],n))}detach(e){let i=this._adjustIndex(e,-1),n=er(this._lContainer,i);return n&&As(Ra(this._lContainer),i)!=null?new Nn(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function af(t){return t[Is]}function Ra(t){return t[Is]||(t[Is]=[])}function dp(t,e){let i,n=e[t.index];return Mt(n)?i=n:(i=$h(n,e,null,t),e[t.index]=i,eo(e,i)),rD(i,e,t,n),new up(i,t,e)}function iD(t,e){let i=t[Ie],n=i.createComment(""),r=gt(e,t),s=qc(i,r);return Os(i,s,n,rb(i,r),!1),n}var rD=aD,sD=(t,e,i)=>!1;function oD(t,e,i){return sD(t,e,i)}function aD(t,e,i,n){if(t[In])return;let r;i.type&8?r=Vt(n):r=iD(e,i),t[In]=r}function cD(t,e,i,n,r,s,o,a,c){let l=e.consts,u=ur(e,t,4,o||null,Cs(l,a));jh(e,i,u,Cs(l,c)),Vc(e,u);let h=u.tView=Xc(2,u,n,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}function et(t,e,i,n,r,s,o,a){let c=ee(),l=Pe(),u=t+Be,h=l.firstCreatePass?cD(u,l,c,e,i,n,r,s,o):l.data[u];sr(h,!1);let p=lD(l,c,h,t);Pc()&&Kc(l,c,p,h),Sn(p,c);let _=$h(p,c,p,h);return c[u]=_,eo(c,_),oD(_,h,c),Ac(h)&&Fh(l,c,h),o!=null&&Ph(c,h,a),et}var lD=uD;function uD(t,e,i,n){return Lc(!0),e[Ie].createComment("")}function jt(t,e,i){to("NgControlFlow");let n=ee(),r=gi(),s=gc(n,Be+t),o=0;if(un(n,r,e)){let a=Fe(null);try{if(lp(s,o),e!==-1){let c=vc(n[$],e),l=nr(s,c.tView.ssrId),u=io(n,c,i,{dehydratedView:l});ro(s,u,o,ir(c,l))}}finally{Fe(a)}}else{let a=cp(s,o);a!==void 0&&(a[je]=i)}}var hc=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-Ue}};function fp(t,e){return e}var pc=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function hp(t,e,i,n,r,s,o,a,c,l,u){to("NgControlFlow");let h=c!==void 0,p=ee(),_=a?o.bind(p[mt][je]):o,b=new pc(h,_);p[Be+t]=b,et(t+1,e,i,n,r,s),h&&et(t+2,c,l,u)}var mc=class extends dc{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ue}at(e){return this.getLView(e)[je].$implicit}attach(e,i){let n=i[Yi];this.needsIndexUpdate||=e!==this.length,ro(this.lContainer,i,e,ir(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,dD(this.lContainer,e)}create(e,i){let n=nr(this.lContainer,this.templateTNode.tView.ssrId);return io(this.hostLView,this.templateTNode,new hc(this.lContainer,i,e),{dehydratedView:n})}destroy(e){Ys(e[$],e)}updateValue(e,i){this.getLView(e)[je].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Lc(!0),bh(n,r,ay()));function so(t,e,i){let n=ee(),r=gi();if(un(n,r,e)){let s=Pe(),o=Fc();Vh(s,o,n,t,e,n[Ie],i,!0)}return so}var Vs="en-US";var mD=Vs;function gD(t){o_(t,"Expected localeId to be defined"),typeof t=="string"&&(mD=t.toLowerCase().replace(/_/g,"-"))}function fr(t){return!!t&&typeof t.then=="function"}function mp(t){return!!t&&typeof t.subscribe=="function"}function $e(t,e,i,n){let r=ee(),s=Pe(),o=tt();return _D(s,r,r[Ie],o,t,e,n),$e}function vD(t,e,i,n){let r=t.cleanup;if(r!=null)for(let s=0;sc?a[c]:null}typeof o=="string"&&(s+=2)}return null}function _D(t,e,i,n,r,s,o){let a=Ac(n),l=t.firstCreatePass&&Gh(t),u=e[je],h=Wh(e),p=!0;if(n.type&3||o){let D=gt(n,e),N=o?o(D):D,S=h.length,H=o?X=>o(Vt(X[n.index])):n.index,B=null;if(!o&&a&&(B=vD(t,e,r,n.index)),B!==null){let X=B.__ngLastListenerFn__||B;X.__ngNextListenerFn__=s,B.__ngLastListenerFn__=s,p=!1}else{s=lf(n,e,u,s,!1);let X=i.listen(N,r,s);h.push(s,X),l&&l.push(r,H,S,S+1)}}else s=lf(n,e,u,s,!1);let _=n.outputs,b;if(p&&_!==null&&(b=_[r])){let D=b.length;if(D)for(let N=0;N-1?an(t.index,e):e;el(a);let c=cf(e,i,n,o),l=s.__ngNextListenerFn__;for(;l;)c=cf(e,i,l,o)&&c,l=l.__ngNextListenerFn__;return r&&c===!1&&o.preventDefault(),c}}function Qt(t=1){return oy(t)}function yD(t,e){let i=null,n=C_(t);for(let r=0;r(Lc(!0),Gy(e[Ie],n));function il(t){return rl("",t,""),il}function rl(t,e,i){let n=ee(),r=Ow(n,t,e,i);return r!==ln&&tw(n,kn(),r),rl}function wD(t,e,i){let n=Pe();if(n.firstCreatePass){let r=nn(t);_c(i,n.data,n.blueprint,r,!0),_c(e,n.data,n.blueprint,r,!1)}}function _c(t,e,i,n,r){if(t=Ge(t),Array.isArray(t))for(let s=0;s>20;if(fi(t)||!t.multi){let _=new Mn(l,r,A),b=Fa(c,e,r?u:u+p,h);b===-1?(za(Ss(a,o),s,c),ka(s,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(_),o.push(_)):(i[b]=_,o[b]=_)}else{let _=Fa(c,e,u+p,h),b=Fa(c,e,u,u+p),D=_>=0&&i[_],N=b>=0&&i[b];if(r&&!N||!r&&!D){za(Ss(a,o),s,c);let S=ID(r?ED:DD,i.length,r,n,l);!r&&N&&(i[b].providerFactory=S),ka(s,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(S),o.push(S)}else{let S=vp(i[r?b:_],l,!r&&n);ka(s,t,_>-1?_:b,S)}!r&&n&&N&&i[b].componentProviders++}}}function ka(t,e,i,n){let r=fi(e),s=Ny(e);if(r||s){let c=(s?Ge(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=l.indexOf(i);u===-1?l.push(i,[n,c]):l[u+1].push(n,c)}else l.push(i,c)}}}function vp(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Fa(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>wD(n,r?r(t):t,e)}}var pi=class{};var js=class extends pi{constructor(e){super(),this.componentFactoryResolver=new sc(this),this.instance=null;let i=new Ns([...e.providers,{provide:pi,useValue:this},{provide:lr,useValue:this.componentFactoryResolver}],e.parent||$c(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function CD(t,e,i=null){return new js({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var MD=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=uh(!1,n.type),s=r.length>0?CD([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=Q({token:e,providedIn:"environment",factory:()=>new e(F(rn))});let t=e;return t})();function _p(t){to("NgStandalone"),t.getStandaloneInjector=e=>e.get(MD).getOrCreateStandaloneInjector(t)}function TD(){return this._results[Symbol.iterator]()}var sn=class t{get changes(){return this._changes||(this._changes=new J)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=TD)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=Iy(e);(this._changesDetected=!Ey(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},Rn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=xD;let t=e;return t})(),SD=Rn,AD=class extends SD{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=io(this._declarationLView,this._declarationTContainer,e,{injector:i,dehydratedView:n});return new Nn(r)}};function xD(){return sl(tt(),ee())}function sl(t,e){return t.type&4?new AD(e,t,yi(t,e)):null}var bc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},wc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let s=0;s0)n.push(o[a/2]);else{let l=s[a+1],u=e[-c];for(let h=Ue;h{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=pe(LD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let s of this.appInits){let o=s();if(fr(o))n.push(o);else if(mp(o)){let a=new Promise((c,l)=>{o.subscribe({complete:c,error:l})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function VD(){return typeof $localize<"u"&&$localize.locale||Vs}var oo=new V("LocaleId",{providedIn:"root",factory:()=>pe(oo,Y.Optional|Y.SkipSelf)||VD()});var jD=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new zt(!1)}add(){this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ip=new V("");var ws=null;var Cp=new V("PlatformDestroyListeners"),BD=new V("appBootstrapListener");function UD(){nd(()=>{throw new O(600,!1)})}function HD(t){return t.isBoundToModule}function $D(t=[]){if(ws)return ws;let e=WD(t);return ws=e,UD(),zD(e),e}function zD(t){t.get(zc,null)?.forEach(i=>i())}function Mp(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=$D(n),s=[ZD(),...i||[]],a=new js({providers:s,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(ne);return c.run(()=>{a.resolveInjectorInitializers();let l=a.get(Gt,null),u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:_=>{l.handleError(_)}})});let h=()=>a.destroy(),p=r.get(Cp);return p.add(h),a.onDestroy(()=>{u.unsubscribe(),p.delete(h)}),qD(l,c,()=>{let _=a.get(Ep);return _.runInitializers(),_.donePromise.then(()=>{let b=a.get(oo,Vs);gD(b||Vs);let D=a.get(hr);return e!==void 0&&D.bootstrap(e),D})})})}catch(e){return Promise.reject(e)}}function WD(t=[],e){return _i.create({name:e,providers:[{provide:Ks,useValue:"platform"},{provide:Cp,useValue:new Set([()=>ws=null])},...t]})}function GD(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function qD(t,e,i){try{let n=i();return fr(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var hr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=pe(Tp),this.zoneIsStable=pe(Jh),this.componentTypes=[],this.components=[],this.isStable=pe(jD).hasPendingTasks.pipe(ya(n=>n?ji(!1):this.zoneIsStable),wn(),Jn()),this._injector=pe(rn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let s=n instanceof Rs;if(!this._injector.get(Ep).done){let b="Cannot bootstrap as there are still asynchronous initializers running."+(!s&&k_(n)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new O(405,!1)}let a;s?a=n:a=this._injector.get(lr).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=HD(a)?void 0:this._injector.get(pi),l=r||a.selector,u=a.create(_i.NULL,[],l,c),h=u.location.nativeElement,p=u.injector.get(Ip,null);return p?.registerApplication(h),u.onDestroy(()=>{this.detachView(u.hostView),Pa(this.components,u),p?.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Pa(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(BD,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Pa(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pa(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var Tp=new V("",{providedIn:"root",factory:()=>pe(Gt).handleError.bind(void 0)});function KD(){let t=pe(ne),e=pe(Gt);return i=>t.runOutsideAngular(()=>e.handleError(i))}var QD=(()=>{let e=class e{constructor(){this.zone=pe(ne),this.applicationRef=pe(hr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function YD(t){return[{provide:ne,useFactory:t},{provide:qs,multi:!0,useFactory:()=>{let e=pe(QD,{optional:!0});return()=>e.initialize()}},{provide:Tp,useFactory:KD},{provide:Jh,useFactory:ep}]}function ZD(t){let e=YD(()=>new ne(GD(t)));return lh([[],e])}function Ye(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ol(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var al=null;function wi(){return al}function Sp(t){al||(al=t)}var ao=class{},ye=new V("DocumentToken");function Ap(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var cl="browser",XD="server";function xp(t){return t===cl}function ll(t){return t===XD}var co=class{};var fl=class extends ao{constructor(){super(...arguments),this.supportsDOMEvents=!0}},hl=class t extends fl{static makeCurrent(){Sp(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=eE();return i==null?null:tE(i)}resetBaseElement(){pr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ap(document.cookie,e)}},pr=null;function eE(){return pr=pr||document.querySelector("base"),pr?pr.getAttribute("href"):null}var lo;function tE(t){lo=lo||document.createElement("a"),lo.setAttribute("href",t);let e=lo.pathname;return e.charAt(0)==="/"?e:`/${e}`}var nE=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),pl=new V("EventManagerPlugins"),Rp=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new O(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(F(pl),F(ne))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),uo=class{constructor(e){this._doc=e}},ul="ng-app-id",kp=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ll(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${ul}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(ul),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(ul,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(F(ye),F(Qs),F(ar,8),F(cn))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),dl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gl=/%COMP%/g,Fp="%COMP%",iE=`_nghost-${Fp}`,rE=`_ngcontent-${Fp}`,sE=!0,oE=new V("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>sE});function aE(t){return rE.replace(gl,t)}function cE(t){return iE.replace(gl,t)}function Pp(t,e){return e.map(i=>i.replace(gl,t))}var fo=(()=>{let e=class e{constructor(n,r,s,o,a,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=ll(c),this.defaultRenderer=new mr(n,a,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Lt.ShadowDom&&(r=We(Z({},r),{encapsulation:Lt.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof ho?s.applyToHost(n):s instanceof gr&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(r.encapsulation){case Lt.Emulated:o=new ho(l,u,r,this.appId,h,a,c,p);break;case Lt.ShadowDom:return new ml(l,u,n,r,a,c,this.nonce,p);default:o=new gr(l,u,r,h,a,c,p);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(F(Rp),F(kp),F(Qs),F(oE),F(ye),F(cn),F(ne),F(ar))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),mr=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(dl[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Np(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Np(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new O(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=dl[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=dl[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Wt.DashCase|Wt.Important)?e.style.setProperty(i,n,r&Wt.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Wt.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=wi().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function Np(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ml=class extends mr{constructor(e,i,n,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Pp(r.id,r.styles);for(let u of l){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=u,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},gr=class extends mr{constructor(e,i,n,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?Pp(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ho=class extends gr{constructor(e,i,n,r,s,o,a,c){let l=r+"-"+n.id;super(e,i,n,s,o,a,c,l),this.contentAttr=aE(l),this.hostAttr=cE(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},lE=(()=>{let e=class e extends uo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(F(ye))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),Op=["alt","control","meta","shift"],uE={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dE={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},fE=(()=>{let e=class e extends uo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wi().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),Op.forEach(u=>{let h=r.indexOf(u);h>-1&&(r.splice(h,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=s,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let s=uE[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Op.forEach(a=>{if(a!==s){let c=dE[a];c(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(F(ye))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})();function Lp(t,e){return Mp(Z({rootComponent:t},hE(e)))}function hE(t){return{appProviders:[..._E,...t?.providers??[]],platformProviders:vE}}function pE(){hl.makeCurrent()}function mE(){return new Gt}function gE(){return ph(document),document}var vE=[{provide:cn,useValue:cl},{provide:zc,useValue:pE,multi:!0},{provide:ye,useFactory:gE,deps:[]}];var _E=[{provide:Ks,useValue:"root"},{provide:Gt,useFactory:mE,deps:[]},{provide:pl,useClass:lE,multi:!0,deps:[ye,ne,cn]},{provide:pl,useClass:fE,multi:!0,deps:[ye]},fo,kp,Rp,{provide:An,useExisting:fo},{provide:co,useClass:nE,deps:[]},[]];var Bt="*";function vl(t,e){return{type:7,name:t,definitions:e,options:{}}}function _l(t,e=null){return{type:4,styles:e,timings:t}}function Vp(t,e=null){return{type:2,steps:t,options:e}}function hn(t){return{type:6,styles:t,offset:null}}function _r(t,e,i){return{type:0,name:t,styles:e,options:i}}function yl(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}var fn=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},vr=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},po="!";function jp(t){return new O(3e3,!1)}function yE(){return new O(3100,!1)}function bE(){return new O(3101,!1)}function wE(t){return new O(3001,!1)}function DE(t){return new O(3003,!1)}function EE(t){return new O(3004,!1)}function IE(t,e){return new O(3005,!1)}function CE(){return new O(3006,!1)}function ME(){return new O(3007,!1)}function TE(t,e){return new O(3008,!1)}function SE(t){return new O(3002,!1)}function AE(t,e,i,n,r){return new O(3010,!1)}function xE(){return new O(3011,!1)}function NE(){return new O(3012,!1)}function OE(){return new O(3200,!1)}function RE(){return new O(3202,!1)}function kE(){return new O(3013,!1)}function FE(t){return new O(3014,!1)}function PE(t){return new O(3015,!1)}function LE(t){return new O(3016,!1)}function VE(t,e){return new O(3404,!1)}function jE(t){return new O(3502,!1)}function BE(t){return new O(3503,!1)}function UE(){return new O(3300,!1)}function HE(t){return new O(3504,!1)}function $E(t){return new O(3301,!1)}function zE(t,e){return new O(3302,!1)}function WE(t){return new O(3303,!1)}function GE(t,e){return new O(3400,!1)}function qE(t){return new O(3401,!1)}function KE(t){return new O(3402,!1)}function QE(t,e){return new O(3505,!1)}function pn(t){switch(t.length){case 0:return new fn;case 1:return t[0];default:return new vr(t)}}function Jp(t,e,i=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==o,h=u&&a||new Map;c.forEach((p,_)=>{let b=_,D=p;if(_!=="offset")switch(b=t.normalizePropertyName(b,r),D){case po:D=i.get(_);break;case Bt:D=n.get(_);break;default:D=t.normalizeStyleValue(_,b,D,r);break}h.set(b,D)}),u||s.push(h),a=h,o=l}),r.length)throw jE(r);return s}function Ul(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&bl(i,"start",t)));break;case"done":t.onDone(()=>n(i&&bl(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&bl(i,"destroy",t)));break}}function bl(t,e,i){let n=i.totalTime,r=!!i.disabled,s=Hl(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),o=t._data;return o!=null&&(s._data=o),s}function Hl(t,e,i,n,r="",s=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function lt(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function Bp(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}var YE=(()=>typeof document>"u"?null:document.documentElement)();function $l(t){let e=t.parentNode||t.host||null;return e===YE?null:e}function ZE(t){return t.substring(1,6)=="ebkit"}var Vn=null,Up=!1;function XE(t){Vn||(Vn=JE()||{},Up=Vn.style?"WebkitAppearance"in Vn.style:!1);let e=!0;return Vn.style&&!ZE(t)&&(e=t in Vn.style,!e&&Up&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Vn.style)),e}function JE(){return typeof document<"u"?document.body:null}function em(t,e){for(;e;){if(e===t)return!0;e=$l(e)}return!1}function tm(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var zl=(()=>{let e=class e{validateStyleProperty(n){return XE(n)}matchesElement(n,r){return!1}containsElement(n,r){return em(n,r)}getParentElement(n){return $l(n)}query(n,r,s){return tm(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,a,c=[],l){return new fn(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),Cr=(()=>{let e=class e{};e.NOOP=new zl;let t=e;return t})(),Un=class{};var e0=1e3,nm="{{",t0="}}",im="ng-enter",Ml="ng-leave",mo="ng-trigger",bo=".ng-trigger",Hp="ng-animating",Tl=".ng-animating";function Yt(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Sl(parseFloat(e[1]),e[2])}function Sl(t,e){switch(e){case"s":return t*e0;default:return t}}function wo(t,e,i){return t.hasOwnProperty("duration")?t:n0(t,e,i)}function n0(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(jp(t)),{duration:0,delay:0,easing:""};r=Sl(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(s=Sl(parseFloat(c),a[4]));let l=a[5];l&&(o=l)}else r=t;if(!i){let a=!1,c=e.length;r<0&&(e.push(yE()),a=!0),s<0&&(e.push(bE()),a=!0),a&&e.splice(c,0,jp(t))}return{duration:r,delay:s,easing:o}}function Mr(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function rm(t){let e=new Map;return Object.keys(t).forEach(i=>{let n=t[i];e.set(i,n)}),e}function i0(t){return t.length?t[0]instanceof Map?t:t.map(e=>rm(e)):[]}function Ei(t,e=new Map,i){if(i)for(let[n,r]of i)e.set(n,r);for(let[n,r]of t)e.set(n,r);return e}function Ut(t,e,i){e.forEach((n,r)=>{let s=Wl(r);i&&!i.has(r)&&i.set(r,t.style[s]),t.style[s]=n})}function Bn(t,e){e.forEach((i,n)=>{let r=Wl(n);t.style[r]=""})}function yr(t){return Array.isArray(t)?t.length==1?t[0]:Vp(t):t}function r0(t,e,i){let n=e.params||{},r=sm(t);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||i.push(wE(s))})}var Al=new RegExp(`${nm}\\s*(.+?)\\s*${t0}`,"g");function sm(t){let e=[];if(typeof t=="string"){let i;for(;i=Al.exec(t);)e.push(i[1]);Al.lastIndex=0}return e}function wr(t,e,i){let n=t.toString(),r=n.replace(Al,(s,o)=>{let a=e[o];return a==null&&(i.push(DE(o)),a=""),a.toString()});return r==n?t:r}function Do(t){let e=[],i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}var s0=/-+([a-z0-9])/g;function Wl(t){return t.replace(s0,(...e)=>e[1].toUpperCase())}function o0(t,e){return t===0||e===0}function a0(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(a,om(t,a)))}}return e}function ct(t,e,i){switch(e.type){case 7:return t.visitTrigger(e,i);case 0:return t.visitState(e,i);case 1:return t.visitTransition(e,i);case 2:return t.visitSequence(e,i);case 3:return t.visitGroup(e,i);case 4:return t.visitAnimate(e,i);case 5:return t.visitKeyframes(e,i);case 6:return t.visitStyle(e,i);case 8:return t.visitReference(e,i);case 9:return t.visitAnimateChild(e,i);case 10:return t.visitAnimateRef(e,i);case 11:return t.visitQuery(e,i);case 12:return t.visitStagger(e,i);default:throw EE(e.type)}}function om(t,e){return window.getComputedStyle(t)[e]}var c0=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Eo=class extends Un{normalizePropertyName(e,i){return Wl(e)}normalizeStyleValue(e,i,n,r){let s="",o=n.toString().trim();if(c0.has(i)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(IE(e,n))}return o+s}};var Io="*";function l0(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>u0(n,i,e)):i.push(t),i}function u0(t,e,i){if(t[0]==":"){let c=d0(t,i);if(typeof c=="function"){e.push(c);return}t=c}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(PE(t)),e;let r=n[1],s=n[2],o=n[3];e.push($p(r,o));let a=r==Io&&o==Io;s[0]=="<"&&!a&&e.push($p(o,r))}function d0(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}var go=new Set(["true","1"]),vo=new Set(["false","0"]);function $p(t,e){let i=go.has(t)||vo.has(t),n=go.has(e)||vo.has(e);return(r,s)=>{let o=t==Io||t==r,a=e==Io||e==s;return!o&&i&&typeof r=="boolean"&&(o=r?go.has(t):vo.has(t)),!a&&n&&typeof s=="boolean"&&(a=s?go.has(e):vo.has(e)),o&&a}}var am=":self",f0=new RegExp(`s*${am}s*,?`,"g");function cm(t,e,i,n){return new xl(t).build(e,i,n)}var zp="",xl=class{constructor(e){this._driver=e}build(e,i,n){let r=new Nl(i);return this._resetContextStyleTimingState(r),ct(this,yr(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=zp,e.collectedStyles=new Map,e.collectedStyles.set(zp,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(CE()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==0){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,s.push(this.visitState(c,i))}),c.name=l}else if(a.type==1){let c=this.visitTransition(a,i);n+=c.queryCount,r+=c.depCount,o.push(c)}else i.errors.push(ME())}),{type:7,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};if(n.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{sm(c).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size){let a=Do(s.values());i.errors.push(TE(e.name,a))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=ct(this,yr(e.animation),i);return{type:1,matchers:l0(e.expr,i.errors),animation:n,queryCount:i.queryCount,depCount:i.depCount,options:jn(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(n=>ct(this,n,i)),options:jn(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,s=e.steps.map(o=>{i.currentTime=n;let a=ct(this,o,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:3,steps:s,options:jn(e.options)}}visitAnimate(e,i){let n=g0(e.timings,i.errors);i.currentAnimateTimings=n;let r,s=e.styles?e.styles:hn({});if(s.type==5)r=this.visitKeyframes(s,i);else{let o=e.styles,a=!1;if(!o){a=!0;let l={};n.easing&&(l.easing=n.easing),o=hn(l)}i.currentTime+=n.duration+n.delay;let c=this.visitStyle(o,i);c.isEmptyStep=a,r=c}return i.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===Bt?n.push(a):i.errors.push(SE(a)):n.push(rm(a));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let c of a.values())if(c.toString().indexOf(nm)>=0){s=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,s=i.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,c)=>{let l=i.collectedStyles.get(i.currentQuerySelector),u=l.get(c),h=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(i.errors.push(AE(c,u.startTime,u.endTime,s,r)),h=!1),s=u.startTime),h&&l.set(c,{startTime:s,endTime:r}),i.options&&r0(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(xE()),n;let r=1,s=0,o=[],a=!1,c=!1,l=0,u=e.steps.map(S=>{let H=this._makeStyleAst(S,i),B=H.offset!=null?H.offset:m0(H.styles),X=0;return B!=null&&(s++,X=H.offset=B),c=c||X<0||X>1,a=a||X0&&s{let B=p>0?H==_?1:p*H:o[H],X=B*N;i.currentTime=b+D.delay+X,D.duration=X,this._validateStyleAst(S,i),S.offset=B,n.styles.push(S)}),n}visitReference(e,i){return{type:8,animation:ct(this,yr(e.animation),i),options:jn(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:jn(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:jn(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[s,o]=h0(e.selector);i.currentQuerySelector=n.length?n+" "+s:s,lt(i.collectedStyles,i.currentQuerySelector,new Map);let a=ct(this,yr(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:jn(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(kE());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:wo(e.timings,i.errors,!0);return{type:12,animation:ct(this,yr(e.animation),i),timings:n,options:null}}};function h0(t){let e=!!t.split(/\s*,\s*/).find(i=>i==am);return e&&(t=t.replace(f0,"")),t=t.replace(/@\*/g,bo).replace(/@\w+/g,i=>bo+"-"+i.slice(1)).replace(/:animating/g,Tl),[t,e]}function p0(t){return t?Mr(t):null}var Nl=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function m0(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function g0(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let s=wo(t,e).duration;return wl(s,0,"")}let i=t;if(i.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=wl(0,0,"");return s.dynamic=!0,s.strValue=i,s}let r=wo(i,e);return wl(r.duration,r.delay,r.easing)}function jn(t){return t?(t=Mr(t),t.params&&(t.params=p0(t.params))):t={},t}function wl(t,e,i){return{duration:t,delay:e,easing:i}}function Gl(t,e,i,n,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var Dr=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},v0=1,_0=":enter",y0=new RegExp(_0,"g"),b0=":leave",w0=new RegExp(b0,"g");function lm(t,e,i,n,r,s=new Map,o=new Map,a,c,l=[]){return new Ol().buildKeyframes(t,e,i,n,r,s,o,a,c,l)}var Ol=class{buildKeyframes(e,i,n,r,s,o,a,c,l,u=[]){l=l||new Dr;let h=new Rl(e,i,l,r,s,u,[]);h.options=c;let p=c.delay?Yt(c.delay):0;h.currentTimeline.delayNextStep(p),h.currentTimeline.setStyles([o],null,h.errors,c),ct(this,n,h);let _=h.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let D=_.length-1;D>=0;D--){let N=_[D];if(N.element===i){b=N;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,h.errors,c)}return _.length?_.map(b=>b.buildKeyframes()):[Gl(i,[],[],[],0,p,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),s=i.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Yt(wr(s,r?.params??{},i.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,i,n){let s=i.currentTimeline.currentTime,o=n.duration!=null?Yt(n.duration):null,a=n.delay!=null?Yt(n.delay):null;return o!==0&&e.forEach(c=>{let l=i.appendInstructionToTimeline(c,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(e,i){i.updateOptions(e.options,!0),ct(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,s=e.options;if(s&&(s.params||s.delay)&&(r=i.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==6&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Co);let o=Yt(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>ct(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,s=e.options&&e.options.delay?Yt(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);s&&a.delayNextStep(s),ct(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?wr(n,i.params,i.errors):n;return wo(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==5?this.visitKeyframes(s,i):(i.incrementTime(n.duration),this.visitStyle(s,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,s=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*s),a.setStyles(c.styles,c.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+s),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},s=r.delay?Yt(r.delay):0;s&&(i.previousNode.type===6||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Co);let o=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{i.currentQueryIndex=u;let h=i.createSubContext(e.options,l);s&&h.delayNextStep(s),l===i.element&&(c=h.currentTimeline),ct(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let p=h.currentTimeline.currentTime;o=Math.max(o,p)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),c&&(i.currentTimeline.mergeTimelineCollectedStyles(c),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(i.currentQueryTotal-1),c=o*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=n.currentStaggerTime;break}let u=i.currentTimeline;c&&u.delayNextStep(c);let h=u.currentTime;ct(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-h+(r.startTime-n.currentTimeline.startTime)}},Co={},Rl=class t{constructor(e,i,n,r,s,o,a,c){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Mo(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=Yt(n.duration)),n.delay!=null&&(r.delay=Yt(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=wr(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,s=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Co,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new kl(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(y0,"."+this._enterClassName),e=e.replace(w0,"."+this._leaveClassName);let c=n!=1,l=this._driver.query(this.element,e,c);n!==0&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!s&&a.length==0&&o.push(FE(i)),a}},Mo=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=v0,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Bt),this._currentKeyframe.set(i,Bt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let s=r&&r.params||{},o=D0(e,this._globalTimelineStyles);for(let[a,c]of o){let l=wr(c,s,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Bt),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=Ei(a,new Map,this._backFill);l.forEach((u,h)=>{u===po?e.add(h):u===Bt&&i.add(h)}),n||l.set("offset",c/this.duration),r.push(l)});let s=e.size?Do(e.values()):[],o=i.size?Do(i.values()):[];if(n){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return Gl(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},kl=class extends Mo{constructor(e,i,n,r,s,o,a=!1){super(e,i,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let s=[],o=n+i,a=i/o,c=Ei(e[0]);c.set("offset",0),s.push(c);let l=Ei(e[0]);l.set("offset",Wp(a)),s.push(l);let u=e.length-1;for(let h=1;h<=u;h++){let p=Ei(e[h]),_=p.get("offset"),b=i+_*n;p.set("offset",Wp(b/o)),s.push(p)}n=o,i=0,r="",e=s}return Gl(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};function Wp(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function D0(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n=n||e.keys();for(let s of n)i.set(s,Bt)}else Ei(r,i)}),i}function Gp(t,e,i,n,r,s,o,a,c,l,u,h,p){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:p}}var Dl={},To=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return E0(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,s,o,a,c,l,u){let h=[],p=this.ast.options&&this.ast.options.params||Dl,_=a&&a.params||Dl,b=this.buildStyles(n,_,h),D=c&&c.params||Dl,N=this.buildStyles(r,D,h),S=new Set,H=new Map,B=new Map,X=r==="void",be={params:I0(D,p),delay:this.ast.options?.delay},I=u?[]:lm(e,i,this.ast.animation,s,o,b,N,be,l,h),L=0;if(I.forEach(z=>{L=Math.max(z.duration+z.delay,L)}),h.length)return Gp(i,this._triggerName,n,r,X,b,N,[],[],H,B,L,h);I.forEach(z=>{let ie=z.element,Ve=lt(H,ie,new Set);z.preStyleProps.forEach(Me=>Ve.add(Me));let Ne=lt(B,ie,new Set);z.postStyleProps.forEach(Me=>Ne.add(Me)),ie!==i&&S.add(ie)});let j=Do(S.values());return Gp(i,this._triggerName,n,r,X,b,N,I,j,H,B,L)}};function E0(t,e,i,n,r){return t.some(s=>s(e,i,n,r))}function I0(t,e){let i=Mr(e);for(let n in t)t.hasOwnProperty(n)&&t[n]!=null&&(i[n]=t[n]);return i}var Fl=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=Mr(this.defaultParams);return Object.keys(e).forEach(s=>{let o=e[s];o!==null&&(r[s]=o)}),this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=wr(o,r,i));let c=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,c,o,i),n.set(a,o)})}),n}};function C0(t,e,i){return new Pl(t,e,i)}var Pl=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Fl(r.style,s,n))}),qp(this.states,"true","1"),qp(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new To(e,r,this.states))}),this.fallbackTransition=M0(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(o=>o.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};function M0(t,e,i){let s={type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0};return new To(t,s,e)}function qp(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}var T0=new Dr,Ll=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],s=cm(this._driver,i,n,r);if(n.length)throw BE(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,i,n){let r=e.element,s=Jp(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=lm(this._driver,i,s,im,Ml,new Map,new Map,n,T0,r),o.forEach(u=>{let h=lt(a,u.element,new Map);u.postStyleProps.forEach(p=>h.set(p,null))})):(r.push(UE()),o=[]),r.length)throw HE(r);a.forEach((u,h)=>{u.forEach((p,_)=>{u.set(_,this._driver.computeStyle(h,_,Bt))})});let c=o.map(u=>{let h=a.get(u.element);return this._buildPlayer(u,new Map,h)}),l=pn(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw $E(e);return i}listen(e,i,n,r){let s=Hl(i,"","","");return Ul(this._getPlayer(e),n,s,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,i,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},Kp="ng-animate-queued",S0=".ng-animate-queued",El="ng-animate-disabled",A0=".ng-animate-disabled",x0="ng-star-inserted",N0=".ng-star-inserted",O0=[],um={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},R0={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},At="__ng_removed",Er=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=F0(r),n){let s=Mr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},br="void",Il=new Er(br),Vl=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,_t(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw zE(n,i);if(n==null||n.length==0)throw WE(i);if(!P0(n))throw GE(n,i);let s=lt(this._elementListeners,e,[]),o={name:i,phase:n,callback:r};s.push(o);let a=lt(this._engine.statesByElement,e,new Map);return a.has(i)||(_t(e,mo),_t(e,mo+"-"+i),a.set(i,Il)),()=>{this._engine.afterFlush(()=>{let c=s.indexOf(o);c>=0&&s.splice(c,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw qE(e);return i}trigger(e,i,n,r=!0){let s=this._getTrigger(i),o=new Ir(this.id,i,e),a=this._engine.statesByElement.get(e);a||(_t(e,mo),_t(e,mo+"-"+i),this._engine.statesByElement.set(e,a=new Map));let c=a.get(i),l=new Er(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(i,l),c||(c=Il),!(l.value===br)&&c.value===l.value){if(!j0(c.params,l.params)){let D=[],N=s.matchStyles(c.value,c.params,D),S=s.matchStyles(l.value,l.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{Bn(e,N),Ut(e,S)})}return}let p=lt(this._engine.playersByElement,e,[]);p.forEach(D=>{D.namespaceId==this.id&&D.triggerName==i&&D.queued&&D.destroy()});let _=s.matchTransition(c.value,l.value,e,l.params),b=!1;if(!_){if(!r)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:_,fromState:c,toState:l,player:o,isFallbackTransition:b}),b||(_t(e,Kp),o.onStart(()=>{Di(e,Kp)})),o.onDone(()=>{let D=this.players.indexOf(o);D>=0&&this.players.splice(D,1);let N=this._engine.playersByElement.get(e);if(N){let S=N.indexOf(o);S>=0&&N.splice(S,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,bo,!0);n.forEach(r=>{if(r[At])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,br,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),n&&pn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let c=this._triggers.get(o).fallbackTransition,l=n.get(o)||Il,u=new Er(br),h=new Ir(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:c,fromState:l,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let s=e[At];(!s||s===um)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){_t(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let c=Hl(s,n.triggerName,n.fromState.value,n.toState.value);c._data=e,Ul(n.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},jl=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Vl(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let c=r.get(a);if(c){let l=n.indexOf(c);n.splice(l+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&i.add(s)}}return i}trigger(e,i,n,r){if(_o(i)){let s=this._fetchNamespace(e);if(s)return s.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!_o(i))return;let s=i[At];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_t(e,El)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Di(e,El))}removeNode(e,i,n){if(_o(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let s=this.namespacesByHostElement.get(i);s&&s.id!==e&&s.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,s){this.collectedLeaveElements.push(i),i[At]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,i,n,r,s){return _o(i)?this._fetchNamespace(e).listen(i,n,r,s):()=>{}}_buildInstruction(e,i,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,s)}destroyInnerAnimations(e){let i=this.driver.query(e,bo,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Tl,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return pn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[At];if(i&&i.setForRemoval){if(e[At]=um,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(El)&&this.markElementAsDisabled(e,!1),this.driver.query(e,A0,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?pn(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw KE(e)}_flushAnimations(e,i){let n=new Dr,r=[],s=new Map,o=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);let k=this.driver.query(x,S0,!0);for(let P=0;P{let P=im+D++;b.set(k,P),x.forEach(q=>_t(q,P))});let N=[],S=new Set,H=new Set;for(let x=0;xS.add(q)):H.add(k))}let B=new Map,X=Zp(p,Array.from(S));X.forEach((x,k)=>{let P=Ml+D++;B.set(k,P),x.forEach(q=>_t(q,P))}),e.push(()=>{_.forEach((x,k)=>{let P=b.get(k);x.forEach(q=>Di(q,P))}),X.forEach((x,k)=>{let P=B.get(k);x.forEach(q=>Di(q,P))}),N.forEach(x=>{this.processLeaveNode(x)})});let be=[],I=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(i).forEach(P=>{let q=P.player,Te=P.element;if(be.push(q),this.collectedEnterElements.length){let Oe=Te[At];if(Oe&&Oe.setForMove){if(Oe.previousTriggersValues&&Oe.previousTriggersValues.has(P.triggerName)){let Ht=Oe.previousTriggersValues.get(P.triggerName),Ze=this.statesByElement.get(P.element);if(Ze&&Ze.has(P.triggerName)){let zn=Ze.get(P.triggerName);zn.value=Ht,Ze.set(P.triggerName,zn)}}q.destroy();return}}let dt=!h||!this.driver.containsElement(h,Te),ve=B.get(Te),bt=b.get(Te),ue=this._buildInstruction(P,n,bt,ve,dt);if(ue.errors&&ue.errors.length){I.push(ue);return}if(dt){q.onStart(()=>Bn(Te,ue.fromStyles)),q.onDestroy(()=>Ut(Te,ue.toStyles)),r.push(q);return}if(P.isFallbackTransition){q.onStart(()=>Bn(Te,ue.fromStyles)),q.onDestroy(()=>Ut(Te,ue.toStyles)),r.push(q);return}let kr=[];ue.timelines.forEach(Oe=>{Oe.stretchStartingKeyframe=!0,this.disabledNodes.has(Oe.element)||kr.push(Oe)}),ue.timelines=kr,n.append(Te,ue.timelines);let qo={instruction:ue,player:q,element:Te};o.push(qo),ue.queriedElements.forEach(Oe=>lt(a,Oe,[]).push(q)),ue.preStyleProps.forEach((Oe,Ht)=>{if(Oe.size){let Ze=c.get(Ht);Ze||c.set(Ht,Ze=new Set),Oe.forEach((zn,xi)=>Ze.add(xi))}}),ue.postStyleProps.forEach((Oe,Ht)=>{let Ze=l.get(Ht);Ze||l.set(Ht,Ze=new Set),Oe.forEach((zn,xi)=>Ze.add(xi))})});if(I.length){let x=[];I.forEach(k=>{x.push(QE(k.triggerName,k.errors))}),be.forEach(k=>k.destroy()),this.reportError(x)}let L=new Map,j=new Map;o.forEach(x=>{let k=x.element;n.has(k)&&(j.set(k,k),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,L))}),r.forEach(x=>{let k=x.element;this._getPreviousPlayers(k,!1,x.namespaceId,x.triggerName,null).forEach(q=>{lt(L,k,[]).push(q),q.destroy()})});let z=N.filter(x=>Xp(x,c,l)),ie=new Map;Yp(ie,this.driver,H,l,Bt).forEach(x=>{Xp(x,c,l)&&z.push(x)});let Ne=new Map;_.forEach((x,k)=>{Yp(Ne,this.driver,new Set(x),c,po)}),z.forEach(x=>{let k=ie.get(x),P=Ne.get(x);ie.set(x,new Map([...k?.entries()??[],...P?.entries()??[]]))});let Me=[],ut=[],Xt={};o.forEach(x=>{let{element:k,player:P,instruction:q}=x;if(n.has(k)){if(u.has(k)){P.onDestroy(()=>Ut(k,q.toStyles)),P.disabled=!0,P.overrideTotalTime(q.totalTime),r.push(P);return}let Te=Xt;if(j.size>1){let ve=k,bt=[];for(;ve=ve.parentNode;){let ue=j.get(ve);if(ue){Te=ue;break}bt.push(ve)}bt.forEach(ue=>j.set(ue,Te))}let dt=this._buildAnimation(P.namespaceId,q,L,s,Ne,ie);if(P.setRealPlayer(dt),Te===Xt)Me.push(P);else{let ve=this.playersByElement.get(Te);ve&&ve.length&&(P.parentPlayer=pn(ve)),r.push(P)}}else Bn(k,q.fromStyles),P.onDestroy(()=>Ut(k,q.toStyles)),ut.push(P),u.has(k)&&r.push(P)}),ut.forEach(x=>{let k=s.get(x.element);if(k&&k.length){let P=pn(k);x.setRealPlayer(P)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x!dt.destroyed);Te.length?L0(this,k,Te):this.processLeaveNode(k)}return N.length=0,Me.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();let k=this.players.indexOf(x);this.players.splice(k,1)}),x.play()}),Me}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,s){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let c=!s||s==br;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||o.push(l)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,i,n){let r=i.triggerName,s=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let c of i.timelines){let l=c.element,u=l!==s,h=lt(n,l,[]);this._getPreviousPlayers(l,u,o,a,i.toState).forEach(_=>{let b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),h.push(_)})}Bn(s,i.fromStyles)}_buildAnimation(e,i,n,r,s,o){let a=i.triggerName,c=i.element,l=[],u=new Set,h=new Set,p=i.timelines.map(b=>{let D=b.element;u.add(D);let N=D[At];if(N&&N.removedBeforeQueried)return new fn(b.duration,b.delay);let S=D!==c,H=V0((n.get(D)||O0).map(L=>L.getRealPlayer())).filter(L=>{let j=L;return j.element?j.element===D:!1}),B=s.get(D),X=o.get(D),be=Jp(this._normalizer,b.keyframes,B,X),I=this._buildPlayer(b,be,H);if(b.subTimeline&&r&&h.add(D),S){let L=new Ir(e,a,D);L.setRealPlayer(I),l.push(L)}return I});l.forEach(b=>{lt(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>k0(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>_t(b,Hp));let _=pn(p);return _.onDestroy(()=>{u.forEach(b=>Di(b,Hp)),Ut(c,i.toStyles)}),h.forEach(b=>{lt(r,b,[]).push(_)}),_}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new fn(e.duration,e.delay)}},Ir=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new fn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Ul(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){lt(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function k0(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function F0(t){return t??null}function _o(t){return t&&t.nodeType===1}function P0(t){return t=="start"||t=="done"}function Qp(t,e){let i=t.style.display;return t.style.display=e??"none",i}function Yp(t,e,i,n,r){let s=[];i.forEach(c=>s.push(Qp(c)));let o=[];n.forEach((c,l)=>{let u=new Map;c.forEach(h=>{let p=e.computeStyle(l,h,r);u.set(h,p),(!p||p.length==0)&&(l[At]=R0,o.push(l))}),t.set(l,u)});let a=0;return i.forEach(c=>Qp(c,s[a++])),o}function Zp(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let c=s.get(a);if(c)return c;let l=a.parentNode;return i.has(l)?c=l:r.has(l)?c=n:c=o(l),s.set(a,c),c}return e.forEach(a=>{let c=o(a);c!==n&&i.get(c).push(a)}),i}function _t(t,e){t.classList?.add(e)}function Di(t,e){t.classList?.remove(e)}function L0(t,e,i){pn(i).onDone(()=>t.processLeaveNode(e))}function V0(t){let e=[];return dm(t,e),e}function dm(t,e){for(let i=0;ir.add(s)):e.set(t,n),i.delete(t),!0}var Ii=class{constructor(e,i,n){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new jl(e.body,i,n),this._timelineEngine=new Ll(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,i,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let c=[],l=[],u=cm(this._driver,s,c,l);if(c.length)throw VE(r,c);l.length&&void 0,a=C0(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[s,o]=Bp(n),a=r;this._timelineEngine.command(s,i,o,a)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,s){if(n.charAt(0)=="@"){let[o,a]=Bp(n);return this._timelineEngine.listen(o,i,a,s)}return this._transitionEngine.listen(e,i,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function B0(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Cl(e[0]),e.length>1&&(n=Cl(e[e.length-1]))):e instanceof Map&&(i=Cl(e)),i||n?new U0(t,i,n):null}var U0=(()=>{let e=class e{constructor(n,r,s){this._element=n,this._startStyles=r,this._endStyles=s,this._state=0;let o=e.initialStylesByElement.get(n);o||e.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ut(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ut(this._element,this._initialStyles),this._endStyles&&(Ut(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Bn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bn(this._element,this._endStyles),this._endStyles=null),Ut(this._element,this._initialStyles),this._state=3)}};e.initialStylesByElement=new WeakMap;let t=e;return t})();function Cl(t){let e=null;return t.forEach((i,n)=>{H0(n)&&(e=e||new Map,e.set(n,i))}),e}function H0(t){return t==="display"||t==="position"}var So=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:om(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Ao=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return em(e,i)}getParentElement(e){return $l(e)}query(e,i,n){return tm(e,i,n)}computeStyle(e,i,n){return window.getComputedStyle(e)[i]}animate(e,i,n,r,s,o=[]){let a=r==0?"both":"forwards",c={duration:n,delay:r,fill:a};s&&(c.easing=s);let l=new Map,u=o.filter(_=>_ instanceof So);o0(n,r)&&u.forEach(_=>{_.currentSnapshot.forEach((b,D)=>l.set(D,b))});let h=i0(i).map(_=>Ei(_));h=a0(e,h,l);let p=B0(e,h);return new So(e,h,c,p)}};var yo="@",fm="@.disabled",xo=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==yo&&i==fm?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},Bl=class extends xo{constructor(e,i,n,r,s){super(i,n,r,s),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==yo?i.charAt(1)=="."&&i==fm?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==yo){let r=$0(e),s=i.slice(1),o="";return s.charAt(0)!=yo&&([s,o]=z0(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,n,a)})}return this.delegate.listen(e,i,n)}};function $0(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function z0(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var No=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let l=this._rendererCache,u=l.get(r);if(!u){let h=()=>l.delete(r);u=new xo(n,r,this.engine,h),l.set(r,u)}return u}let s=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,e,l.name,l)};return i.data.animation.forEach(a),new Bl(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&ei(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var G0=(()=>{let e=class e extends Ii{constructor(n,r,s,o){super(n,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(F(ye),F(Cr),F(Un),F(hr))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})();function q0(){return new Eo}function K0(t,e,i){return new No(t,e,i)}var hm=[{provide:Un,useFactory:q0},{provide:Ii,useClass:G0},{provide:An,useFactory:K0,deps:[fo,Ii,ne]}],Q0=[{provide:Cr,useFactory:()=>new Ao},{provide:nt,useValue:"BrowserAnimations"},...hm],DO=[{provide:Cr,useClass:zl},{provide:nt,useValue:"NoopAnimations"},...hm];function pm(){return[...Q0]}var Dm=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(A(Xs),A(me))},e.\u0275dir=_e({type:e});let t=e;return t})(),Y0=(()=>{let e=class e extends Dm{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=vi(e)))(s||e)}})(),e.\u0275dir=_e({type:e,features:[qe]});let t=e;return t})(),Mi=new V("NgValueAccessor");var Z0={provide:Mi,useExisting:qt(()=>Fo),multi:!0};function X0(){let t=wi()?wi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var J0=new V("CompositionEventMode"),Fo=(()=>{let e=class e extends Dm{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!X0())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(A(Xs),A(me),A(J0,8))},e.\u0275dir=_e({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&$e("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[ke([Z0]),qe]});let t=e;return t})();var Em=new V("NgValidators"),eI=new V("NgAsyncValidators");function Im(t){return t!=null}function Cm(t){return fr(t)?ht(t):t}function Mm(t){let e={};return t.forEach(i=>{e=i!=null?Z(Z({},e),i):e}),Object.keys(e).length===0?null:e}function Tm(t,e){return e.map(i=>i(t))}function tI(t){return!t.validate}function Sm(t){return t.map(e=>tI(e)?e:i=>e.validate(i))}function nI(t){if(!t)return null;let e=t.filter(Im);return e.length==0?null:function(i){return Mm(Tm(i,e))}}function Am(t){return t!=null?nI(Sm(t)):null}function iI(t){if(!t)return null;let e=t.filter(Im);return e.length==0?null:function(i){let n=Tm(i,e).map(Cm);return ga(n).pipe(pt(Mm))}}function xm(t){return t!=null?iI(Sm(t)):null}function mm(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function rI(t){return t._rawValidators}function sI(t){return t._rawAsyncValidators}function ql(t){return t?Array.isArray(t)?t:[t]:[]}function Ro(t,e){return Array.isArray(t)?t.includes(e):t===e}function gm(t,e){let i=ql(e);return ql(t).forEach(r=>{Ro(i,r)||i.push(r)}),i}function vm(t,e){return ql(e).filter(i=>!Ro(t,i))}var ko=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Am(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=xm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Kl=class extends ko{get formDirective(){return null}get path(){return null}},Ar=class extends ko{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ql=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},oI={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},BO=We(Z({},oI),{"[class.ng-submitted]":"isSubmitted"}),Nm=(()=>{let e=class e extends Ql{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(A(Ar,2))},e.\u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&He("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[qe]});let t=e;return t})();var Tr="VALID",Oo="INVALID",Ci="PENDING",Sr="DISABLED";function aI(t){return(Po(t)?t.validators:t)||null}function cI(t){return Array.isArray(t)?Am(t):t||null}function lI(t,e){return(Po(e)?e.asyncValidators:t)||null}function uI(t){return Array.isArray(t)?xm(t):t||null}function Po(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Yl=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Tr}get invalid(){return this.status===Oo}get pending(){return this.status==Ci}get disabled(){return this.status===Sr}get enabled(){return this.status!==Sr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(gm(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(gm(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(vm(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(vm(e,this._rawAsyncValidators))}hasValidator(e){return Ro(this._rawValidators,e)}hasAsyncValidator(e){return Ro(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ci,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Sr,this.errors=null,this._forEachChild(n=>{n.disable(We(Z({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(We(Z({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Tr,this._forEachChild(n=>{n.enable(We(Z({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(We(Z({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tr||this.status===Ci)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Sr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ci,this._hasOwnPendingAsyncValidator=!0;let i=Cm(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?Sr:this.errors?Oo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ci)?Ci:this._anyControlsHaveStatus(Oo)?Oo:Tr}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Po(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=cI(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=uI(this._rawAsyncValidators)}};var Om=new V("CallSetDisabledState",{providedIn:"root",factory:()=>Zl}),Zl="always";function dI(t,e){return[...e.path,t]}function fI(t,e,i=Zl){pI(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),mI(t,e),vI(t,e),gI(t,e),hI(t,e)}function _m(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function hI(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function pI(t,e){let i=rI(t);e.validator!==null?t.setValidators(mm(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=sI(t);e.asyncValidator!==null?t.setAsyncValidators(mm(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();_m(e._rawValidators,r),_m(e._rawAsyncValidators,r)}function mI(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Rm(t,e)})}function gI(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Rm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Rm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function vI(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function _I(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function yI(t){return Object.getPrototypeOf(t.constructor)===Y0}function bI(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===Fo?i=s:yI(s)?n=s:r=s}),r||n||i||null}function ym(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function bm(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var wI=class extends Yl{constructor(e=null,i,n){super(aI(i),lI(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Po(i)&&(i.nonNullable||i.initialValueIsDefault)&&(bm(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ym(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ym(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){bm(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var DI={provide:Ar,useExisting:qt(()=>Xl)},wm=(()=>Promise.resolve())(),Xl=(()=>{let e=class e extends Ar{constructor(n,r,s,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new wI,this._registered=!1,this.name="",this.update=new J,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=bI(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),_I(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){fI(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){wm.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Ye(r);wm.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?dI(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(A(Kl,9),A(Em,10),A(eI,10),A(Mi,10),A(it,8),A(Om,8))},e.\u0275dir=_e({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ke([DI]),qe,on]});let t=e;return t})();var EI=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();var II=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[EI]});let t=e;return t})();var km=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Om,useValue:n.callSetDisabledState??Zl}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[II]});let t=e;return t})();var Lo=(()=>{let e=class e{constructor(){this._listeners=[]}notify(n,r){for(let s of this._listeners)s(n,r)}listen(n){return this._listeners.push(n),()=>{this._listeners=this._listeners.filter(r=>n!==r)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var MI=0,Jl=new V("CdkAccordion"),Pm=(()=>{let e=class e{constructor(){this._stateChanges=new ce,this._openCloseAllActions=new ce,this.id=`cdk-accordion-${MI++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(n){this._stateChanges.next(n)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=_e({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:["multi","multi",Ye]},exportAs:["cdkAccordion"],features:[ke([{provide:Jl,useExisting:e}]),Fn,on]});let t=e;return t})(),TI=0,Lm=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(n){if(this._expanded!==n){if(this._expanded=n,this.expandedChange.emit(n),n){this.opened.emit();let r=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,r)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(n,r,s){this.accordion=n,this._changeDetectorRef=r,this._expansionDispatcher=s,this._openCloseAllSubscription=De.EMPTY,this.closed=new J,this.opened=new J,this.destroyed=new J,this.expandedChange=new J,this.id=`cdk-accordion-child-${TI++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=s.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(n=>{this.disabled||(this.expanded=n)})}};e.\u0275fac=function(r){return new(r||e)(A(Jl,12),A(it),A(Lo))},e.\u0275dir=_e({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:["expanded","expanded",Ye],disabled:["disabled","disabled",Ye]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[ke([{provide:Jl,useValue:void 0}]),Fn]});let t=e;return t})(),Vm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();var xr=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},eu=class extends xr{constructor(e,i,n,r,s){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=s}},Nr=class extends xr{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},tu=class extends xr{constructor(e){super(),this.element=e instanceof me?e.nativeElement:e}},nu=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof eu)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Nr)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof tu)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var jm=(()=>{let e=class e extends nu{constructor(n,r,s){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new J,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=s}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,o=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=r.createComponent(o,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=n,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(r){return new(r||e)(A(lr),A(Pn),A(ye))},e.\u0275dir=_e({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[qe]});let t=e;return t})();var Bm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();var ru;try{ru=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ru=!1}var yt=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?xp(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ru)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(F(cn))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Or;function AI(){if(Or==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Or=!0}))}finally{Or=Or||!1}return Or}function Ti(t){return AI()?t:!!t.capture}var iu;function xI(){if(iu==null){let t=typeof document<"u"?document.head:null;iu=!!(t&&(t.createShadowRoot||t.attachShadow))}return iu}function Um(t){if(xI()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function mn(t){return t.composedPath?t.composedPath()[0]:t.target}function Hm(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Vo(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function xt(t){return t!=null&&`${t}`!="false"}function rt(t,e=0){return NI(t)?Number(t):e}function NI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ou(t){return Array.isArray(t)?t:[t]}function Hn(t){return t instanceof me?t.nativeElement:t}var $m=new Set,$n,OI=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kI}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&RI(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(F(yt),F(ar,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RI(t,e){if(!$m.has(t))try{$n||($n=document.createElement("style"),e&&($n.nonce=e),$n.setAttribute("type","text/css"),document.head.appendChild($n)),$n.sheet&&($n.sheet.insertRule(`@media ${t} {body{ }}`,0),$m.add(t))}catch(i){console.error(i)}}function kI(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Wm=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new ce}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return zm(ou(n)).some(s=>this._registerQuery(s).mql.matches)}observe(n){let s=zm(ou(n)).map(a=>this._registerQuery(a).observable),o=pa(s);return o=Zn(o.pipe(Xn(1)),o.pipe(Hi(1),Ui(0))),o.pipe(pt(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{c.matches=c.matches||l,c.breakpoints[u]=l}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new se(a=>{let c=l=>this._zone.run(()=>a.next(l));return r.addListener(c),()=>{r.removeListener(c)}}).pipe(ei(r),pt(({matches:a})=>({query:n,matches:a})),$i(this._destroySubject)),mql:r};return this._queries.set(n,o),o}};e.\u0275fac=function(r){return new(r||e)(F(OI),F(ne))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function zm(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var cu=class{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ce,this._typeaheadSubscription=De.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new ce,this.change=new ce,e instanceof sn&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){let r=i.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ba(i=>this._pressedLetters.push(i)),Ui(e),Ot(()=>this._pressedLetters.length>0),pt(()=>this._pressedLetters.join(""))).subscribe(i=>{let n=this._getItemsArray();for(let r=1;r!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),n=typeof e=="number"?e:i.indexOf(e),r=i[n];this._activeItem=r??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let n=1;n<=i.length;n++){let r=(this._activeItemIndex+e*n+i.length)%i.length,s=i[r];if(!this._skipPredicateFn(s)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=i,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof sn?this._items.toArray():this._items}};var Bo=class extends cu{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function lu(t){return t.buttons===0||t.detail===0}function uu(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var JI=new V("cdk-input-modality-detector-options"),eC={ignoreKeys:[18,17,224,91,16]},Km=650,Si=Ti({passive:!0,capture:!0}),tC=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,s,o){this._platform=n,this._mostRecentTarget=null,this._modality=new zt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(uu(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(a)},this._options=Z(Z({},eC),o),this.modalityDetected=this._modality.pipe(Hi(1)),this.modalityChanged=this.modalityDetected.pipe(wn()),n.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Si),s.addEventListener("mousedown",this._onMousedown,Si),s.addEventListener("touchstart",this._onTouchstart,Si)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Si),document.removeEventListener("mousedown",this._onMousedown,Si),document.removeEventListener("touchstart",this._onTouchstart,Si))}};e.\u0275fac=function(r){return new(r||e)(F(yt),F(ne),F(ye),F(JI,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var nC=new V("cdk-focus-monitor-default-options"),jo=Ti({passive:!0,capture:!0}),Uo=(()=>{let e=class e{constructor(n,r,s,o,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ce,this._rootNodeFocusAndBlurListener=c=>{let l=mn(c);for(let u=l;u;u=u.parentElement)c.type==="focus"?this._onFocus(c,u):this._onBlur(c,u)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(n,r=!1){let s=Hn(n);if(!this._platform.isBrowser||s.nodeType!==1)return ji();let o=Um(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return r&&(a.checkChildren=!0),a.subject;let c={checkChildren:r,subject:new ce,rootNode:o};return this._elementInfo.set(s,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){let r=Hn(n),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(n,r,s){let o=Hn(n),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([c,l])=>this._originChanged(c,r,l)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===1||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===0){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?Km:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(n,r){let s=this._elementInfo.get(r),o=mn(n);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(n,r){let s=this._elementInfo.get(r);!s||s.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,jo),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,jo)}),this._rootNodeFocusListenerCount.set(r,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe($i(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jo),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jo),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,s){this._setClasses(n,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((s,o)=>{(o===n||s.checkChildren&&o.contains(n))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let a=0;a{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=pe(Wm).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(au,Gm,qm),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===1?n.add(au,Gm):r===2&&n.add(au,qm)}}};e.\u0275fac=function(r){return new(r||e)(F(yt),F(ye))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var iC=new V("cdk-dir-doc",{providedIn:"root",factory:rC});function rC(){return pe(ye)}var sC=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function oC(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?sC.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Ym=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new J,n){let r=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.value=oC(r||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(F(iC,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();function cC(){return!0}var lC=new V("mat-sanity-checks",{providedIn:"root",factory:cC}),Zt=(()=>{let e=class e{constructor(n,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return Hm()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(r){return new(r||e)(F(Qm),F(lC,8),F(ye))},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[fu,fu]});let t=e;return t})();function ng(t,e){return class extends t{get color(){return this._color}set color(i){let n=i||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function ig(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=xt(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function rg(t,e=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=i!=null?rt(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}var hu=class{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}},Zm=Ti({passive:!0,capture:!0}),pu=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=mn(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(s=>s.handleEvent(e))})}}addHandler(e,i,n,r){let s=this._events.get(i);if(s){let o=s.get(n);o?o.add(r):s.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,Zm)})}removeHandler(e,i,n){let r=this._events.get(e);if(!r)return;let s=r.get(i);s&&(s.delete(n),s.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Zm)))}},Xm={enterDuration:225,exitDuration:150},uC=800,Jm=Ti({passive:!0,capture:!0}),eg=["mousedown","touchstart"],tg=["mouseup","mouseleave","touchend","touchcancel"],Rr=class Rr{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Hn(n))}fadeInRipple(e,i,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Z(Z({},Xm),n.animation);n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let o=n.radius||dC(e,i,r),a=e-r.left,c=i-r.top,l=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-o}px`,u.style.top=`${c-o}px`,u.style.height=`${o*2}px`,u.style.width=`${o*2}px`,n.color!=null&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);let h=window.getComputedStyle(u),p=h.transitionProperty,_=h.transitionDuration,b=p==="none"||_==="0s"||_==="0s, 0s"||r.width===0&&r.height===0,D=new hu(this,u,n,b);u.style.transform="scale3d(1, 1, 1)",D.state=0,n.persistent||(this._mostRecentTransientRipple=D);let N=null;return!b&&(l||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let S=()=>this._finishRippleTransition(D),H=()=>this._destroyRipple(D);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",H),N={onTransitionEnd:S,onTransitionCancel:H}}),this._activeRipples.set(D,N),(b||!l)&&this._finishRippleTransition(D),D}fadeOutRipple(e){if(e.state===2||e.state===3)return;let i=e.element,n=Z(Z({},Xm),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=Hn(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,eg.forEach(n=>{Rr._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tg.forEach(i=>{this._triggerElement.addEventListener(i,this,Jm)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===0?this._startFadeOutTransition(e):e.state===2&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=1,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=lu(e),n=this._lastTouchStartEvent&&Date.now(){let i=e.state===1||e.config.terminateOnPointerUp&&e.state===0;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(eg.forEach(i=>Rr._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&tg.forEach(i=>e.removeEventListener(i,this,Jm)))}};Rr._eventManager=new pu;var mu=Rr;function dC(t,e,i){let n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}var gu=new V("mat-ripple-global-options"),Ai=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,s,o,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new mu(this,r,n,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Z(Z(Z({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,s){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,Z(Z({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Z(Z({},this.rippleConfig),n))}};e.\u0275fac=function(r){return new(r||e)(A(me),A(ne),A(yt),A(gu,8),A(nt,8))},e.\u0275dir=_e({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,s){r&2&&He("mat-ripple-unbounded",s.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});let t=e;return t})(),Ho=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[Zt,Zt]});let t=e;return t})();var pC=["body"];function mC(t,e){}var gC=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],vC=["mat-expansion-panel-header","*","mat-action-row"];function _C(t,e){if(t&1&&Le(0,"span",2),t&2){let i=Qt();xe("@indicatorRotate",i._getExpandedState())}}var yC=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],bC=["mat-panel-title","mat-panel-description","*"],vu=new V("MAT_ACCORDION"),og="225ms cubic-bezier(0.4,0.0,0.2,1)",ag={indicatorRotate:vl("indicatorRotate",[_r("collapsed, void",hn({transform:"rotate(0deg)"})),_r("expanded",hn({transform:"rotate(180deg)"})),yl("expanded <=> collapsed, void => collapsed",_l(og))]),bodyExpansion:vl("bodyExpansion",[_r("collapsed, void",hn({height:"0px",visibility:"hidden"})),_r("expanded",hn({height:"*",visibility:""})),yl("expanded <=> collapsed, void => collapsed",_l(og))])},cg=new V("MAT_EXPANSION_PANEL"),wC=(()=>{let e=class e{constructor(n,r){this._template=n,this._expansionPanel=r}};e.\u0275fac=function(r){return new(r||e)(A(Rn),A(cg,8))},e.\u0275dir=_e({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]});let t=e;return t})(),DC=0,lg=new V("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),yu=(()=>{let e=class e extends Lm{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(n){this._hideToggle=xt(n)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(n){this._togglePosition=n}constructor(n,r,s,o,a,c,l){super(n,r,s),this._viewContainerRef=o,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new J,this.afterCollapse=new J,this._inputChanges=new ce,this._headerId=`mat-expansion-panel-header-${DC++}`,this._bodyAnimationDone=new ce,this.accordion=n,this._document=a,this._bodyAnimationDone.pipe(wn((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{u.fromState!=="void"&&(u.toState==="expanded"?this.afterExpand.emit():u.toState==="collapsed"&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ei(null),Ot(()=>this.expanded&&!this._portal),Xn(1)).subscribe(()=>{this._portal=new Nr(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(n){this._inputChanges.next(n)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){let n=this._document.activeElement,r=this._body.nativeElement;return n===r||r.contains(n)}return!1}};e.\u0275fac=function(r){return new(r||e)(A(vu,12),A(it),A(Lo),A(Pn),A(ye),A(nt,8),A(lg,8))},e.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(r,s,o){if(r&1&&bi(o,wC,5),r&2){let a;Ke(a=Qe())&&(s._lazyContent=a.first)}},viewQuery:function(r,s){if(r&1&&St(pC,5),r&2){let o;Ke(o=Qe())&&(s._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,s){r&2&&He("mat-expanded",s.expanded)("_mat-animation-noopable",s._animationMode==="NoopAnimations")("mat-expansion-panel-spacing",s._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[ke([{provide:vu,useValue:void 0},{provide:cg,useExisting:e}]),qe,on],ngContentSelectors:vC,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,s){r&1&&(dn(gC),vt(0),le(1,"div",0,1),$e("@bodyExpansion.done",function(a){return s._bodyAnimationDone.next(a)}),le(3,"div",2),vt(4,1),et(5,mC,0,0,"ng-template",3),ge(),vt(6,2),ge()),r&2&&(Ce(1),xe("@bodyExpansion",s._getExpandedState())("id",s.id),at("aria-labelledby",s._headerId),Ce(4),xe("cdkPortalOutlet",s._portal))},dependencies:[jm],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ag.bodyExpansion]},changeDetection:0});let t=e;return t})();var _u=class{},EC=rg(_u),bu=(()=>{let e=class e extends EC{constructor(n,r,s,o,a,c,l){super(),this.panel=n,this._element=r,this._focusMonitor=s,this._changeDetectorRef=o,this._animationMode=c,this._parentChangeSubscription=De.EMPTY;let u=n.accordion?n.accordion._stateChanges.pipe(Ot(h=>!!(h.hideToggle||h.togglePosition))):yn;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Bi(n.opened,n.closed,u,n._inputChanges.pipe(Ot(h=>!!(h.hideToggle||h.disabled||h.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),n.closed.pipe(Ot(()=>n._containsFocus())).subscribe(()=>s.focusVia(r,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let n=this._isExpanded();return n&&this.expandedHeight?this.expandedHeight:!n&&this.collapsedHeight?this.collapsedHeight:null}_keydown(n){switch(n.keyCode){case 32:case 13:Vo(n)||(n.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(n);return}}focus(n,r){n?this._focusMonitor.focusVia(this._element,n,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(n=>{n&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(r){return new(r||e)(A(yu,1),A(me),A(Uo),A(it),A(lg,8),A(nt,8),Gs("tabindex"))},e.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,s){r&1&&$e("click",function(){return s._toggle()})("keydown",function(a){return s._keydown(a)}),r&2&&(at("id",s.panel._headerId)("tabindex",s.tabIndex)("aria-controls",s._getPanelId())("aria-expanded",s._isExpanded())("aria-disabled",s.panel.disabled),dr("height",s._getHeaderHeight()),He("mat-expanded",s._isExpanded())("mat-expansion-toggle-indicator-after",s._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",s._getTogglePosition()==="before")("_mat-animation-noopable",s._animationMode==="NoopAnimations"))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[qe],ngContentSelectors:bC,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator"],[1,"mat-expansion-indicator"]],template:function(r,s){r&1&&(dn(yC),le(0,"span",0),vt(1),vt(2,1),vt(3,2),ge(),et(4,_C,1,1,"span",1)),r&2&&(He("mat-content-hide-toggle",!s._showToggle()),Ce(4),jt(4,s._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ag.indicatorRotate]},changeDetection:0});let t=e;return t})();var ug=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=_e({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});let t=e;return t})(),dg=(()=>{let e=class e extends Pm{constructor(){super(...arguments),this._ownHeaders=new sn,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(n){this._hideToggle=xt(n)}ngAfterContentInit(){this._headers.changes.pipe(ei(this._headers)).subscribe(n=>{this._ownHeaders.reset(n.filter(r=>r.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Bo(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(n){this._keyManager.onKeydown(n)}_handleHeaderFocus(n){this._keyManager.updateActiveItem(n)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=vi(e)))(s||e)}})(),e.\u0275dir=_e({type:e,selectors:[["mat-accordion"]],contentQueries:function(r,s,o){if(r&1&&bi(o,bu,5),r&2){let a;Ke(a=Qe())&&(s._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,s){r&2&&He("mat-accordion-multi",s.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[ke([{provide:vu,useExisting:e}]),qe]});let t=e;return t})(),fg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[Zt,Vm,Bm]});let t=e;return t})();var CC=["switch"];function MC(t,e){t&1&&(le(0,"div",12),qf(),le(1,"svg",13),Le(2,"path",14),ge(),le(3,"svg",15),Le(4,"path",16),ge()())}var TC=["*"],SC=new V("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),AC={provide:Mi,useExisting:qt(()=>wu),multi:!0},$o=class{constructor(e,i){this.source=e,this.checked=i}},xC=0,wu=(()=>{let e=class e{_createChangeEvent(n){return new $o(this,n)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(n){this._checked=n,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(n,r,s,o,a,c){this._elementRef=n,this._focusMonitor=r,this._changeDetectorRef=s,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new J,this.toggleChange=new J,this.tabIndex=parseInt(o)||0,this.color=a.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++xC}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{n==="keyboard"||n==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):n||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(n){this.checked=!!n}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new $o(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(r){return new(r||e)(A(me),A(Uo),A(it),Gs("tabindex"),A(SC),A(nt,8))},e.\u0275cmp=Tt({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(r,s){if(r&1&&St(CC,5),r&2){let o;Ke(o=Qe())&&(s._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(r,s){r&2&&(so("id",s.id),at("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),no(s.color?"mat-"+s.color:""),He("mat-mdc-slide-toggle-focused",s._focused)("mat-mdc-slide-toggle-checked",s.checked)("_mat-animation-noopable",s._noopAnimations))},inputs:{disabled:["disabled","disabled",Ye],disableRipple:["disableRipple","disableRipple",Ye],color:"color",tabIndex:["tabIndex","tabIndex",n=>n==null?0:ol(n)],name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:["required","required",Ye],checked:["checked","checked",Ye],hideIcon:["hideIcon","hideIcon",Ye]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[ke([AC]),Fn],ngContentSelectors:TC,decls:13,vars:25,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],["class","mdc-switch__icons"],[1,"mdc-label",3,"for","click"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(r,s){if(r&1&&(dn(),le(0,"div",0)(1,"button",1,2),$e("click",function(){return s._handleClick()}),Le(3,"div",3),le(4,"div",4)(5,"div",5)(6,"div",6),Le(7,"div",7),ge(),le(8,"div",8),Le(9,"div",9),ge(),et(10,MC,5,0,"div",10),ge()()(),le(11,"label",11),$e("click",function(a){return a.stopPropagation()}),vt(12),ge()()),r&2){let o=gp(2);He("mdc-form-field--align-end",s.labelPosition=="before"),Ce(1),He("mdc-switch--selected",s.checked)("mdc-switch--unselected",!s.checked)("mdc-switch--checked",s.checked)("mdc-switch--disabled",s.disabled),xe("tabIndex",s.disabled?-1:s.tabIndex)("disabled",s.disabled),at("id",s.buttonId)("name",s.name)("aria-label",s.ariaLabel)("aria-labelledby",s._getAriaLabelledBy())("aria-describedby",s.ariaDescribedby)("aria-required",s.required||null)("aria-checked",s.checked),Ce(8),xe("matRippleTrigger",o)("matRippleDisabled",s.disableRipple||s.disabled)("matRippleCentered",!0),Ce(1),jt(10,s.hideIcon?-1:10),Ce(1),xe("for",s.buttonId),at("id",s._labelId)}},dependencies:[Ai],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle .mdc-label{font-family:var(--mat-slide-toggle-label-text-font);font-size:var(--mat-slide-toggle-label-text-size);letter-spacing:var(--mat-slide-toggle-label-text-tracking);line-height:var(--mat-slide-toggle-label-text-line-height);font-weight:var(--mat-slide-toggle-label-text-weight)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}'],encapsulation:2,changeDetection:0});let t=e;return t})();var hg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})(),pg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[hg,Zt,Ho,hg,Zt]});let t=e;return t})();var OC=["knob"],RC=["valueIndicatorContainer"];function kC(t,e){if(t&1&&(le(0,"div",4,5)(2,"div",6)(3,"span",7),Ln(4),ge()()()),t&2){let i=Qt();Ce(4),il(i.valueIndicatorText)}}var FC=["trackActive"];function PC(t,e){if(t&1&&Le(0,"div"),t&2){let i=e.$implicit,n=e.$index,r=Qt(3);no(i===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),dr("transform",r._calcTickMarkTransform(n))}}function LC(t,e){if(t&1&&hp(0,PC,1,4,"div",9,fp),t&2){let i=Qt(2);pp(0,i._tickMarks)}}function VC(t,e){if(t&1&&(le(0,"div",7,8),et(2,LC,2,0),ge()),t&2){let i=Qt();Ce(2),jt(2,i._cachedWidth?2:-1)}}function jC(t,e){if(t&1&&Le(0,"mat-slider-visual-thumb",6),t&2){let i=Qt();xe("discrete",i.discrete)("thumbPosition",1)("valueIndicatorText",i.startValueIndicatorText)}}var BC=["*"],Du=new V("_MatSlider"),mg=new V("_MatSliderThumb"),UC=new V("_MatSliderRangeThumb"),gg=new V("_MatSliderVisualThumb");var HC=(()=>{let e=class e{constructor(n,r,s,o){this._cdr=n,this._ngZone=r,this._slider=o,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=a=>{if(this._sliderInput._isFocused)return;let c=this._hostElement.getBoundingClientRect(),l=this._slider._isCursorOnSliderThumb(a,c);this._isHovered=l,l?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=a=>{a.button===0&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=s.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;let n=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{n.addEventListener("pointermove",this._onPointerMove),n.addEventListener("pointerdown",this._onDragStart),n.addEventListener("pointerup",this._onDragEnd),n.addEventListener("pointerleave",this._onMouseLeave),n.addEventListener("focus",this._onFocus),n.addEventListener("blur",this._onBlur)})}ngOnDestroy(){let n=this._sliderInputEl;n.removeEventListener("pointermove",this._onPointerMove),n.removeEventListener("pointerdown",this._onDragStart),n.removeEventListener("pointerup",this._onDragEnd),n.removeEventListener("pointerleave",this._onMouseLeave),n.removeEventListener("focus",this._onFocus),n.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(n){return n?.state===0||n?.state===1}_showRipple(n,r){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===1?2:1)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!r)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:n,centered:!0,persistent:!0})}_hideRipple(n){if(n?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let r=this._getSibling();r._isShowingAnyRipple()||(this._hideValueIndicator(),r._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===1?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}};e.\u0275fac=function(r){return new(r||e)(A(it),A(ne),A(me),A(Du))},e.\u0275cmp=Tt({type:e,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(r,s){if(r&1&&(St(Ai,5),St(OC,5),St(RC,5)),r&2){let o;Ke(o=Qe())&&(s._ripple=o.first),Ke(o=Qe())&&(s._knob=o.first),Ke(o=Qe())&&(s._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[ke([{provide:gg,useExisting:e}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(r,s){r&1&&(et(0,kC,5,1,"div",0),Le(1,"div",1,2)(3,"div",3)),r&2&&(jt(0,s.discrete?0:-1),Ce(3),xe("matRippleDisabled",!0))},dependencies:[Ai],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),$C=ng(ig(class{constructor(t){this._elementRef=t}}),"primary"),vg=(()=>{let e=class e extends $C{get disabled(){return this._disabled}set disabled(n){this._disabled=xt(n);let r=this._getInput(2),s=this._getInput(1);r&&(r.disabled=this._disabled),s&&(s.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(n){this._discrete=xt(n),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(n){this._showTickMarks=xt(n)}get min(){return this._min}set min(n){let r=rt(n,this._min);this._min!==r&&this._updateMin(r)}_updateMin(n){let r=this._min;this._min=n,this._isRange?this._updateMinRange({old:r,new:n}):this._updateMinNonRange(n),this._onMinMaxOrStepChange()}_updateMinRange(n){let r=this._getInput(2),s=this._getInput(1),o=r.value,a=s.value;s.min=n.new,r.min=Math.max(n.new,s.value),s.max=Math.min(r.max,r.value),s._updateWidthInactive(),r._updateWidthInactive(),n.newn.old?this._onTranslateXChangeBySideEffect(s,r):this._onTranslateXChangeBySideEffect(r,s),o!==r.value&&this._onValueChange(r),a!==s.value&&this._onValueChange(s)}_updateMaxNonRange(n){let r=this._getInput(2);if(r){let s=r.value;r.max=n,r._updateThumbUIByValue(),this._updateTrackUI(r),s!==r.value&&this._onValueChange(r)}}get step(){return this._step}set step(n){let r=rt(n,this._step);this._step!==r&&this._updateStep(r)}_updateStep(n){this._step=n,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let n=this._getInput(2),r=this._getInput(1),s=n.value,o=r.value,a=r.value;n.min=this._min,r.max=this._max,n.step=this._step,r.step=this._step,this._platform.SAFARI&&(n.value=n.value,r.value=r.value),n.min=Math.max(this._min,r.value),r.max=Math.min(this._max,n.value),r._updateWidthInactive(),n._updateWidthInactive(),n.value`${l}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=pe(yt),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations=c==="NoopAnimations",this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl"}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let n=this._getInput(2),r=this._getInput(1);this._isRange=!!n&&!!r,this._cdr.detectChanges();let s=this._getThumb(2);this._rippleRadius=s._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(n,r):this._initUINonRange(n),this._updateTrackUI(n),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(n){n.initProps(),n.initUI(),this._updateValueIndicatorUI(n),this._hasViewInitialized=!0,n._updateThumbUIByValue()}_initUIRange(n,r){n.initProps(),n.initUI(),r.initProps(),r.initUI(),n._updateMinMax(),r._updateMinMax(),n._updateStaticStyles(),r._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,n._updateThumbUIByValue(),r._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let n=this._getInput(2),r=this._getInput(1);n._setIsLeftThumb(),r._setIsLeftThumb(),n.translateX=n._calcTranslateXByValue(),r.translateX=r._calcTranslateXByValue(),n._updateStaticStyles(),r._updateStaticStyles(),n._updateWidthInactive(),r._updateWidthInactive(),n._updateThumbUIByValue(),r._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(n=2){let r=this._getInput(n);return r?r.value:this.min}_skipUpdate(){return!!(this._getInput(1)?._skipUIUpdate||this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(n){let r=this._trackActive.nativeElement.style;r.left=n.left,r.right=n.right,r.transformOrigin=n.transformOrigin,r.transform=n.transform}_calcTickMarkTransform(n){return`translateX(${n*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(n){this._hasViewInitialized&&(this._updateThumbUI(n),this._updateTrackUI(n),this._updateOverlappingThumbUI(n))}_onTranslateXChangeBySideEffect(n,r){this._hasViewInitialized&&(n._updateThumbUIByValue(),r._updateThumbUIByValue())}_onValueChange(n){this._hasViewInitialized&&(this._updateValueIndicatorUI(n),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let n=this._getInput(2),r=this._getInput(1);n._updateThumbUIByValue(),r._updateThumbUIByValue(),n._updateStaticStyles(),r._updateStaticStyles(),n._updateMinMax(),r._updateMinMax(),n._updateWidthInactive(),r._updateWidthInactive()}else{let n=this._getInput(2);n&&n._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){let n=this._getInput(1),r=this._getInput(2);return!n||!r?!1:r.translateX-n.translateX<20}_updateOverlappingThumbClassNames(n){let r=n.getSibling(),s=this._getThumb(n.thumbPosition);this._getThumb(r.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),s._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(n){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(n))}_updateThumbUI(n){if(this._skipUpdate())return;let r=this._getThumb(n.thumbPosition===2?2:1);r._hostElement.style.transform=`translateX(${n.translateX}px)`}_updateValueIndicatorUI(n){if(this._skipUpdate())return;let r=this.displayWith(n.value);if(this._hasViewInitialized?n._valuetext=r:n._hostElement.setAttribute("aria-valuetext",r),this.discrete){n.thumbPosition===1?this.startValueIndicatorText=r:this.endValueIndicatorText=r;let s=this._getThumb(n.thumbPosition);r.length<3?s._hostElement.classList.add("mdc-slider__thumb--short-value"):s._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let n=this._getInput(2),r=this._getInput(1);n&&this._updateValueIndicatorUI(n),r&&this._updateValueIndicatorUI(r)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let n=this._step&&this._step>0?this._step:1,s=(Math.floor(this.max/n)*n-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*s-6}_updateTrackUI(n){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(n):this._updateTrackUINonRange(n))}_updateTrackUIRange(n){let r=n.getSibling();if(!r||!this._cachedWidth)return;let s=Math.abs(r.translateX-n.translateX)/this._cachedWidth;n._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-r.translateX}px`,transformOrigin:"right",transform:`scaleX(${s})`}):this._setTrackActiveStyles({left:`${r.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${s})`})}_updateTrackUINonRange(n){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-n.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${n.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let n=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(n):this._updateTickMarkUINonRange(n),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(n){let r=this._getValue(),s=Math.max(Math.round((r-this.min)/n),0),o=Math.max(Math.round((this.max-r)/n),0);this._isRtl?s++:o++,this._tickMarks=Array(s).fill(0).concat(Array(o).fill(1))}_updateTickMarkUIRange(n){let r=this._getValue(),s=this._getValue(1),o=Math.max(Math.floor((s-this.min)/n),0),a=Math.max(Math.floor((r-s)/n)+1,0),c=Math.max(Math.floor((this.max-r)/n),0);this._tickMarks=Array(o).fill(1).concat(Array(a).fill(0),Array(c).fill(1))}_getInput(n){if(n===2&&this._input)return this._input;if(this._inputs?.length)return n===1?this._inputs.first:this._inputs.last}_getThumb(n){return n===2?this._thumbs?.last:this._thumbs?.first}_setTransition(n){this._hasAnimation=!this._platform.IOS&&n&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(n,r){let s=r.width/2,o=r.x+s,a=r.y+s,c=n.clientX-o,l=n.clientY-a;return Math.pow(c,2)+Math.pow(l,2)Eu),multi:!0};var Eu=(()=>{let e=class e{get value(){return rt(this._hostElement.value)}set value(n){let r=rt(n).toString();if(!this._hasSetInitialValue){this._initialValue=r;return}this._isActive||(this._hostElement.value=r,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck())}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(n){this._translateX=n}get min(){return rt(this._hostElement.min)}set min(n){this._hostElement.min=rt(n).toString(),this._cdr.detectChanges()}get max(){return rt(this._hostElement.max)}set max(n){this._hostElement.max=rt(n).toString(),this._cdr.detectChanges()}get step(){return rt(this._hostElement.step)}set step(n){this._hostElement.step=rt(n).toString(),this._cdr.detectChanges()}get disabled(){return xt(this._hostElement.disabled)}set disabled(n){this._hostElement.disabled=xt(n),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(n){this._isFocused=n}constructor(n,r,s,o){this._ngZone=n,this._elementRef=r,this._cdr=s,this._slider=o,this.valueChange=new J,this.dragStart=new J,this.dragEnd=new J,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new ce,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=pe(yt),this._hostElement=r.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(n){if(!(this.disabled||n.button!==0)){if(this._platform.IOS){let r=this._slider._isCursorOnSliderThumb(n,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=r,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(n,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(n),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(n){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(n)},0)}_fixValue(n){let r=n.clientX-this._slider._cachedLeft,s=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),c=this._slider._isRtl?1-r/s:r/s,u=Math.round(c*a)/a*(this._slider.max-this._slider.min)+this._slider.min,h=Math.round(u/o)*o,p=this.value;if(h===p){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(n,{withAnimation:this._slider._hasAnimation});return}this.value=h,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(n,{withAnimation:this._slider._hasAnimation})}_onPointerMove(n){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(n)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(n){return Math.max(Math.min(n,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(n){return n.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(n){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(n)}_updateThumbUIByPointerEvent(n,r){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(n)),this._updateThumbUI(r)}_updateThumbUI(n){this._slider._setTransition(!!n?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(n){(this._isControlInitialized||n!==null)&&(this.value=n)}registerOnChange(n){this._onChangeFn=n,this._isControlInitialized=!0}registerOnTouched(n){this._onTouchedFn=n}setDisabledState(n){this.disabled=n}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}};e.\u0275fac=function(r){return new(r||e)(A(ne),A(me),A(it),A(Du))},e.\u0275dir=_e({type:e,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(r,s){r&1&&$e("change",function(){return s._onChange()})("input",function(){return s._onInput()})("blur",function(){return s._onBlur()})("focus",function(){return s._onFocus()}),r&2&&at("aria-valuetext",s._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[ke([zC,{provide:mg,useExisting:e}])]});let t=e;return t})();var _g=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[Zt,Ho]});let t=e;return t})();var wg=wv(bg());var zo=!1,Wo=class{constructor(e){this.storage=e,this.observables=new Map,this.signals=new Map}set(e,i){let n=this.observables.get(e);n&&n.getValue()!==i&&n.next(i);let r=this.signals.get(e);r&&(zo=!0,r.set(i),zo=!1)}removed(e){let i=this.observables.get(e);i&&i.next(void 0);let n=this.signals.get(e);n&&n.set(void 0)}getObservable(e,i){let n=this.observables.get(e);return n||(n=new zt(void 0),this.observables.set(e,n)),i!==null&&n.next(i),n.pipe(_a({refCount:!0,bufferSize:1}))}getSignal(e,i,n){let r=this.signals.get(e);return r||(r=Zc(i,{equal:n}),this.signals.set(e,r)),i!==void 0&&r.set(i),r.asReadonly()}getWritableSignal(e,i,n){let r=this.signals.get(e);if(!r){r=Zc(i,{equal:n});let s=r.set;r.set=o=>{zo||this.storage.set(e,o).catch(console?.error),s(o)},r.update=o=>{let a=o(r());zo||this.storage.set(e,a).catch(console?.error),s(a)},this.signals.set(e,r)}return r}dispose(){this.observables.clear(),this.signals.clear()}};var Go=class{constructor(e="table",i="db"){this.observer=new Wo(this),this.listener=n=>{if(n.data&&typeof n.data=="object"){let r=n.data;switch(r.type){case"set":this.observer.set(r.key,r.value);break;case"remove":this.observer.removed(r.key);break}}},this.tableName=e||"table",this.dbName=i||"db",this.store=wg.createInstance({name:this.dbName,storeName:this.tableName}),this.channel=new BroadcastChannel(this.dbName+"."+this.tableName),this.channel.addEventListener("message",this.listener,{passive:!0})}get(e){return new Promise((i,n)=>{this.store.getItem(e).then(r=>{r!==null&&this.observer.set(e,r),i(r)}).catch(r=>n(r))})}getObservable(e){let i=this.observer.getObservable(e,void 0);return this.get(e).catch(),i}getSignal(e,i){let n=this.observer.getSignal(e,i?.initialValue,i?.equal);return this.get(e).catch(),n}getWritableSignal(e,i){let n=this.observer.getWritableSignal(e,i?.initialValue,i?.equal);return this.get(e).catch(),n}set(e,i){return new Promise((n,r)=>{this.store.setItem(e,i).then(()=>{this.observer.set(e,i),this.broadcastChange({type:"set",key:e,value:i}),n()}).catch(r)})}remove(e){return new Promise((i,n)=>{this.store.removeItem(e).then(()=>{this.observer.removed(e),this.broadcastChange({type:"remove",key:e}),i()}).catch(n)})}getKeys(){return this.store.keys()}clear(){return new Promise((e,i)=>{this.getKeys().then(n=>{n.forEach(r=>this.observer.removed(r)),this.store.clear().then(()=>e()).catch(i)}).catch(i)})}dispose(){this.observer.dispose(),this.channel.removeEventListener("message",this.listener),this.channel.close()}broadcastChange(e){this.channel.postMessage(e)}};var Dg=(()=>{let e=class e{constructor(){this.storage=new Go("example","ngx-reactive-storage"),this.$toggle=this.storage.getWritableSignal("toggle",{initialValue:!0}),this.$slider=this.storage.getWritableSignal("slider",{initialValue:50}),this.$expanded=this.storage.getWritableSignal("expanded")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Tt({type:e,selectors:[["app-root"]],standalone:!0,features:[_p],decls:11,vars:7,consts:[[3,"checked","change"],[3,"min","max","step"],["matSliderThumb","",3,"ngModel","ngModelChange"],[3,"hideToggle","expanded","expandedChange"]],template:function(r,s){r&1&&(le(0,"mat-slide-toggle",0),$e("change",function(a){return s.$toggle.set(a.checked)}),Ln(1,"Toggle me!"),ge(),le(2,"mat-slider",1)(3,"input",2),$e("ngModelChange",function(a){return s.$slider.set(a)}),ge()(),le(4,"mat-accordion")(5,"mat-expansion-panel",3),$e("expandedChange",function(a){return s.$expanded.set(a)}),le(6,"mat-expansion-panel-header")(7,"mat-panel-title"),Ln(8,"Expand me!"),ge()(),le(9,"p"),Ln(10,"Magic of Reactive Storage!"),ge()()()),r&2&&(xe("checked",s.$toggle()),Ce(2),xe("min",0)("max",100)("step",1),Ce(1),xe("ngModel",s.$slider()),Ce(2),xe("hideToggle",!0)("expanded",s.$expanded()))},dependencies:[pg,wu,_g,vg,Eu,km,Fo,Nm,Xl,fg,dg,yu,bu,ug],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;gap:1em;padding:1em}"]});let t=e;return t})();Lp(Dg,{providers:[pm()]}).catch(t=>console.error(t)); + `)}`}function Hs(t){return{toString:t}.toString()}var mf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(mf||{}),Lt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Lt||{}),oi={},Je=[];function gf(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let s=e.length;if(r+s===n||t.charCodeAt(r+s)<=32)return r}i=r+1}}function Ba(t,e,i){let n=0;for(;ne){o=s-1;break}}}for(;ss?p="":p=r[h+1].toLowerCase();let _=n&8?p:null;if(_&&gf(_,l,0)!==-1||n&2&&l!==p){if(Et(n))return!1;o=!0}}}}return Et(n)||o}function Et(t){return(t&1)===0}function I_(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let s=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Et(o)&&(e+=Pd(s,r),r=""),n=o,s=s||!Et(n);i++}return r!==""&&(e+=Pd(s,r)),e}function x_(t){return t.map(A_).join(",")}function N_(t){let e=[],i=[],n=1,r=2;for(;n{let e=Ef(t),i=We(Z({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===mf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Lt.Emulated,styles:t.styles||Je,_:null,schemas:t.schemas||null,tView:null,id:""});If(i);let n=t.dependencies;return i.directiveDefs=Vd(n,!1),i.pipeDefs=Vd(n,!0),i.id=F_(i),i})}function O_(t){return ai(t)||wf(t)}function R_(t){return t!==null}function he(t){return Hs(()=>({type:t.type,bootstrap:t.bootstrap||Je,declarations:t.declarations||Je,imports:t.imports||Je,exports:t.exports||Je,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ld(t,e){if(t==null)return oi;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),i[r]=n,e&&(e[r]=s)}return i}function _e(t){return Hs(()=>{let e=Ef(t);return If(e),e})}function ai(t){return t[t_]||null}function wf(t){return t[n_]||null}function Df(t){return t[i_]||null}function k_(t){let e=ai(t)||wf(t)||Df(t);return e!==null?e.standalone:!1}function Ef(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||oi,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Je,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ld(t.inputs,e),outputs:Ld(t.outputs),debugInfo:null}}function If(t){t.features?.forEach(e=>e(t))}function Vd(t,e){if(!t)return null;let i=e?Df:O_;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(R_)}function F_(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483647+1,"c"+e}var Kt=0,$=1,U=2,Ae=3,Ct=4,ot=5,Yi=6,Zi=7,je=8,ci=9,Xi=10,Ie=11,Ji=12,jd=13,mi=14,mt=15,rr=16,ni=17,Pt=18,$s=19,Cf=20,qi=21,wa=22,En=23,Be=25,Mf=1;var In=7,Is=8,li=9,Ue=10,ui=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t[t.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",t}(ui||{});function tn(t){return Array.isArray(t)&&typeof t[Mf]=="object"}function Mt(t){return Array.isArray(t)&&t[Mf]===!0}function Tf(t){return(t.flags&4)!==0}function zs(t){return t.componentOffset>-1}function Ac(t){return(t.flags&1)===1}function nn(t){return!!t.template}function P_(t){return(t[U]&512)!==0}function di(t,e){let i=t.hasOwnProperty(Ds);return i?t[Ds]:null}var Ua=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function on(){return Sf}function Sf(t){return t.type.prototype.ngOnChanges&&(t.setInput=V_),L_}on.ngInherit=!0;function L_(){let t=xf(this),e=t?.current;if(e){let i=t.previous;if(i===oi)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function V_(t,e,i,n){let r=this.declaredInputs[i],s=xf(t)||j_(t,{previous:oi,current:null}),o=s.current||(s.current={}),a=s.previous,c=a[r];o[r]=new Ua(c&&c.currentValue,e,a===oi),t[n]=e}var Af="__ngSimpleChanges__";function xf(t){return t[Af]||null}function j_(t,e){return t[Af]=e}var Bd=null;var kt=function(t,e,i){Bd?.(t,e,i)},Nf="svg",B_="math";function Vt(t){for(;Array.isArray(t);)t=t[Kt];return t}function Of(t,e){return Vt(e[t])}function gt(t,e){return Vt(e[t.index])}function xc(t,e){return t.data[e]}function U_(t,e){return t[e]}function an(t,e){let i=e[t];return tn(i)?i:i[Kt]}function H_(t){return(t[U]&4)===4}function Nc(t){return(t[U]&128)===128}function $_(t){return Mt(t[Ae])}function Cs(t,e){return e==null?null:t[e]}function Rf(t){t[ni]=0}function z_(t){t[U]&1024||(t[U]|=1024,Nc(t)&&Ws(t))}function W_(t,e){for(;t>0;)e=e[mi],t--;return e}function kf(t){t[U]&9216&&Ws(t)}function Ws(t){let e=t[Ae];for(;e!==null&&!(Mt(e)&&e[U]&ui.HasChildViewsToRefresh||tn(e)&&e[U]&8192);){if(Mt(e))e[U]|=ui.HasChildViewsToRefresh;else if(e[U]|=8192,!Nc(e))break;e=e[Ae]}}function G_(t,e){if((t[U]&256)===256)throw new O(911,!1);t[qi]===null&&(t[qi]=[]),t[qi].push(e)}var G={lFrame:zf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function q_(){return G.lFrame.elementDepthCount}function K_(){G.lFrame.elementDepthCount++}function Q_(){G.lFrame.elementDepthCount--}function Ff(){return G.bindingsEnabled}function Pf(){return G.skipHydrationRootTNode!==null}function Y_(t){return G.skipHydrationRootTNode===t}function Z_(){G.skipHydrationRootTNode=null}function ee(){return G.lFrame.lView}function Pe(){return G.lFrame.tView}function tt(){let t=Lf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Lf(){return G.lFrame.currentTNode}function X_(){let t=G.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function sr(t,e){let i=G.lFrame;i.currentTNode=t,i.isParent=e}function Vf(){return G.lFrame.isParent}function jf(){G.lFrame.isParent=!1}function J_(){return G.lFrame.contextLView}function ey(t){return G.lFrame.bindingIndex=t}function gi(){return G.lFrame.bindingIndex++}function Bf(t){let e=G.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ty(){return G.lFrame.inI18n}function ny(t,e){let i=G.lFrame;i.bindingIndex=i.bindingRootIndex=t,Ha(e)}function iy(){return G.lFrame.currentDirectiveIndex}function Ha(t){G.lFrame.currentDirectiveIndex=t}function ry(t){let e=G.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Uf(){return G.lFrame.currentQueryIndex}function Oc(t){G.lFrame.currentQueryIndex=t}function sy(t){let e=t[$];return e.type===2?e.declTNode:e.type===1?t[ot]:null}function Hf(t,e,i){if(i&Y.SkipSelf){let r=e,s=t;for(;r=r.parent,r===null&&!(i&Y.Host);)if(r=sy(s),r===null||(s=s[mi],r.type&10))break;if(r===null)return!1;e=r,t=s}let n=G.lFrame=$f();return n.currentTNode=e,n.lView=t,!0}function Rc(t){let e=$f(),i=t[$];G.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function $f(){let t=G.lFrame,e=t===null?null:t.child;return e===null?zf(t):e}function zf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Wf(){let t=G.lFrame;return G.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Gf=Wf;function kc(){let t=Wf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function oy(t){return(G.lFrame.contextLView=W_(t,G.lFrame.contextLView))[je]}function kn(){return G.lFrame.selectedIndex}function Cn(t){G.lFrame.selectedIndex=t}function Fc(){let t=G.lFrame;return xc(t.tView,t.selectedIndex)}function qf(){G.lFrame.currentNamespace=Nf}function ay(){return G.lFrame.currentNamespace}var Kf=!0;function Pc(){return Kf}function Lc(t){Kf=t}function cy(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){let o=Sf(e);(i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o)}r&&(i.preOrderHooks??=[]).push(0-t,r),s&&((i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s))}function Vc(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[c]<0&&(t[ni]+=65536),(a>14>16&&(t[U]&3)===e&&(t[U]+=16384,Ud(a,s)):Ud(a,s)}var si=-1,Mn=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function uy(t){return t instanceof Mn}function dy(t){return(t.flags&8)!==0}function fy(t){return(t.flags&16)!==0}function Yf(t){return t!==si}function Ms(t){let e=t&32767;return t&32767}function hy(t){return t>>16}function Ts(t,e){let i=hy(t),n=e;for(;i>0;)n=n[mi],i--;return n}var $a=!0;function Hd(t){let e=$a;return $a=t,e}var py=256,Zf=py-1,Xf=5,my=0,Ft={};function gy(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(zi)&&(n=i[zi]),n==null&&(n=i[zi]=my++);let r=n&Zf,s=1<>Xf)]|=s}function Ss(t,e){let i=Jf(t,e);if(i!==-1)return i;let n=e[$];n.firstCreatePass&&(t.injectorIndex=e.length,Ea(n.data,t),Ea(e,null),Ea(n.blueprint,null));let r=jc(t,e),s=t.injectorIndex;if(Yf(r)){let o=Ms(r),a=Ts(r,e),c=a[$].data;for(let l=0;l<8;l++)e[s+l]=a[o+l]|c[o+l]}return e[s+8]=r,s}function Ea(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function jc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=rh(r),n===null)return si;if(i++,r=r[mi],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return si}function za(t,e,i){gy(t,e,i)}function vy(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r>20,h=n?a:a+u,p=r?a+u:l;for(let _=h;_=c&&b.type===i)return _}if(r){let _=o[c];if(_&&nn(_)&&_.type===i)return c}return null}function Tn(t,e,i,n){let r=t[i],s=e.data;if(uy(r)){let o=r;o.resolving&&s_(r_(s[i]));let a=Hd(o.canSeeViewProviders);o.resolving=!0;let c,l=o.injectImpl?Rt(o.injectImpl):null,u=Hf(t,n,Y.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&cy(i,s[i],e)}finally{l!==null&&Rt(l),Hd(a),o.resolving=!1,Gf()}}return r}function yy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(zi)?t[zi]:void 0;return typeof e=="number"?e>=0?e&Zf:by:e}function $d(t,e,i){let n=1<>Xf)]&n)}function zd(t,e){return!(t&Y.Self)&&!(t&Y.Host&&e)}var Dn=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return nh(this._tNode,this._lView,e,Us(n),i)}};function by(){return new Dn(tt(),ee())}function vi(t){return Hs(()=>{let e=t.prototype.constructor,i=e[Ds]||Wa(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let s=r[Ds]||Wa(r);if(s&&s!==i)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Wa(t){return uf(t)?()=>{let e=Wa(Ge(t));return e&&e()}:di(t)}function wy(t,e,i,n,r){let s=t,o=e;for(;s!==null&&o!==null&&o[U]&2048&&!(o[U]&512);){let a=ih(s,o,i,n|Y.Self,Ft);if(a!==Ft)return a;let c=s.parent;if(!c){let l=o[Cf];if(l){let u=l.get(i,Ft,n);if(u!==Ft)return u}c=rh(o),o=o[mi]}s=c}return r}function rh(t){let e=t[$],i=e.type;return i===2?e.declTNode:i===1?t[ot]:null}function Gs(t){return vy(tt(),t)}function Dy(t){return typeof t=="function"}function Ey(t,e,i){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(i)?Bc(i,e):e(i))}function sh(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function As(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function oh(t,e){let i=[];for(let n=0;ne;){let s=r-2;t[r]=t[s],r--}t[e]=i,t[e+1]=n}}function Uc(t,e,i){let n=or(t,e);return n>=0?t[n|1]=i:(n=~n,Cy(t,n,e,i)),n}function Ia(t,e){let i=or(t,e);if(i>=0)return t[i|1]}function or(t,e){return My(t,e,1)}function My(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let s=n+(r-n>>1),o=t[s<e?r=s:n=s+1}return~(r<{i.push(o)};return Bc(e,o=>{let a=o;Ga(a,s,[],n)&&(r||=[],r.push(a))}),r!==void 0&&dh(r,s),i}function dh(t,e){for(let i=0;i{e(s,n)})}}function Ga(t,e,i,n){if(t=Ge(t),!t)return!1;let r=null,s=Od(t),o=!s&&ai(t);if(!s&&!o){let c=t.ngModule;if(s=Od(c),s)r=c;else return!1}else{if(o&&!o.standalone)return!1;r=t}let a=n.has(r);if(o){if(a)return!1;if(n.add(r),o.dependencies){let c=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let l of c)Ga(l,e,i,n)}}else if(s){if(s.imports!=null&&!a){n.add(r);let l;try{Bc(s.imports,u=>{Ga(u,e,i,n)&&(l||=[],l.push(u))})}finally{}l!==void 0&&dh(l,e)}if(!a){let l=di(r)||(()=>new r);e({provide:r,useFactory:l,deps:Je},r),e({provide:ch,useValue:r,multi:!0},r),e({provide:qs,useValue:()=>F(r),multi:!0},r)}let c=s.providers;if(c!=null&&!a){let l=t;Hc(c,u=>{e(u,l)})}}else return!1;return r!==t&&t.providers!==void 0}function Hc(t,e){for(let i of t)df(i)&&(i=i.\u0275providers),Array.isArray(i)?Hc(i,e):e(i)}var Sy=de({provide:String,useValue:de});function fh(t){return t!==null&&typeof t=="object"&&Sy in t}function Ay(t){return!!(t&&t.useExisting)}function xy(t){return!!(t&&t.useFactory)}function fi(t){return typeof t=="function"}function Ny(t){return!!t.useClass}var Ks=new V("Set Injector scope."),ys={},Oy={},Ca;function $c(){return Ca===void 0&&(Ca=new xs),Ca}var rn=class{},Ns=class extends rn{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ka(e,o=>this.processProvider(o)),this.records.set(ah,ii(void 0,this)),r.has("environment")&&this.records.set(rn,ii(void 0,this));let s=this.records.get(Ks);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(ch,Je,Y.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=ti(this),n=Rt(void 0),r;try{return e()}finally{ti(i),Rt(n)}}get(e,i=Ki,n=Y.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(xd))return e[xd](this);n=Us(n);let r,s=ti(this),o=Rt(void 0);try{if(!(n&Y.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=Ly(e)&&Sc(e);l&&this.injectableDefInScope(l)?c=ii(qa(e),ys):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&Y.Self?$c():this.parent;return i=n&Y.Optional&&i===Ki?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Es]=a[Es]||[]).unshift(st(e)),s)throw a;return __(a,e,"R3InjectorError",this.source)}else throw a}finally{Rt(o),ti(s)}}resolveInjectorInitializers(){let e=ti(this),i=Rt(void 0),n;try{let r=this.get(qs,Je,Y.Self);for(let s of r)s()}finally{ti(e),Rt(i)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(st(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(e){e=Ge(e);let i=fi(e)?e:Ge(e&&e.provide),n=ky(e);if(!fi(e)&&e.multi===!0){let r=this.records.get(i);r||(r=ii(void 0,ys,!0),r.factory=()=>ja(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}else{let r=this.records.get(i)}this.records.set(i,n)}hydrate(e,i){return i.value===ys&&(i.value=Oy,i.value=i.factory()),typeof i.value=="object"&&i.value&&Py(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Ge(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function qa(t){let e=Sc(t),i=e!==null?e.factory:di(t);if(i!==null)return i;if(t instanceof V)throw new O(204,!1);if(t instanceof Function)return Ry(t);throw new O(204,!1)}function Ry(t){let e=t.length;if(e>0){let n=oh(e,"?");throw new O(204,!1)}let i=c_(t);return i!==null?()=>i.factory(t):()=>new t}function ky(t){if(fh(t))return ii(void 0,t.useValue);{let e=hh(t);return ii(e,ys)}}function hh(t,e,i){let n;if(fi(t)){let r=Ge(t);return di(r)||qa(r)}else if(fh(t))n=()=>Ge(t.useValue);else if(xy(t))n=()=>t.useFactory(...ja(t.deps||[]));else if(Ay(t))n=()=>F(Ge(t.useExisting));else{let r=Ge(t&&(t.useClass||t.provide));if(Fy(t))n=()=>new r(...ja(t.deps));else return di(r)||qa(r)}return n}function ii(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Fy(t){return!!t.deps}function Py(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ly(t){return typeof t=="function"||typeof t=="object"&&t instanceof V}function Ka(t,e){for(let i of t)Array.isArray(i)?Ka(i,e):i&&df(i)?Ka(i.\u0275providers,e):e(i)}function Wd(t,e=null,i=null,n){let r=Vy(t,e,i,n);return r.resolveInjectorInitializers(),r}function Vy(t,e=null,i=null,n,r=new Set){let s=[i||Je,Ty(t)];return n=n||(typeof t=="object"?void 0:st(t)),new Ns(s,e||$c(),n||null,r)}var _i=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return Wd({name:""},r,n,"");{let s=n.name??"";return Wd({name:s},n.parent,n.providers,s)}}};e.THROW_IF_NOT_FOUND=Ki,e.NULL=new xs,e.\u0275prov=Q({token:e,providedIn:"any",factory:()=>F(ah)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var Qa;function ph(t){Qa=t}function jy(){if(Qa!==void 0)return Qa;if(typeof document<"u")return document;throw new O(210,!1)}var Qs=new V("AppId",{providedIn:"root",factory:()=>By}),By="ng",zc=new V("Platform Initializer"),cn=new V("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var nt=new V("AnimationModuleType"),ar=new V("CSP nonce",{providedIn:"root",factory:()=>jy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function mh(t){return(t.flags&128)===128}var Wt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Wt||{});var gh=new Map,Uy=0;function Hy(){return Uy++}function $y(t){gh.set(t[$s],t)}function zy(t){gh.delete(t[$s])}var Gd="__ngContext__";function Sn(t,e){tn(e)?(t[Gd]=e[$s],$y(e)):t[Gd]=e}var Wy;function Wc(t,e){return Wy(t,e)}function Gc(t){let e=t[Ae];return Mt(e)?e[Ae]:e}function vh(t){return yh(t[Ji])}function _h(t){return yh(t[Ct])}function yh(t){for(;t!==null&&!Mt(t);)t=t[Ct];return t}function ri(t,e,i,n,r){if(n!=null){let s,o=!1;Mt(n)?s=n:tn(n)&&(o=!0,n=n[Kt]);let a=Vt(n);t===0&&i!==null?r==null?Eh(e,i,a):Os(e,i,a,r||null,!0):t===1&&i!==null?Os(e,i,a,r||null,!0):t===2?ab(e,a,o):t===3&&e.destroyNode(a),s!=null&&lb(e,t,s,i,r)}}function Gy(t,e){return t.createText(e)}function qy(t,e,i){t.setValue(e,i)}function bh(t,e,i){return t.createElement(e,i)}function Ky(t,e){let i=e[Ie];cr(t,e,i,2,null,null),e[Kt]=null,e[ot]=null}function Qy(t,e,i,n,r,s){n[Kt]=r,n[ot]=e,cr(t,n,i,1,r,s)}function Yy(t,e){cr(t,e,e[Ie],2,null,null)}function Zy(t){let e=t[Ji];if(!e)return Ma(t[$],t);for(;e;){let i=null;if(tn(e))i=e[Ji];else{let n=e[Ue];n&&(i=n)}if(!i){for(;e&&!e[Ct]&&e!==t;)tn(e)&&Ma(e[$],e),e=e[Ae];e===null&&(e=t),tn(e)&&Ma(e[$],e),i=e&&e[Ct]}e=i}}function Xy(t,e,i,n){let r=Ue+n,s=i.length;n>0&&(i[r-1][Ct]=e),n0&&(t[i-1][Ct]=n[Ct]);let s=As(t,Ue+e);Ky(n[$],n);let o=s[Pt];o!==null&&o.detachView(s[$]),n[Ae]=null,n[Ct]=null,n[U]&=-129}return n}function Ys(t,e){if(!(e[U]&256)){let i=e[Ie];e[En]&&Zu(e[En]),i.destroyNode&&cr(t,e,i,3,null,null),Zy(e)}}function Ma(t,e){if(!(e[U]&256)){e[U]&=-129,e[U]|=256,tb(t,e),eb(t,e),e[$].type===1&&e[Ie].destroy();let i=e[rr];if(i!==null&&Mt(e[Ae])){i!==e[Ae]&&wh(i,e);let n=e[Pt];n!==null&&n.detachView(t)}zy(e)}}function eb(t,e){let i=t.cleanup,n=e[Zi];if(i!==null)for(let s=0;s=0?n[o]():n[-o].unsubscribe(),s+=2}else{let o=n[i[s+1]];i[s].call(o)}n!==null&&(e[Zi]=null);let r=e[qi];if(r!==null){e[qi]=null;for(let s=0;s-1){let{encapsulation:s}=t.data[n.directiveStart+r];if(s===Lt.None||s===Lt.Emulated)return null}return gt(n,i)}}function Os(t,e,i,n,r){t.insertBefore(e,i,n,r)}function Eh(t,e,i){t.appendChild(e,i)}function qd(t,e,i,n,r){n!==null?Os(t,e,i,n,r):Eh(t,e,i)}function ib(t,e,i,n){t.removeChild(e,i,n)}function qc(t,e){return t.parentNode(e)}function rb(t,e){return t.nextSibling(e)}function Ih(t,e,i){return ob(t,e,i)}function sb(t,e,i){return t.type&40?gt(t,i):null}var ob=sb,Kd;function Kc(t,e,i,n){let r=Dh(t,n,e),s=e[Ie],o=n.parent||e[ot],a=Ih(o,n,e);if(r!=null)if(Array.isArray(i))for(let c=0;cnull;function Yc(t,e,i=!1){return pb(t,e,i)}var Xa=class{},Rs=class{};function mb(t){let e=Error(`No component factory found for ${st(t)}.`);return e[gb]=t,e}var gb="ngComponent";var Ja=class{resolveComponentFactory(e){throw mb(e)}},lr=(()=>{let e=class e{};e.NULL=new Ja;let t=e;return t})();function vb(){return yi(tt(),ee())}function yi(t,e){return new me(gt(t,e))}var me=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=vb;let t=e;return t})();function _b(t){return t instanceof me?t.nativeElement:t}var An=class{},Xs=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>yb();let t=e;return t})();function yb(){let t=ee(),e=tt(),i=an(e.index,t);return(tn(i)?i:t)[Ie]}var bb=(()=>{let e=class e{};e.\u0275prov=Q({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),xn=class{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}},wb=new xn("17.0.3"),Ta={};function Zc(t,e){let i=id(t),n=i[Fi];return e?.equal&&(n.equal=e.equal),i.set=r=>oa(n,r),i.update=r=>rd(n,r),i.asReadonly=Db.bind(i),i}function Db(){let t=this[Fi];if(t.readonlyFn===void 0){let e=()=>this();e[Fi]=t,t.readonlyFn=e}return t.readonlyFn}function ks(t,e,i,n,r=!1){for(;i!==null;){let s=e[i.index];s!==null&&n.push(Vt(s)),Mt(s)&&Eb(s,n);let o=i.type;if(o&8)ks(t,e,i.child,n);else if(o&32){let a=Wc(i,e),c;for(;c=a();)n.push(c)}else if(o&16){let a=Ch(e,i);if(Array.isArray(a))n.push(...a);else{let c=Gc(e[mt]);ks(c[$],c,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function Eb(t,e){for(let i=Ue;i{Ws(t.lView)},consumerOnSignalRead(){this.lView[En]=this}}),Sb="ngOriginalError";function Sa(t){return t[Sb]}var Gt=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Sa(e);for(;i&&Sa(i);)i=Sa(i);return i||null}};var xh=!1,Ab=new V("",{providedIn:"root",factory:()=>xh});var ln={};function Ce(t){Nh(Pe(),ee(),kn()+t,!1)}function Nh(t,e,i,n){if(!n)if((e[U]&3)===3){let s=t.preOrderCheckHooks;s!==null&&gs(e,s,i)}else{let s=t.preOrderHooks;s!==null&&vs(e,s,0,i)}Cn(i)}function A(t,e=Y.Default){let i=ee();if(i===null)return F(t,e);let n=tt();return nh(n,i,Ge(t),e)}function xb(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;nBe&&Nh(t,e,Be,!1),kt(o?2:0,r),i(n,r)}finally{Cn(s),kt(o?3:1,r)}}function kh(t,e,i){if(Tf(e)){let n=Fe(null);try{let r=e.directiveStart,s=e.directiveEnd;for(let o=r;onull;function Pb(t,e,i,n){let r=Wh(e);r.push(i),t.firstCreatePass&&Gh(t).push(n,r.length-1)}function Lb(t,e,i,n,r,s){let o=e?e.injectorIndex:-1,a=0;return Pf()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Qd(t,e,i,n){for(let r in t)if(t.hasOwnProperty(r)){i=i===null?{}:i;let s=t[r];n===null?Yd(i,e,r,s):n.hasOwnProperty(r)&&Yd(i,e,n[r],s)}return i}function Yd(t,e,i,n){t.hasOwnProperty(i)?t[i].push(e,n):t[i]=[e,n]}function Vb(t,e,i){let n=e.directiveStart,r=e.directiveEnd,s=t.data,o=e.attrs,a=[],c=null,l=null;for(let u=n;u0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function $b(t,e,i,n){let r=i.directiveStart,s=i.directiveEnd;zs(i)&&Yb(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Ss(i,e),Sn(n,e);let o=i.initialInputs;for(let a=r;a-1&&(er(e,n),As(i,n))}this._attachedToViewContainer=!1}Ys(this._lView[$],this._lView)}onDestroy(e){G_(this._lView,e)}markForCheck(){el(this._cdRefInjectingView||this._lView)}detach(){this._lView[U]&=-129}reattach(){kf(this._lView),this._lView[U]|=128}detectChanges(){iw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Yy(this._lView[$],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=e}},it=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=cw;let t=e;return t})();function cw(t){return lw(tt(),ee(),(t&16)===16)}function lw(t,e,i){if(zs(t)&&!i){let n=an(t.index,e);return new Nn(n,n)}else if(t.type&47){let n=e[mt];return new Nn(n,e)}return null}var Zd=new Set;function to(t){Zd.has(t)||(Zd.add(t),performance?.mark?.("mark_use_counter",{detail:{feature:t}}))}var nc=class extends ce{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,i,n){let r=e,s=i||(()=>null),o=n;if(e&&typeof e=="object"){let c=e;r=c.next?.bind(c),s=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(s=Aa(s),r&&(r=Aa(r)),o&&(o=Aa(o)));let a=super.subscribe({next:r,error:s,complete:o});return e instanceof De&&e.add(a),a}};function Aa(t){return e=>{setTimeout(t,void 0,e)}}var J=nc;function Xd(...t){}function uw(){let t=typeof Wi.requestAnimationFrame=="function",e=Wi[t?"requestAnimationFrame":"setTimeout"],i=Wi[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}var ne=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=uw().nativeRequestAnimationFrame,hw(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new O(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,dw,Xd,Xd);try{return s.runTask(o,i,n)}finally{s.cancelTask(o)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},dw={};function tl(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function fw(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Wi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ic(t),t.isCheckStableRunning=!0,tl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ic(t))}function hw(t){let e=()=>{fw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,a)=>{if(pw(a))return i.invokeTask(r,s,o,a);try{return Jd(t),i.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),ef(t)}},onInvoke:(i,n,r,s,o,a,c)=>{try{return Jd(t),i.invoke(r,s,o,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),ef(t)}},onHasTask:(i,n,r,s)=>{i.hasTask(r,s),n===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ic(t),tl(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,n,r,s)=>(i.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ic(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Jd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ef(t){t._nesting--,tl(t)}var Jh=new V("",{providedIn:"root",factory:ep});function ep(){let t=pe(ne),e=!0,i=new se(r=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(e),r.complete()})}),n=new se(r=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,r.next(!0))})})});let o=t.onUnstable.subscribe(()=>{ne.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{s.unsubscribe(),o.unsubscribe()}});return Bi(i,n.pipe(Jn()))}function pw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var mw=(()=>{let e=class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=Q({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function gw(t,e){let i=an(e,t),n=i[$];vw(n,i);let r=i[Kt];r!==null&&i[Yi]===null&&(i[Yi]=Yc(r,i[ci])),nl(n,i,i[je])}function vw(t,e){for(let i=e.length;i0&&Th(t,i,s.join(" "))}}function Cw(t,e,i){let n=t.projection=[];for(let r=0;r=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Qi(r.hostAttrs,i=Qi(i,r.hostAttrs))}}function ps(t){return t===oi?{}:t===Je?[]:t}function Aw(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function xw(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,s)=>{e(n,r,s),i(n,r,s)}:t.contentQueries=e}function Nw(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function Fn(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[2]&&(i[n]=r[2])}t.inputTransforms=i}function un(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function at(t,e,i,n){let r=ee(),s=gi();if(un(r,s,e)){let o=Pe(),a=Fc();Zb(a,r,t,e,i,n)}return at}function Ow(t,e,i,n){return un(t,gi(),i)?e+Mc(i)+n:ln}function ms(t,e){return t<<17|e<<2}function On(t){return t>>17&32767}function Rw(t){return(t&2)==2}function kw(t,e){return t&131071|e<<17}function cc(t){return t|2}function hi(t){return(t&131068)>>2}function xa(t,e){return t&-131069|e<<2}function Fw(t){return(t&1)===1}function lc(t){return t|1}function Pw(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,a=On(o),c=hi(o);t[n]=i;let l=!1,u;if(Array.isArray(i)){let h=i;u=h[1],(u===null||or(h,u)>0)&&(l=!0)}else u=i;if(r)if(c!==0){let p=On(t[a+1]);t[n+1]=ms(p,a),p!==0&&(t[p+1]=xa(t[p+1],n)),t[a+1]=kw(t[a+1],n)}else t[n+1]=ms(a,0),a!==0&&(t[a+1]=xa(t[a+1],n)),a=n;else t[n+1]=ms(c,0),a===0?a=n:t[c+1]=xa(t[c+1],n),c=n;l&&(t[n+1]=cc(t[n+1])),nf(t,u,n,!0,s),nf(t,u,n,!1,s),Lw(e,u,t,n,s),o=ms(a,c),s?e.classBindings=o:e.styleBindings=o}function Lw(t,e,i,n,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof e=="string"&&or(s,e)>=0&&(i[n+1]=lc(i[n+1]))}function nf(t,e,i,n,r){let s=t[i+1],o=e===null,a=n?On(s):hi(s),c=!1;for(;a!==0&&(c===!1||o);){let l=t[a],u=t[a+1];Vw(l,e)&&(c=!0,t[a+1]=n?lc(u):cc(u)),a=n?On(u):hi(u)}c&&(t[i+1]=n?cc(s):lc(s))}function Vw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?or(t,e)>=0:!1}var It={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jw(t){return t.substring(It.key,It.keyEnd)}function Bw(t){return Uw(t),tp(t,np(t,0,It.textEnd))}function tp(t,e){let i=It.textEnd;return i===e?-1:(e=It.keyEnd=Hw(t,It.key=e,i),np(t,e,i))}function Uw(t){It.key=0,It.keyEnd=0,It.value=0,It.valueEnd=0,It.textEnd=t.length}function np(t,e,i){for(;e32;)e++;return e}function xe(t,e,i){let n=ee(),r=gi();if(un(n,r,e)){let s=Pe(),o=Fc();Vh(s,o,n,t,e,n[Ie],i,!1)}return xe}function uc(t,e,i,n,r){let s=e.inputs,o=r?"class":"style";Jc(t,i,s[o],o,n)}function dr(t,e,i){return ip(t,e,i,!1),dr}function He(t,e){return ip(t,e,null,!0),He}function no(t){zw(Yw,$w,t,!0)}function $w(t,e){for(let i=Bw(e);i>=0;i=tp(e,i))Uc(t,jw(e),!0)}function ip(t,e,i,n){let r=ee(),s=Pe(),o=Bf(2);if(s.firstUpdatePass&&sp(s,t,o,n),e!==ln&&un(r,o,e)){let a=s.data[kn()];op(s,a,r,r[Ie],t,r[o+1]=Xw(e,i),n,o)}}function zw(t,e,i,n){let r=Pe(),s=Bf(2);r.firstUpdatePass&&sp(r,null,s,n);let o=ee();if(i!==ln&&un(o,s,i)){let a=r.data[kn()];if(ap(a,n)&&!rp(r,s)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(i=La(c,i||"")),uc(r,a,o,i,n)}else Zw(r,a,o,o[Ie],o[s+1],o[s+1]=Qw(t,e,i),n,s)}}function rp(t,e){return e>=t.expandoStartIndex}function sp(t,e,i,n){let r=t.data;if(r[i+1]===null){let s=r[kn()],o=rp(t,i);ap(s,n)&&e===null&&!o&&(e=!1),e=Ww(r,s,e,n),Pw(r,s,e,i,o,n)}}function Ww(t,e,i,n){let r=ry(t),s=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Na(null,t,e,i,n),i=tr(i,e.attrs,n),s=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==r)if(i=Na(r,t,e,i,n),s===null){let c=Gw(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Na(null,t,e,c[1],n),c=tr(c,e.attrs,n),qw(t,e,n,c))}else s=Kw(t,e,n)}return s!==void 0&&(n?e.residualClasses=s:e.residualStyles=s),i}function Gw(t,e,i){let n=i?e.classBindings:e.styleBindings;if(hi(n)!==0)return t[On(n)]}function qw(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[On(r)]=n}function Kw(t,e,i){let n,r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0;){let c=t[r],l=Array.isArray(c),u=l?c[1]:c,h=u===null,p=i[r+1];p===ln&&(p=h?Je:void 0);let _=h?Ia(p,n):u===n?p:void 0;if(l&&!Ps(_)&&(_=Ia(c,n)),Ps(_)&&(a=_,o))return a;let b=t[r+1];r=o?On(b):hi(b)}if(e!==null){let c=s?e.residualClasses:e.residualStyles;c!=null&&(a=Ia(c,n))}return a}function Ps(t){return t!==void 0}function Xw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=st(Zs(t)))),t}function ap(t,e){return(t.flags&(e?8:16))!==0}var cN=new RegExp(`^(\\d+)*(${hb}|${fb})*(.*)`);var Jw=(t,e)=>null;function nr(t,e){return Jw(t,e)}var dc=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),s=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,s),this.attach(r,o)}else this.attach(n,s)}move(e,i){this.attach(i,this.detach(e))}};function Oa(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function eD(t,e,i){let n,r,s=0,o=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;s<=o&&s<=a;){let c=t.at(s),l=e[s],u=Oa(s,c,s,l,i);if(u!==0){u<0&&t.updateValue(s,l),s++;continue}let h=t.at(o),p=e[a],_=Oa(o,h,a,p,i);if(_!==0){_<0&&t.updateValue(o,p),o--,a--;continue}let b=i(s,c),D=i(o,h),N=i(s,l);if(Object.is(N,D)){let S=i(a,p);Object.is(S,b)?(t.swap(s,o),t.updateValue(o,p),a--,o--):t.move(o,s),t.updateValue(s,l),s++;continue}if(n??=new Ls,r??=of(t,s,o,i),fc(t,n,s,N))t.updateValue(s,l),s++,o++;else if(r.has(N))n.set(b,t.detach(s)),o--;else{let S=t.create(s,e[s]);t.attach(s,S),s++,o++}}for(;s<=a;)sf(t,n,i,s,e[s]),s++}else if(e!=null){let a=e[Symbol.iterator](),c=a.next();for(;!c.done&&s<=o;){let l=t.at(s),u=c.value,h=Oa(s,l,s,u,i);if(h!==0)h<0&&t.updateValue(s,u),s++,c=a.next();else{n??=new Ls,r??=of(t,s,o,i);let p=i(s,u);if(fc(t,n,s,p))t.updateValue(s,u),s++,o++,c=a.next();else if(!r.has(p))t.attach(s,t.create(s,u)),s++,o++,c=a.next();else{let _=i(s,l);n.set(_,t.detach(s)),o--}}}for(;!c.done;)sf(t,n,i,t.length,c.value),c=a.next()}for(;s<=o;)t.destroy(t.detach(o--));n?.forEach(a=>{t.destroy(a)})}function fc(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function sf(t,e,i,n,r){if(fc(t,e,n,i(n,r)))t.updateValue(n,r);else{let s=t.create(n,r);t.attach(n,s)}}function of(t,e,i,n){let r=new Set;for(let s=e;s<=i;s++)r.add(n(s,t.at(s)));return r}var Ls=class{constructor(){this.map=new Map}has(e){let i=this.map.get(e);return i!==void 0&&i.length>0}delete(e){let i=this.map.get(e);return i!==void 0?(i.shift(),!0):!1}get(e){let i=this.map.get(e);return i!==void 0&&i.length>0?i[0]:void 0}set(e,i){if(!this.map.has(e)){this.map.set(e,[i]);return}this.map.get(e)?.push(i)}forEach(e){for(let[i,n]of this.map)for(let r of n)e(r,i)}};function io(t,e,i,n){let r=e.tView,o=t[U]&4096?4096:16,a=Js(t,r,i,o,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),c=t[e.index];a[rr]=c;let l=t[Pt];return l!==null&&(a[Pt]=l.createEmbeddedView(r)),nl(r,a,i),a}function cp(t,e){let i=Ue+e;if(i{let e=class e{};e.__NG_ELEMENT_ID__=tD;let t=e;return t})();function tD(){let t=tt();return dp(t,ee())}var nD=Pn,up=class extends nD{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return yi(this._hostTNode,this._hostLView)}get injector(){return new Dn(this._hostTNode,this._hostLView)}get parentInjector(){let e=jc(this._hostTNode,this._hostLView);if(Yf(e)){let i=Ts(e,this._hostLView),n=Ms(e),r=i[$].data[n+8];return new Dn(r,i)}else return new Dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=af(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(e,i,n){let r,s;typeof n=="number"?r=n:n!=null&&(r=n.index,s=n.injector);let o=nr(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},s,o);return this.insertImpl(a,r,ir(this._hostTNode,o)),a}createComponent(e,i,n,r,s){let o=e&&!Dy(e),a;if(o)a=i;else{let b=i||{};a=b.index,n=b.injector,r=b.projectableNodes,s=b.environmentInjector||b.ngModuleRef}let c=o?e:new Fs(ai(e)),l=n||this.parentInjector;if(!s&&c.ngModule==null){let D=(o?l:this.parentInjector).get(rn,null);D&&(s=D)}let u=ai(c.componentType??{}),h=nr(this._lContainer,u?.id??null),p=h?.firstChild??null,_=c.create(l,r,p,s);return this.insertImpl(_.hostView,a,ir(this._hostTNode,h)),_}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if($_(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=r[Ae],l=new up(c,c[ot],c[Ae]);l.detach(l.indexOf(e))}}let s=this._adjustIndex(i),o=this._lContainer;return ro(o,r,s,n),e.attachToViewContainerRef(),sh(Ra(o),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=af(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=er(this._lContainer,i);n&&(As(Ra(this._lContainer),i),Ys(n[$],n))}detach(e){let i=this._adjustIndex(e,-1),n=er(this._lContainer,i);return n&&As(Ra(this._lContainer),i)!=null?new Nn(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function af(t){return t[Is]}function Ra(t){return t[Is]||(t[Is]=[])}function dp(t,e){let i,n=e[t.index];return Mt(n)?i=n:(i=$h(n,e,null,t),e[t.index]=i,eo(e,i)),rD(i,e,t,n),new up(i,t,e)}function iD(t,e){let i=t[Ie],n=i.createComment(""),r=gt(e,t),s=qc(i,r);return Os(i,s,n,rb(i,r),!1),n}var rD=aD,sD=(t,e,i)=>!1;function oD(t,e,i){return sD(t,e,i)}function aD(t,e,i,n){if(t[In])return;let r;i.type&8?r=Vt(n):r=iD(e,i),t[In]=r}function cD(t,e,i,n,r,s,o,a,c){let l=e.consts,u=ur(e,t,4,o||null,Cs(l,a));jh(e,i,u,Cs(l,c)),Vc(e,u);let h=u.tView=Xc(2,u,n,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}function et(t,e,i,n,r,s,o,a){let c=ee(),l=Pe(),u=t+Be,h=l.firstCreatePass?cD(u,l,c,e,i,n,r,s,o):l.data[u];sr(h,!1);let p=lD(l,c,h,t);Pc()&&Kc(l,c,p,h),Sn(p,c);let _=$h(p,c,p,h);return c[u]=_,eo(c,_),oD(_,h,c),Ac(h)&&Fh(l,c,h),o!=null&&Ph(c,h,a),et}var lD=uD;function uD(t,e,i,n){return Lc(!0),e[Ie].createComment("")}function jt(t,e,i){to("NgControlFlow");let n=ee(),r=gi(),s=gc(n,Be+t),o=0;if(un(n,r,e)){let a=Fe(null);try{if(lp(s,o),e!==-1){let c=vc(n[$],e),l=nr(s,c.tView.ssrId),u=io(n,c,i,{dehydratedView:l});ro(s,u,o,ir(c,l))}}finally{Fe(a)}}else{let a=cp(s,o);a!==void 0&&(a[je]=i)}}var hc=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-Ue}};function fp(t,e){return e}var pc=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function hp(t,e,i,n,r,s,o,a,c,l,u){to("NgControlFlow");let h=c!==void 0,p=ee(),_=a?o.bind(p[mt][je]):o,b=new pc(h,_);p[Be+t]=b,et(t+1,e,i,n,r,s),h&&et(t+2,c,l,u)}var mc=class extends dc{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ue}at(e){return this.getLView(e)[je].$implicit}attach(e,i){let n=i[Yi];this.needsIndexUpdate||=e!==this.length,ro(this.lContainer,i,e,ir(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,dD(this.lContainer,e)}create(e,i){let n=nr(this.lContainer,this.templateTNode.tView.ssrId);return io(this.hostLView,this.templateTNode,new hc(this.lContainer,i,e),{dehydratedView:n})}destroy(e){Ys(e[$],e)}updateValue(e,i){this.getLView(e)[je].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Lc(!0),bh(n,r,ay()));function so(t,e,i){let n=ee(),r=gi();if(un(n,r,e)){let s=Pe(),o=Fc();Vh(s,o,n,t,e,n[Ie],i,!0)}return so}var Vs="en-US";var mD=Vs;function gD(t){o_(t,"Expected localeId to be defined"),typeof t=="string"&&(mD=t.toLowerCase().replace(/_/g,"-"))}function fr(t){return!!t&&typeof t.then=="function"}function mp(t){return!!t&&typeof t.subscribe=="function"}function $e(t,e,i,n){let r=ee(),s=Pe(),o=tt();return _D(s,r,r[Ie],o,t,e,n),$e}function vD(t,e,i,n){let r=t.cleanup;if(r!=null)for(let s=0;sc?a[c]:null}typeof o=="string"&&(s+=2)}return null}function _D(t,e,i,n,r,s,o){let a=Ac(n),l=t.firstCreatePass&&Gh(t),u=e[je],h=Wh(e),p=!0;if(n.type&3||o){let D=gt(n,e),N=o?o(D):D,S=h.length,H=o?X=>o(Vt(X[n.index])):n.index,B=null;if(!o&&a&&(B=vD(t,e,r,n.index)),B!==null){let X=B.__ngLastListenerFn__||B;X.__ngNextListenerFn__=s,B.__ngLastListenerFn__=s,p=!1}else{s=lf(n,e,u,s,!1);let X=i.listen(N,r,s);h.push(s,X),l&&l.push(r,H,S,S+1)}}else s=lf(n,e,u,s,!1);let _=n.outputs,b;if(p&&_!==null&&(b=_[r])){let D=b.length;if(D)for(let N=0;N-1?an(t.index,e):e;el(a);let c=cf(e,i,n,o),l=s.__ngNextListenerFn__;for(;l;)c=cf(e,i,l,o)&&c,l=l.__ngNextListenerFn__;return r&&c===!1&&o.preventDefault(),c}}function Qt(t=1){return oy(t)}function yD(t,e){let i=null,n=C_(t);for(let r=0;r(Lc(!0),Gy(e[Ie],n));function il(t){return rl("",t,""),il}function rl(t,e,i){let n=ee(),r=Ow(n,t,e,i);return r!==ln&&tw(n,kn(),r),rl}function wD(t,e,i){let n=Pe();if(n.firstCreatePass){let r=nn(t);_c(i,n.data,n.blueprint,r,!0),_c(e,n.data,n.blueprint,r,!1)}}function _c(t,e,i,n,r){if(t=Ge(t),Array.isArray(t))for(let s=0;s>20;if(fi(t)||!t.multi){let _=new Mn(l,r,A),b=Fa(c,e,r?u:u+p,h);b===-1?(za(Ss(a,o),s,c),ka(s,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(_),o.push(_)):(i[b]=_,o[b]=_)}else{let _=Fa(c,e,u+p,h),b=Fa(c,e,u,u+p),D=_>=0&&i[_],N=b>=0&&i[b];if(r&&!N||!r&&!D){za(Ss(a,o),s,c);let S=ID(r?ED:DD,i.length,r,n,l);!r&&N&&(i[b].providerFactory=S),ka(s,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(S),o.push(S)}else{let S=vp(i[r?b:_],l,!r&&n);ka(s,t,_>-1?_:b,S)}!r&&n&&N&&i[b].componentProviders++}}}function ka(t,e,i,n){let r=fi(e),s=Ny(e);if(r||s){let c=(s?Ge(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=l.indexOf(i);u===-1?l.push(i,[n,c]):l[u+1].push(n,c)}else l.push(i,c)}}}function vp(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Fa(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>wD(n,r?r(t):t,e)}}var pi=class{};var js=class extends pi{constructor(e){super(),this.componentFactoryResolver=new sc(this),this.instance=null;let i=new Ns([...e.providers,{provide:pi,useValue:this},{provide:lr,useValue:this.componentFactoryResolver}],e.parent||$c(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function CD(t,e,i=null){return new js({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var MD=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=uh(!1,n.type),s=r.length>0?CD([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=Q({token:e,providedIn:"environment",factory:()=>new e(F(rn))});let t=e;return t})();function _p(t){to("NgStandalone"),t.getStandaloneInjector=e=>e.get(MD).getOrCreateStandaloneInjector(t)}function TD(){return this._results[Symbol.iterator]()}var sn=class t{get changes(){return this._changes||(this._changes=new J)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=TD)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=Iy(e);(this._changesDetected=!Ey(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},Rn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=xD;let t=e;return t})(),SD=Rn,AD=class extends SD{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=io(this._declarationLView,this._declarationTContainer,e,{injector:i,dehydratedView:n});return new Nn(r)}};function xD(){return sl(tt(),ee())}function sl(t,e){return t.type&4?new AD(e,t,yi(t,e)):null}var bc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},wc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let s=0;s0)n.push(o[a/2]);else{let l=s[a+1],u=e[-c];for(let h=Ue;h{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=pe(LD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let s of this.appInits){let o=s();if(fr(o))n.push(o);else if(mp(o)){let a=new Promise((c,l)=>{o.subscribe({complete:c,error:l})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function VD(){return typeof $localize<"u"&&$localize.locale||Vs}var oo=new V("LocaleId",{providedIn:"root",factory:()=>pe(oo,Y.Optional|Y.SkipSelf)||VD()});var jD=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new zt(!1)}add(){this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ip=new V("");var ws=null;var Cp=new V("PlatformDestroyListeners"),BD=new V("appBootstrapListener");function UD(){nd(()=>{throw new O(600,!1)})}function HD(t){return t.isBoundToModule}function $D(t=[]){if(ws)return ws;let e=WD(t);return ws=e,UD(),zD(e),e}function zD(t){t.get(zc,null)?.forEach(i=>i())}function Mp(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=$D(n),s=[ZD(),...i||[]],a=new js({providers:s,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(ne);return c.run(()=>{a.resolveInjectorInitializers();let l=a.get(Gt,null),u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:_=>{l.handleError(_)}})});let h=()=>a.destroy(),p=r.get(Cp);return p.add(h),a.onDestroy(()=>{u.unsubscribe(),p.delete(h)}),qD(l,c,()=>{let _=a.get(Ep);return _.runInitializers(),_.donePromise.then(()=>{let b=a.get(oo,Vs);gD(b||Vs);let D=a.get(hr);return e!==void 0&&D.bootstrap(e),D})})})}catch(e){return Promise.reject(e)}}function WD(t=[],e){return _i.create({name:e,providers:[{provide:Ks,useValue:"platform"},{provide:Cp,useValue:new Set([()=>ws=null])},...t]})}function GD(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function qD(t,e,i){try{let n=i();return fr(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var hr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=pe(Tp),this.zoneIsStable=pe(Jh),this.componentTypes=[],this.components=[],this.isStable=pe(jD).hasPendingTasks.pipe(ya(n=>n?ji(!1):this.zoneIsStable),wn(),Jn()),this._injector=pe(rn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let s=n instanceof Rs;if(!this._injector.get(Ep).done){let b="Cannot bootstrap as there are still asynchronous initializers running."+(!s&&k_(n)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new O(405,!1)}let a;s?a=n:a=this._injector.get(lr).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=HD(a)?void 0:this._injector.get(pi),l=r||a.selector,u=a.create(_i.NULL,[],l,c),h=u.location.nativeElement,p=u.injector.get(Ip,null);return p?.registerApplication(h),u.onDestroy(()=>{this.detachView(u.hostView),Pa(this.components,u),p?.unregisterApplication(h)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Pa(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(BD,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Pa(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pa(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var Tp=new V("",{providedIn:"root",factory:()=>pe(Gt).handleError.bind(void 0)});function KD(){let t=pe(ne),e=pe(Gt);return i=>t.runOutsideAngular(()=>e.handleError(i))}var QD=(()=>{let e=class e{constructor(){this.zone=pe(ne),this.applicationRef=pe(hr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function YD(t){return[{provide:ne,useFactory:t},{provide:qs,multi:!0,useFactory:()=>{let e=pe(QD,{optional:!0});return()=>e.initialize()}},{provide:Tp,useFactory:KD},{provide:Jh,useFactory:ep}]}function ZD(t){let e=YD(()=>new ne(GD(t)));return lh([[],e])}function Ye(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ol(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var al=null;function wi(){return al}function Sp(t){al||(al=t)}var ao=class{},ye=new V("DocumentToken");function Ap(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var cl="browser",XD="server";function xp(t){return t===cl}function ll(t){return t===XD}var co=class{};var fl=class extends ao{constructor(){super(...arguments),this.supportsDOMEvents=!0}},hl=class t extends fl{static makeCurrent(){Sp(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=eE();return i==null?null:tE(i)}resetBaseElement(){pr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ap(document.cookie,e)}},pr=null;function eE(){return pr=pr||document.querySelector("base"),pr?pr.getAttribute("href"):null}var lo;function tE(t){lo=lo||document.createElement("a"),lo.setAttribute("href",t);let e=lo.pathname;return e.charAt(0)==="/"?e:`/${e}`}var nE=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),pl=new V("EventManagerPlugins"),Rp=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new O(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(F(pl),F(ne))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),uo=class{constructor(e){this._doc=e}},ul="ng-app-id",kp=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ll(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${ul}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(ul),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(ul,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(F(ye),F(Qs),F(ar,8),F(cn))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),dl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gl=/%COMP%/g,Fp="%COMP%",iE=`_nghost-${Fp}`,rE=`_ngcontent-${Fp}`,sE=!0,oE=new V("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>sE});function aE(t){return rE.replace(gl,t)}function cE(t){return iE.replace(gl,t)}function Pp(t,e){return e.map(i=>i.replace(gl,t))}var fo=(()=>{let e=class e{constructor(n,r,s,o,a,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=ll(c),this.defaultRenderer=new mr(n,a,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Lt.ShadowDom&&(r=We(Z({},r),{encapsulation:Lt.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof ho?s.applyToHost(n):s instanceof gr&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(r.encapsulation){case Lt.Emulated:o=new ho(l,u,r,this.appId,h,a,c,p);break;case Lt.ShadowDom:return new ml(l,u,n,r,a,c,this.nonce,p);default:o=new gr(l,u,r,h,a,c,p);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(F(Rp),F(kp),F(Qs),F(oE),F(ye),F(cn),F(ne),F(ar))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),mr=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(dl[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Np(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Np(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new O(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=dl[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=dl[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Wt.DashCase|Wt.Important)?e.style.setProperty(i,n,r&Wt.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Wt.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=wi().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function Np(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ml=class extends mr{constructor(e,i,n,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Pp(r.id,r.styles);for(let u of l){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=u,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},gr=class extends mr{constructor(e,i,n,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?Pp(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ho=class extends gr{constructor(e,i,n,r,s,o,a,c){let l=r+"-"+n.id;super(e,i,n,s,o,a,c,l),this.contentAttr=aE(l),this.hostAttr=cE(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},lE=(()=>{let e=class e extends uo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(F(ye))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),Op=["alt","control","meta","shift"],uE={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dE={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},fE=(()=>{let e=class e extends uo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wi().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),Op.forEach(u=>{let h=r.indexOf(u);h>-1&&(r.splice(h,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=s,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let s=uE[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Op.forEach(a=>{if(a!==s){let c=dE[a];c(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(F(ye))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})();function Lp(t,e){return Mp(Z({rootComponent:t},hE(e)))}function hE(t){return{appProviders:[..._E,...t?.providers??[]],platformProviders:vE}}function pE(){hl.makeCurrent()}function mE(){return new Gt}function gE(){return ph(document),document}var vE=[{provide:cn,useValue:cl},{provide:zc,useValue:pE,multi:!0},{provide:ye,useFactory:gE,deps:[]}];var _E=[{provide:Ks,useValue:"root"},{provide:Gt,useFactory:mE,deps:[]},{provide:pl,useClass:lE,multi:!0,deps:[ye,ne,cn]},{provide:pl,useClass:fE,multi:!0,deps:[ye]},fo,kp,Rp,{provide:An,useExisting:fo},{provide:co,useClass:nE,deps:[]},[]];var Bt="*";function vl(t,e){return{type:7,name:t,definitions:e,options:{}}}function _l(t,e=null){return{type:4,styles:e,timings:t}}function Vp(t,e=null){return{type:2,steps:t,options:e}}function hn(t){return{type:6,styles:t,offset:null}}function _r(t,e,i){return{type:0,name:t,styles:e,options:i}}function yl(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}var fn=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},vr=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},po="!";function jp(t){return new O(3e3,!1)}function yE(){return new O(3100,!1)}function bE(){return new O(3101,!1)}function wE(t){return new O(3001,!1)}function DE(t){return new O(3003,!1)}function EE(t){return new O(3004,!1)}function IE(t,e){return new O(3005,!1)}function CE(){return new O(3006,!1)}function ME(){return new O(3007,!1)}function TE(t,e){return new O(3008,!1)}function SE(t){return new O(3002,!1)}function AE(t,e,i,n,r){return new O(3010,!1)}function xE(){return new O(3011,!1)}function NE(){return new O(3012,!1)}function OE(){return new O(3200,!1)}function RE(){return new O(3202,!1)}function kE(){return new O(3013,!1)}function FE(t){return new O(3014,!1)}function PE(t){return new O(3015,!1)}function LE(t){return new O(3016,!1)}function VE(t,e){return new O(3404,!1)}function jE(t){return new O(3502,!1)}function BE(t){return new O(3503,!1)}function UE(){return new O(3300,!1)}function HE(t){return new O(3504,!1)}function $E(t){return new O(3301,!1)}function zE(t,e){return new O(3302,!1)}function WE(t){return new O(3303,!1)}function GE(t,e){return new O(3400,!1)}function qE(t){return new O(3401,!1)}function KE(t){return new O(3402,!1)}function QE(t,e){return new O(3505,!1)}function pn(t){switch(t.length){case 0:return new fn;case 1:return t[0];default:return new vr(t)}}function Jp(t,e,i=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==o,h=u&&a||new Map;c.forEach((p,_)=>{let b=_,D=p;if(_!=="offset")switch(b=t.normalizePropertyName(b,r),D){case po:D=i.get(_);break;case Bt:D=n.get(_);break;default:D=t.normalizeStyleValue(_,b,D,r);break}h.set(b,D)}),u||s.push(h),a=h,o=l}),r.length)throw jE(r);return s}function Ul(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&bl(i,"start",t)));break;case"done":t.onDone(()=>n(i&&bl(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&bl(i,"destroy",t)));break}}function bl(t,e,i){let n=i.totalTime,r=!!i.disabled,s=Hl(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),o=t._data;return o!=null&&(s._data=o),s}function Hl(t,e,i,n,r="",s=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function lt(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function Bp(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}var YE=(()=>typeof document>"u"?null:document.documentElement)();function $l(t){let e=t.parentNode||t.host||null;return e===YE?null:e}function ZE(t){return t.substring(1,6)=="ebkit"}var Vn=null,Up=!1;function XE(t){Vn||(Vn=JE()||{},Up=Vn.style?"WebkitAppearance"in Vn.style:!1);let e=!0;return Vn.style&&!ZE(t)&&(e=t in Vn.style,!e&&Up&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Vn.style)),e}function JE(){return typeof document<"u"?document.body:null}function em(t,e){for(;e;){if(e===t)return!0;e=$l(e)}return!1}function tm(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var zl=(()=>{let e=class e{validateStyleProperty(n){return XE(n)}matchesElement(n,r){return!1}containsElement(n,r){return em(n,r)}getParentElement(n){return $l(n)}query(n,r,s){return tm(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,a,c=[],l){return new fn(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})(),Cr=(()=>{let e=class e{};e.NOOP=new zl;let t=e;return t})(),Un=class{};var e0=1e3,nm="{{",t0="}}",im="ng-enter",Ml="ng-leave",mo="ng-trigger",bo=".ng-trigger",Hp="ng-animating",Tl=".ng-animating";function Yt(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Sl(parseFloat(e[1]),e[2])}function Sl(t,e){switch(e){case"s":return t*e0;default:return t}}function wo(t,e,i){return t.hasOwnProperty("duration")?t:n0(t,e,i)}function n0(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(jp(t)),{duration:0,delay:0,easing:""};r=Sl(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(s=Sl(parseFloat(c),a[4]));let l=a[5];l&&(o=l)}else r=t;if(!i){let a=!1,c=e.length;r<0&&(e.push(yE()),a=!0),s<0&&(e.push(bE()),a=!0),a&&e.splice(c,0,jp(t))}return{duration:r,delay:s,easing:o}}function Mr(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function rm(t){let e=new Map;return Object.keys(t).forEach(i=>{let n=t[i];e.set(i,n)}),e}function i0(t){return t.length?t[0]instanceof Map?t:t.map(e=>rm(e)):[]}function Ei(t,e=new Map,i){if(i)for(let[n,r]of i)e.set(n,r);for(let[n,r]of t)e.set(n,r);return e}function Ut(t,e,i){e.forEach((n,r)=>{let s=Wl(r);i&&!i.has(r)&&i.set(r,t.style[s]),t.style[s]=n})}function Bn(t,e){e.forEach((i,n)=>{let r=Wl(n);t.style[r]=""})}function yr(t){return Array.isArray(t)?t.length==1?t[0]:Vp(t):t}function r0(t,e,i){let n=e.params||{},r=sm(t);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||i.push(wE(s))})}var Al=new RegExp(`${nm}\\s*(.+?)\\s*${t0}`,"g");function sm(t){let e=[];if(typeof t=="string"){let i;for(;i=Al.exec(t);)e.push(i[1]);Al.lastIndex=0}return e}function wr(t,e,i){let n=t.toString(),r=n.replace(Al,(s,o)=>{let a=e[o];return a==null&&(i.push(DE(o)),a=""),a.toString()});return r==n?t:r}function Do(t){let e=[],i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}var s0=/-+([a-z0-9])/g;function Wl(t){return t.replace(s0,(...e)=>e[1].toUpperCase())}function o0(t,e){return t===0||e===0}function a0(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(a,om(t,a)))}}return e}function ct(t,e,i){switch(e.type){case 7:return t.visitTrigger(e,i);case 0:return t.visitState(e,i);case 1:return t.visitTransition(e,i);case 2:return t.visitSequence(e,i);case 3:return t.visitGroup(e,i);case 4:return t.visitAnimate(e,i);case 5:return t.visitKeyframes(e,i);case 6:return t.visitStyle(e,i);case 8:return t.visitReference(e,i);case 9:return t.visitAnimateChild(e,i);case 10:return t.visitAnimateRef(e,i);case 11:return t.visitQuery(e,i);case 12:return t.visitStagger(e,i);default:throw EE(e.type)}}function om(t,e){return window.getComputedStyle(t)[e]}var c0=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Eo=class extends Un{normalizePropertyName(e,i){return Wl(e)}normalizeStyleValue(e,i,n,r){let s="",o=n.toString().trim();if(c0.has(i)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(IE(e,n))}return o+s}};var Io="*";function l0(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>u0(n,i,e)):i.push(t),i}function u0(t,e,i){if(t[0]==":"){let c=d0(t,i);if(typeof c=="function"){e.push(c);return}t=c}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(PE(t)),e;let r=n[1],s=n[2],o=n[3];e.push($p(r,o));let a=r==Io&&o==Io;s[0]=="<"&&!a&&e.push($p(o,r))}function d0(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}var go=new Set(["true","1"]),vo=new Set(["false","0"]);function $p(t,e){let i=go.has(t)||vo.has(t),n=go.has(e)||vo.has(e);return(r,s)=>{let o=t==Io||t==r,a=e==Io||e==s;return!o&&i&&typeof r=="boolean"&&(o=r?go.has(t):vo.has(t)),!a&&n&&typeof s=="boolean"&&(a=s?go.has(e):vo.has(e)),o&&a}}var am=":self",f0=new RegExp(`s*${am}s*,?`,"g");function cm(t,e,i,n){return new xl(t).build(e,i,n)}var zp="",xl=class{constructor(e){this._driver=e}build(e,i,n){let r=new Nl(i);return this._resetContextStyleTimingState(r),ct(this,yr(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=zp,e.collectedStyles=new Map,e.collectedStyles.set(zp,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(CE()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==0){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,s.push(this.visitState(c,i))}),c.name=l}else if(a.type==1){let c=this.visitTransition(a,i);n+=c.queryCount,r+=c.depCount,o.push(c)}else i.errors.push(ME())}),{type:7,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};if(n.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{sm(c).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size){let a=Do(s.values());i.errors.push(TE(e.name,a))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=ct(this,yr(e.animation),i);return{type:1,matchers:l0(e.expr,i.errors),animation:n,queryCount:i.queryCount,depCount:i.depCount,options:jn(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(n=>ct(this,n,i)),options:jn(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,s=e.steps.map(o=>{i.currentTime=n;let a=ct(this,o,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:3,steps:s,options:jn(e.options)}}visitAnimate(e,i){let n=g0(e.timings,i.errors);i.currentAnimateTimings=n;let r,s=e.styles?e.styles:hn({});if(s.type==5)r=this.visitKeyframes(s,i);else{let o=e.styles,a=!1;if(!o){a=!0;let l={};n.easing&&(l.easing=n.easing),o=hn(l)}i.currentTime+=n.duration+n.delay;let c=this.visitStyle(o,i);c.isEmptyStep=a,r=c}return i.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===Bt?n.push(a):i.errors.push(SE(a)):n.push(rm(a));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let c of a.values())if(c.toString().indexOf(nm)>=0){s=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,s=i.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,c)=>{let l=i.collectedStyles.get(i.currentQuerySelector),u=l.get(c),h=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(i.errors.push(AE(c,u.startTime,u.endTime,s,r)),h=!1),s=u.startTime),h&&l.set(c,{startTime:s,endTime:r}),i.options&&r0(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(xE()),n;let r=1,s=0,o=[],a=!1,c=!1,l=0,u=e.steps.map(S=>{let H=this._makeStyleAst(S,i),B=H.offset!=null?H.offset:m0(H.styles),X=0;return B!=null&&(s++,X=H.offset=B),c=c||X<0||X>1,a=a||X0&&s{let B=p>0?H==_?1:p*H:o[H],X=B*N;i.currentTime=b+D.delay+X,D.duration=X,this._validateStyleAst(S,i),S.offset=B,n.styles.push(S)}),n}visitReference(e,i){return{type:8,animation:ct(this,yr(e.animation),i),options:jn(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:jn(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:jn(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[s,o]=h0(e.selector);i.currentQuerySelector=n.length?n+" "+s:s,lt(i.collectedStyles,i.currentQuerySelector,new Map);let a=ct(this,yr(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:jn(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(kE());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:wo(e.timings,i.errors,!0);return{type:12,animation:ct(this,yr(e.animation),i),timings:n,options:null}}};function h0(t){let e=!!t.split(/\s*,\s*/).find(i=>i==am);return e&&(t=t.replace(f0,"")),t=t.replace(/@\*/g,bo).replace(/@\w+/g,i=>bo+"-"+i.slice(1)).replace(/:animating/g,Tl),[t,e]}function p0(t){return t?Mr(t):null}var Nl=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function m0(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function g0(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let s=wo(t,e).duration;return wl(s,0,"")}let i=t;if(i.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=wl(0,0,"");return s.dynamic=!0,s.strValue=i,s}let r=wo(i,e);return wl(r.duration,r.delay,r.easing)}function jn(t){return t?(t=Mr(t),t.params&&(t.params=p0(t.params))):t={},t}function wl(t,e,i){return{duration:t,delay:e,easing:i}}function Gl(t,e,i,n,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var Dr=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},v0=1,_0=":enter",y0=new RegExp(_0,"g"),b0=":leave",w0=new RegExp(b0,"g");function lm(t,e,i,n,r,s=new Map,o=new Map,a,c,l=[]){return new Ol().buildKeyframes(t,e,i,n,r,s,o,a,c,l)}var Ol=class{buildKeyframes(e,i,n,r,s,o,a,c,l,u=[]){l=l||new Dr;let h=new Rl(e,i,l,r,s,u,[]);h.options=c;let p=c.delay?Yt(c.delay):0;h.currentTimeline.delayNextStep(p),h.currentTimeline.setStyles([o],null,h.errors,c),ct(this,n,h);let _=h.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let D=_.length-1;D>=0;D--){let N=_[D];if(N.element===i){b=N;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,h.errors,c)}return _.length?_.map(b=>b.buildKeyframes()):[Gl(i,[],[],[],0,p,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),s=i.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:Yt(wr(s,r?.params??{},i.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,i,n){let s=i.currentTimeline.currentTime,o=n.duration!=null?Yt(n.duration):null,a=n.delay!=null?Yt(n.delay):null;return o!==0&&e.forEach(c=>{let l=i.appendInstructionToTimeline(c,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(e,i){i.updateOptions(e.options,!0),ct(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,s=e.options;if(s&&(s.params||s.delay)&&(r=i.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==6&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Co);let o=Yt(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>ct(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,s=e.options&&e.options.delay?Yt(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);s&&a.delayNextStep(s),ct(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?wr(n,i.params,i.errors):n;return wo(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==5?this.visitKeyframes(s,i):(i.incrementTime(n.duration),this.visitStyle(s,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,s=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*s),a.setStyles(c.styles,c.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+s),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},s=r.delay?Yt(r.delay):0;s&&(i.previousNode.type===6||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Co);let o=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{i.currentQueryIndex=u;let h=i.createSubContext(e.options,l);s&&h.delayNextStep(s),l===i.element&&(c=h.currentTimeline),ct(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let p=h.currentTimeline.currentTime;o=Math.max(o,p)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),c&&(i.currentTimeline.mergeTimelineCollectedStyles(c),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(i.currentQueryTotal-1),c=o*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=n.currentStaggerTime;break}let u=i.currentTimeline;c&&u.delayNextStep(c);let h=u.currentTime;ct(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-h+(r.startTime-n.currentTimeline.startTime)}},Co={},Rl=class t{constructor(e,i,n,r,s,o,a,c){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Mo(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=Yt(n.duration)),n.delay!=null&&(r.delay=Yt(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=wr(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,s=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Co,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new kl(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(y0,"."+this._enterClassName),e=e.replace(w0,"."+this._leaveClassName);let c=n!=1,l=this._driver.query(this.element,e,c);n!==0&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),a.push(...l)}return!s&&a.length==0&&o.push(FE(i)),a}},Mo=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=v0,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Bt),this._currentKeyframe.set(i,Bt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let s=r&&r.params||{},o=D0(e,this._globalTimelineStyles);for(let[a,c]of o){let l=wr(c,s,n);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Bt),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=Ei(a,new Map,this._backFill);l.forEach((u,h)=>{u===po?e.add(h):u===Bt&&i.add(h)}),n||l.set("offset",c/this.duration),r.push(l)});let s=e.size?Do(e.values()):[],o=i.size?Do(i.values()):[];if(n){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return Gl(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},kl=class extends Mo{constructor(e,i,n,r,s,o,a=!1){super(e,i,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let s=[],o=n+i,a=i/o,c=Ei(e[0]);c.set("offset",0),s.push(c);let l=Ei(e[0]);l.set("offset",Wp(a)),s.push(l);let u=e.length-1;for(let h=1;h<=u;h++){let p=Ei(e[h]),_=p.get("offset"),b=i+_*n;p.set("offset",Wp(b/o)),s.push(p)}n=o,i=0,r="",e=s}return Gl(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};function Wp(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function D0(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n=n||e.keys();for(let s of n)i.set(s,Bt)}else Ei(r,i)}),i}function Gp(t,e,i,n,r,s,o,a,c,l,u,h,p){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:p}}var Dl={},To=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return E0(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,s,o,a,c,l,u){let h=[],p=this.ast.options&&this.ast.options.params||Dl,_=a&&a.params||Dl,b=this.buildStyles(n,_,h),D=c&&c.params||Dl,N=this.buildStyles(r,D,h),S=new Set,H=new Map,B=new Map,X=r==="void",be={params:I0(D,p),delay:this.ast.options?.delay},I=u?[]:lm(e,i,this.ast.animation,s,o,b,N,be,l,h),L=0;if(I.forEach(z=>{L=Math.max(z.duration+z.delay,L)}),h.length)return Gp(i,this._triggerName,n,r,X,b,N,[],[],H,B,L,h);I.forEach(z=>{let ie=z.element,Ve=lt(H,ie,new Set);z.preStyleProps.forEach(Me=>Ve.add(Me));let Ne=lt(B,ie,new Set);z.postStyleProps.forEach(Me=>Ne.add(Me)),ie!==i&&S.add(ie)});let j=Do(S.values());return Gp(i,this._triggerName,n,r,X,b,N,I,j,H,B,L)}};function E0(t,e,i,n,r){return t.some(s=>s(e,i,n,r))}function I0(t,e){let i=Mr(e);for(let n in t)t.hasOwnProperty(n)&&t[n]!=null&&(i[n]=t[n]);return i}var Fl=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=Mr(this.defaultParams);return Object.keys(e).forEach(s=>{let o=e[s];o!==null&&(r[s]=o)}),this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=wr(o,r,i));let c=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,c,o,i),n.set(a,o)})}),n}};function C0(t,e,i){return new Pl(t,e,i)}var Pl=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Fl(r.style,s,n))}),qp(this.states,"true","1"),qp(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new To(e,r,this.states))}),this.fallbackTransition=M0(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(o=>o.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};function M0(t,e,i){let s={type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0};return new To(t,s,e)}function qp(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}var T0=new Dr,Ll=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],s=cm(this._driver,i,n,r);if(n.length)throw BE(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,i,n){let r=e.element,s=Jp(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=lm(this._driver,i,s,im,Ml,new Map,new Map,n,T0,r),o.forEach(u=>{let h=lt(a,u.element,new Map);u.postStyleProps.forEach(p=>h.set(p,null))})):(r.push(UE()),o=[]),r.length)throw HE(r);a.forEach((u,h)=>{u.forEach((p,_)=>{u.set(_,this._driver.computeStyle(h,_,Bt))})});let c=o.map(u=>{let h=a.get(u.element);return this._buildPlayer(u,new Map,h)}),l=pn(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw $E(e);return i}listen(e,i,n,r){let s=Hl(i,"","","");return Ul(this._getPlayer(e),n,s,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,i,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},Kp="ng-animate-queued",S0=".ng-animate-queued",El="ng-animate-disabled",A0=".ng-animate-disabled",x0="ng-star-inserted",N0=".ng-star-inserted",O0=[],um={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},R0={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},At="__ng_removed",Er=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=F0(r),n){let s=Mr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},br="void",Il=new Er(br),Vl=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,_t(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw zE(n,i);if(n==null||n.length==0)throw WE(i);if(!P0(n))throw GE(n,i);let s=lt(this._elementListeners,e,[]),o={name:i,phase:n,callback:r};s.push(o);let a=lt(this._engine.statesByElement,e,new Map);return a.has(i)||(_t(e,mo),_t(e,mo+"-"+i),a.set(i,Il)),()=>{this._engine.afterFlush(()=>{let c=s.indexOf(o);c>=0&&s.splice(c,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw qE(e);return i}trigger(e,i,n,r=!0){let s=this._getTrigger(i),o=new Ir(this.id,i,e),a=this._engine.statesByElement.get(e);a||(_t(e,mo),_t(e,mo+"-"+i),this._engine.statesByElement.set(e,a=new Map));let c=a.get(i),l=new Er(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(i,l),c||(c=Il),!(l.value===br)&&c.value===l.value){if(!j0(c.params,l.params)){let D=[],N=s.matchStyles(c.value,c.params,D),S=s.matchStyles(l.value,l.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{Bn(e,N),Ut(e,S)})}return}let p=lt(this._engine.playersByElement,e,[]);p.forEach(D=>{D.namespaceId==this.id&&D.triggerName==i&&D.queued&&D.destroy()});let _=s.matchTransition(c.value,l.value,e,l.params),b=!1;if(!_){if(!r)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:_,fromState:c,toState:l,player:o,isFallbackTransition:b}),b||(_t(e,Kp),o.onStart(()=>{Di(e,Kp)})),o.onDone(()=>{let D=this.players.indexOf(o);D>=0&&this.players.splice(D,1);let N=this._engine.playersByElement.get(e);if(N){let S=N.indexOf(o);S>=0&&N.splice(S,1)}}),this.players.push(o),p.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,bo,!0);n.forEach(r=>{if(r[At])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,br,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),n&&pn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let c=this._triggers.get(o).fallbackTransition,l=n.get(o)||Il,u=new Er(br),h=new Ir(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:c,fromState:l,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let s=e[At];(!s||s===um)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){_t(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let c=Hl(s,n.triggerName,n.fromState.value,n.toState.value);c._data=e,Ul(n.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},jl=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Vl(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let c=r.get(a);if(c){let l=n.indexOf(c);n.splice(l+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&i.add(s)}}return i}trigger(e,i,n,r){if(_o(i)){let s=this._fetchNamespace(e);if(s)return s.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!_o(i))return;let s=i[At];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_t(e,El)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Di(e,El))}removeNode(e,i,n){if(_o(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let s=this.namespacesByHostElement.get(i);s&&s.id!==e&&s.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,s){this.collectedLeaveElements.push(i),i[At]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,i,n,r,s){return _o(i)?this._fetchNamespace(e).listen(i,n,r,s):()=>{}}_buildInstruction(e,i,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,s)}destroyInnerAnimations(e){let i=this.driver.query(e,bo,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Tl,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return pn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[At];if(i&&i.setForRemoval){if(e[At]=um,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(El)&&this.markElementAsDisabled(e,!1),this.driver.query(e,A0,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?pn(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw KE(e)}_flushAnimations(e,i){let n=new Dr,r=[],s=new Map,o=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);let k=this.driver.query(x,S0,!0);for(let P=0;P{let P=im+D++;b.set(k,P),x.forEach(q=>_t(q,P))});let N=[],S=new Set,H=new Set;for(let x=0;xS.add(q)):H.add(k))}let B=new Map,X=Zp(p,Array.from(S));X.forEach((x,k)=>{let P=Ml+D++;B.set(k,P),x.forEach(q=>_t(q,P))}),e.push(()=>{_.forEach((x,k)=>{let P=b.get(k);x.forEach(q=>Di(q,P))}),X.forEach((x,k)=>{let P=B.get(k);x.forEach(q=>Di(q,P))}),N.forEach(x=>{this.processLeaveNode(x)})});let be=[],I=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(i).forEach(P=>{let q=P.player,Te=P.element;if(be.push(q),this.collectedEnterElements.length){let Oe=Te[At];if(Oe&&Oe.setForMove){if(Oe.previousTriggersValues&&Oe.previousTriggersValues.has(P.triggerName)){let Ht=Oe.previousTriggersValues.get(P.triggerName),Ze=this.statesByElement.get(P.element);if(Ze&&Ze.has(P.triggerName)){let zn=Ze.get(P.triggerName);zn.value=Ht,Ze.set(P.triggerName,zn)}}q.destroy();return}}let dt=!h||!this.driver.containsElement(h,Te),ve=B.get(Te),bt=b.get(Te),ue=this._buildInstruction(P,n,bt,ve,dt);if(ue.errors&&ue.errors.length){I.push(ue);return}if(dt){q.onStart(()=>Bn(Te,ue.fromStyles)),q.onDestroy(()=>Ut(Te,ue.toStyles)),r.push(q);return}if(P.isFallbackTransition){q.onStart(()=>Bn(Te,ue.fromStyles)),q.onDestroy(()=>Ut(Te,ue.toStyles)),r.push(q);return}let kr=[];ue.timelines.forEach(Oe=>{Oe.stretchStartingKeyframe=!0,this.disabledNodes.has(Oe.element)||kr.push(Oe)}),ue.timelines=kr,n.append(Te,ue.timelines);let qo={instruction:ue,player:q,element:Te};o.push(qo),ue.queriedElements.forEach(Oe=>lt(a,Oe,[]).push(q)),ue.preStyleProps.forEach((Oe,Ht)=>{if(Oe.size){let Ze=c.get(Ht);Ze||c.set(Ht,Ze=new Set),Oe.forEach((zn,xi)=>Ze.add(xi))}}),ue.postStyleProps.forEach((Oe,Ht)=>{let Ze=l.get(Ht);Ze||l.set(Ht,Ze=new Set),Oe.forEach((zn,xi)=>Ze.add(xi))})});if(I.length){let x=[];I.forEach(k=>{x.push(QE(k.triggerName,k.errors))}),be.forEach(k=>k.destroy()),this.reportError(x)}let L=new Map,j=new Map;o.forEach(x=>{let k=x.element;n.has(k)&&(j.set(k,k),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,L))}),r.forEach(x=>{let k=x.element;this._getPreviousPlayers(k,!1,x.namespaceId,x.triggerName,null).forEach(q=>{lt(L,k,[]).push(q),q.destroy()})});let z=N.filter(x=>Xp(x,c,l)),ie=new Map;Yp(ie,this.driver,H,l,Bt).forEach(x=>{Xp(x,c,l)&&z.push(x)});let Ne=new Map;_.forEach((x,k)=>{Yp(Ne,this.driver,new Set(x),c,po)}),z.forEach(x=>{let k=ie.get(x),P=Ne.get(x);ie.set(x,new Map([...k?.entries()??[],...P?.entries()??[]]))});let Me=[],ut=[],Xt={};o.forEach(x=>{let{element:k,player:P,instruction:q}=x;if(n.has(k)){if(u.has(k)){P.onDestroy(()=>Ut(k,q.toStyles)),P.disabled=!0,P.overrideTotalTime(q.totalTime),r.push(P);return}let Te=Xt;if(j.size>1){let ve=k,bt=[];for(;ve=ve.parentNode;){let ue=j.get(ve);if(ue){Te=ue;break}bt.push(ve)}bt.forEach(ue=>j.set(ue,Te))}let dt=this._buildAnimation(P.namespaceId,q,L,s,Ne,ie);if(P.setRealPlayer(dt),Te===Xt)Me.push(P);else{let ve=this.playersByElement.get(Te);ve&&ve.length&&(P.parentPlayer=pn(ve)),r.push(P)}}else Bn(k,q.fromStyles),P.onDestroy(()=>Ut(k,q.toStyles)),ut.push(P),u.has(k)&&r.push(P)}),ut.forEach(x=>{let k=s.get(x.element);if(k&&k.length){let P=pn(k);x.setRealPlayer(P)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x!dt.destroyed);Te.length?L0(this,k,Te):this.processLeaveNode(k)}return N.length=0,Me.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();let k=this.players.indexOf(x);this.players.splice(k,1)}),x.play()}),Me}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,s){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let c=!s||s==br;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||o.push(l)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,i,n){let r=i.triggerName,s=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let c of i.timelines){let l=c.element,u=l!==s,h=lt(n,l,[]);this._getPreviousPlayers(l,u,o,a,i.toState).forEach(_=>{let b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),h.push(_)})}Bn(s,i.fromStyles)}_buildAnimation(e,i,n,r,s,o){let a=i.triggerName,c=i.element,l=[],u=new Set,h=new Set,p=i.timelines.map(b=>{let D=b.element;u.add(D);let N=D[At];if(N&&N.removedBeforeQueried)return new fn(b.duration,b.delay);let S=D!==c,H=V0((n.get(D)||O0).map(L=>L.getRealPlayer())).filter(L=>{let j=L;return j.element?j.element===D:!1}),B=s.get(D),X=o.get(D),be=Jp(this._normalizer,b.keyframes,B,X),I=this._buildPlayer(b,be,H);if(b.subTimeline&&r&&h.add(D),S){let L=new Ir(e,a,D);L.setRealPlayer(I),l.push(L)}return I});l.forEach(b=>{lt(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>k0(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>_t(b,Hp));let _=pn(p);return _.onDestroy(()=>{u.forEach(b=>Di(b,Hp)),Ut(c,i.toStyles)}),h.forEach(b=>{lt(r,b,[]).push(_)}),_}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new fn(e.duration,e.delay)}},Ir=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new fn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Ul(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){lt(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function k0(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function F0(t){return t??null}function _o(t){return t&&t.nodeType===1}function P0(t){return t=="start"||t=="done"}function Qp(t,e){let i=t.style.display;return t.style.display=e??"none",i}function Yp(t,e,i,n,r){let s=[];i.forEach(c=>s.push(Qp(c)));let o=[];n.forEach((c,l)=>{let u=new Map;c.forEach(h=>{let p=e.computeStyle(l,h,r);u.set(h,p),(!p||p.length==0)&&(l[At]=R0,o.push(l))}),t.set(l,u)});let a=0;return i.forEach(c=>Qp(c,s[a++])),o}function Zp(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let c=s.get(a);if(c)return c;let l=a.parentNode;return i.has(l)?c=l:r.has(l)?c=n:c=o(l),s.set(a,c),c}return e.forEach(a=>{let c=o(a);c!==n&&i.get(c).push(a)}),i}function _t(t,e){t.classList?.add(e)}function Di(t,e){t.classList?.remove(e)}function L0(t,e,i){pn(i).onDone(()=>t.processLeaveNode(e))}function V0(t){let e=[];return dm(t,e),e}function dm(t,e){for(let i=0;ir.add(s)):e.set(t,n),i.delete(t),!0}var Ii=class{constructor(e,i,n){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new jl(e.body,i,n),this._timelineEngine=new Ll(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,i,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let c=[],l=[],u=cm(this._driver,s,c,l);if(c.length)throw VE(r,c);l.length&&void 0,a=C0(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[s,o]=Bp(n),a=r;this._timelineEngine.command(s,i,o,a)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,s){if(n.charAt(0)=="@"){let[o,a]=Bp(n);return this._timelineEngine.listen(o,i,a,s)}return this._transitionEngine.listen(e,i,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function B0(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Cl(e[0]),e.length>1&&(n=Cl(e[e.length-1]))):e instanceof Map&&(i=Cl(e)),i||n?new U0(t,i,n):null}var U0=(()=>{let e=class e{constructor(n,r,s){this._element=n,this._startStyles=r,this._endStyles=s,this._state=0;let o=e.initialStylesByElement.get(n);o||e.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ut(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ut(this._element,this._initialStyles),this._endStyles&&(Ut(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Bn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bn(this._element,this._endStyles),this._endStyles=null),Ut(this._element,this._initialStyles),this._state=3)}};e.initialStylesByElement=new WeakMap;let t=e;return t})();function Cl(t){let e=null;return t.forEach((i,n)=>{H0(n)&&(e=e||new Map,e.set(n,i))}),e}function H0(t){return t==="display"||t==="position"}var So=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:om(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Ao=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return em(e,i)}getParentElement(e){return $l(e)}query(e,i,n){return tm(e,i,n)}computeStyle(e,i,n){return window.getComputedStyle(e)[i]}animate(e,i,n,r,s,o=[]){let a=r==0?"both":"forwards",c={duration:n,delay:r,fill:a};s&&(c.easing=s);let l=new Map,u=o.filter(_=>_ instanceof So);o0(n,r)&&u.forEach(_=>{_.currentSnapshot.forEach((b,D)=>l.set(D,b))});let h=i0(i).map(_=>Ei(_));h=a0(e,h,l);let p=B0(e,h);return new So(e,h,c,p)}};var yo="@",fm="@.disabled",xo=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==yo&&i==fm?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},Bl=class extends xo{constructor(e,i,n,r,s){super(i,n,r,s),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==yo?i.charAt(1)=="."&&i==fm?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==yo){let r=$0(e),s=i.slice(1),o="";return s.charAt(0)!=yo&&([s,o]=z0(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,n,a)})}return this.delegate.listen(e,i,n)}};function $0(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function z0(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var No=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let l=this._rendererCache,u=l.get(r);if(!u){let h=()=>l.delete(r);u=new xo(n,r,this.engine,h),l.set(r,u)}return u}let s=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,e,l.name,l)};return i.data.animation.forEach(a),new Bl(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&ei(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var G0=(()=>{let e=class e extends Ii{constructor(n,r,s,o){super(n,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(F(ye),F(Cr),F(Un),F(hr))},e.\u0275prov=Q({token:e,factory:e.\u0275fac});let t=e;return t})();function q0(){return new Eo}function K0(t,e,i){return new No(t,e,i)}var hm=[{provide:Un,useFactory:q0},{provide:Ii,useClass:G0},{provide:An,useFactory:K0,deps:[fo,Ii,ne]}],Q0=[{provide:Cr,useFactory:()=>new Ao},{provide:nt,useValue:"BrowserAnimations"},...hm],DO=[{provide:Cr,useClass:zl},{provide:nt,useValue:"NoopAnimations"},...hm];function pm(){return[...Q0]}var Dm=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(A(Xs),A(me))},e.\u0275dir=_e({type:e});let t=e;return t})(),Y0=(()=>{let e=class e extends Dm{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=vi(e)))(s||e)}})(),e.\u0275dir=_e({type:e,features:[qe]});let t=e;return t})(),Mi=new V("NgValueAccessor");var Z0={provide:Mi,useExisting:qt(()=>Fo),multi:!0};function X0(){let t=wi()?wi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var J0=new V("CompositionEventMode"),Fo=(()=>{let e=class e extends Dm{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!X0())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(A(Xs),A(me),A(J0,8))},e.\u0275dir=_e({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&$e("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[ke([Z0]),qe]});let t=e;return t})();var Em=new V("NgValidators"),eI=new V("NgAsyncValidators");function Im(t){return t!=null}function Cm(t){return fr(t)?ht(t):t}function Mm(t){let e={};return t.forEach(i=>{e=i!=null?Z(Z({},e),i):e}),Object.keys(e).length===0?null:e}function Tm(t,e){return e.map(i=>i(t))}function tI(t){return!t.validate}function Sm(t){return t.map(e=>tI(e)?e:i=>e.validate(i))}function nI(t){if(!t)return null;let e=t.filter(Im);return e.length==0?null:function(i){return Mm(Tm(i,e))}}function Am(t){return t!=null?nI(Sm(t)):null}function iI(t){if(!t)return null;let e=t.filter(Im);return e.length==0?null:function(i){let n=Tm(i,e).map(Cm);return ga(n).pipe(pt(Mm))}}function xm(t){return t!=null?iI(Sm(t)):null}function mm(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function rI(t){return t._rawValidators}function sI(t){return t._rawAsyncValidators}function ql(t){return t?Array.isArray(t)?t:[t]:[]}function Ro(t,e){return Array.isArray(t)?t.includes(e):t===e}function gm(t,e){let i=ql(e);return ql(t).forEach(r=>{Ro(i,r)||i.push(r)}),i}function vm(t,e){return ql(e).filter(i=>!Ro(t,i))}var ko=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Am(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=xm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Kl=class extends ko{get formDirective(){return null}get path(){return null}},Ar=class extends ko{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ql=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},oI={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},BO=We(Z({},oI),{"[class.ng-submitted]":"isSubmitted"}),Nm=(()=>{let e=class e extends Ql{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(A(Ar,2))},e.\u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&He("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[qe]});let t=e;return t})();var Tr="VALID",Oo="INVALID",Ci="PENDING",Sr="DISABLED";function aI(t){return(Po(t)?t.validators:t)||null}function cI(t){return Array.isArray(t)?Am(t):t||null}function lI(t,e){return(Po(e)?e.asyncValidators:t)||null}function uI(t){return Array.isArray(t)?xm(t):t||null}function Po(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Yl=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Tr}get invalid(){return this.status===Oo}get pending(){return this.status==Ci}get disabled(){return this.status===Sr}get enabled(){return this.status!==Sr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(gm(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(gm(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(vm(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(vm(e,this._rawAsyncValidators))}hasValidator(e){return Ro(this._rawValidators,e)}hasAsyncValidator(e){return Ro(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ci,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Sr,this.errors=null,this._forEachChild(n=>{n.disable(We(Z({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(We(Z({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Tr,this._forEachChild(n=>{n.enable(We(Z({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(We(Z({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tr||this.status===Ci)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Sr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ci,this._hasOwnPendingAsyncValidator=!0;let i=Cm(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?Sr:this.errors?Oo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ci)?Ci:this._anyControlsHaveStatus(Oo)?Oo:Tr}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Po(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=cI(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=uI(this._rawAsyncValidators)}};var Om=new V("CallSetDisabledState",{providedIn:"root",factory:()=>Zl}),Zl="always";function dI(t,e){return[...e.path,t]}function fI(t,e,i=Zl){pI(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),mI(t,e),vI(t,e),gI(t,e),hI(t,e)}function _m(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function hI(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function pI(t,e){let i=rI(t);e.validator!==null?t.setValidators(mm(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=sI(t);e.asyncValidator!==null?t.setAsyncValidators(mm(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();_m(e._rawValidators,r),_m(e._rawAsyncValidators,r)}function mI(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Rm(t,e)})}function gI(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Rm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Rm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function vI(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function _I(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function yI(t){return Object.getPrototypeOf(t.constructor)===Y0}function bI(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===Fo?i=s:yI(s)?n=s:r=s}),r||n||i||null}function ym(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function bm(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var wI=class extends Yl{constructor(e=null,i,n){super(aI(i),lI(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Po(i)&&(i.nonNullable||i.initialValueIsDefault)&&(bm(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ym(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ym(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){bm(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var DI={provide:Ar,useExisting:qt(()=>Xl)},wm=(()=>Promise.resolve())(),Xl=(()=>{let e=class e extends Ar{constructor(n,r,s,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new wI,this._registered=!1,this.name="",this.update=new J,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=bI(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),_I(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){fI(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){wm.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Ye(r);wm.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?dI(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(A(Kl,9),A(Em,10),A(eI,10),A(Mi,10),A(it,8),A(Om,8))},e.\u0275dir=_e({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ke([DI]),qe,on]});let t=e;return t})();var EI=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();var II=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[EI]});let t=e;return t})();var km=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Om,useValue:n.callSetDisabledState??Zl}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[II]});let t=e;return t})();var Lo=(()=>{let e=class e{constructor(){this._listeners=[]}notify(n,r){for(let s of this._listeners)s(n,r)}listen(n){return this._listeners.push(n),()=>{this._listeners=this._listeners.filter(r=>n!==r)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var MI=0,Jl=new V("CdkAccordion"),Pm=(()=>{let e=class e{constructor(){this._stateChanges=new ce,this._openCloseAllActions=new ce,this.id=`cdk-accordion-${MI++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(n){this._stateChanges.next(n)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=_e({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:["multi","multi",Ye]},exportAs:["cdkAccordion"],features:[ke([{provide:Jl,useExisting:e}]),Fn,on]});let t=e;return t})(),TI=0,Lm=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(n){if(this._expanded!==n){if(this._expanded=n,this.expandedChange.emit(n),n){this.opened.emit();let r=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,r)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(n,r,s){this.accordion=n,this._changeDetectorRef=r,this._expansionDispatcher=s,this._openCloseAllSubscription=De.EMPTY,this.closed=new J,this.opened=new J,this.destroyed=new J,this.expandedChange=new J,this.id=`cdk-accordion-child-${TI++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=s.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(n=>{this.disabled||(this.expanded=n)})}};e.\u0275fac=function(r){return new(r||e)(A(Jl,12),A(it),A(Lo))},e.\u0275dir=_e({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:["expanded","expanded",Ye],disabled:["disabled","disabled",Ye]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[ke([{provide:Jl,useValue:void 0}]),Fn]});let t=e;return t})(),Vm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();var xr=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},eu=class extends xr{constructor(e,i,n,r,s){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=s}},Nr=class extends xr{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},tu=class extends xr{constructor(e){super(),this.element=e instanceof me?e.nativeElement:e}},nu=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof eu)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Nr)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof tu)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var jm=(()=>{let e=class e extends nu{constructor(n,r,s){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new J,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=s}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,o=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=r.createComponent(o,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=n,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(r){return new(r||e)(A(lr),A(Pn),A(ye))},e.\u0275dir=_e({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[qe]});let t=e;return t})();var Bm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();var ru;try{ru=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ru=!1}var yt=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?xp(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ru)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(F(cn))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Or;function AI(){if(Or==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Or=!0}))}finally{Or=Or||!1}return Or}function Ti(t){return AI()?t:!!t.capture}var iu;function xI(){if(iu==null){let t=typeof document<"u"?document.head:null;iu=!!(t&&(t.createShadowRoot||t.attachShadow))}return iu}function Um(t){if(xI()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function mn(t){return t.composedPath?t.composedPath()[0]:t.target}function Hm(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Vo(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function xt(t){return t!=null&&`${t}`!="false"}function rt(t,e=0){return NI(t)?Number(t):e}function NI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ou(t){return Array.isArray(t)?t:[t]}function Hn(t){return t instanceof me?t.nativeElement:t}var $m=new Set,$n,OI=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kI}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&RI(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(F(yt),F(ar,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RI(t,e){if(!$m.has(t))try{$n||($n=document.createElement("style"),e&&($n.nonce=e),$n.setAttribute("type","text/css"),document.head.appendChild($n)),$n.sheet&&($n.sheet.insertRule(`@media ${t} {body{ }}`,0),$m.add(t))}catch(i){console.error(i)}}function kI(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Wm=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new ce}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return zm(ou(n)).some(s=>this._registerQuery(s).mql.matches)}observe(n){let s=zm(ou(n)).map(a=>this._registerQuery(a).observable),o=pa(s);return o=Zn(o.pipe(Xn(1)),o.pipe(Hi(1),Ui(0))),o.pipe(pt(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{c.matches=c.matches||l,c.breakpoints[u]=l}),c}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new se(a=>{let c=l=>this._zone.run(()=>a.next(l));return r.addListener(c),()=>{r.removeListener(c)}}).pipe(ei(r),pt(({matches:a})=>({query:n,matches:a})),$i(this._destroySubject)),mql:r};return this._queries.set(n,o),o}};e.\u0275fac=function(r){return new(r||e)(F(OI),F(ne))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function zm(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var cu=class{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ce,this._typeaheadSubscription=De.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new ce,this.change=new ce,e instanceof sn&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){let r=i.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ba(i=>this._pressedLetters.push(i)),Ui(e),Ot(()=>this._pressedLetters.length>0),pt(()=>this._pressedLetters.join(""))).subscribe(i=>{let n=this._getItemsArray();for(let r=1;r!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),n=typeof e=="number"?e:i.indexOf(e),r=i[n];this._activeItem=r??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let n=1;n<=i.length;n++){let r=(this._activeItemIndex+e*n+i.length)%i.length,s=i[r];if(!this._skipPredicateFn(s)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=i,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof sn?this._items.toArray():this._items}};var Bo=class extends cu{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function lu(t){return t.buttons===0||t.detail===0}function uu(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var JI=new V("cdk-input-modality-detector-options"),eC={ignoreKeys:[18,17,224,91,16]},Km=650,Si=Ti({passive:!0,capture:!0}),tC=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,s,o){this._platform=n,this._mostRecentTarget=null,this._modality=new zt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(uu(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(a)},this._options=Z(Z({},eC),o),this.modalityDetected=this._modality.pipe(Hi(1)),this.modalityChanged=this.modalityDetected.pipe(wn()),n.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Si),s.addEventListener("mousedown",this._onMousedown,Si),s.addEventListener("touchstart",this._onTouchstart,Si)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Si),document.removeEventListener("mousedown",this._onMousedown,Si),document.removeEventListener("touchstart",this._onTouchstart,Si))}};e.\u0275fac=function(r){return new(r||e)(F(yt),F(ne),F(ye),F(JI,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var nC=new V("cdk-focus-monitor-default-options"),jo=Ti({passive:!0,capture:!0}),Uo=(()=>{let e=class e{constructor(n,r,s,o,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ce,this._rootNodeFocusAndBlurListener=c=>{let l=mn(c);for(let u=l;u;u=u.parentElement)c.type==="focus"?this._onFocus(c,u):this._onBlur(c,u)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(n,r=!1){let s=Hn(n);if(!this._platform.isBrowser||s.nodeType!==1)return ji();let o=Um(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return r&&(a.checkChildren=!0),a.subject;let c={checkChildren:r,subject:new ce,rootNode:o};return this._elementInfo.set(s,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(n){let r=Hn(n),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(n,r,s){let o=Hn(n),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([c,l])=>this._originChanged(c,r,l)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===1||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===0){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?Km:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(n,r){let s=this._elementInfo.get(r),o=mn(n);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(n,r){let s=this._elementInfo.get(r);!s||s.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,jo),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,jo)}),this._rootNodeFocusListenerCount.set(r,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe($i(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jo),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jo),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,s){this._setClasses(n,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((s,o)=>{(o===n||s.checkChildren&&o.contains(n))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let a=0;a{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=pe(Wm).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(au,Gm,qm),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===1?n.add(au,Gm):r===2&&n.add(au,qm)}}};e.\u0275fac=function(r){return new(r||e)(F(yt),F(ye))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var iC=new V("cdk-dir-doc",{providedIn:"root",factory:rC});function rC(){return pe(ye)}var sC=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function oC(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?sC.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Ym=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new J,n){let r=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.value=oC(r||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(F(iC,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})();function cC(){return!0}var lC=new V("mat-sanity-checks",{providedIn:"root",factory:cC}),Zt=(()=>{let e=class e{constructor(n,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return Hm()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(r){return new(r||e)(F(Qm),F(lC,8),F(ye))},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[fu,fu]});let t=e;return t})();function ng(t,e){return class extends t{get color(){return this._color}set color(i){let n=i||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function ig(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=xt(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function rg(t,e=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=i!=null?rt(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}var hu=class{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}},Zm=Ti({passive:!0,capture:!0}),pu=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=mn(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(s=>s.handleEvent(e))})}}addHandler(e,i,n,r){let s=this._events.get(i);if(s){let o=s.get(n);o?o.add(r):s.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,Zm)})}removeHandler(e,i,n){let r=this._events.get(e);if(!r)return;let s=r.get(i);s&&(s.delete(n),s.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Zm)))}},Xm={enterDuration:225,exitDuration:150},uC=800,Jm=Ti({passive:!0,capture:!0}),eg=["mousedown","touchstart"],tg=["mouseup","mouseleave","touchend","touchcancel"],Rr=class Rr{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Hn(n))}fadeInRipple(e,i,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Z(Z({},Xm),n.animation);n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let o=n.radius||dC(e,i,r),a=e-r.left,c=i-r.top,l=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-o}px`,u.style.top=`${c-o}px`,u.style.height=`${o*2}px`,u.style.width=`${o*2}px`,n.color!=null&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);let h=window.getComputedStyle(u),p=h.transitionProperty,_=h.transitionDuration,b=p==="none"||_==="0s"||_==="0s, 0s"||r.width===0&&r.height===0,D=new hu(this,u,n,b);u.style.transform="scale3d(1, 1, 1)",D.state=0,n.persistent||(this._mostRecentTransientRipple=D);let N=null;return!b&&(l||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let S=()=>this._finishRippleTransition(D),H=()=>this._destroyRipple(D);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",H),N={onTransitionEnd:S,onTransitionCancel:H}}),this._activeRipples.set(D,N),(b||!l)&&this._finishRippleTransition(D),D}fadeOutRipple(e){if(e.state===2||e.state===3)return;let i=e.element,n=Z(Z({},Xm),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=Hn(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,eg.forEach(n=>{Rr._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tg.forEach(i=>{this._triggerElement.addEventListener(i,this,Jm)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===0?this._startFadeOutTransition(e):e.state===2&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=1,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=lu(e),n=this._lastTouchStartEvent&&Date.now(){let i=e.state===1||e.config.terminateOnPointerUp&&e.state===0;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(eg.forEach(i=>Rr._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&tg.forEach(i=>e.removeEventListener(i,this,Jm)))}};Rr._eventManager=new pu;var mu=Rr;function dC(t,e,i){let n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}var gu=new V("mat-ripple-global-options"),Ai=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,s,o,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new mu(this,r,n,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Z(Z(Z({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,s){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,Z(Z({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Z(Z({},this.rippleConfig),n))}};e.\u0275fac=function(r){return new(r||e)(A(me),A(ne),A(yt),A(gu,8),A(nt,8))},e.\u0275dir=_e({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,s){r&2&&He("mat-ripple-unbounded",s.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});let t=e;return t})(),Ho=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[Zt,Zt]});let t=e;return t})();var pC=["body"];function mC(t,e){}var gC=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],vC=["mat-expansion-panel-header","*","mat-action-row"];function _C(t,e){if(t&1&&Le(0,"span",2),t&2){let i=Qt();xe("@indicatorRotate",i._getExpandedState())}}var yC=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],bC=["mat-panel-title","mat-panel-description","*"],vu=new V("MAT_ACCORDION"),og="225ms cubic-bezier(0.4,0.0,0.2,1)",ag={indicatorRotate:vl("indicatorRotate",[_r("collapsed, void",hn({transform:"rotate(0deg)"})),_r("expanded",hn({transform:"rotate(180deg)"})),yl("expanded <=> collapsed, void => collapsed",_l(og))]),bodyExpansion:vl("bodyExpansion",[_r("collapsed, void",hn({height:"0px",visibility:"hidden"})),_r("expanded",hn({height:"*",visibility:""})),yl("expanded <=> collapsed, void => collapsed",_l(og))])},cg=new V("MAT_EXPANSION_PANEL"),wC=(()=>{let e=class e{constructor(n,r){this._template=n,this._expansionPanel=r}};e.\u0275fac=function(r){return new(r||e)(A(Rn),A(cg,8))},e.\u0275dir=_e({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]});let t=e;return t})(),DC=0,lg=new V("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),yu=(()=>{let e=class e extends Lm{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(n){this._hideToggle=xt(n)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(n){this._togglePosition=n}constructor(n,r,s,o,a,c,l){super(n,r,s),this._viewContainerRef=o,this._animationMode=c,this._hideToggle=!1,this.afterExpand=new J,this.afterCollapse=new J,this._inputChanges=new ce,this._headerId=`mat-expansion-panel-header-${DC++}`,this._bodyAnimationDone=new ce,this.accordion=n,this._document=a,this._bodyAnimationDone.pipe(wn((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{u.fromState!=="void"&&(u.toState==="expanded"?this.afterExpand.emit():u.toState==="collapsed"&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ei(null),Ot(()=>this.expanded&&!this._portal),Xn(1)).subscribe(()=>{this._portal=new Nr(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(n){this._inputChanges.next(n)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){let n=this._document.activeElement,r=this._body.nativeElement;return n===r||r.contains(n)}return!1}};e.\u0275fac=function(r){return new(r||e)(A(vu,12),A(it),A(Lo),A(Pn),A(ye),A(nt,8),A(lg,8))},e.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(r,s,o){if(r&1&&bi(o,wC,5),r&2){let a;Ke(a=Qe())&&(s._lazyContent=a.first)}},viewQuery:function(r,s){if(r&1&&St(pC,5),r&2){let o;Ke(o=Qe())&&(s._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,s){r&2&&He("mat-expanded",s.expanded)("_mat-animation-noopable",s._animationMode==="NoopAnimations")("mat-expansion-panel-spacing",s._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[ke([{provide:vu,useValue:void 0},{provide:cg,useExisting:e}]),qe,on],ngContentSelectors:vC,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,s){r&1&&(dn(gC),vt(0),le(1,"div",0,1),$e("@bodyExpansion.done",function(a){return s._bodyAnimationDone.next(a)}),le(3,"div",2),vt(4,1),et(5,mC,0,0,"ng-template",3),ge(),vt(6,2),ge()),r&2&&(Ce(1),xe("@bodyExpansion",s._getExpandedState())("id",s.id),at("aria-labelledby",s._headerId),Ce(4),xe("cdkPortalOutlet",s._portal))},dependencies:[jm],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[ag.bodyExpansion]},changeDetection:0});let t=e;return t})();var _u=class{},EC=rg(_u),bu=(()=>{let e=class e extends EC{constructor(n,r,s,o,a,c,l){super(),this.panel=n,this._element=r,this._focusMonitor=s,this._changeDetectorRef=o,this._animationMode=c,this._parentChangeSubscription=De.EMPTY;let u=n.accordion?n.accordion._stateChanges.pipe(Ot(h=>!!(h.hideToggle||h.togglePosition))):yn;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Bi(n.opened,n.closed,u,n._inputChanges.pipe(Ot(h=>!!(h.hideToggle||h.disabled||h.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),n.closed.pipe(Ot(()=>n._containsFocus())).subscribe(()=>s.focusVia(r,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let n=this._isExpanded();return n&&this.expandedHeight?this.expandedHeight:!n&&this.collapsedHeight?this.collapsedHeight:null}_keydown(n){switch(n.keyCode){case 32:case 13:Vo(n)||(n.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(n);return}}focus(n,r){n?this._focusMonitor.focusVia(this._element,n,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(n=>{n&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(r){return new(r||e)(A(yu,1),A(me),A(Uo),A(it),A(lg,8),A(nt,8),Gs("tabindex"))},e.\u0275cmp=Tt({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,s){r&1&&$e("click",function(){return s._toggle()})("keydown",function(a){return s._keydown(a)}),r&2&&(at("id",s.panel._headerId)("tabindex",s.tabIndex)("aria-controls",s._getPanelId())("aria-expanded",s._isExpanded())("aria-disabled",s.panel.disabled),dr("height",s._getHeaderHeight()),He("mat-expanded",s._isExpanded())("mat-expansion-toggle-indicator-after",s._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",s._getTogglePosition()==="before")("_mat-animation-noopable",s._animationMode==="NoopAnimations"))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[qe],ngContentSelectors:bC,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator"],[1,"mat-expansion-indicator"]],template:function(r,s){r&1&&(dn(yC),le(0,"span",0),vt(1),vt(2,1),vt(3,2),ge(),et(4,_C,1,1,"span",1)),r&2&&(He("mat-content-hide-toggle",!s._showToggle()),Ce(4),jt(4,s._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[ag.indicatorRotate]},changeDetection:0});let t=e;return t})();var ug=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=_e({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});let t=e;return t})(),dg=(()=>{let e=class e extends Pm{constructor(){super(...arguments),this._ownHeaders=new sn,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(n){this._hideToggle=xt(n)}ngAfterContentInit(){this._headers.changes.pipe(ei(this._headers)).subscribe(n=>{this._ownHeaders.reset(n.filter(r=>r.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Bo(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(n){this._keyManager.onKeydown(n)}_handleHeaderFocus(n){this._keyManager.updateActiveItem(n)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=vi(e)))(s||e)}})(),e.\u0275dir=_e({type:e,selectors:[["mat-accordion"]],contentQueries:function(r,s,o){if(r&1&&bi(o,bu,5),r&2){let a;Ke(a=Qe())&&(s._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,s){r&2&&He("mat-accordion-multi",s.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[ke([{provide:vu,useExisting:e}]),qe]});let t=e;return t})(),fg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[Zt,Vm,Bm]});let t=e;return t})();var CC=["switch"];function MC(t,e){t&1&&(le(0,"div",12),qf(),le(1,"svg",13),Le(2,"path",14),ge(),le(3,"svg",15),Le(4,"path",16),ge()())}var TC=["*"],SC=new V("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),AC={provide:Mi,useExisting:qt(()=>wu),multi:!0},$o=class{constructor(e,i){this.source=e,this.checked=i}},xC=0,wu=(()=>{let e=class e{_createChangeEvent(n){return new $o(this,n)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(n){this._checked=n,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(n,r,s,o,a,c){this._elementRef=n,this._focusMonitor=r,this._changeDetectorRef=s,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new J,this.toggleChange=new J,this.tabIndex=parseInt(o)||0,this.color=a.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++xC}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(n=>{n==="keyboard"||n==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):n||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(n){this.checked=!!n}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}setDisabledState(n){this.disabled=n,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new $o(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(r){return new(r||e)(A(me),A(Uo),A(it),Gs("tabindex"),A(SC),A(nt,8))},e.\u0275cmp=Tt({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(r,s){if(r&1&&St(CC,5),r&2){let o;Ke(o=Qe())&&(s._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(r,s){r&2&&(so("id",s.id),at("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),no(s.color?"mat-"+s.color:""),He("mat-mdc-slide-toggle-focused",s._focused)("mat-mdc-slide-toggle-checked",s.checked)("_mat-animation-noopable",s._noopAnimations))},inputs:{disabled:["disabled","disabled",Ye],disableRipple:["disableRipple","disableRipple",Ye],color:"color",tabIndex:["tabIndex","tabIndex",n=>n==null?0:ol(n)],name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:["required","required",Ye],checked:["checked","checked",Ye],hideIcon:["hideIcon","hideIcon",Ye]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[ke([AC]),Fn],ngContentSelectors:TC,decls:13,vars:25,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],["class","mdc-switch__icons"],[1,"mdc-label",3,"for","click"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(r,s){if(r&1&&(dn(),le(0,"div",0)(1,"button",1,2),$e("click",function(){return s._handleClick()}),Le(3,"div",3),le(4,"div",4)(5,"div",5)(6,"div",6),Le(7,"div",7),ge(),le(8,"div",8),Le(9,"div",9),ge(),et(10,MC,5,0,"div",10),ge()()(),le(11,"label",11),$e("click",function(a){return a.stopPropagation()}),vt(12),ge()()),r&2){let o=gp(2);He("mdc-form-field--align-end",s.labelPosition=="before"),Ce(1),He("mdc-switch--selected",s.checked)("mdc-switch--unselected",!s.checked)("mdc-switch--checked",s.checked)("mdc-switch--disabled",s.disabled),xe("tabIndex",s.disabled?-1:s.tabIndex)("disabled",s.disabled),at("id",s.buttonId)("name",s.name)("aria-label",s.ariaLabel)("aria-labelledby",s._getAriaLabelledBy())("aria-describedby",s.ariaDescribedby)("aria-required",s.required||null)("aria-checked",s.checked),Ce(8),xe("matRippleTrigger",o)("matRippleDisabled",s.disableRipple||s.disabled)("matRippleCentered",!0),Ce(1),jt(10,s.hideIcon?-1:10),Ce(1),xe("for",s.buttonId),at("id",s._labelId)}},dependencies:[Ai],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle .mdc-label{font-family:var(--mat-slide-toggle-label-text-font);font-size:var(--mat-slide-toggle-label-text-size);letter-spacing:var(--mat-slide-toggle-label-text-tracking);line-height:var(--mat-slide-toggle-label-text-line-height);font-weight:var(--mat-slide-toggle-label-text-weight)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}'],encapsulation:2,changeDetection:0});let t=e;return t})();var hg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({});let t=e;return t})(),pg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[hg,Zt,Ho,hg,Zt]});let t=e;return t})();var OC=["knob"],RC=["valueIndicatorContainer"];function kC(t,e){if(t&1&&(le(0,"div",4,5)(2,"div",6)(3,"span",7),Ln(4),ge()()()),t&2){let i=Qt();Ce(4),il(i.valueIndicatorText)}}var FC=["trackActive"];function PC(t,e){if(t&1&&Le(0,"div"),t&2){let i=e.$implicit,n=e.$index,r=Qt(3);no(i===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),dr("transform",r._calcTickMarkTransform(n))}}function LC(t,e){if(t&1&&hp(0,PC,1,4,"div",9,fp),t&2){let i=Qt(2);pp(0,i._tickMarks)}}function VC(t,e){if(t&1&&(le(0,"div",7,8),et(2,LC,2,0),ge()),t&2){let i=Qt();Ce(2),jt(2,i._cachedWidth?2:-1)}}function jC(t,e){if(t&1&&Le(0,"mat-slider-visual-thumb",6),t&2){let i=Qt();xe("discrete",i.discrete)("thumbPosition",1)("valueIndicatorText",i.startValueIndicatorText)}}var BC=["*"],Du=new V("_MatSlider"),mg=new V("_MatSliderThumb"),UC=new V("_MatSliderRangeThumb"),gg=new V("_MatSliderVisualThumb");var HC=(()=>{let e=class e{constructor(n,r,s,o){this._cdr=n,this._ngZone=r,this._slider=o,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=a=>{if(this._sliderInput._isFocused)return;let c=this._hostElement.getBoundingClientRect(),l=this._slider._isCursorOnSliderThumb(a,c);this._isHovered=l,l?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=a=>{a.button===0&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=s.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;let n=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{n.addEventListener("pointermove",this._onPointerMove),n.addEventListener("pointerdown",this._onDragStart),n.addEventListener("pointerup",this._onDragEnd),n.addEventListener("pointerleave",this._onMouseLeave),n.addEventListener("focus",this._onFocus),n.addEventListener("blur",this._onBlur)})}ngOnDestroy(){let n=this._sliderInputEl;n.removeEventListener("pointermove",this._onPointerMove),n.removeEventListener("pointerdown",this._onDragStart),n.removeEventListener("pointerup",this._onDragEnd),n.removeEventListener("pointerleave",this._onMouseLeave),n.removeEventListener("focus",this._onFocus),n.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(n){return n?.state===0||n?.state===1}_showRipple(n,r){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===1?2:1)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!r)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:n,centered:!0,persistent:!0})}_hideRipple(n){if(n?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let r=this._getSibling();r._isShowingAnyRipple()||(this._hideValueIndicator(),r._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===1?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}};e.\u0275fac=function(r){return new(r||e)(A(it),A(ne),A(me),A(Du))},e.\u0275cmp=Tt({type:e,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(r,s){if(r&1&&(St(Ai,5),St(OC,5),St(RC,5)),r&2){let o;Ke(o=Qe())&&(s._ripple=o.first),Ke(o=Qe())&&(s._knob=o.first),Ke(o=Qe())&&(s._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[ke([{provide:gg,useExisting:e}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(r,s){r&1&&(et(0,kC,5,1,"div",0),Le(1,"div",1,2)(3,"div",3)),r&2&&(jt(0,s.discrete?0:-1),Ce(3),xe("matRippleDisabled",!0))},dependencies:[Ai],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0});let t=e;return t})(),$C=ng(ig(class{constructor(t){this._elementRef=t}}),"primary"),vg=(()=>{let e=class e extends $C{get disabled(){return this._disabled}set disabled(n){this._disabled=xt(n);let r=this._getInput(2),s=this._getInput(1);r&&(r.disabled=this._disabled),s&&(s.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(n){this._discrete=xt(n),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(n){this._showTickMarks=xt(n)}get min(){return this._min}set min(n){let r=rt(n,this._min);this._min!==r&&this._updateMin(r)}_updateMin(n){let r=this._min;this._min=n,this._isRange?this._updateMinRange({old:r,new:n}):this._updateMinNonRange(n),this._onMinMaxOrStepChange()}_updateMinRange(n){let r=this._getInput(2),s=this._getInput(1),o=r.value,a=s.value;s.min=n.new,r.min=Math.max(n.new,s.value),s.max=Math.min(r.max,r.value),s._updateWidthInactive(),r._updateWidthInactive(),n.newn.old?this._onTranslateXChangeBySideEffect(s,r):this._onTranslateXChangeBySideEffect(r,s),o!==r.value&&this._onValueChange(r),a!==s.value&&this._onValueChange(s)}_updateMaxNonRange(n){let r=this._getInput(2);if(r){let s=r.value;r.max=n,r._updateThumbUIByValue(),this._updateTrackUI(r),s!==r.value&&this._onValueChange(r)}}get step(){return this._step}set step(n){let r=rt(n,this._step);this._step!==r&&this._updateStep(r)}_updateStep(n){this._step=n,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let n=this._getInput(2),r=this._getInput(1),s=n.value,o=r.value,a=r.value;n.min=this._min,r.max=this._max,n.step=this._step,r.step=this._step,this._platform.SAFARI&&(n.value=n.value,r.value=r.value),n.min=Math.max(this._min,r.value),r.max=Math.min(this._max,n.value),r._updateWidthInactive(),n._updateWidthInactive(),n.value`${l}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=pe(yt),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations=c==="NoopAnimations",this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl"}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let n=this._getInput(2),r=this._getInput(1);this._isRange=!!n&&!!r,this._cdr.detectChanges();let s=this._getThumb(2);this._rippleRadius=s._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(n,r):this._initUINonRange(n),this._updateTrackUI(n),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(n){n.initProps(),n.initUI(),this._updateValueIndicatorUI(n),this._hasViewInitialized=!0,n._updateThumbUIByValue()}_initUIRange(n,r){n.initProps(),n.initUI(),r.initProps(),r.initUI(),n._updateMinMax(),r._updateMinMax(),n._updateStaticStyles(),r._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,n._updateThumbUIByValue(),r._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let n=this._getInput(2),r=this._getInput(1);n._setIsLeftThumb(),r._setIsLeftThumb(),n.translateX=n._calcTranslateXByValue(),r.translateX=r._calcTranslateXByValue(),n._updateStaticStyles(),r._updateStaticStyles(),n._updateWidthInactive(),r._updateWidthInactive(),n._updateThumbUIByValue(),r._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(n=2){let r=this._getInput(n);return r?r.value:this.min}_skipUpdate(){return!!(this._getInput(1)?._skipUIUpdate||this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(n){let r=this._trackActive.nativeElement.style;r.left=n.left,r.right=n.right,r.transformOrigin=n.transformOrigin,r.transform=n.transform}_calcTickMarkTransform(n){return`translateX(${n*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(n){this._hasViewInitialized&&(this._updateThumbUI(n),this._updateTrackUI(n),this._updateOverlappingThumbUI(n))}_onTranslateXChangeBySideEffect(n,r){this._hasViewInitialized&&(n._updateThumbUIByValue(),r._updateThumbUIByValue())}_onValueChange(n){this._hasViewInitialized&&(this._updateValueIndicatorUI(n),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let n=this._getInput(2),r=this._getInput(1);n._updateThumbUIByValue(),r._updateThumbUIByValue(),n._updateStaticStyles(),r._updateStaticStyles(),n._updateMinMax(),r._updateMinMax(),n._updateWidthInactive(),r._updateWidthInactive()}else{let n=this._getInput(2);n&&n._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){let n=this._getInput(1),r=this._getInput(2);return!n||!r?!1:r.translateX-n.translateX<20}_updateOverlappingThumbClassNames(n){let r=n.getSibling(),s=this._getThumb(n.thumbPosition);this._getThumb(r.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),s._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(n){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(n))}_updateThumbUI(n){if(this._skipUpdate())return;let r=this._getThumb(n.thumbPosition===2?2:1);r._hostElement.style.transform=`translateX(${n.translateX}px)`}_updateValueIndicatorUI(n){if(this._skipUpdate())return;let r=this.displayWith(n.value);if(this._hasViewInitialized?n._valuetext=r:n._hostElement.setAttribute("aria-valuetext",r),this.discrete){n.thumbPosition===1?this.startValueIndicatorText=r:this.endValueIndicatorText=r;let s=this._getThumb(n.thumbPosition);r.length<3?s._hostElement.classList.add("mdc-slider__thumb--short-value"):s._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let n=this._getInput(2),r=this._getInput(1);n&&this._updateValueIndicatorUI(n),r&&this._updateValueIndicatorUI(r)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let n=this._step&&this._step>0?this._step:1,s=(Math.floor(this.max/n)*n-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*s-6}_updateTrackUI(n){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(n):this._updateTrackUINonRange(n))}_updateTrackUIRange(n){let r=n.getSibling();if(!r||!this._cachedWidth)return;let s=Math.abs(r.translateX-n.translateX)/this._cachedWidth;n._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-r.translateX}px`,transformOrigin:"right",transform:`scaleX(${s})`}):this._setTrackActiveStyles({left:`${r.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${s})`})}_updateTrackUINonRange(n){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-n.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${n.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let n=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(n):this._updateTickMarkUINonRange(n),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(n){let r=this._getValue(),s=Math.max(Math.round((r-this.min)/n),0),o=Math.max(Math.round((this.max-r)/n),0);this._isRtl?s++:o++,this._tickMarks=Array(s).fill(0).concat(Array(o).fill(1))}_updateTickMarkUIRange(n){let r=this._getValue(),s=this._getValue(1),o=Math.max(Math.floor((s-this.min)/n),0),a=Math.max(Math.floor((r-s)/n)+1,0),c=Math.max(Math.floor((this.max-r)/n),0);this._tickMarks=Array(o).fill(1).concat(Array(a).fill(0),Array(c).fill(1))}_getInput(n){if(n===2&&this._input)return this._input;if(this._inputs?.length)return n===1?this._inputs.first:this._inputs.last}_getThumb(n){return n===2?this._thumbs?.last:this._thumbs?.first}_setTransition(n){this._hasAnimation=!this._platform.IOS&&n&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(n,r){let s=r.width/2,o=r.x+s,a=r.y+s,c=n.clientX-o,l=n.clientY-a;return Math.pow(c,2)+Math.pow(l,2)Eu),multi:!0};var Eu=(()=>{let e=class e{get value(){return rt(this._hostElement.value)}set value(n){let r=rt(n).toString();if(!this._hasSetInitialValue){this._initialValue=r;return}this._isActive||(this._hostElement.value=r,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck())}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(n){this._translateX=n}get min(){return rt(this._hostElement.min)}set min(n){this._hostElement.min=rt(n).toString(),this._cdr.detectChanges()}get max(){return rt(this._hostElement.max)}set max(n){this._hostElement.max=rt(n).toString(),this._cdr.detectChanges()}get step(){return rt(this._hostElement.step)}set step(n){this._hostElement.step=rt(n).toString(),this._cdr.detectChanges()}get disabled(){return xt(this._hostElement.disabled)}set disabled(n){this._hostElement.disabled=xt(n),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(n){this._isFocused=n}constructor(n,r,s,o){this._ngZone=n,this._elementRef=r,this._cdr=s,this._slider=o,this.valueChange=new J,this.dragStart=new J,this.dragEnd=new J,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new ce,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=pe(yt),this._hostElement=r.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(n){if(!(this.disabled||n.button!==0)){if(this._platform.IOS){let r=this._slider._isCursorOnSliderThumb(n,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=r,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(n,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(n),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(n){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(n)},0)}_fixValue(n){let r=n.clientX-this._slider._cachedLeft,s=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),c=this._slider._isRtl?1-r/s:r/s,u=Math.round(c*a)/a*(this._slider.max-this._slider.min)+this._slider.min,h=Math.round(u/o)*o,p=this.value;if(h===p){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(n,{withAnimation:this._slider._hasAnimation});return}this.value=h,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(n,{withAnimation:this._slider._hasAnimation})}_onPointerMove(n){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(n)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(n){return Math.max(Math.min(n,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(n){return n.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(n){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(n)}_updateThumbUIByPointerEvent(n,r){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(n)),this._updateThumbUI(r)}_updateThumbUI(n){this._slider._setTransition(!!n?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(n){(this._isControlInitialized||n!==null)&&(this.value=n)}registerOnChange(n){this._onChangeFn=n,this._isControlInitialized=!0}registerOnTouched(n){this._onTouchedFn=n}setDisabledState(n){this.disabled=n}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}};e.\u0275fac=function(r){return new(r||e)(A(ne),A(me),A(it),A(Du))},e.\u0275dir=_e({type:e,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(r,s){r&1&&$e("change",function(){return s._onChange()})("input",function(){return s._onInput()})("blur",function(){return s._onBlur()})("focus",function(){return s._onFocus()}),r&2&&at("aria-valuetext",s._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[ke([zC,{provide:mg,useExisting:e}])]});let t=e;return t})();var _g=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=he({type:e}),e.\u0275inj=fe({imports:[Zt,Ho]});let t=e;return t})();var wg=wv(bg());var zo=!1,Wo=class{constructor(e){this.storage=e,this.observables=new Map,this.signals=new Map}set(e,i){let n=this.observables.get(e);n&&n.getValue()!==i&&n.next(i);let r=this.signals.get(e);r&&(zo=!0,r.set(i),zo=!1)}removed(e){let i=this.observables.get(e);i&&i.next(void 0);let n=this.signals.get(e);n&&n.set(void 0)}getObservable(e,i){let n=this.observables.get(e);return n||(n=new zt(void 0),this.observables.set(e,n)),i!==null&&n.next(i),n.pipe(_a({refCount:!0,bufferSize:1}))}getSignal(e,i,n){let r=this.signals.get(e);return r||(r=Zc(i,{equal:n}),this.signals.set(e,r)),i!==void 0&&r.set(i),r.asReadonly()}getWritableSignal(e,i,n){let r=this.signals.get(e);if(!r){r=Zc(i,{equal:n});let s=r.set;r.set=o=>{zo||this.storage.set(e,o).catch(console?.error),s(o)},r.update=o=>{let a=o(r());zo||this.storage.set(e,a).catch(console?.error),s(a)},this.signals.set(e,r)}return r}dispose(){this.observables.clear(),this.signals.clear()}};var Go=class{constructor(e="table",i="db"){this.observer=new Wo(this),this.listener=n=>{if(n.data&&typeof n.data=="object"){let r=n.data;switch(r.type){case"set":this.observer.set(r.key,r.value);break;case"remove":this.observer.removed(r.key);break}}},this.tableName=e||"table",this.dbName=i||"db",this.store=wg.createInstance({name:this.dbName,storeName:this.tableName}),this.channel=new BroadcastChannel(this.dbName+"."+this.tableName),this.channel.addEventListener("message",this.listener,{passive:!0})}get(e){return new Promise((i,n)=>{this.store.getItem(e).then(r=>{r!==null&&this.observer.set(e,r),i(r)}).catch(r=>n(r))})}getObservable(e){let i=this.observer.getObservable(e,void 0);return this.get(e).catch(),i}getSignal(e,i){let n=this.observer.getSignal(e,i?.initialValue,i?.equal);return this.get(e).catch(),n}getWritableSignal(e,i){let n=this.observer.getWritableSignal(e,i?.initialValue,i?.equal);return this.get(e).catch(),n}set(e,i){return new Promise((n,r)=>{this.store.setItem(e,i).then(()=>{this.observer.set(e,i),this.broadcastChange({type:"set",key:e,value:i}),n()}).catch(r)})}remove(e){return new Promise((i,n)=>{this.store.removeItem(e).then(()=>{this.observer.removed(e),this.broadcastChange({type:"remove",key:e}),i()}).catch(n)})}getKeys(){return this.store.keys()}clear(){return new Promise((e,i)=>{this.getKeys().then(n=>{n.forEach(r=>this.observer.removed(r)),this.store.clear().then(()=>e()).catch(i)}).catch(i)})}dispose(){this.observer.dispose(),this.channel.removeEventListener("message",this.listener),this.channel.close()}broadcastChange(e){this.channel.postMessage(e)}};var Dg=(()=>{let e=class e{constructor(){this.storage=new Go("example","ngx-reactive-storage"),this.$toggle=this.storage.getWritableSignal("toggle",{initialValue:!0}),this.$slider=this.storage.getWritableSignal("slider",{initialValue:50}),this.$expanded=this.storage.getWritableSignal("expanded")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Tt({type:e,selectors:[["app-root"]],standalone:!0,features:[_p],decls:11,vars:7,consts:[[3,"checked","change"],[3,"min","max","step"],["matSliderThumb","",3,"ngModel","ngModelChange"],[3,"hideToggle","expanded","expandedChange"]],template:function(r,s){r&1&&(le(0,"mat-slide-toggle",0),$e("change",function(a){return s.$toggle.set(a.checked)}),Ln(1,"Toggle me!"),ge(),le(2,"mat-slider",1)(3,"input",2),$e("ngModelChange",function(a){return s.$slider.set(a)}),ge()(),le(4,"mat-accordion")(5,"mat-expansion-panel",3),$e("expandedChange",function(a){return s.$expanded.set(a)}),le(6,"mat-expansion-panel-header")(7,"mat-panel-title"),Ln(8,"Expand me!"),ge()(),le(9,"p"),Ln(10,"Magic of Reactive Storage!"),ge()()()),r&2&&(xe("checked",s.$toggle()),Ce(2),xe("min",0)("max",100)("step",1),Ce(1),xe("ngModel",s.$slider()),Ce(2),xe("hideToggle",!0)("expanded",s.$expanded()))},dependencies:[pg,wu,_g,vg,Eu,km,Fo,Nm,Xl,fg,dg,yu,bu,ug],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;gap:1em;padding:1em}"],changeDetection:0});let t=e;return t})();Lp(Dg,{providers:[pm()]}).catch(t=>console.error(t)); diff --git a/projects/docs/src/app/app.component.ts b/projects/docs/src/app/app.component.ts index e013d93..d748e97 100644 --- a/projects/docs/src/app/app.component.ts +++ b/projects/docs/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { ChangeDetectionStrategy, Component } from '@angular/core'; import { FormsModule } from "@angular/forms"; import { MatExpansionModule } from "@angular/material/expansion"; import { MatSlideToggleModule } from "@angular/material/slide-toggle"; @@ -15,7 +15,8 @@ import { RxStorage } from "@oz/reactive-storage"; MatExpansionModule, ], templateUrl: './app.component.html', - styleUrl: './app.component.scss' + styleUrl: './app.component.scss', + changeDetection: ChangeDetectionStrategy.OnPush }) export class AppComponent { protected readonly storage = new RxStorage('example', 'ngx-reactive-storage');