@andersbakken/fisk-scheduler-ui 0.0.54 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ var HD=Object.create;var Mu=Object.defineProperty,UD=Object.defineProperties,$D=Object.getOwnPropertyDescriptor,qD=Object.getOwnPropertyDescriptors,WD=Object.getOwnPropertyNames,Ra=Object.getOwnPropertySymbols,GD=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,Jg=Object.prototype.propertyIsEnumerable;var Xg=(t,n,e)=>n in t?Mu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,D=(t,n)=>{for(var e in n||={})Su.call(n,e)&&Xg(t,e,n[e]);if(Ra)for(var e of Ra(n))Jg.call(n,e)&&Xg(t,e,n[e]);return t},ve=(t,n)=>UD(t,qD(n));var Au=(t,n)=>{var e={};for(var i in t)Su.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&Ra)for(var i of Ra(t))n.indexOf(i)<0&&Jg.call(t,i)&&(e[i]=t[i]);return e};var Yn=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var YD=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of WD(n))!Su.call(t,r)&&r!==e&&Mu(t,r,{get:()=>n[r],enumerable:!(i=$D(n,r))||i.enumerable});return t};var ZD=(t,n,e)=>(e=t!=null?HD(GD(t)):{},YD(n||!t||!t.__esModule?Mu(e,"default",{value:t,enumerable:!0}):e,t));var Oa=(t,n,e)=>new Promise((i,r)=>{var o=c=>{try{a(e.next(c))}catch(l){r(l)}},s=c=>{try{a(e.throw(c))}catch(l){r(l)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,s);a((e=e.apply(t,n)).next())});var _D=Yn((vD,Wg)=>{(function(t,n,e){function i(a){var c=this,l=s();c.next=function(){var d=2091639*c.s0+c.c*23283064365386963e-26;return c.s0=c.s1,c.s1=c.s2,c.s2=d-(c.c=d|0)},c.c=1,c.s0=l(" "),c.s1=l(" "),c.s2=l(" "),c.s0-=l(a),c.s0<0&&(c.s0+=1),c.s1-=l(a),c.s1<0&&(c.s1+=1),c.s2-=l(a),c.s2<0&&(c.s2+=1),l=null}function r(a,c){return c.c=a.c,c.s0=a.s0,c.s1=a.s1,c.s2=a.s2,c}function o(a,c){var l=new i(a),d=c&&c.state,u=l.next;return u.int32=function(){return l.next()*4294967296|0},u.double=function(){return u()+(u()*2097152|0)*11102230246251565e-32},u.quick=u,d&&(typeof d=="object"&&r(d,l),u.state=function(){return r(l,{})}),u}function s(){var a=4022871197,c=function(l){l=String(l);for(var d=0;d<l.length;d++){a+=l.charCodeAt(d);var u=.02519603282416938*a;a=u>>>0,u-=a,u*=a,a=u>>>0,u-=a,a+=u*4294967296}return(a>>>0)*23283064365386963e-26};return c}n&&n.exports?n.exports=o:e&&e.amd?e(function(){return o}):this.alea=o})(vD,typeof Wg=="object"&&Wg,typeof define=="function"&&define)});var wD=Yn((yD,Gg)=>{(function(t,n,e){function i(s){var a=this,c="";a.x=0,a.y=0,a.z=0,a.w=0,a.next=function(){var d=a.x^a.x<<11;return a.x=a.y,a.y=a.z,a.z=a.w,a.w^=a.w>>>19^d^d>>>8},s===(s|0)?a.x=s:c+=s;for(var l=0;l<c.length+64;l++)a.x^=c.charCodeAt(l)|0,a.next()}function r(s,a){return a.x=s.x,a.y=s.y,a.z=s.z,a.w=s.w,a}function o(s,a){var c=new i(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&r(l,c),d.state=function(){return r(c,{})}),d}n&&n.exports?n.exports=o:e&&e.amd?e(function(){return o}):this.xor128=o})(yD,typeof Gg=="object"&&Gg,typeof define=="function"&&define)});var xD=Yn((CD,Yg)=>{(function(t,n,e){function i(s){var a=this,c="";a.next=function(){var d=a.x^a.x>>>2;return a.x=a.y,a.y=a.z,a.z=a.w,a.w=a.v,(a.d=a.d+362437|0)+(a.v=a.v^a.v<<4^(d^d<<1))|0},a.x=0,a.y=0,a.z=0,a.w=0,a.v=0,s===(s|0)?a.x=s:c+=s;for(var l=0;l<c.length+64;l++)a.x^=c.charCodeAt(l)|0,l==c.length&&(a.d=a.x<<10^a.x>>>4),a.next()}function r(s,a){return a.x=s.x,a.y=s.y,a.z=s.z,a.w=s.w,a.v=s.v,a.d=s.d,a}function o(s,a){var c=new i(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&r(l,c),d.state=function(){return r(c,{})}),d}n&&n.exports?n.exports=o:e&&e.amd?e(function(){return o}):this.xorwow=o})(CD,typeof Yg=="object"&&Yg,typeof define=="function"&&define)});var ED=Yn((DD,Zg)=>{(function(t,n,e){function i(s){var a=this;a.next=function(){var l=a.x,d=a.i,u,f,h;return u=l[d],u^=u>>>7,f=u^u<<24,u=l[d+1&7],f^=u^u>>>10,u=l[d+3&7],f^=u^u>>>3,u=l[d+4&7],f^=u^u<<7,u=l[d+7&7],u=u^u<<13,f^=u^u<<9,l[d]=f,a.i=d+1&7,f};function c(l,d){var u,f,h=[];if(d===(d|0))f=h[0]=d;else for(d=""+d,u=0;u<d.length;++u)h[u&7]=h[u&7]<<15^d.charCodeAt(u)+h[u+1&7]<<13;for(;h.length<8;)h.push(0);for(u=0;u<8&&h[u]===0;++u);for(u==8?f=h[7]=-1:f=h[u],l.x=h,l.i=0,u=256;u>0;--u)l.next()}c(a,s)}function r(s,a){return a.x=s.x.slice(),a.i=s.i,a}function o(s,a){s==null&&(s=+new Date);var c=new i(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(l.x&&r(l,c),d.state=function(){return r(c,{})}),d}n&&n.exports?n.exports=o:e&&e.amd?e(function(){return o}):this.xorshift7=o})(DD,typeof Zg=="object"&&Zg,typeof define=="function"&&define)});var kD=Yn((ID,Kg)=>{(function(t,n,e){function i(s){var a=this;a.next=function(){var l=a.w,d=a.X,u=a.i,f,h;return a.w=l=l+1640531527|0,h=d[u+34&127],f=d[u=u+1&127],h^=h<<13,f^=f<<17,h^=h>>>15,f^=f>>>12,h=d[u]=h^f,a.i=u,h+(l^l>>>16)|0};function c(l,d){var u,f,h,m,g,C=[],S=128;for(d===(d|0)?(f=d,d=null):(d=d+"\0",f=0,S=Math.max(S,d.length)),h=0,m=-32;m<S;++m)d&&(f^=d.charCodeAt((m+32)%d.length)),m===0&&(g=f),f^=f<<10,f^=f>>>15,f^=f<<4,f^=f>>>13,m>=0&&(g=g+1640531527|0,u=C[m&127]^=f+g,h=u==0?h+1:0);for(h>=128&&(C[(d&&d.length||0)&127]=-1),h=127,m=4*128;m>0;--m)f=C[h+34&127],u=C[h=h+1&127],f^=f<<13,u^=u<<17,f^=f>>>15,u^=u>>>12,C[h]=f^u;l.w=g,l.X=C,l.i=h}c(a,s)}function r(s,a){return a.i=s.i,a.w=s.w,a.X=s.X.slice(),a}function o(s,a){s==null&&(s=+new Date);var c=new i(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(l.X&&r(l,c),d.state=function(){return r(c,{})}),d}n&&n.exports?n.exports=o:e&&e.amd?e(function(){return o}):this.xor4096=o})(ID,typeof Kg=="object"&&Kg,typeof define=="function"&&define)});var SD=Yn((MD,Qg)=>{(function(t,n,e){function i(s){var a=this,c="";a.next=function(){var d=a.b,u=a.c,f=a.d,h=a.a;return d=d<<25^d>>>7^u,u=u-f|0,f=f<<24^f>>>8^h,h=h-d|0,a.b=d=d<<20^d>>>12^u,a.c=u=u-f|0,a.d=f<<16^u>>>16^h,a.a=h-d|0},a.a=0,a.b=0,a.c=-1640531527,a.d=1367130551,s===Math.floor(s)?(a.a=s/4294967296|0,a.b=s|0):c+=s;for(var l=0;l<c.length+20;l++)a.b^=c.charCodeAt(l)|0,a.next()}function r(s,a){return a.a=s.a,a.b=s.b,a.c=s.c,a.d=s.d,a}function o(s,a){var c=new i(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,f=(c.next()>>>0)/4294967296,h=(u+f)/(1<<21);while(h===0);return h},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&r(l,c),d.state=function(){return r(c,{})}),d}n&&n.exports?n.exports=o:e&&e.amd?e(function(){return o}):this.tychei=o})(MD,typeof Qg=="object"&&Qg,typeof define=="function"&&define)});var AD=Yn(()=>{});var RD=Yn((TD,Eu)=>{(function(t,n,e){var i=256,r=6,o=52,s="random",a=e.pow(i,r),c=e.pow(2,o),l=c*2,d=i-1,u;function f(E,M,W){var H=[];M=M==!0?{entropy:!0}:M||{};var z=C(g(M.entropy?[E,O(n)]:E??S(),3),H),we=new h(H),R=function(){for(var Ge=we.g(r),qe=a,Ke=0;Ge<c;)Ge=(Ge+Ke)*i,qe*=i,Ke=we.g(1);for(;Ge>=l;)Ge/=2,qe/=2,Ke>>>=1;return(Ge+Ke)/qe};return R.int32=function(){return we.g(4)|0},R.quick=function(){return we.g(4)/4294967296},R.double=R,C(O(we.S),n),(M.pass||W||function(Ge,qe,Ke,ht){return ht&&(ht.S&&m(ht,we),Ge.state=function(){return m(we,{})}),Ke?(e[s]=Ge,qe):Ge})(R,z,"global"in M?M.global:this==e,M.state)}function h(E){var M,W=E.length,H=this,z=0,we=H.i=H.j=0,R=H.S=[];for(W||(E=[W++]);z<i;)R[z]=z++;for(z=0;z<i;z++)R[z]=R[we=d&we+E[z%W]+(M=R[z])],R[we]=M;(H.g=function(Ge){for(var qe,Ke=0,ht=H.i,ze=H.j,wt=H.S;Ge--;)qe=wt[ht=d&ht+1],Ke=Ke*i+wt[d&(wt[ht]=wt[ze=d&ze+qe])+(wt[ze]=qe)];return H.i=ht,H.j=ze,Ke})(i)}function m(E,M){return M.i=E.i,M.j=E.j,M.S=E.S.slice(),M}function g(E,M){var W=[],H=typeof E,z;if(M&&H=="object")for(z in E)try{W.push(g(E[z],M-1))}catch{}return W.length?W:H=="string"?E:E+"\0"}function C(E,M){for(var W=E+"",H,z=0;z<W.length;)M[d&z]=d&(H^=M[d&z]*19)+W.charCodeAt(z++);return O(M)}function S(){try{var E;return u&&(E=u.randomBytes)?E=E(i):(E=new Uint8Array(i),(t.crypto||t.msCrypto).getRandomValues(E)),O(E)}catch{var M=t.navigator,W=M&&M.plugins;return[+new Date,t,W,t.screen,O(n)]}}function O(E){return String.fromCharCode.apply(0,E)}if(C(e.random(),n),typeof Eu=="object"&&Eu.exports){Eu.exports=f;try{u=AD()}catch{}}else typeof define=="function"&&define.amd?define(function(){return f}):e["seed"+s]=f})(typeof self<"u"?self:TD,[],Math)});var ND=Yn((f9,OD)=>{var _V=_D(),yV=wD(),wV=xD(),CV=ED(),xV=kD(),DV=SD(),qr=RD();qr.alea=_V;qr.xor128=yV;qr.xorwow=wV;qr.xorshift7=CV;qr.xor4096=xV;qr.tychei=DV;OD.exports=qr});function eb(t,n){return Object.is(t,n)}var ot=null,ns=!1,Na=1,$t=Symbol("SIGNAL");function De(t){let n=ot;return ot=t,n}function tb(){return ot}function KD(){return ns}var Wr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Nu(t){if(ns)throw new Error("");if(ot===null)return;ot.consumerOnSignalRead(t);let n=ot.nextProducerIndex++;if(Ba(ot),n<ot.producerNode.length&&ot.producerNode[n]!==t&&is(ot)){let e=ot.producerNode[n];Va(e,ot.producerIndexOfThis[n])}ot.producerNode[n]!==t&&(ot.producerNode[n]=t,ot.producerIndexOfThis[n]=is(ot)?sb(t,ot,n):0),ot.producerLastReadVersion[n]=t.version}function QD(){Na++}function nb(t){if(!(is(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Na)){if(!t.producerMustRecompute(t)&&!La(t)){t.dirty=!1,t.lastCleanEpoch=Na;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Na}}function ib(t){if(t.liveConsumerNode===void 0)return;let n=ns;ns=!0;try{for(let e of t.liveConsumerNode)e.dirty||ob(e)}finally{ns=n}}function rb(){return ot?.consumerAllowSignalWrites!==!1}function ob(t){t.dirty=!0,ib(t),t.consumerMarkedDirty?.(t)}function rs(t){return t&&(t.nextProducerIndex=0),De(t)}function Fa(t,n){if(De(n),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(is(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Va(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function La(t){Ba(t);for(let n=0;n<t.producerNode.length;n++){let e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(nb(e),i!==e.version))return!0}return!1}function ja(t){if(Ba(t),is(t))for(let n=0;n<t.producerNode.length;n++)Va(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function sb(t,n,e){if(ab(t),t.liveConsumerNode.length===0&&cb(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=sb(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1}function Va(t,n){if(ab(t),t.liveConsumerNode.length===1&&cb(t))for(let i=0;i<t.producerNode.length;i++)Va(t.producerNode[i],t.producerIndexOfThis[i]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];Ba(r),r.producerIndexOfThis[i]=n}}function is(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ba(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function ab(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function cb(t){return t.producerNode!==void 0}function Pu(t){let n=Object.create(XD);n.computation=t;let e=()=>{if(nb(n),Nu(n),n.value===Pa)throw n.error;return n.value};return e[$t]=n,e}var Tu=Symbol("UNSET"),Ru=Symbol("COMPUTING"),Pa=Symbol("ERRORED"),XD=ve(D({},Wr),{value:Tu,dirty:!0,error:null,equal:eb,producerMustRecompute(t){return t.value===Tu||t.value===Ru},producerRecomputeValue(t){if(t.value===Ru)throw new Error("Detected cycle in computations.");let n=t.value;t.value=Ru;let e=rs(t),i;try{i=t.computation()}catch(r){i=Pa,t.error=r}finally{Fa(t,e)}if(n!==Tu&&n!==Pa&&i!==Pa&&t.equal(n,i)){t.value=n;return}t.value=i,t.version++}});function JD(){throw new Error}var lb=JD;function db(){lb()}function ub(t){lb=t}var eE=null;function hb(t){let n=Object.create(mb);n.value=t;let e=()=>(Nu(n),n.value);return e[$t]=n,e}function Fu(t,n){rb()||db(),t.equal(t.value,n)||(t.value=n,tE(t))}function fb(t,n){rb()||db(),Fu(t,n(t.value))}var mb=ve(D({},Wr),{equal:eb,value:void 0});function tE(t){t.version++,QD(),ib(t),eE?.()}function pb(t,n,e){let i=Object.create(nE);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;let r=c=>{i.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(ja(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ou)}let a=()=>{if(i.fn===null)return;if(KD())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!La(i))return;i.hasRun=!0;let c=rs(i);try{i.cleanupFn(),i.cleanupFn=Ou,i.fn(r)}finally{Fa(i,c)}};return i.ref={notify:()=>ob(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[$t]:i},i.ref}var Ou=()=>{},nE=ve(D({},Wr),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Ou});function te(t){return typeof t=="function"}function Gr(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var za=Gr(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
2
+ ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=e});function ir(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var Te=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(te(i))try{i()}catch(o){n=o instanceof za?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{gb(o)}catch(s){n=n??[],s instanceof za?n=[...n,...s.errors]:n.push(s)}}if(n)throw new za(n)}}add(n){var e;if(n&&n!==this)if(this.closed)gb(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ir(e,n)}remove(n){let{_finalizers:e}=this;e&&ir(e,n),n instanceof t&&n._removeParent(this)}};Te.EMPTY=(()=>{let t=new Te;return t.closed=!0,t})();var Lu=Te.EMPTY;function Ha(t){return t instanceof Te||t&&"closed"in t&&te(t.remove)&&te(t.add)&&te(t.unsubscribe)}function gb(t){te(t)?t():t.unsubscribe()}var an={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yr={setTimeout(t,n,...e){let{delegate:i}=Yr;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Yr;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ua(t){Yr.setTimeout(()=>{let{onUnhandledError:n}=an;if(n)n(t);else throw t})}function os(){}var bb=ju("C",void 0,void 0);function vb(t){return ju("E",void 0,t)}function _b(t){return ju("N",t,void 0)}function ju(t,n,e){return{kind:t,value:n,error:e}}var rr=null;function Zr(t){if(an.useDeprecatedSynchronousErrorHandling){let n=!rr;if(n&&(rr={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=rr;if(rr=null,e)throw i}}else t()}function yb(t){an.useDeprecatedSynchronousErrorHandling&&rr&&(rr.errorThrown=!0,rr.error=t)}var or=class extends Te{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ha(n)&&n.add(this)):this.destination=oE}static create(n,e,i){return new Zn(n,e,i)}next(n){this.isStopped?Bu(_b(n),this):this._next(n)}error(n){this.isStopped?Bu(vb(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Bu(bb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},iE=Function.prototype.bind;function Vu(t,n){return iE.call(t,n)}var zu=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){$a(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){$a(i)}else $a(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){$a(e)}}},Zn=class extends or{constructor(n,e,i){super();let r;if(te(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&an.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Vu(n.next,o),error:n.error&&Vu(n.error,o),complete:n.complete&&Vu(n.complete,o)}):r=n}this.destination=new zu(r)}};function $a(t){an.useDeprecatedSynchronousErrorHandling?yb(t):Ua(t)}function rE(t){throw t}function Bu(t,n){let{onStoppedNotification:e}=an;e&&Yr.setTimeout(()=>e(t,n))}var oE={closed:!0,next:os,error:rE,complete:os};var Kr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Dt(t){return t}function Hu(...t){return Uu(t)}function Uu(t){return t.length===0?Dt:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var ie=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=aE(e)?e:new Zn(e,i,r);return Zr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=wb(i),new i((r,o)=>{let s=new Zn({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[Kr](){return this}pipe(...e){return Uu(e)(this)}toPromise(e){return e=wb(e),new e((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function wb(t){var n;return(n=t??an.Promise)!==null&&n!==void 0?n:Promise}function sE(t){return t&&te(t.next)&&te(t.error)&&te(t.complete)}function aE(t){return t&&t instanceof or||sE(t)&&Ha(t)}function $u(t){return te(t?.lift)}function he(t){return n=>{if($u(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function le(t,n,e,i,r){return new qu(t,n,e,i,r)}var qu=class extends or{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Qr(){return he((t,n)=>{let e=null;t._refCount++;let i=le(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var Xr=class extends ie{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$u(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Te;let e=this.getSubject();n.add(this.source.subscribe(le(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Te.EMPTY)}return n}refCount(){return Qr()(this)}};var Cb=Gr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var V=(()=>{class t extends ie{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new qa(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Cb}next(e){Zr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Zr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Zr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?Lu:(this.currentObservers=null,o.push(e),new Te(()=>{this.currentObservers=null,ir(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new ie;return e.source=this,e}}return t.create=(n,e)=>new qa(n,e),t})(),qa=class extends V{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Lu}};var Je=class extends V{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var ss={now(){return(ss.delegate||Date).now()},delegate:void 0};var Wa=class extends V{constructor(n=1/0,e=1/0,i=ss){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!n.closed;s+=i?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){let s=e.now(),a=0;for(let c=1;c<i.length&&i[c]<=s;c+=2)a=c;a&&i.splice(0,a+1)}}};var Ga=class extends Te{constructor(n,e){super()}schedule(n,e=0){return this}};var as={setInterval(t,n,...e){let{delegate:i}=as;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){let{delegate:n}=as;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};var Ya=class extends Ga{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return as.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return e;e!=null&&as.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(n,e);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let i=!1,r;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ir(i,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}};var Jr=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};Jr.now=ss.now;var Za=class extends Jr{constructor(n,e=Jr.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var cs=new Za(Ya),xb=cs;var st=new ie(t=>t.complete());function Ka(t){return t&&te(t.schedule)}function Wu(t){return t[t.length-1]}function Qa(t){return te(Wu(t))?t.pop():void 0}function xn(t){return Ka(Wu(t))?t.pop():void 0}function Db(t,n){return typeof Wu(t)=="number"?t.pop():n}function Ib(t,n,e,i){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(d){try{l(i.next(d))}catch(u){s(u)}}function c(d){try{l(i.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):r(d.value).then(a,c)}l((i=i.apply(t,n||[])).next())})}function Eb(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function sr(t){return this instanceof sr?(this.v=t,this):new sr(t)}function kb(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(h){return function(m){return Promise.resolve(m).then(h,u)}}function a(h,m){i[h]&&(r[h]=function(g){return new Promise(function(C,S){o.push([h,g,C,S])>1||c(h,g)})},m&&(r[h]=m(r[h])))}function c(h,m){try{l(i[h](m))}catch(g){f(o[0][3],g)}}function l(h){h.value instanceof sr?Promise.resolve(h.value.v).then(d,u):f(o[0][2],h)}function d(h){c("next",h)}function u(h){c("throw",h)}function f(h,m){h(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Mb(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Eb=="function"?Eb(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),r(a,c,s.done,s.value)})}}function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var eo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Xa(t){return te(t?.then)}function Ja(t){return te(t[Kr])}function ec(t){return Symbol.asyncIterator&&te(t?.[Symbol.asyncIterator])}function tc(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function cE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var nc=cE();function ic(t){return te(t?.[nc])}function rc(t){return kb(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield sr(e.read());if(r)return yield sr(void 0);yield yield sr(i)}}finally{e.releaseLock()}})}function oc(t){return te(t?.getReader)}function Ne(t){if(t instanceof ie)return t;if(t!=null){if(Ja(t))return lE(t);if(eo(t))return dE(t);if(Xa(t))return uE(t);if(ec(t))return Sb(t);if(ic(t))return hE(t);if(oc(t))return fE(t)}throw tc(t)}function lE(t){return new ie(n=>{let e=t[Kr]();if(te(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function dE(t){return new ie(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function uE(t){return new ie(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Ua)})}function hE(t){return new ie(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Sb(t){return new ie(n=>{mE(t,n).catch(e=>n.error(e))})}function fE(t){return Sb(rc(t))}function mE(t,n){var e,i,r,o;return Ib(this,void 0,void 0,function*(){try{for(e=Mb(t);i=yield e.next(),!i.done;){let s=i.value;if(n.next(s),n.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function St(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function sc(t,n=0){return he((e,i)=>{e.subscribe(le(i,r=>St(i,t,()=>i.next(r),n),()=>St(i,t,()=>i.complete(),n),r=>St(i,t,()=>i.error(r),n)))})}function ac(t,n=0){return he((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function Ab(t,n){return Ne(t).pipe(ac(n),sc(n))}function Tb(t,n){return Ne(t).pipe(ac(n),sc(n))}function Rb(t,n){return new ie(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function Ob(t,n){return new ie(e=>{let i;return St(e,n,()=>{i=t[nc](),St(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>te(i?.return)&&i.return()})}function cc(t,n){if(!t)throw new Error("Iterable cannot be null");return new ie(e=>{St(e,n,()=>{let i=t[Symbol.asyncIterator]();St(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Nb(t,n){return cc(rc(t),n)}function Pb(t,n){if(t!=null){if(Ja(t))return Ab(t,n);if(eo(t))return Rb(t,n);if(Xa(t))return Tb(t,n);if(ec(t))return cc(t,n);if(ic(t))return Ob(t,n);if(oc(t))return Nb(t,n)}throw tc(t)}function Fe(t,n){return n?Pb(t,n):Ne(t)}function q(...t){let n=xn(t);return Fe(t,n)}function to(t,n){let e=te(t)?t:()=>t,i=r=>r.error(e());return new ie(n?r=>n.schedule(i,0,r):i)}function ls(t){return!!t&&(t instanceof ie||te(t.lift)&&te(t.subscribe))}var Kn=Gr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Fb(t){return t instanceof Date&&!isNaN(t)}function ne(t,n){return he((e,i)=>{let r=0;e.subscribe(le(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:pE}=Array;function gE(t,n){return pE(n)?t(...n):t(n)}function no(t){return ne(n=>gE(t,n))}var{isArray:bE}=Array,{getPrototypeOf:vE,prototype:_E,keys:yE}=Object;function lc(t){if(t.length===1){let n=t[0];if(bE(n))return{args:n,keys:null};if(wE(n)){let e=yE(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function wE(t){return t&&typeof t=="object"&&vE(t)===_E}function dc(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function ar(...t){let n=xn(t),e=Qa(t),{args:i,keys:r}=lc(t);if(i.length===0)return Fe([],n);let o=new ie(CE(i,n,r?s=>dc(r,s):Dt));return e?o.pipe(no(e)):o}function CE(t,n,e=Dt){return i=>{Lb(n,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let c=0;c<r;c++)Lb(n,()=>{let l=Fe(t[c],n),d=!1;l.subscribe(le(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function Lb(t,n,e){t?St(e,t,n):n()}function jb(t,n,e,i,r,o,s,a){let c=[],l=0,d=0,u=!1,f=()=>{u&&!c.length&&!l&&n.complete()},h=g=>l<i?m(g):c.push(g),m=g=>{o&&n.next(g),l++;let C=!1;Ne(e(g,d++)).subscribe(le(n,S=>{r?.(S),o?h(S):n.next(S)},()=>{C=!0},void 0,()=>{if(C)try{for(l--;c.length&&l<i;){let S=c.shift();s?St(n,s,()=>m(S)):m(S)}f()}catch(S){n.error(S)}}))};return t.subscribe(le(n,h,()=>{u=!0,f()})),()=>{a?.()}}function Xe(t,n,e=1/0){return te(n)?Xe((i,r)=>ne((o,s)=>n(i,o,r,s))(Ne(t(i,r))),e):(typeof n=="number"&&(e=n),he((i,r)=>jb(i,r,t,e)))}function Dn(t=1/0){return Xe(Dt,t)}function Vb(){return Dn(1)}function wi(...t){return Vb()(Fe(t,xn(t)))}function Ci(t){return new ie(n=>{Ne(t()).subscribe(n)})}function Gu(...t){let n=Qa(t),{args:e,keys:i}=lc(t),r=new ie(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let d=0;d<s;d++){let u=!1;Ne(e[d]).subscribe(le(o,f=>{u||(u=!0,l--),a[d]=f},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?dc(i,a):a),o.complete())}))}});return n?r.pipe(no(n)):r}var xE=["addListener","removeListener"],DE=["addEventListener","removeEventListener"],EE=["on","off"];function En(t,n,e,i){if(te(e)&&(i=e,e=void 0),i)return En(t,n,e).pipe(no(i));let[r,o]=ME(t)?DE.map(s=>a=>t[s](n,a,e)):IE(t)?xE.map(Bb(t,n)):kE(t)?EE.map(Bb(t,n)):[];if(!r&&eo(t))return Xe(s=>En(s,n,e))(Ne(t));if(!r)throw new TypeError("Invalid event target");return new ie(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return r(a),()=>o(a)})}function Bb(t,n){return e=>i=>t[e](n,i)}function IE(t){return te(t.addListener)&&te(t.removeListener)}function kE(t){return te(t.on)&&te(t.off)}function ME(t){return te(t.addEventListener)&&te(t.removeEventListener)}function ds(t=0,n,e=xb){let i=-1;return n!=null&&(Ka(n)?e=n:i=n),new ie(r=>{let o=Fb(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function In(...t){let n=xn(t),e=Db(t,1/0),i=t;return i.length?i.length===1?Ne(i[0]):Dn(e)(Fe(i,n)):st}function ke(t,n){return he((e,i)=>{let r=0;e.subscribe(le(i,o=>t.call(n,o,r++)&&i.next(o)))})}function zb(t){return he((n,e)=>{let i=!1,r=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let l=r;r=null,e.next(l)}s&&e.complete()},c=()=>{o=null,s&&e.complete()};n.subscribe(le(e,l=>{i=!0,r=l,o||Ne(t(l)).subscribe(o=le(e,a,c))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}function uc(t,n=cs){return zb(()=>ds(t,n))}function xi(t){return he((n,e)=>{let i=null,r=!1,o;i=n.subscribe(le(e,void 0,void 0,s=>{o=Ne(t(s,xi(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Hb(t,n,e,i,r){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(le(s,d=>{let u=l++;c=a?t(c,d,u):(a=!0,d),i&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}function Qn(t,n){return te(n)?Xe(t,n,1):Xe(t,1)}function Xn(t,n=cs){return he((e,i)=>{let r=null,o=null,s=null,a=()=>{if(r){r.unsubscribe(),r=null;let l=o;o=null,i.next(l)}};function c(){let l=s+t,d=n.now();if(d<l){r=this.schedule(void 0,l-d),i.add(r);return}a()}e.subscribe(le(i,l=>{o=l,s=n.now(),r||(r=n.schedule(c,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function Di(t){return he((n,e)=>{let i=!1;n.subscribe(le(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function pt(t){return t<=0?()=>st:he((n,e)=>{let i=0;n.subscribe(le(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Yu(t){return ne(()=>t)}function hc(t,n=Dt){return t=t??SE,he((e,i)=>{let r,o=!0;e.subscribe(le(i,s=>{let a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function SE(t,n){return t===n}function fc(t=AE){return he((n,e)=>{let i=!1;n.subscribe(le(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function AE(){return new Kn}function cr(t){return he((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function kn(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ke((r,o)=>t(r,o,i)):Dt,pt(1),e?Di(n):fc(()=>new Kn))}function io(t){return t<=0?()=>st:he((n,e)=>{let i=[];n.subscribe(le(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Zu(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ke((r,o)=>t(r,o,i)):Dt,io(1),e?Di(n):fc(()=>new Kn))}function Ku(t,n){return he(Hb(t,n,arguments.length>=2,!0))}function Ub(t={}){let{connector:n=()=>new V,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,c,l=0,d=!1,u=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,d=u=!1},m=()=>{let g=s;h(),g?.unsubscribe()};return he((g,C)=>{l++,!u&&!d&&f();let S=c=c??n();C.add(()=>{l--,l===0&&!u&&!d&&(a=Qu(m,r))}),S.subscribe(C),!s&&l>0&&(s=new Zn({next:O=>S.next(O),error:O=>{u=!0,f(),a=Qu(h,e,O),S.error(O)},complete:()=>{d=!0,f(),a=Qu(h,i),S.complete()}}),Ne(g).subscribe(s))})(o)}}function Qu(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Zn({next:()=>{i.unsubscribe(),t()}});return Ne(n(...e)).subscribe(i)}function mc(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Ub({connector:()=>new Wa(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function lr(t){return ke((n,e)=>t<=e)}function Pt(...t){let n=xn(t);return he((e,i)=>{(n?wi(t,e,n):wi(t,e)).subscribe(i)})}function ft(t,n){return he((e,i)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&i.complete();e.subscribe(le(i,c=>{r?.unsubscribe();let l=0,d=o++;Ne(t(c,d)).subscribe(r=le(i,u=>i.next(n?n(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Le(t){return he((n,e)=>{Ne(t).subscribe(le(e,()=>e.complete(),os)),!e.closed&&n.subscribe(e)})}function nt(t,n,e){let i=te(t)||n||e?{next:t,error:n,complete:e}:t;return i?he((r,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;r.subscribe(le(o,c=>{var l;(l=i.next)===null||l===void 0||l.call(i,c),o.next(c)},()=>{var c;a=!1,(c=i.complete)===null||c===void 0||c.call(i),o.complete()},c=>{var l;a=!1,(l=i.error)===null||l===void 0||l.call(i,c),o.error(c)},()=>{var c,l;a&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(l=i.finalize)===null||l===void 0||l.call(i)}))}):Dt}var Mv="https://g.co/ng/security#xss",A=class extends Error{constructor(n,e){super(rl(n,e)),this.code=n}};function rl(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}function ws(t){return{toString:t}.toString()}var pc="__parameters__";function TE(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function Sv(t,n,e){return ws(()=>{let i=TE(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(c,l,d){let u=c.hasOwnProperty(pc)?c[pc]:Object.defineProperty(c,pc,{value:[]})[pc];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var un=globalThis;function je(t){for(let n in t)if(t[n]===je)return n;throw Error("Could not find renamed property on target object.")}function RE(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function kt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(kt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(`
4
+ `);return e===-1?n:n.substring(0,e)}function dh(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}var OE=je({__forward_ref__:je});function Zt(t){return t.__forward_ref__=Zt,t.toString=function(){return kt(this())},t}function Et(t){return Av(t)?t():t}function Av(t){return typeof t=="function"&&t.hasOwnProperty(OE)&&t.__forward_ref__===Zt}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function U(t){return{providers:t.providers||[],imports:t.imports||[]}}function ol(t){return $b(t,Rv)||$b(t,Ov)}function Tv(t){return ol(t)!==null}function $b(t,n){return t.hasOwnProperty(n)?t[n]:null}function NE(t){let n=t&&(t[Rv]||t[Ov]);return n||null}function qb(t){return t&&(t.hasOwnProperty(Wb)||t.hasOwnProperty(PE))?t[Wb]:null}var Rv=je({\u0275prov:je}),Wb=je({\u0275inj:je}),Ov=je({ngInjectableDef:je}),PE=je({ngInjectorDef:je}),I=class{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Nv(t){return t&&!!t.\u0275providers}var FE=je({\u0275cmp:je}),LE=je({\u0275dir:je}),jE=je({\u0275pipe:je}),VE=je({\u0275mod:je}),kc=je({\u0275fac:je}),hs=je({__NG_ELEMENT_ID__:je}),Gb=je({__NG_ENV_ID__:je});function Ii(t){return typeof t=="string"?t:t==null?"":String(t)}function BE(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ii(t)}function zE(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new A(-200,t)}function sf(t,n){throw new A(-201,!1)}var Ce=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}(Ce||{}),uh;function Pv(){return uh}function qt(t){let n=uh;return uh=t,n}function Fv(t,n,e){let i=ol(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&Ce.Optional)return null;if(n!==void 0)return n;sf(t,"Injector")}var HE={},ms=HE,hh="__NG_DI_FLAG__",Mc="ngTempTokenPath",UE="ngTokenPath",$E=/\n/gm,qE="\u0275",Yb="__source",co;function WE(){return co}function Ei(t){let n=co;return co=t,n}function GE(t,n=Ce.Default){if(co===void 0)throw new A(-203,!1);return co===null?Fv(t,void 0,n):co.get(t,n&Ce.Optional?null:void 0,n)}function b(t,n=Ce.Default){return(Pv()||GE)(Et(t),n)}function y(t,n=Ce.Default){return b(t,sl(n))}function sl(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function fh(t){let n=[];for(let e=0;e<t.length;e++){let i=Et(t[e]);if(Array.isArray(i)){if(i.length===0)throw new A(900,!1);let r,o=Ce.Default;for(let s=0;s<i.length;s++){let a=i[s],c=YE(a);typeof c=="number"?c===-1?r=a.token:o|=c:r=a}n.push(b(r,o))}else n.push(b(i))}return n}function Lv(t,n){return t[hh]=n,t.prototype[hh]=n,t}function YE(t){return t[hh]}function ZE(t,n,e,i){let r=t[Mc];throw n[Yb]&&r.unshift(n[Yb]),t.message=KE(`
5
+ `+t.message,r,e,i),t[UE]=r,t[Mc]=null,t}function KE(t,n,e,i=null){t=t&&t.charAt(0)===`
6
+ `&&t.charAt(1)==qE?t.slice(2):t;let r=kt(n);if(Array.isArray(n))r=n.map(kt).join(" -> ");else if(typeof n=="object"){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):kt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace($E,`
7
+ `)}`}var al=Lv(Sv("Optional"),8);var af=Lv(Sv("SkipSelf"),4);function uo(t,n){let e=t.hasOwnProperty(kc);return e?t[kc]:null}function QE(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function XE(t){return t.flat(Number.POSITIVE_INFINITY)}function cf(t,n){t.forEach(e=>Array.isArray(e)?cf(e,n):n(e))}function jv(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Sc(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function JE(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e}function eI(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function cl(t,n,e){let i=Cs(t,n);return i>=0?t[i|1]=e:(i=~i,eI(t,i,n,e)),i}function Xu(t,n){let e=Cs(t,n);if(e>=0)return t[e|1]}function Cs(t,n){return tI(t,n,1)}function tI(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}var ho={},It=[],fo=new I(""),Vv=new I("",-1),Bv=new I(""),Ac=class{get(n,e=ms){if(e===ms){let i=new Error(`NullInjectorError: No provider for ${kt(n)}!`);throw i.name="NullInjectorError",i}return e}},zv=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(zv||{}),An=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(An||{}),Si=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Si||{});function nI(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}function mh(t,n,e){let i=0;for(;i<e.length;){let r=e[i];if(typeof r=="number"){if(r!==0)break;i++;let o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{let o=r,s=e[++i];iI(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function Hv(t){return t===3||t===4||t===6}function iI(t){return t.charCodeAt(0)===64}function ps(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){let r=n[i];typeof r=="number"?e=r:e===0||(e===-1||e===2?Zb(t,e,r,null,n[++i]):Zb(t,e,r,null,null))}}return t}function Zb(t,n,e,i,r){let o=0,s=t.length;if(n===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===n){s=-1;break}else if(a>n){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===e){if(i===null){r!==null&&(t[o+1]=r);return}else if(i===t[o+1]){t[o+2]=r;return}}o++,i!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),i!==null&&t.splice(o++,0,i),r!==null&&t.splice(o++,0,r)}var Uv="ng-template";function rI(t,n,e,i){let r=0;if(i){for(;r<n.length&&typeof n[r]=="string";r+=2)if(n[r]==="class"&&nI(n[r+1].toLowerCase(),e,0)!==-1)return!0}else if(lf(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&typeof(o=n[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function lf(t){return t.type===4&&t.value!==Uv}function oI(t,n,e){let i=t.type===4&&!e?Uv:t.value;return n===i}function sI(t,n,e){let i=4,r=t.attrs,o=r!==null?lI(r):0,s=!1;for(let a=0;a<n.length;a++){let c=n[a];if(typeof c=="number"){if(!s&&!cn(i)&&!cn(c))return!1;if(s&&cn(c))continue;s=!1,i=c|i&1;continue}if(!s)if(i&4){if(i=2|i&1,c!==""&&!oI(t,c,e)||c===""&&n.length===1){if(cn(i))return!1;s=!0}}else if(i&8){if(r===null||!rI(t,r,c,e)){if(cn(i))return!1;s=!0}}else{let l=n[++a],d=aI(c,r,lf(t),e);if(d===-1){if(cn(i))return!1;s=!0;continue}if(l!==""){let u;if(d>o?u="":u=r[d+1].toLowerCase(),i&2&&l!==u){if(cn(i))return!1;s=!0}}}}return cn(i)||s}function cn(t){return(t&1)===0}function aI(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){let s=n[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=n[++r];for(;typeof a=="string";)a=n[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return dI(n,t)}function $v(t,n,e=!1){for(let i=0;i<n.length;i++)if(sI(t,n[i],e))return!0;return!1}function cI(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if(!(e&1))return n[e+1]}return null}function lI(t){for(let n=0;n<t.length;n++){let e=t[n];if(Hv(e))return n}return t.length}function dI(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let i=t[e];if(typeof i=="number")return-1;if(i===n)return e;e++}return-1}function uI(t,n){e:for(let e=0;e<n.length;e++){let i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function Kb(t,n){return t?":not("+n.trim()+")":n}function hI(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if(typeof s=="string")if(i&2){let a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);else r!==""&&!cn(s)&&(n+=Kb(o,r),r=""),i=s,o=o||!cn(i);e++}return r!==""&&(n+=Kb(o,r)),n}function fI(t){return t.map(hI).join(",")}function mI(t){let n=[],e=[],i=1,r=2;for(;i<t.length;){let o=t[i];if(typeof o=="string")r===2?o!==""&&n.push(o,t[++i]):r===8&&e.push(o);else{if(!cn(r))break;r=o}i++}return{attrs:n,classes:e}}function de(t){return ws(()=>{let n=Zv(t),e=ve(D({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===zv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||An.Emulated,styles:t.styles||It,_:null,schemas:t.schemas||null,tView:null,id:""});Kv(e);let i=t.dependencies;return e.directiveDefs=Xb(i,!1),e.pipeDefs=Xb(i,!0),e.id=bI(e),e})}function pI(t){return Ai(t)||qv(t)}function gI(t){return t!==null}function $(t){return ws(()=>({type:t.type,bootstrap:t.bootstrap||It,declarations:t.declarations||It,imports:t.imports||It,exports:t.exports||It,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Qb(t,n){if(t==null)return ho;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,s,a=Si.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==Si.None?[i,a]:i,n[o]=s):e[o]=i}return e}function Y(t){return ws(()=>{let n=Zv(t);return Kv(n),n})}function Ai(t){return t[FE]||null}function qv(t){return t[LE]||null}function Wv(t){return t[jE]||null}function Gv(t){let n=Ai(t)||qv(t)||Wv(t);return n!==null?n.standalone:!1}function Yv(t,n){let e=t[VE]||null;if(!e&&n===!0)throw new Error(`Type ${kt(t)} does not have '\u0275mod' property.`);return e}function Zv(t){let n={};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:n,inputTransforms:null,inputConfig:t.inputs||ho,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||It,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qb(t.inputs,n),outputs:Qb(t.outputs),debugInfo:null}}function Kv(t){t.features?.forEach(n=>n(t))}function Xb(t,n){if(!t)return null;let e=n?Wv:pI;return()=>(typeof t=="function"?t():t).map(i=>e(i)).filter(gI)}function bI(t){let n=0,e=[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 e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function ll(t){return{\u0275providers:t}}function vI(...t){return{\u0275providers:Qv(!0,t),\u0275fromNgModule:!0}}function Qv(t,...n){let e=[],i=new Set,r,o=s=>{e.push(s)};return cf(n,s=>{let a=s;ph(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&Xv(r,o),e}function Xv(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];df(r,o=>{n(o,i)})}}function ph(t,n,e,i){if(t=Et(t),!t)return!1;let r=null,o=qb(t),s=!o&&Ai(t);if(!o&&!s){let c=t.ngModule;if(o=qb(c),o)r=c;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ph(l,n,e,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let l;try{cf(o.imports,d=>{ph(d,n,e,i)&&(l||=[],l.push(d))})}finally{}l!==void 0&&Xv(l,n)}if(!a){let l=uo(r)||(()=>new r);n({provide:r,useFactory:l,deps:It},r),n({provide:Bv,useValue:r,multi:!0},r),n({provide:fo,useValue:()=>b(r),multi:!0},r)}let c=o.providers;if(c!=null&&!a){let l=t;df(c,d=>{n(d,l)})}}else return!1;return r!==t&&t.providers!==void 0}function df(t,n){for(let e of t)Nv(e)&&(e=e.\u0275providers),Array.isArray(e)?df(e,n):n(e)}var _I=je({provide:String,useValue:je});function Jv(t){return t!==null&&typeof t=="object"&&_I in t}function yI(t){return!!(t&&t.useExisting)}function wI(t){return!!(t&&t.useFactory)}function mo(t){return typeof t=="function"}function CI(t){return!!t.useClass}var dl=new I(""),wc={},xI={},Ju;function uf(){return Ju===void 0&&(Ju=new Ac),Ju}var mt=class{},gs=class extends mt{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bh(n,s=>this.processProvider(s)),this.records.set(Vv,ro(void 0,this)),r.has("environment")&&this.records.set(mt,ro(void 0,this));let o=this.records.get(dl);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Bv,It,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let n=De(null);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(),De(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();let e=Ei(this),i=qt(void 0),r;try{return n()}finally{Ei(e),qt(i)}}get(n,e=ms,i=Ce.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Gb))return n[Gb](this);i=sl(i);let r,o=Ei(this),s=qt(void 0);try{if(!(i&Ce.SkipSelf)){let c=this.records.get(n);if(c===void 0){let l=MI(n)&&ol(n);l&&this.injectableDefInScope(l)?c=ro(gh(n),wc):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c)}let a=i&Ce.Self?uf():this.parent;return e=i&Ce.Optional&&e===ms?null:e,a.get(n,e)}catch(a){if(a.name==="NullInjectorError"){if((a[Mc]=a[Mc]||[]).unshift(kt(n)),o)throw a;return ZE(a,n,"R3InjectorError",this.source)}else throw a}finally{qt(s),Ei(o)}}resolveInjectorInitializers(){let n=De(null),e=Ei(this),i=qt(void 0),r;try{let o=this.get(fo,It,Ce.Self);for(let s of o)s()}finally{Ei(e),qt(i),De(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(kt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processProvider(n){n=Et(n);let e=mo(n)?n:Et(n&&n.provide),i=EI(n);if(!mo(n)&&n.multi===!0){let r=this.records.get(e);r||(r=ro(void 0,wc,!0),r.factory=()=>fh(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){let i=De(null);try{return e.value===wc&&(e.value=xI,e.value=e.factory()),typeof e.value=="object"&&e.value&&kI(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{De(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Et(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function gh(t){let n=ol(t),e=n!==null?n.factory:uo(t);if(e!==null)return e;if(t instanceof I)throw new A(204,!1);if(t instanceof Function)return DI(t);throw new A(204,!1)}function DI(t){if(t.length>0)throw new A(204,!1);let e=NE(t);return e!==null?()=>e.factory(t):()=>new t}function EI(t){if(Jv(t))return ro(void 0,t.useValue);{let n=e_(t);return ro(n,wc)}}function e_(t,n,e){let i;if(mo(t)){let r=Et(t);return uo(r)||gh(r)}else if(Jv(t))i=()=>Et(t.useValue);else if(wI(t))i=()=>t.useFactory(...fh(t.deps||[]));else if(yI(t))i=()=>b(Et(t.useExisting));else{let r=Et(t&&(t.useClass||t.provide));if(II(t))i=()=>new r(...fh(t.deps));else return uo(r)||gh(r)}return i}function ro(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function II(t){return!!t.deps}function kI(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function MI(t){return typeof t=="function"||typeof t=="object"&&t instanceof I}function bh(t,n){for(let e of t)Array.isArray(e)?bh(e,n):e&&Nv(e)?bh(e.\u0275providers,n):n(e)}function Kt(t,n){t instanceof gs&&t.assertNotDestroyed();let e,i=Ei(t),r=qt(void 0);try{return n()}finally{Ei(i),qt(r)}}function t_(){return Pv()!==void 0||WE()!=null}function hf(t){if(!t_())throw new A(-203,!1)}function SI(t){let n=un.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function AI(t){return typeof t=="function"}var Nn=0,fe=1,re=2,gt=3,dn=4,Rt=5,bs=6,Tc=7,Gt=8,po=9,Tn=10,Ye=11,vs=12,Jb=13,wo=14,Yt=15,ur=16,oo=17,Jn=18,ul=19,n_=20,ki=21,Cc=22,Wt=23,Tt=25,ff=1;var hr=7,Rc=8,go=9,At=10,Oc=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Oc||{});function Mi(t){return Array.isArray(t)&&typeof t[ff]=="object"}function ni(t){return Array.isArray(t)&&t[ff]===!0}function mf(t){return(t.flags&4)!==0}function hl(t){return t.componentOffset>-1}function fl(t){return(t.flags&1)===1}function ei(t){return!!t.template}function vh(t){return(t[re]&512)!==0}var _h=class{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function i_(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}function Ze(){return r_}function r_(t){return t.type.prototype.ngOnChanges&&(t.setInput=RI),TI}Ze.ngInherit=!0;function TI(){let t=s_(this),n=t?.current;if(n){let e=t.previous;if(e===ho)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function RI(t,n,e,i,r){let o=this.declaredInputs[i],s=s_(t)||OI(t,{previous:ho,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new _h(l&&l.currentValue,e,c===ho),i_(t,n,r,e)}var o_="__ngSimpleChanges__";function s_(t){return t[o_]||null}function OI(t,n){return t[o_]=n}var ev=null;var Mn=function(t,n,e){ev?.(t,n,e)},a_="svg",NI="math";function Rn(t){for(;Array.isArray(t);)t=t[Nn];return t}function PI(t){for(;Array.isArray(t);){if(typeof t[ff]=="object")return t;t=t[Nn]}return null}function c_(t,n){return Rn(n[t])}function Qt(t,n){return Rn(n[t.index])}function pf(t,n){return t.data[n]}function FI(t,n){return t[n]}function Ni(t,n){let e=n[t];return Mi(e)?e:e[Nn]}function LI(t){return(t[re]&4)===4}function gf(t){return(t[re]&128)===128}function jI(t){return ni(t[gt])}function bo(t,n){return n==null?null:t[n]}function l_(t){t[oo]=0}function d_(t){t[re]&1024||(t[re]|=1024,gf(t)&&pl(t))}function VI(t,n){for(;t>0;)n=n[wo],t--;return n}function ml(t){return!!(t[re]&9216||t[Wt]?.dirty)}function yh(t){t[Tn].changeDetectionScheduler?.notify(8),t[re]&64&&(t[re]|=1024),ml(t)&&pl(t)}function pl(t){t[Tn].changeDetectionScheduler?.notify(0);let n=fr(t);for(;n!==null&&!(n[re]&8192||(n[re]|=8192,!gf(n)));)n=fr(n)}function u_(t,n){if((t[re]&256)===256)throw new A(911,!1);t[ki]===null&&(t[ki]=[]),t[ki].push(n)}function BI(t,n){if(t[ki]===null)return;let e=t[ki].indexOf(n);e!==-1&&t[ki].splice(e,1)}function fr(t){let n=t[gt];return ni(n)?n[gt]:n}var me={lFrame:__(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var h_=!1;function zI(){return me.lFrame.elementDepthCount}function HI(){me.lFrame.elementDepthCount++}function UI(){me.lFrame.elementDepthCount--}function f_(){return me.bindingsEnabled}function m_(){return me.skipHydrationRootTNode!==null}function $I(t){return me.skipHydrationRootTNode===t}function qI(){me.skipHydrationRootTNode=null}function _e(){return me.lFrame.lView}function Qe(){return me.lFrame.tView}function N(t){return me.lFrame.contextLView=t,t[Gt]}function P(t){return me.lFrame.contextLView=null,t}function dt(){let t=p_();for(;t!==null&&t.type===64;)t=t.parent;return t}function p_(){return me.lFrame.currentTNode}function WI(){let t=me.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function yr(t,n){let e=me.lFrame;e.currentTNode=t,e.isParent=n}function bf(){return me.lFrame.isParent}function vf(){me.lFrame.isParent=!1}function GI(){return me.lFrame.contextLView}function g_(){return h_}function tv(t){h_=t}function YI(){let t=me.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function ZI(){return me.lFrame.bindingIndex}function KI(t){return me.lFrame.bindingIndex=t}function wr(){return me.lFrame.bindingIndex++}function _f(t){let n=me.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function QI(){return me.lFrame.inI18n}function XI(t,n){let e=me.lFrame;e.bindingIndex=e.bindingRootIndex=t,wh(n)}function JI(){return me.lFrame.currentDirectiveIndex}function wh(t){me.lFrame.currentDirectiveIndex=t}function yf(t){let n=me.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function wf(){return me.lFrame.currentQueryIndex}function gl(t){me.lFrame.currentQueryIndex=t}function ek(t){let n=t[fe];return n.type===2?n.declTNode:n.type===1?t[Rt]:null}function b_(t,n,e){if(e&Ce.SkipSelf){let r=n,o=t;for(;r=r.parent,r===null&&!(e&Ce.Host);)if(r=ek(o),r===null||(o=o[wo],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=me.lFrame=v_();return i.currentTNode=n,i.lView=t,!0}function Cf(t){let n=v_(),e=t[fe];me.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function v_(){let t=me.lFrame,n=t===null?null:t.child;return n===null?__(t):n}function __(t){let n={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=n),n}function y_(){let t=me.lFrame;return me.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var w_=y_;function xf(){let t=y_();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 tk(t){return(me.lFrame.contextLView=VI(t,me.lFrame.contextLView))[Gt]}function Pi(){return me.lFrame.selectedIndex}function mr(t){me.lFrame.selectedIndex=t}function xs(){let t=me.lFrame;return pf(t.tView,t.selectedIndex)}function Ds(){me.lFrame.currentNamespace=a_}function Df(){nk()}function nk(){me.lFrame.currentNamespace=null}function ik(){return me.lFrame.currentNamespace}var C_=!0;function bl(){return C_}function vl(t){C_=t}function rk(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){let s=r_(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function _l(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:d}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),c&&(t.viewHooks??=[]).push(-e,c),l&&((t.viewHooks??=[]).push(e,l),(t.viewCheckHooks??=[]).push(e,l)),d!=null&&(t.destroyHooks??=[]).push(e,d)}}function xc(t,n,e){x_(t,n,3,e)}function Dc(t,n,e,i){(t[re]&3)===e&&x_(t,n,e,i)}function eh(t,n){let e=t[re];(e&3)===n&&(e&=16383,e+=1,t[re]=e)}function x_(t,n,e,i){let r=i!==void 0?t[oo]&65535:0,o=i??-1,s=n.length-1,a=0;for(let c=r;c<s;c++)if(typeof n[c+1]=="number"){if(a=n[c],i!=null&&a>=i)break}else n[c]<0&&(t[oo]+=65536),(a<o||o==-1)&&(ok(t,e,n,c),t[oo]=(t[oo]&4294901760)+c+2),c++}function nv(t,n){Mn(4,t,n);let e=De(null);try{n.call(t)}finally{De(e),Mn(5,t,n)}}function ok(t,n,e,i){let r=e[i]<0,o=e[i+1],s=r?-e[i]:e[i],a=t[s];r?t[re]>>14<t[oo]>>16&&(t[re]&3)===n&&(t[re]+=16384,nv(a,o)):nv(a,o)}var lo=-1,pr=class{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};function sk(t){return t instanceof pr}function ak(t){return(t.flags&8)!==0}function ck(t){return(t.flags&16)!==0}var th={},Ch=class{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=sl(i);let r=this.injector.get(n,th,i);return r!==th||e===th?r:this.parentInjector.get(n,e,i)}};function D_(t){return t!==lo}function Nc(t){return t&32767}function lk(t){return t>>16}function Pc(t,n){let e=lk(t),i=n;for(;e>0;)i=i[wo],e--;return i}var xh=!0;function iv(t){let n=xh;return xh=t,n}var dk=256,E_=dk-1,I_=5,uk=0,Sn={};function hk(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(hs)&&(i=e[hs]),i==null&&(i=e[hs]=uk++);let r=i&E_,o=1<<r;n.data[t+(r>>I_)]|=o}function Fc(t,n){let e=k_(t,n);if(e!==-1)return e;let i=n[fe];i.firstCreatePass&&(t.injectorIndex=n.length,nh(i.data,t),nh(n,null),nh(i.blueprint,null));let r=Ef(t,n),o=t.injectorIndex;if(D_(r)){let s=Nc(r),a=Pc(r,n),c=a[fe].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=r,o}function nh(t,n){t.push(0,0,0,0,0,0,0,0,n)}function k_(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ef(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=R_(r),i===null)return lo;if(e++,r=r[wo],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return lo}function Dh(t,n,e){hk(t,n,e)}function fk(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r<i;){let o=e[r];if(Hv(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<i&&typeof e[r]=="string";)r++;else{if(o===n)return e[r+1];r=r+2}}}return null}function M_(t,n,e){if(e&Ce.Optional||t!==void 0)return t;sf(n,"NodeInjector")}function S_(t,n,e,i){if(e&Ce.Optional&&i===void 0&&(i=null),!(e&(Ce.Self|Ce.Host))){let r=t[po],o=qt(void 0);try{return r?r.get(n,i,e&Ce.Optional):Fv(n,i,e&Ce.Optional)}finally{qt(o)}}return M_(i,n,e)}function A_(t,n,e,i=Ce.Default,r){if(t!==null){if(n[re]&2048&&!(i&Ce.Self)){let s=bk(t,n,e,i,Sn);if(s!==Sn)return s}let o=T_(t,n,e,i,Sn);if(o!==Sn)return o}return S_(n,e,i,r)}function T_(t,n,e,i,r){let o=pk(e);if(typeof o=="function"){if(!b_(n,t,i))return i&Ce.Host?M_(r,e,i):S_(n,e,i,r);try{let s;if(s=o(i),s==null&&!(i&Ce.Optional))sf(e);else return s}finally{w_()}}else if(typeof o=="number"){let s=null,a=k_(t,n),c=lo,l=i&Ce.Host?n[Yt][Rt]:null;for((a===-1||i&Ce.SkipSelf)&&(c=a===-1?Ef(t,n):n[a+8],c===lo||!ov(i,!1)?a=-1:(s=n[fe],a=Nc(c),n=Pc(c,n)));a!==-1;){let d=n[fe];if(rv(o,a,d.data)){let u=mk(a,n,e,s,i,l);if(u!==Sn)return u}c=n[a+8],c!==lo&&ov(i,n[fe].data[a+8]===l)&&rv(o,a,n)?(s=d,a=Nc(c),n=Pc(c,n)):a=-1}}return r}function mk(t,n,e,i,r,o){let s=n[fe],a=s.data[t+8],c=i==null?hl(a)&&xh:i!=s&&(a.type&3)!==0,l=r&Ce.Host&&o===a,d=Ec(a,s,e,c,l);return d!==null?gr(n,s,d,a):Sn}function Ec(t,n,e,i,r){let o=t.providerIndexes,s=n.data,a=o&1048575,c=t.directiveStart,l=t.directiveEnd,d=o>>20,u=i?a:a+d,f=r?a+d:l;for(let h=u;h<f;h++){let m=s[h];if(h<c&&e===m||h>=c&&m.type===e)return h}if(r){let h=s[c];if(h&&ei(h)&&h.type===e)return c}return null}function gr(t,n,e,i){let r=t[e],o=n.data;if(sk(r)){let s=r;s.resolving&&zE(BE(o[e]));let a=iv(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?qt(s.injectImpl):null,d=b_(t,i,Ce.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&rk(e,o[e],n)}finally{l!==null&&qt(l),iv(a),s.resolving=!1,w_()}}return r}function pk(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(hs)?t[hs]:void 0;return typeof n=="number"?n>=0?n&E_:gk:n}function rv(t,n,e){let i=1<<t;return!!(e[n+(t>>I_)]&i)}function ov(t,n){return!(t&Ce.Self)&&!(t&Ce.Host&&n)}var dr=class{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return A_(this._tNode,this._lView,n,sl(i),e)}};function gk(){return new dr(dt(),_e())}function Xt(t){return ws(()=>{let n=t.prototype.constructor,e=n[kc]||Eh(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[kc]||Eh(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Eh(t){return Av(t)?()=>{let n=Eh(Et(t));return n&&n()}:uo(t)}function bk(t,n,e,i,r){let o=t,s=n;for(;o!==null&&s!==null&&s[re]&2048&&!(s[re]&512);){let a=T_(o,s,e,i|Ce.Self,Sn);if(a!==Sn)return a;let c=o.parent;if(!c){let l=s[n_];if(l){let d=l.get(e,Sn,i);if(d!==Sn)return d}c=R_(s),s=s[wo]}o=c}return r}function R_(t){let n=t[fe],e=n.type;return e===2?n.declTNode:e===1?t[Rt]:null}function Fi(t){return fk(dt(),t)}function sv(t,n=null,e=null,i){let r=O_(t,n,e,i);return r.resolveInjectorInitializers(),r}function O_(t,n=null,e=null,i,r=new Set){let o=[e||It,vI(t)];return i=i||(typeof t=="object"?void 0:kt(t)),new gs(o,n||uf(),i||null,r)}var ae=class t{static{this.THROW_IF_NOT_FOUND=ms}static{this.NULL=new Ac}static create(n,e){if(Array.isArray(n))return sv({name:""},e,n,"");{let i=n.name??"";return sv({name:i},n.parent,n.providers,i)}}static{this.\u0275prov=x({token:t,providedIn:"any",factory:()=>b(Vv)})}static{this.__NG_ELEMENT_ID__=-1}};var vk=new I("");vk.__NG_ELEMENT_ID__=t=>{let n=dt();if(n===null)throw new A(204,!1);if(n.type&2)return n.value;if(t&Ce.Optional)return null;throw new A(204,!1)};var _k="ngOriginalError";function ih(t){return t[_k]}var N_=!0,yl=(()=>{class t{static{this.__NG_ELEMENT_ID__=yk}static{this.__NG_ENV_ID__=e=>e}}return t})(),Ih=class extends yl{constructor(n){super(),this._lView=n}onDestroy(n){return u_(this._lView,n),()=>BI(this._lView,n)}};function yk(){return new Ih(_e())}var ii=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Je(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=x({token:t,providedIn:"root",factory:()=>new t})}}return t})();var kh=class extends V{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,t_()&&(this.destroyRef=y(yl,{optional:!0})??void 0,this.pendingTasks=y(ii,{optional:!0})??void 0)}emit(n){let e=De(null);try{super.next(n)}finally{De(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&typeof n=="object"){let c=n;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return n instanceof Te&&n.add(a),a}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{n(e),i!==void 0&&this.pendingTasks?.remove(i)})}}},K=kh;function Lc(...t){}function P_(t){let n,e;function i(){t=Lc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function av(t){return queueMicrotask(()=>t()),()=>{t=Lc}}var If="isAngularZone",jc=If+"_ID",wk=0,F=class t{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new K(!1),this.onMicrotaskEmpty=new K(!1),this.onStable=new K(!1),this.onError=new K(!1);let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=N_}=n;if(typeof Zone>"u")throw new A(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,Dk(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(If)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new A(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new A(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Ck,Lc,Lc);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},Ck={};function kf(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 xk(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){P_(()=>{t.callbackScheduled=!1,Mh(t),t.isCheckStableRunning=!0,kf(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),Mh(t)}function Dk(t){let n=()=>{xk(t)},e=wk++;t._inner=t._inner.fork({name:"angular",properties:{[If]:!0,[jc]:e,[jc+e]:!0},onInvokeTask:(i,r,o,s,a,c)=>{if(Ek(c))return i.invokeTask(o,s,a,c);try{return cv(t),i.invokeTask(o,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),lv(t)}},onInvoke:(i,r,o,s,a,c,l)=>{try{return cv(t),i.invoke(o,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Ik(c)&&n(),lv(t)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Mh(t),kf(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Mh(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function lv(t){t._nesting--,kf(t)}var Vc=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new K,this.onMicrotaskEmpty=new K,this.onStable=new K,this.onError=new K}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function Ek(t){return F_(t,"__ignore_ng_zone__")}function Ik(t){return F_(t,"__scheduler_tick__")}function F_(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}function kk(t="zone.js",n){return t==="noop"?new Vc:t==="zone.js"?new F(n):t}var On=class{constructor(){this._console=console}handleError(n){let e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&ih(n);for(;e&&ih(e);)e=ih(e);return e||null}},Mk=new I("",{providedIn:"root",factory:()=>{let t=y(F),n=y(On);return e=>t.runOutsideAngular(()=>n.handleError(e))}});function Sk(){return Co(dt(),_e())}function Co(t,n){return new Z(Qt(t,n))}var Z=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=Sk}}return t})();function L_(t){return t instanceof Z?t.nativeElement:t}function Ak(){return this._results[Symbol.iterator]()}var br=class t{get changes(){return this._changes??=new K}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=Ak)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=XE(n);(this._changesDetected=!QE(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function j_(t){return(t.flags&128)===128}var V_=new Map,Tk=0;function Rk(){return Tk++}function Ok(t){V_.set(t[ul],t)}function Sh(t){V_.delete(t[ul])}var dv="__ngContext__";function Ti(t,n){Mi(n)?(t[dv]=n[ul],Ok(n)):t[dv]=n}function B_(t){return H_(t[vs])}function z_(t){return H_(t[dn])}function H_(t){for(;t!==null&&!ni(t);)t=t[dn];return t}var Ah;function U_(t){Ah=t}function Nk(){if(Ah!==void 0)return Ah;if(typeof document<"u")return document;throw new A(210,!1)}var Es=new I("",{providedIn:"root",factory:()=>Pk}),Pk="ng",Mf=new I(""),Ot=new I("",{providedIn:"platform",factory:()=>"unknown"});var et=new I(""),Is=new I("",{providedIn:"root",factory:()=>Nk().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fk="h",Lk="b";var jk=()=>null;function Sf(t,n,e=!1){return jk(t,n,e)}var $_=!1,Vk=new I("",{providedIn:"root",factory:()=>$_});var gc;function Bk(){if(gc===void 0&&(gc=null,un.trustedTypes))try{gc=un.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return gc}function uv(t){return Bk()?.createScriptURL(t)||t}var Bc=class{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mv})`}};function xo(t){return t instanceof Bc?t.changingThisBreaksApplicationSecurity:t}function Af(t,n){let e=zk(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Mv})`)}return e===n}function zk(t){return t instanceof Bc&&t.getTypeName()||null}var Hk=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function q_(t){return t=String(t),t.match(Hk)?t:"unsafe:"+t}var wl=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(wl||{});function Uk(t){let n=G_();return n?n.sanitize(wl.URL,t)||"":Af(t,"URL")?xo(t):q_(Ii(t))}function $k(t){let n=G_();if(n)return uv(n.sanitize(wl.RESOURCE_URL,t)||"");if(Af(t,"ResourceURL"))return uv(xo(t));throw new A(904,!1)}function qk(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?$k:Uk}function W_(t,n,e){return qk(n,e)(t)}function G_(){let t=_e();return t&&t[Tn].sanitizer}var Wk=/^>|^->|<!--|-->|--!>|<!-$/g,Gk=/(<|>)/g,Yk="\u200B$1\u200B";function Zk(t){return t.replace(Wk,n=>n.replace(Gk,Yk))}function Tf(t){return t.ownerDocument}function Y_(t){return t instanceof Function?t():t}function Z_(t){return(t??y(ae)).get(Ot)==="browser"}var ti=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ti||{}),Kk;function Rf(t,n){return Kk(t,n)}function so(t,n,e,i,r){if(i!=null){let o,s=!1;ni(i)?o=i:Mi(i)&&(s=!0,i=i[Nn]);let a=Rn(i);t===0&&e!==null?r==null?ey(n,e,a):Hc(n,e,a,r||null,!0):t===1&&e!==null?Hc(n,e,a,r||null,!0):t===2?dM(n,a,s):t===3&&n.destroyNode(a),o!=null&&hM(n,t,o,e,r)}}function Qk(t,n){return t.createText(n)}function Xk(t,n,e){t.setValue(n,e)}function Jk(t,n){return t.createComment(Zk(n))}function K_(t,n,e){return t.createElement(n,e)}function eM(t,n){Q_(t,n),n[Nn]=null,n[Rt]=null}function tM(t,n,e,i,r,o){i[Nn]=r,i[Rt]=n,xl(t,i,e,1,r,o)}function Q_(t,n){n[Tn].changeDetectionScheduler?.notify(9),xl(t,n,n[Ye],2,null,null)}function nM(t){let n=t[vs];if(!n)return rh(t[fe],t);for(;n;){let e=null;if(Mi(n))e=n[vs];else{let i=n[At];i&&(e=i)}if(!e){for(;n&&!n[dn]&&n!==t;)Mi(n)&&rh(n[fe],n),n=n[gt];n===null&&(n=t),Mi(n)&&rh(n[fe],n),e=n&&n[dn]}n=e}}function iM(t,n,e,i){let r=At+i,o=e.length;i>0&&(e[r-1][dn]=n),i<o-At?(n[dn]=e[r],jv(e,At+i,n)):(e.push(n),n[dn]=null),n[gt]=e;let s=n[ur];s!==null&&e!==s&&X_(s,n);let a=n[Jn];a!==null&&a.insertView(t),yh(n),n[re]|=128}function X_(t,n){let e=t[go],i=n[gt];if(Mi(i))t[re]|=Oc.HasTransplantedViews;else{let r=i[gt][Yt];n[Yt]!==r&&(t[re]|=Oc.HasTransplantedViews)}e===null?t[go]=[n]:e.push(n)}function Of(t,n){let e=t[go],i=e.indexOf(n);e.splice(i,1)}function zc(t,n){if(t.length<=At)return;let e=At+n,i=t[e];if(i){let r=i[ur];r!==null&&r!==t&&Of(r,i),n>0&&(t[e-1][dn]=i[dn]);let o=Sc(t,At+n);eM(i[fe],i);let s=o[Jn];s!==null&&s.detachView(o[fe]),i[gt]=null,i[dn]=null,i[re]&=-129}return i}function Nf(t,n){if(!(n[re]&256)){let e=n[Ye];e.destroyNode&&xl(t,n,e,3,null,null),nM(n)}}function rh(t,n){if(n[re]&256)return;let e=De(null);try{n[re]&=-129,n[re]|=256,n[Wt]&&ja(n[Wt]),oM(t,n),rM(t,n),n[fe].type===1&&n[Ye].destroy();let i=n[ur];if(i!==null&&ni(n[gt])){i!==n[gt]&&Of(i,n);let r=n[Jn];r!==null&&r.detachView(t)}Sh(n)}finally{De(e)}}function rM(t,n){let e=t.cleanup,i=n[Tc];if(e!==null)for(let o=0;o<e.length-1;o+=2)if(typeof e[o]=="string"){let s=e[o+3];s>=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[e[o+1]];e[o].call(s)}i!==null&&(n[Tc]=null);let r=n[ki];if(r!==null){n[ki]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function oM(t,n){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let r=n[e[i]];if(!(r instanceof pr)){let o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],c=o[s+1];Mn(4,a,c);try{c.call(a)}finally{Mn(5,a,c)}}else{Mn(4,r,o);try{o.call(r)}finally{Mn(5,r,o)}}}}}function J_(t,n,e){return sM(t,n.parent,e)}function sM(t,n,e){let i=n;for(;i!==null&&i.type&168;)n=i,i=n.parent;if(i===null)return e[Nn];{let{componentOffset:r}=i;if(r>-1){let{encapsulation:o}=t.data[i.directiveStart+r];if(o===An.None||o===An.Emulated)return null}return Qt(i,e)}}function Hc(t,n,e,i,r){t.insertBefore(n,e,i,r)}function ey(t,n,e){t.appendChild(n,e)}function hv(t,n,e,i,r){i!==null?Hc(t,n,e,i,r):ey(t,n,e)}function ty(t,n){return t.parentNode(n)}function aM(t,n){return t.nextSibling(n)}function ny(t,n,e){return lM(t,n,e)}function cM(t,n,e){return t.type&40?Qt(t,e):null}var lM=cM,fv;function Cl(t,n,e,i){let r=J_(t,i,n),o=n[Ye],s=i.parent||n[Rt],a=ny(s,i,n);if(r!=null)if(Array.isArray(e))for(let c=0;c<e.length;c++)hv(o,r,e[c],a,!1);else hv(o,r,e,a,!1);fv!==void 0&&fv(o,i,n,e,r)}function us(t,n){if(n!==null){let e=n.type;if(e&3)return Qt(n,t);if(e&4)return Th(-1,t[n.index]);if(e&8){let i=n.child;if(i!==null)return us(t,i);{let r=t[n.index];return ni(r)?Th(-1,r):Rn(r)}}else{if(e&128)return us(t,n.next);if(e&32)return Rf(n,t)()||Rn(t[n.index]);{let i=iy(t,n);if(i!==null){if(Array.isArray(i))return i[0];let r=fr(t[Yt]);return us(r,i)}else return us(t,n.next)}}}return null}function iy(t,n){if(n!==null){let i=t[Yt][Rt],r=n.projection;return i.projection[r]}return null}function Th(t,n){let e=At+t+1;if(e<n.length){let i=n[e],r=i[fe].firstChild;if(r!==null)return us(i,r)}return n[hr]}function dM(t,n,e){t.removeChild(null,n,e)}function Pf(t,n,e,i,r,o,s){for(;e!=null;){if(e.type===128){e=e.next;continue}let a=i[e.index],c=e.type;if(s&&n===0&&(a&&Ti(Rn(a),i),e.flags|=2),(e.flags&32)!==32)if(c&8)Pf(t,n,e.child,i,r,o,!1),so(n,t,r,a,o);else if(c&32){let l=Rf(e,i),d;for(;d=l();)so(n,t,r,d,o);so(n,t,r,a,o)}else c&16?ry(t,n,i,e,r,o):so(n,t,r,a,o);e=s?e.projectionNext:e.next}}function xl(t,n,e,i,r,o){Pf(e,i,t.firstChild,n,r,o,!1)}function uM(t,n,e){let i=n[Ye],r=J_(t,e,n),o=e.parent||n[Rt],s=ny(o,e,n);ry(i,0,n,e,r,s)}function ry(t,n,e,i,r,o){let s=e[Yt],c=s[Rt].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let d=c[l];so(n,t,r,d,o)}else{let l=c,d=s[gt];j_(i)&&(l.flags|=128),Pf(t,n,l,d,r,o,!0)}}function hM(t,n,e,i,r){let o=e[hr],s=Rn(e);o!==s&&so(n,t,i,o,r);for(let a=At;a<e.length;a++){let c=e[a];xl(c[fe],c,t,n,i,o)}}function fM(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=i.indexOf("-")===-1?void 0:ti.DashCase;r==null?t.removeStyle(e,i,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=ti.Important),t.setStyle(e,i,r,o))}}function mM(t,n,e){t.setAttribute(n,"style",e)}function oy(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function sy(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&mh(t,n,i),r!==null&&oy(t,n,r),o!==null&&mM(t,n,o)}var Jt={};function w(t=1){ay(Qe(),_e(),Pi()+t,!1)}function ay(t,n,e,i){if(!i)if((n[re]&3)===3){let o=t.preOrderCheckHooks;o!==null&&xc(n,o,e)}else{let o=t.preOrderHooks;o!==null&&Dc(n,o,0,e)}mr(e)}function p(t,n=Ce.Default){let e=_e();if(e===null)return b(t,n);let i=dt();return A_(i,e,Et(t),n)}function Dl(){let t="invalid";throw new Error(t)}function cy(t,n,e,i,r,o){let s=De(null);try{let a=null;r&Si.SignalBased&&(a=n[i][$t]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&Si.HasDecoratorInputTransform&&(o=t.inputTransforms[i].call(n,o)),t.setInput!==null?t.setInput(n,a,o,e,i):i_(n,a,i,o)}finally{De(s)}}function pM(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let r=e[i];if(r<0)mr(~r);else{let o=r,s=e[++i],a=e[++i];XI(s,o);let c=n[o];a(2,c)}}}finally{mr(-1)}}function El(t,n,e,i,r,o,s,a,c,l,d){let u=n.blueprint.slice();return u[Nn]=r,u[re]=i|4|128|8|64,(l!==null||t&&t[re]&2048)&&(u[re]|=2048),l_(u),u[gt]=u[wo]=t,u[Gt]=e,u[Tn]=s||t&&t[Tn],u[Ye]=a||t&&t[Ye],u[po]=c||t&&t[po]||null,u[Rt]=o,u[ul]=Rk(),u[bs]=d,u[n_]=l,u[Yt]=n.type==2?t[Yt]:u,u}function Do(t,n,e,i,r){let o=t.data[n];if(o===null)o=gM(t,n,e,i,r),QI()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let s=WI();o.injectorIndex=s===null?-1:s.injectorIndex}return yr(o,!0),o}function gM(t,n,e,i,r){let o=p_(),s=bf(),a=s?o:o&&o.parent,c=t.data[n]=CM(t,a,e,n,i,r);return t.firstChild===null&&(t.firstChild=c),o!==null&&(s?o.child==null&&c.parent!==null&&(o.child=c):o.next===null&&(o.next=c,c.prev=o)),c}function ly(t,n,e,i){if(e===0)return-1;let r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function dy(t,n,e,i,r){let o=Pi(),s=i&2;try{mr(-1),s&&n.length>Tt&&ay(t,n,Tt,!1),Mn(s?2:0,r),e(i,r)}finally{mr(o),Mn(s?3:1,r)}}function Ff(t,n,e){if(mf(n)){let i=De(null);try{let r=n.directiveStart,o=n.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let c=e[s];a.contentQueries(1,c,s)}}}finally{De(i)}}}function Lf(t,n,e){f_()&&(MM(t,n,e,Qt(e,n)),(e.flags&64)===64&&fy(t,n,e))}function jf(t,n,e=Qt){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;o<i.length;o+=2){let s=i[o+1],a=s===-1?e(n,t):t[s];t[r++]=a}}}function uy(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=Vf(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function Vf(t,n,e,i,r,o,s,a,c,l,d){let u=Tt+i,f=u+r,h=bM(u,f),m=typeof l=="function"?l():l;return h[fe]={type:t,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:d}}function bM(t,n){let e=[];for(let i=0;i<n;i++)e.push(i<t?null:Jt);return e}function vM(t,n,e,i){let o=i.get(Vk,$_)||e===An.ShadowDom,s=t.selectRootElement(n,o);return _M(s),s}function _M(t){yM(t)}var yM=()=>null;function wM(t,n,e,i){let r=gy(n);r.push(e),t.firstCreatePass&&by(t).push(i,r.length-1)}function CM(t,n,e,i,r,o){let s=n?n.injectorIndex:-1,a=0;return m_()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function mv(t,n,e,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;let s=n[o];if(s===void 0)continue;i??={};let a,c=Si.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(r!==null){if(!r.hasOwnProperty(o))continue;l=r[o]}t===0?pv(i,e,l,a,c):pv(i,e,l,a)}return i}function pv(t,n,e,i,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,i):o=t[e]=[n,i],r!==void 0&&o.push(r)}function xM(t,n,e){let i=n.directiveStart,r=n.directiveEnd,o=t.data,s=n.attrs,a=[],c=null,l=null;for(let d=i;d<r;d++){let u=o[d],f=e?e.get(u):null,h=f?f.inputs:null,m=f?f.outputs:null;c=mv(0,u.inputs,d,c,h),l=mv(1,u.outputs,d,l,m);let g=c!==null&&s!==null&&!lf(n)?VM(c,d,s):null;a.push(g)}c!==null&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=c,n.outputs=l}function DM(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Il(t,n,e,i,r,o,s,a){let c=Qt(n,e),l=n.inputs,d;!a&&l!=null&&(d=l[i])?(zf(t,e,d,i,r),hl(n)&&EM(e,n.index)):n.type&3?(i=DM(i),r=s!=null?s(r,n.value||"",i):r,o.setProperty(c,i,r)):n.type&12}function EM(t,n){let e=Ni(n,t);e[re]&16||(e[re]|=64)}function Bf(t,n,e,i){if(f_()){let r=i===null?null:{"":-1},o=AM(t,e),s,a;o===null?s=a=null:[s,a]=o,s!==null&&hy(t,n,e,s,r,a),r&&TM(e,i,r)}e.mergedAttrs=ps(e.mergedAttrs,e.attrs)}function hy(t,n,e,i,r,o){for(let l=0;l<i.length;l++)Dh(Fc(e,n),t,i[l].type);OM(e,t.data.length,i.length);for(let l=0;l<i.length;l++){let d=i[l];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,c=ly(t,n,i.length,null);for(let l=0;l<i.length;l++){let d=i[l];e.mergedAttrs=ps(e.mergedAttrs,d.hostAttrs),NM(t,e,n,c,d),RM(c,d,r),d.contentQueries!==null&&(e.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(e.flags|=64);let u=d.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),s=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),a=!0),c++}xM(t,e,o)}function IM(t,n,e,i,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~n.index;kM(s)!=a&&s.push(a),s.push(e,i,o)}}function kM(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function MM(t,n,e,i){let r=e.directiveStart,o=e.directiveEnd;hl(e)&&PM(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||Fc(e,n),Ti(i,n);let s=e.initialInputs;for(let a=r;a<o;a++){let c=t.data[a],l=gr(n,t,a,e);if(Ti(l,n),s!==null&&jM(n,a-r,l,c,e,s),ei(c)){let d=Ni(e.index,n);d[Gt]=gr(n,t,a,e)}}}function fy(t,n,e){let i=e.directiveStart,r=e.directiveEnd,o=e.index,s=JI();try{mr(o);for(let a=i;a<r;a++){let c=t.data[a],l=n[a];wh(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&SM(c,l)}}finally{mr(-1),wh(s)}}function SM(t,n){t.hostBindings!==null&&t.hostBindings(1,n)}function AM(t,n){let e=t.directiveRegistry,i=null,r=null;if(e)for(let o=0;o<e.length;o++){let s=e[o];if($v(n,s.selectors,!1))if(i||(i=[]),ei(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),i.unshift(...a,s);let c=a.length;Rh(t,n,c)}else i.unshift(s),Rh(t,n,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,i,r),i.push(s)}return i===null?null:[i,r]}function Rh(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function TM(t,n,e){if(n){let i=t.localNames=[];for(let r=0;r<n.length;r+=2){let o=e[n[r+1]];if(o==null)throw new A(-301,!1);i.push(n[r],o)}}}function RM(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;ei(n)&&(e[""]=t)}}function OM(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function NM(t,n,e,i,r){t.data[i]=r;let o=r.factory||(r.factory=uo(r.type,!0)),s=new pr(o,ei(r),p);t.blueprint[i]=s,e[i]=s,IM(t,n,i,ly(t,e,r.hostVars,Jt),r)}function PM(t,n,e){let i=Qt(n,t),r=uy(e),o=t[Tn].rendererFactory,s=16;e.signals?s=4096:e.onPush&&(s=64);let a=kl(t,El(t,r,null,s,i,n,null,o.createRenderer(i,e),null,null,null));t[n.index]=a}function FM(t,n,e,i,r,o){let s=Qt(t,n);LM(n[Ye],s,o,t.value,e,i,r)}function LM(t,n,e,i,r,o,s){if(o==null)t.removeAttribute(n,r,e);else{let a=s==null?Ii(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function jM(t,n,e,i,r,o){let s=o[n];if(s!==null)for(let a=0;a<s.length;){let c=s[a++],l=s[a++],d=s[a++],u=s[a++];cy(i,e,c,l,d,u)}}function VM(t,n,e){let i=null,r=0;for(;r<e.length;){let o=e[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){i===null&&(i=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===n){i.push(o,s[a+1],s[a+2],e[r+1]);break}}r+=2}return i}function my(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function py(t,n){let e=t.contentQueries;if(e!==null){let i=De(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],s=e[r+1];if(s!==-1){let a=t.data[s];gl(o),a.contentQueries(2,n[s],s)}}}finally{De(i)}}}function kl(t,n){return t[vs]?t[Jb][dn]=n:t[vs]=n,t[Jb]=n,n}function Oh(t,n,e){gl(0);let i=De(null);try{n(t,e)}finally{De(i)}}function gy(t){return t[Tc]??=[]}function by(t){return t.cleanup??=[]}function vy(t,n,e){return(t===null||ei(t))&&(e=PI(e[n.index])),e[Ye]}function _y(t,n){let e=t[po],i=e?e.get(On,null):null;i&&i.handleError(n)}function zf(t,n,e,i,r){for(let o=0;o<e.length;){let s=e[o++],a=e[o++],c=e[o++],l=n[s],d=t.data[s];cy(d,l,i,a,c,r)}}function yy(t,n,e){let i=c_(n,t);Xk(t[Ye],i,e)}function BM(t,n){let e=Ni(n,t),i=e[fe];zM(i,e);let r=e[Nn];r!==null&&e[bs]===null&&(e[bs]=Sf(r,e[po])),Hf(i,e,e[Gt])}function zM(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}function Hf(t,n,e){Cf(n);try{let i=t.viewQuery;i!==null&&Oh(1,i,e);let r=t.template;r!==null&&dy(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[Jn]?.finishViewCreation(t),t.staticContentQueries&&py(t,n),t.staticViewQueries&&Oh(2,t.viewQuery,e);let o=t.components;o!==null&&HM(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[re]&=-5,xf()}}function HM(t,n){for(let e=0;e<n.length;e++)BM(t,n[e])}function Uf(t,n,e,i){let r=De(null);try{let o=n.tView,a=t[re]&4096?4096:16,c=El(t,o,e,a,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),l=t[n.index];c[ur]=l;let d=t[Jn];return d!==null&&(c[Jn]=d.createEmbeddedView(o)),Hf(o,c,e),c}finally{De(r)}}function UM(t,n){let e=At+n;if(e<t.length)return t[e]}function Uc(t,n){return!n||n.firstChild===null||j_(t)}function $f(t,n,e,i=!0){let r=n[fe];if(iM(r,n,t,e),i){let s=Th(e,t),a=n[Ye],c=ty(a,t[hr]);c!==null&&tM(r,t[Rt],a,n,c,s)}let o=n[bs];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function $M(t,n){let e=zc(t,n);return e!==void 0&&Nf(e[fe],e),e}function $c(t,n,e,i,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue}let o=n[e.index];o!==null&&i.push(Rn(o)),ni(o)&&qM(o,i);let s=e.type;if(s&8)$c(t,n,e.child,i);else if(s&32){let a=Rf(e,n),c;for(;c=a();)i.push(c)}else if(s&16){let a=iy(n,e);if(Array.isArray(a))i.push(...a);else{let c=fr(n[Yt]);$c(c[fe],c,a,i,!0)}}e=r?e.projectionNext:e.next}return i}function qM(t,n){for(let e=At;e<t.length;e++){let i=t[e],r=i[fe].firstChild;r!==null&&$c(i[fe],i,r,n)}t[hr]!==t[Nn]&&n.push(t[hr])}var wy=[];function WM(t){return t[Wt]??GM(t)}function GM(t){let n=wy.pop()??Object.create(ZM);return n.lView=t,n}function YM(t){t.lView[Wt]!==t&&(t.lView=null,wy.push(t))}var ZM=ve(D({},Wr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{pl(t.lView)},consumerOnSignalRead(){this.lView[Wt]=this}});function KM(t){let n=t[Wt]??Object.create(QM);return n.lView=t,n}var QM=ve(D({},Wr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let n=fr(t.lView);for(;n&&!Cy(n[fe]);)n=fr(n);n&&d_(n)},consumerOnSignalRead(){this.lView[Wt]=this}});function Cy(t){return t.type!==2}var XM=100;function xy(t,n=!0,e=0){let i=t[Tn],r=i.rendererFactory,o=!1;o||r.begin?.();try{JM(t,e)}catch(s){throw n&&_y(t,s),s}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function JM(t,n){let e=g_();try{tv(!0),Nh(t,n);let i=0;for(;ml(t);){if(i===XM)throw new A(103,!1);i++,Nh(t,1)}}finally{tv(e)}}function eS(t,n,e,i){let r=n[re];if((r&256)===256)return;let o=!1,s=!1;!o&&n[Tn].inlineEffectRunner?.flush(),Cf(n);let a=!0,c=null,l=null;o||(Cy(t)?(l=WM(n),c=rs(l)):tb()===null?(a=!1,l=KM(n),c=rs(l)):n[Wt]&&(ja(n[Wt]),n[Wt]=null));try{l_(n),KI(t.bindingStartIndex),e!==null&&dy(t,n,e,2,i);let d=(r&3)===3;if(!o)if(d){let h=t.preOrderCheckHooks;h!==null&&xc(n,h,null)}else{let h=t.preOrderHooks;h!==null&&Dc(n,h,0,null),eh(n,0)}if(s||tS(n),Dy(n,0),t.contentQueries!==null&&py(t,n),!o)if(d){let h=t.contentCheckHooks;h!==null&&xc(n,h)}else{let h=t.contentHooks;h!==null&&Dc(n,h,1),eh(n,1)}pM(t,n);let u=t.components;u!==null&&Iy(n,u,0);let f=t.viewQuery;if(f!==null&&Oh(2,f,i),!o)if(d){let h=t.viewCheckHooks;h!==null&&xc(n,h)}else{let h=t.viewHooks;h!==null&&Dc(n,h,2),eh(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Cc]){for(let h of n[Cc])h();n[Cc]=null}o||(n[re]&=-73)}catch(d){throw o||pl(n),d}finally{l!==null&&(Fa(l,c),a&&YM(l)),xf()}}function Dy(t,n){for(let e=B_(t);e!==null;e=z_(e))for(let i=At;i<e.length;i++){let r=e[i];Ey(r,n)}}function tS(t){for(let n=B_(t);n!==null;n=z_(n)){if(!(n[re]&Oc.HasTransplantedViews))continue;let e=n[go];for(let i=0;i<e.length;i++){let r=e[i];d_(r)}}}function nS(t,n,e){let i=Ni(n,t);Ey(i,e)}function Ey(t,n){gf(t)&&Nh(t,n)}function Nh(t,n){let i=t[fe],r=t[re],o=t[Wt],s=!!(n===0&&r&16);if(s||=!!(r&64&&n===0),s||=!!(r&1024),s||=!!(o?.dirty&&La(o)),s||=!1,o&&(o.dirty=!1),t[re]&=-9217,s)eS(i,t,i.template,t[Gt]);else if(r&8192){Dy(t,1);let a=i.components;a!==null&&Iy(t,a,1)}}function Iy(t,n,e){for(let i=0;i<n.length;i++)nS(t,n[i],e)}function qf(t,n){let e=g_()?64:1088;for(t[Tn].changeDetectionScheduler?.notify(n);t;){t[re]|=e;let i=fr(t);if(vh(t)&&!i)return t;t=i}return null}var vr=class{get rootNodes(){let n=this._lView,e=n[fe];return $c(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Gt]}set context(n){this._lView[Gt]=n}get destroyed(){return(this._lView[re]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[gt];if(ni(n)){let e=n[Rc],i=e?e.indexOf(this):-1;i>-1&&(zc(n,i),Sc(e,i))}this._attachedToViewContainer=!1}Nf(this._lView[fe],this._lView)}onDestroy(n){u_(this._lView,n)}markForCheck(){qf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[re]&=-129}reattach(){yh(this._lView),this._lView[re]|=128}detectChanges(){this._lView[re]|=1024,xy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=vh(this._lView),e=this._lView[ur];e!==null&&!n&&Of(e,this._lView),Q_(this._lView[fe],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new A(902,!1);this._appRef=n;let e=vh(this._lView),i=this._lView[ur];i!==null&&!e&&X_(i,this._lView),yh(this._lView)}},bt=(()=>{class t{static{this.__NG_ELEMENT_ID__=oS}}return t})(),iS=bt,rS=class extends iS{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){let r=Uf(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new vr(r)}};function oS(){return Ml(dt(),_e())}function Ml(t,n){return t.type&4?new rS(n,t,Co(t,n)):null}var F8=new RegExp(`^(\\d+)*(${Lk}|${Fk})*(.*)`);var sS=()=>null;function qc(t,n){return sS(t,n)}var vo=class{},Wf=new I("",{providedIn:"root",factory:()=>!1});var ky=new I(""),My=new I(""),Ph=class{},Wc=class{};function aS(t){let n=Error(`No component factory found for ${kt(t)}.`);return n[cS]=t,n}var cS="ngComponent";var Fh=class{resolveComponentFactory(n){throw aS(n)}},Ft=class{static{this.NULL=new Fh}},Ri=class{},Li=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>lS()}}return t})();function lS(){let t=_e(),n=dt(),e=Ni(n.index,t);return(Mi(e)?e:t)[Ye]}var dS=(()=>{class t{static{this.\u0275prov=x({token:t,providedIn:"root",factory:()=>null})}}return t})();function Gc(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let s=0;s<n.length;s++){let a=n[s];if(typeof a=="number")o=a;else if(o==1)r=dh(r,a);else if(o==2){let c=a,l=n[++s];i=dh(i,c+": "+l+";")}}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}var Yc=class extends Ft{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=Ai(n);return new _o(e,this.ngModule)}};function gv(t,n){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let r=t[i];if(r===void 0)continue;let o=Array.isArray(r),s=o?r[0]:r,a=o?r[1]:Si.None;n?e.push({propName:s,templateName:i,isSignal:(a&Si.SignalBased)!==0}):e.push({propName:s,templateName:i})}return e}function uS(t){let n=t.toLowerCase();return n==="svg"?a_:n==="math"?NI:null}var _o=class extends Wc{get inputs(){let n=this.componentDef,e=n.inputTransforms,i=gv(n.inputs,!0);if(e!==null)for(let r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return gv(this.componentDef.outputs,!1)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=fI(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=De(null);try{r=r||this.ngModule;let s=r instanceof mt?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Ch(n,s):n,c=a.get(Ri,null);if(c===null)throw new A(407,!1);let l=a.get(dS,null),d=a.get(vo,null),u={rendererFactory:c,sanitizer:l,inlineEffectRunner:null,changeDetectionScheduler:d},f=c.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",m=i?vM(f,i,this.componentDef.encapsulation,a):K_(f,h,uS(h)),g=512;this.componentDef.signals?g|=4096:this.componentDef.onPush||(g|=16);let C=null;m!==null&&(C=Sf(m,a,!0));let S=Vf(0,null,null,1,0,null,null,null,null,null,null),O=El(null,S,null,g,null,null,u,f,a,null,C);Cf(O);let E,M,W=null;try{let H=this.componentDef,z,we=null;H.findHostDirectiveDefs?(z=[],we=new Map,H.findHostDirectiveDefs(H,z,we),z.push(H)):z=[H];let R=hS(O,m);W=fS(R,m,H,z,O,u,f),M=pf(S,Tt),m&&gS(f,H,m,i),e!==void 0&&bS(M,this.ngContentSelectors,e),E=pS(W,H,z,we,O,[vS]),Hf(S,O,null)}catch(H){throw W!==null&&Sh(W),Sh(O),H}finally{xf()}return new Lh(this.componentType,E,Co(M,O),O,M)}finally{De(o)}}},Lh=class extends Ph{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new vr(r,void 0,!1),this.componentType=n}setInput(n,e){let i=this._tNode.inputs,r;if(i!==null&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let o=this._rootLView;zf(o[fe],o,r,n,e),this.previousInputValues.set(n,e);let s=Ni(this._tNode.index,o);qf(s,1)}}get injector(){return new dr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function hS(t,n){let e=t[fe],i=Tt;return t[i]=n,Do(e,i,2,"#host",null)}function fS(t,n,e,i,r,o,s){let a=r[fe];mS(i,t,n,s);let c=null;n!==null&&(c=Sf(n,r[po]));let l=o.rendererFactory.createRenderer(n,e),d=16;e.signals?d=4096:e.onPush&&(d=64);let u=El(r,uy(e),null,d,r[t.index],t,o,l,null,null,c);return a.firstCreatePass&&Rh(a,t,i.length-1),kl(r,u),r[t.index]=u}function mS(t,n,e,i){for(let r of t)n.mergedAttrs=ps(n.mergedAttrs,r.hostAttrs);n.mergedAttrs!==null&&(Gc(n,n.mergedAttrs,!0),e!==null&&sy(i,e,n))}function pS(t,n,e,i,r,o){let s=dt(),a=r[fe],c=Qt(s,r);hy(a,r,s,e,null,i);for(let d=0;d<e.length;d++){let u=s.directiveStart+d,f=gr(r,a,u,s);Ti(f,r)}fy(a,r,s),c&&Ti(c,r);let l=gr(r,a,s.directiveStart+s.componentOffset,s);if(t[Gt]=r[Gt]=l,o!==null)for(let d of o)d(l,n);return Ff(a,s,r),l}function gS(t,n,e,i){if(i)mh(t,e,["ng-version","18.2.14"]);else{let{attrs:r,classes:o}=mI(n.selectors[0]);r&&mh(t,e,r),o&&o.length>0&&oy(t,e,o.join(" "))}}function bS(t,n,e){let i=t.projection=[];for(let r=0;r<n.length;r++){let o=e[r];i.push(o!=null?Array.from(o):null)}}function vS(){let t=dt();_l(_e()[fe],t)}var vt=(()=>{class t{static{this.__NG_ELEMENT_ID__=_S}}return t})();function _S(){let t=dt();return Ay(t,_e())}var yS=vt,Sy=class extends yS{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Co(this._hostTNode,this._hostLView)}get injector(){return new dr(this._hostTNode,this._hostLView)}get parentInjector(){let n=Ef(this._hostTNode,this._hostLView);if(D_(n)){let e=Pc(n,this._hostLView),i=Nc(n),r=e[fe].data[i+8];return new dr(r,e)}else return new dr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=bv(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-At}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let s=qc(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,Uc(this._hostTNode,s)),a}createComponent(n,e,i,r,o){let s=n&&!AI(n),a;if(s)a=e;else{let m=e||{};a=m.index,i=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let c=s?n:new _o(Ai(n)),l=i||this.parentInjector;if(!o&&c.ngModule==null){let g=(s?l:this.parentInjector).get(mt,null);g&&(o=g)}let d=Ai(c.componentType??{}),u=qc(this._lContainer,d?.id??null),f=u?.firstChild??null,h=c.create(l,r,f,o);return this.insertImpl(h.hostView,a,Uc(this._hostTNode,u)),h}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(jI(r)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=r[gt],l=new Sy(c,c[Rt],c[gt]);l.detach(l.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return $f(s,r,o,i),n.attachToViewContainerRef(),jv(oh(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=bv(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=zc(this._lContainer,e);i&&(Sc(oh(this._lContainer),e),Nf(i[fe],i))}detach(n){let e=this._adjustIndex(n,-1),i=zc(this._lContainer,e);return i&&Sc(oh(this._lContainer),e)!=null?new vr(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function bv(t){return t[Rc]}function oh(t){return t[Rc]||(t[Rc]=[])}function Ay(t,n){let e,i=n[t.index];return ni(i)?e=i:(e=my(i,n,null,t),n[t.index]=e,kl(n,e)),CS(e,n,t,i),new Sy(e,t,n)}function wS(t,n){let e=t[Ye],i=e.createComment(""),r=Qt(n,t),o=ty(e,r);return Hc(e,o,i,aM(e,r),!1),i}var CS=ES,xS=()=>!1;function DS(t,n,e){return xS(t,n,e)}function ES(t,n,e,i){if(t[hr])return;let r;e.type&8?r=Rn(i):r=wS(n,e),t[hr]=r}var jh=class t{constructor(n){this.queryList=n,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Vh=class t{constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){let s=e.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)Yf(n,e).matches!==null&&this.queries[e].setDirty()}},Zc=class{constructor(n,e,i=null){this.flags=e,this.read=i,typeof n=="string"?this.predicate=TS(n):this.predicate=n}},Bh=class t{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){let r=e!==null?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},zh=class t{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=n.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=i[r];this.matchTNodeWithReadOption(n,e,IS(e,o)),this.matchTNodeWithReadOption(n,e,Ec(e,n,o,!1,!1))}else i===bt?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Ec(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(i!==null){let r=this.metadata.read;if(r!==null)if(r===Z||r===vt||r===bt&&e.type&4)this.addMatch(e.index,-2);else{let o=Ec(e,n,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e)}};function IS(t,n){let e=t.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1]}return null}function kS(t,n){return t.type&11?Co(t,n):t.type&4?Ml(t,n):null}function MS(t,n,e,i){return e===-1?kS(n,t):e===-2?SS(t,n,i):gr(t,t[fe],e,n)}function SS(t,n,e){if(e===Z)return Co(n,t);if(e===bt)return Ml(n,t);if(e===vt)return Ay(n,t)}function Ty(t,n,e,i){let r=n[Jn].queries[i];if(r.matches===null){let o=t.data,s=e.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let d=o[l];a.push(MS(n,d,s[c+1],e.metadata.read))}}r.matches=a}return r.matches}function Hh(t,n,e,i){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let s=Ty(t,n,r,e);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)i.push(s[a/2]);else{let l=o[a+1],d=n[-c];for(let u=At;u<d.length;u++){let f=d[u];f[ur]===f[gt]&&Hh(f[fe],f,l,i)}if(d[go]!==null){let u=d[go];for(let f=0;f<u.length;f++){let h=u[f];Hh(h[fe],h,l,i)}}}}}return i}function Gf(t,n){return t[Jn].queries[n].queryList}function Ry(t,n,e){let i=new br((e&4)===4);return wM(t,n,i,i.destroy),(n[Jn]??=new Vh).queries.push(new jh(i))-1}function AS(t,n,e){let i=Qe();return i.firstCreatePass&&(Ny(i,new Zc(t,n,e),-1),(n&2)===2&&(i.staticViewQueries=!0)),Ry(i,_e(),n)}function Oy(t,n,e,i){let r=Qe();if(r.firstCreatePass){let o=dt();Ny(r,new Zc(n,e,i),o.index),RS(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return Ry(r,_e(),e)}function TS(t){return t.split(",").map(n=>n.trim())}function Ny(t,n,e){t.queries===null&&(t.queries=new Bh),t.queries.track(new zh(n,e))}function RS(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function Yf(t,n){return t.queries.getByIndex(n)}function Py(t,n){let e=t[fe],i=Yf(e,n);return i.crossesNgTemplate?Hh(e,t,n,[]):Ty(e,t,i,n)}var vv=new Set;function Pn(t){vv.has(t)||(vv.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Sl(t){return typeof t=="function"&&t[$t]!==void 0}function ri(t,n){Pn("NgSignals");let e=hb(t),i=e[$t];return n?.equal&&(i.equal=n.equal),e.set=r=>Fu(i,r),e.update=r=>fb(i,r),e.asReadonly=OS.bind(e),e}function OS(){let t=this[$t];if(t.readonlyFn===void 0){let n=()=>this();n[$t]=t,t.readonlyFn=n}return t.readonlyFn}function Fy(t){return Sl(t)&&typeof t.set=="function"}function Ly(t,n){let e,i=Pu(()=>{e._dirtyCounter();let r=LS(e,t);if(n&&r===void 0)throw new A(-951,!1);return r});return e=i[$t],e._dirtyCounter=ri(0),e._flatValue=void 0,i}function NS(){return Ly(!0,!1)}function PS(){return Ly(!0,!0)}function FS(t,n){let e=t[$t];e._lView=_e(),e._queryIndex=n,e._queryList=Gf(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function LS(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[re]&4)return n?void 0:It;let r=Gf(e,i),o=Py(e,i);return r.reset(o,L_),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function _v(t,n){return NS()}function jS(t,n){return PS()}var jy=(_v.required=jS,_v);function VS(t){let n=[],e=new Map;function i(r){let o=e.get(r);if(!o){let s=t(r);e.set(r,o=s.then(US))}return o}return Kc.forEach((r,o)=>{let s=[];r.templateUrl&&s.push(i(r.templateUrl).then(l=>{r.template=l}));let a=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=a,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let l=r.styles.length,d=r.styleUrls;r.styleUrls.forEach((u,f)=>{a.push(""),s.push(i(u).then(h=>{a[l+f]=h,d.splice(d.indexOf(u),1),d.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&s.push(i(r.styleUrl).then(l=>{a.push(l),r.styleUrl=void 0}));let c=Promise.all(s).then(()=>$S(o));n.push(c)}),zS(),Promise.all(n).then(()=>{})}var Kc=new Map,BS=new Set;function zS(){let t=Kc;return Kc=new Map,t}function HS(){return Kc.size===0}function US(t){return typeof t=="string"?t:t.text()}function $S(t){BS.delete(t)}function qS(t){return Object.getPrototypeOf(t.prototype).constructor}function Ve(t){let n=qS(t.type),e=!0,i=[t];for(;n;){let r;if(ei(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new A(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let s=t;s.inputs=bc(t.inputs),s.inputTransforms=bc(t.inputTransforms),s.declaredInputs=bc(t.declaredInputs),s.outputs=bc(t.outputs);let a=r.hostBindings;a&&KS(t,a);let c=r.viewQuery,l=r.contentQueries;if(c&&YS(t,c),l&&ZS(t,l),WS(t,r),RE(t.outputs,r.outputs),ei(r)&&r.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Ve&&(e=!1)}}n=Object.getPrototypeOf(n)}GS(i)}function WS(t,n){for(let e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let i=n.inputs[e];if(i!==void 0&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],n.inputTransforms!==null)){let r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=n.inputTransforms[r]}}}function GS(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=ps(r.hostAttrs,e=ps(e,r.hostAttrs))}}function bc(t){return t===ho?{}:t===It?[]:t}function YS(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function ZS(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function KS(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function at(t){let n=t.inputConfig,e={};for(let i in n)if(n.hasOwnProperty(i)){let r=n[i];Array.isArray(r)&&r[3]&&(e[i]=r[3])}t.inputTransforms=e}var Oi=class{},_s=class{};var Qc=class extends Oi{constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yc(this);let o=Yv(n);this._bootstrapComponents=Y_(o.bootstrap),this._r3Injector=O_(n,e,[{provide:Oi,useValue:this},{provide:Ft,useValue:this.componentFactoryResolver},...i],kt(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Xc=class extends _s{constructor(n){super(),this.moduleType=n}create(n){return new Qc(this.moduleType,n,[])}};function QS(t,n,e){return new Qc(t,n,e,!1)}var Uh=class extends Oi{constructor(n){super(),this.componentFactoryResolver=new Yc(this),this.instance=null;let e=new gs([...n.providers,{provide:Oi,useValue:this},{provide:Ft,useValue:this.componentFactoryResolver}],n.parent||uf(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Al(t,n,e=null){return new Uh({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}function Vy(t){return JS(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function XS(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{let e=t[Symbol.iterator](),i;for(;!(i=e.next()).done;)n(i.value)}}function JS(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function eA(t,n,e){return t[n]=e}function hn(t,n,e){let i=t[n];return Object.is(i,e)?!1:(t[n]=e,!0)}function $h(t,n,e,i){let r=hn(t,n,e);return hn(t,n+1,i)||r}function tA(t,n,e,i,r,o){let s=$h(t,n,e,i);return $h(t,n+2,r,o)||s}function nA(t){return(t.flags&32)===32}function iA(t,n,e,i,r,o,s,a,c){let l=n.consts,d=Do(n,t,4,s||null,a||null);Bf(n,e,d,bo(l,c)),_l(n,d);let u=d.tView=Vf(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return n.queries!==null&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}function By(t,n,e,i,r,o,s,a,c,l){let d=e+Tt,u=n.firstCreatePass?iA(d,n,t,i,r,o,s,a,c):n.data[d];yr(u,!1);let f=rA(n,t,u,e);bl()&&Cl(n,t,f,u),Ti(f,t);let h=my(f,t,f,u);return t[d]=h,kl(t,h),DS(h,u,t),fl(u)&&Lf(n,t,u),c!=null&&jf(t,u,l),u}function Q(t,n,e,i,r,o,s,a){let c=_e(),l=Qe(),d=bo(l.consts,o);return By(c,l,t,n,e,i,r,d,s,a),Q}var rA=oA;function oA(t,n,e,i){return vl(!0),n[Ye].createComment("")}var ao=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ao||{}),zy=(()=>{class t{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=x({token:t,providedIn:"root",factory:()=>new t})}}return t})(),qh=class t{constructor(){this.ngZone=y(F),this.scheduler=y(vo),this.errorHandler=y(On,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ao.EarlyRead,ao.Write,ao.MixedReadWrite,ao.Read]}execute(){this.executing=!0;for(let n of t.PHASES)for(let e of this.sequences)if(!(e.erroredOrDestroyed||!e.hooks[n]))try{e.pipelinedValue=this.ngZone.runOutsideAngular(()=>e.hooks[n](e.pipelinedValue))}catch(i){e.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static{this.\u0275prov=x({token:t,providedIn:"root",factory:()=>new t})}},Wh=class{constructor(n,e,i,r){this.impl=n,this.hooks=e,this.once=i,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function ks(t,n){!n?.injector&&hf(ks);let e=n?.injector??y(ae);return Z_(e)?(Pn("NgAfterRender"),Hy(t,e,n,!1)):Uy}function fn(t,n){!n?.injector&&hf(fn);let e=n?.injector??y(ae);return Z_(e)?(Pn("NgAfterNextRender"),Hy(t,e,n,!0)):Uy}function sA(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function Hy(t,n,e,i){let r=n.get(zy);r.impl??=n.get(qh);let o=e?.phase??ao.MixedReadWrite,s=e?.manualCleanup!==!0?n.get(yl):null,a=new Wh(r.impl,sA(t,o),i,s);return r.impl.register(a),a}var Uy={destroy(){}};function Pe(t,n,e,i){let r=_e(),o=wr();if(hn(r,o,n)){let s=Qe(),a=xs();FM(a,r,t,n,e,i)}return Pe}function $y(t,n,e,i){return hn(t,wr(),e)?n+Ii(e)+i:Jt}function aA(t,n,e,i,r,o,s,a,c,l){let d=ZI(),u=tA(t,d,e,r,s,c);return _f(4),u?n+Ii(e)+i+Ii(r)+o+Ii(s)+a+Ii(c)+l:Jt}function vc(t,n){return t<<17|n<<2}function _r(t){return t>>17&32767}function cA(t){return(t&2)==2}function lA(t,n){return t&131071|n<<17}function Gh(t){return t|2}function yo(t){return(t&131068)>>2}function sh(t,n){return t&-131069|n<<2}function dA(t){return(t&1)===1}function Yh(t){return t|1}function uA(t,n,e,i,r,o){let s=o?n.classBindings:n.styleBindings,a=_r(s),c=yo(s);t[i]=e;let l=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||Cs(u,d)>0)&&(l=!0)}else d=e;if(r)if(c!==0){let f=_r(t[a+1]);t[i+1]=vc(f,a),f!==0&&(t[f+1]=sh(t[f+1],i)),t[a+1]=lA(t[a+1],i)}else t[i+1]=vc(a,0),a!==0&&(t[a+1]=sh(t[a+1],i)),a=i;else t[i+1]=vc(c,0),a===0?a=i:t[c+1]=sh(t[c+1],i),c=i;l&&(t[i+1]=Gh(t[i+1])),yv(t,d,i,!0),yv(t,d,i,!1),hA(n,d,t,i,o),s=vc(a,c),o?n.classBindings=s:n.styleBindings=s}function hA(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Cs(o,n)>=0&&(e[i+1]=Yh(e[i+1]))}function yv(t,n,e,i){let r=t[e+1],o=n===null,s=i?_r(r):yo(r),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];fA(c,n)&&(a=!0,t[s+1]=i?Yh(l):Gh(l)),s=i?_r(l):yo(l)}a&&(t[e+1]=i?Gh(r):Yh(r))}function fA(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Cs(t,n)>=0:!1}var ln={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mA(t){return t.substring(ln.key,ln.keyEnd)}function pA(t){return gA(t),qy(t,Wy(t,0,ln.textEnd))}function qy(t,n){let e=ln.textEnd;return e===n?-1:(n=ln.keyEnd=bA(t,ln.key=n,e),Wy(t,n,e))}function gA(t){ln.key=0,ln.keyEnd=0,ln.value=0,ln.valueEnd=0,ln.textEnd=t.length}function Wy(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function bA(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}function k(t,n,e){let i=_e(),r=wr();if(hn(i,r,n)){let o=Qe(),s=xs();Il(o,s,i,t,n,i[Ye],e,!1)}return k}function Zh(t,n,e,i,r){let o=n.inputs,s=r?"class":"style";zf(t,e,o[s],s,i)}function He(t,n,e){return Yy(t,n,e,!1),He}function xe(t,n){return Yy(t,n,null,!0),xe}function en(t){Zy(xA,Gy,t,!0)}function Gy(t,n){for(let e=pA(n);e>=0;e=qy(n,e))cl(t,mA(n),!0)}function Yy(t,n,e,i){let r=_e(),o=Qe(),s=_f(2);if(o.firstUpdatePass&&Qy(o,t,s,i),n!==Jt&&hn(r,s,n)){let a=o.data[Pi()];Xy(o,a,r,r[Ye],t,r[s+1]=EA(n,e),i,s)}}function Zy(t,n,e,i){let r=Qe(),o=_f(2);r.firstUpdatePass&&Qy(r,null,o,i);let s=_e();if(e!==Jt&&hn(s,o,e)){let a=r.data[Pi()];if(Jy(a,i)&&!Ky(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(e=dh(c,e||"")),Zh(r,a,s,e,i)}else DA(r,a,s,s[Ye],s[o+1],s[o+1]=CA(t,n,e),i,o)}}function Ky(t,n){return n>=t.expandoStartIndex}function Qy(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Pi()],s=Ky(t,e);Jy(o,i)&&n===null&&!s&&(n=!1),n=vA(r,o,n,i),uA(r,o,n,e,s,i)}}function vA(t,n,e,i){let r=yf(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=ah(null,t,n,e,i),e=ys(e,n.attrs,i),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==r)if(e=ah(r,t,n,e,i),o===null){let c=_A(t,n,i);c!==void 0&&Array.isArray(c)&&(c=ah(null,t,n,c[1],i),c=ys(c,n.attrs,i),yA(t,n,i,c))}else o=wA(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function _A(t,n,e){let i=e?n.classBindings:n.styleBindings;if(yo(i)!==0)return t[_r(i)]}function yA(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[_r(r)]=i}function wA(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;i=ys(i,s,e)}return ys(i,n.attrs,e)}function ah(t,n,e,i,r){let o=null,s=e.directiveEnd,a=e.directiveStylingLast;for(a===-1?a=e.directiveStart:a++;a<s&&(o=n[a],i=ys(i,o.hostAttrs,r),o!==t);)a++;return t!==null&&(e.directiveStylingLast=a),i}function ys(t,n,e){let i=e?1:2,r=-1;if(n!==null)for(let o=0;o<n.length;o++){let s=n[o];typeof s=="number"?r=s:r===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),cl(t,s,e?!0:n[++o]))}return t===void 0?null:t}function CA(t,n,e){if(e==null||e==="")return It;let i=[],r=xo(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else typeof r=="string"&&n(i,r);return i}function xA(t,n,e){let i=String(n);i!==""&&!i.includes(" ")&&cl(t,i,e)}function DA(t,n,e,i,r,o,s,a){r===Jt&&(r=It);let c=0,l=0,d=0<r.length?r[0]:null,u=0<o.length?o[0]:null;for(;d!==null||u!==null;){let f=c<r.length?r[c+1]:void 0,h=l<o.length?o[l+1]:void 0,m=null,g;d===u?(c+=2,l+=2,f!==h&&(m=u,g=h)):u===null||d!==null&&d<u?(c+=2,m=d):(l+=2,m=u,g=h),m!==null&&Xy(t,n,e,i,m,g,s,a),d=c<r.length?r[c]:null,u=l<o.length?o[l]:null}}function Xy(t,n,e,i,r,o,s,a){if(!(n.type&3))return;let c=t.data,l=c[a+1],d=dA(l)?wv(c,n,e,r,yo(l),s):void 0;if(!Jc(d)){Jc(o)||cA(l)&&(o=wv(c,null,e,r,a,s));let u=c_(Pi(),e);fM(i,s,u,r,o)}}function wv(t,n,e,i,r,o){let s=n===null,a;for(;r>0;){let c=t[r],l=Array.isArray(c),d=l?c[1]:c,u=d===null,f=e[r+1];f===Jt&&(f=u?It:void 0);let h=u?Xu(f,i):d===i?f:void 0;if(l&&!Jc(h)&&(h=Xu(c,i)),Jc(h)&&(a=h,s))return a;let m=t[r+1];r=s?_r(m):yo(m)}if(n!==null){let c=o?n.residualClasses:n.residualStyles;c!=null&&(a=Xu(c,i))}return a}function Jc(t){return t!==void 0}function EA(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=kt(xo(t)))),t}function Jy(t,n){return(t.flags&(n?8:16))!==0}function e0(t,n,e){let i=_e(),r=$y(i,t,n,e);Zy(cl,Gy,r,!0)}function ct(t,n){Pn("NgControlFlow");let e=_e(),i=wr(),r=e[i]!==Jt?e[i]:-1,o=r!==-1?Cv(e,Tt+r):void 0,s=0;if(hn(e,i,t)){let a=De(null);try{if(o!==void 0&&$M(o,s),t!==-1){let c=Tt+t,l=Cv(e,c),d=IA(e[fe],c),u=qc(l,d.tView.ssrId),f=Uf(e,d,n,{dehydratedView:u});$f(l,f,s,Uc(d,u))}}finally{De(a)}}else if(o!==void 0){let a=UM(o,s);a!==void 0&&(a[Gt]=n)}}function Cv(t,n){return t[n]}function IA(t,n){return pf(t,n)}function kA(t,n,e,i,r,o){let s=n.consts,a=bo(s,r),c=Do(n,t,2,i,a);return Bf(n,e,c,bo(s,o)),c.attrs!==null&&Gc(c,c.attrs,!1),c.mergedAttrs!==null&&Gc(c,c.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,c),c}function _(t,n,e,i){let r=_e(),o=Qe(),s=Tt+t,a=r[Ye],c=o.firstCreatePass?kA(s,o,r,n,e,i):o.data[s],l=MA(o,r,c,a,n,t);r[s]=l;let d=fl(c);return yr(c,!0),sy(a,l,c),!nA(c)&&bl()&&Cl(o,r,l,c),zI()===0&&Ti(l,r),HI(),d&&(Lf(o,r,c),Ff(o,c,r)),i!==null&&jf(r,c),_}function v(){let t=dt();bf()?vf():(t=t.parent,yr(t,!1));let n=t;$I(n)&&qI(),UI();let e=Qe();return e.firstCreatePass&&(_l(e,t),mf(t)&&e.queries.elementEnd(t)),n.classesWithoutHost!=null&&ak(n)&&Zh(e,n,_e(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&ck(n)&&Zh(e,n,_e(),n.stylesWithoutHost,!1),v}function se(t,n,e,i){return _(t,n,e,i),v(),se}var MA=(t,n,e,i,r,o)=>(vl(!0),K_(i,r,ik()));function SA(t,n,e,i,r){let o=n.consts,s=bo(o,i),a=Do(n,t,8,"ng-container",s);s!==null&&Gc(a,s,!0);let c=bo(o,r);return Bf(n,e,a,c),n.queries!==null&&n.queries.elementStart(n,a),a}function t0(t,n,e){let i=_e(),r=Qe(),o=t+Tt,s=r.firstCreatePass?SA(o,r,i,n,e):r.data[o];yr(s,!0);let a=AA(r,i,s,t);return i[o]=a,bl()&&Cl(r,i,a,s),Ti(a,i),fl(s)&&(Lf(r,i,s),Ff(r,s,i)),e!=null&&jf(i,s),t0}function n0(){let t=dt(),n=Qe();return bf()?vf():(t=t.parent,yr(t,!1)),n.firstCreatePass&&(_l(n,t),mf(t)&&n.queries.elementEnd(t)),n0}function Zf(t,n,e){return t0(t,n,e),n0(),Zf}var AA=(t,n,e,i)=>(vl(!0),Jk(n[Ye],""));function Me(){return _e()}function Fn(t,n,e){let i=_e(),r=wr();if(hn(i,r,n)){let o=Qe(),s=xs();Il(o,s,i,t,n,i[Ye],e,!0)}return Fn}function Kf(t,n,e){let i=_e(),r=wr();if(hn(i,r,n)){let o=Qe(),s=xs(),a=yf(o.data),c=vy(a,s,i);Il(o,s,i,t,n,c,e,!0)}return Kf}var el="en-US";var TA=el;function RA(t){typeof t=="string"&&(TA=t.toLowerCase().replace(/_/g,"-"))}var OA=(t,n,e)=>{};function L(t,n,e,i){let r=_e(),o=Qe(),s=dt();return Xf(o,r,r[Ye],s,t,n,i),L}function Qf(t,n){let e=dt(),i=_e(),r=Qe(),o=yf(r.data),s=vy(o,e,i);return Xf(r,i,s,e,t,n),Qf}function NA(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===e&&r[o+1]===i){let a=n[Tc],c=r[o+2];return a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Xf(t,n,e,i,r,o,s){let a=fl(i),l=t.firstCreatePass&&by(t),d=n[Gt],u=gy(n),f=!0;if(i.type&3||s){let g=Qt(i,n),C=s?s(g):g,S=u.length,O=s?M=>s(Rn(M[i.index])):i.index,E=null;if(!s&&a&&(E=NA(t,n,r,i.index)),E!==null){let M=E.__ngLastListenerFn__||E;M.__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,f=!1}else{o=Dv(i,n,d,o),OA(g,r,o);let M=e.listen(C,r,o);u.push(o,M),l&&l.push(r,O,S,S+1)}}else o=Dv(i,n,d,o);let h=i.outputs,m;if(f&&h!==null&&(m=h[r])){let g=m.length;if(g)for(let C=0;C<g;C+=2){let S=m[C],O=m[C+1],W=n[S][O].subscribe(o),H=u.length;u.push(o,W),l&&l.push(r,i.index,H,-(H+1))}}}function xv(t,n,e,i){let r=De(null);try{return Mn(6,n,e),e(i)!==!1}catch(o){return _y(t,o),!1}finally{Mn(7,n,e),De(r)}}function Dv(t,n,e,i){return function r(o){if(o===Function)return i;let s=t.componentOffset>-1?Ni(t.index,n):n;qf(s,5);let a=xv(n,e,i,o),c=r.__ngNextListenerFn__;for(;c;)a=xv(n,e,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function T(t=1){return tk(t)}function PA(t,n){let e=null,i=cI(t);for(let r=0;r<n.length;r++){let o=n[r];if(o==="*"){e=r;continue}if(i===null?$v(t,o,!0):uI(i,o))return r}return e}function _t(t){let n=_e()[Yt][Rt];if(!n.projection){let e=t?t.length:1,i=n.projection=JE(e,null),r=i.slice(),o=n.child;for(;o!==null;){if(o.type!==128){let s=t?PA(o,t):0;s!==null&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o)}o=o.next}}}function Ue(t,n=0,e,i,r,o){let s=_e(),a=Qe(),c=i?t+1:null;c!==null&&By(s,a,c,i,r,o,null,e);let l=Do(a,Tt+t,16,null,e||null);l.projection===null&&(l.projection=n),vf();let u=!s[bs]||m_();s[Yt][Rt].projection[l.projection]===null&&c!==null?FA(s,a,c):u&&(l.flags&32)!==32&&uM(a,s,l)}function FA(t,n,e){let i=Tt+e,r=n.data[i],o=t[i],s=qc(o,r.tView.ssrId),a=Uf(t,r,void 0,{dehydratedView:s});$f(o,a,0,Uc(r,s))}function mn(t,n,e,i){Oy(t,n,e,i)}function Ie(t,n,e){AS(t,n,e)}function pe(t){let n=_e(),e=Qe(),i=wf();gl(i+1);let r=Yf(e,i);if(t.dirty&&LI(n)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=Py(n,i);t.reset(o,L_),t.notifyOnChanges()}return!0}return!1}function ge(){return Gf(_e(),wf())}function i0(t,n,e,i,r){FS(n,Oy(t,e,i,r))}function r0(t=1){gl(wf()+t)}function oi(t){let n=GI();return FI(n,Tt+t)}function J(t,n=""){let e=_e(),i=Qe(),r=t+Tt,o=i.firstCreatePass?Do(i,r,1,n,null):i.data[r],s=LA(i,e,o,n,t);e[r]=s,bl()&&Cl(i,e,s,o),yr(o,!1)}var LA=(t,n,e,i,r)=>(vl(!0),Qk(n[Ye],i));function pn(t){return it("",t,""),pn}function it(t,n,e){let i=_e(),r=$y(i,t,n,e);return r!==Jt&&yy(i,Pi(),r),it}function Tl(t,n,e,i,r,o,s,a,c){let l=_e(),d=aA(l,t,n,e,i,r,o,s,a,c);return d!==Jt&&yy(l,Pi(),d),Tl}function Rl(t,n,e){Fy(n)&&(n=n());let i=_e(),r=wr();if(hn(i,r,n)){let o=Qe(),s=xs();Il(o,s,i,t,n,i[Ye],e,!1)}return Rl}function Jf(t,n){let e=Fy(t);return e&&t.set(n),e}function Ol(t,n){let e=_e(),i=Qe(),r=dt();return Xf(i,e,e[Ye],r,t,n),Ol}function jA(t,n,e){let i=Qe();if(i.firstCreatePass){let r=ei(t);Kh(e,i.data,i.blueprint,r,!0),Kh(n,i.data,i.blueprint,r,!1)}}function Kh(t,n,e,i,r){if(t=Et(t),Array.isArray(t))for(let o=0;o<t.length;o++)Kh(t[o],n,e,i,r);else{let o=Qe(),s=_e(),a=dt(),c=mo(t)?t:Et(t.provide),l=e_(t),d=a.providerIndexes&1048575,u=a.directiveStart,f=a.providerIndexes>>20;if(mo(t)||!t.multi){let h=new pr(l,r,p),m=lh(c,n,r?d:d+f,u);m===-1?(Dh(Fc(a,s),o,c),ch(o,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(h),s.push(h)):(e[m]=h,s[m]=h)}else{let h=lh(c,n,d+f,u),m=lh(c,n,d,d+f),g=h>=0&&e[h],C=m>=0&&e[m];if(r&&!C||!r&&!g){Dh(Fc(a,s),o,c);let S=zA(r?BA:VA,e.length,r,i,l);!r&&C&&(e[m].providerFactory=S),ch(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(S),s.push(S)}else{let S=o0(e[r?m:h],l,!r&&i);ch(o,t,h>-1?h:m,S)}!r&&i&&C&&e[m].componentProviders++}}}function ch(t,n,e,i){let r=mo(n),o=CI(n);if(r||o){let c=(o?Et(n.useClass):n).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let d=l.indexOf(e);d===-1?l.push(e,[i,c]):l[d+1].push(i,c)}else l.push(e,c)}}}function o0(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function lh(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function VA(t,n,e,i){return Qh(this.multi,[])}function BA(t,n,e,i){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=gr(e,e[fe],this.providerFactory.index,i);o=a.slice(0,s),Qh(r,o);for(let c=s;c<a.length;c++)o.push(a[c])}else o=[],Qh(r,o);return o}function Qh(t,n){for(let e=0;e<t.length;e++){let i=t[e];n.push(i())}return n}function zA(t,n,e,i,r){let o=new pr(t,e,p);return o.multi=[],o.index=n,o.componentProviders=0,o0(o,r,i&&!e),o}function lt(t,n=[]){return e=>{e.providersResolver=(i,r)=>jA(i,r?r(t):t,n)}}var HA=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=Qv(!1,e.type),r=i.length>0?Al([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=x({token:t,providedIn:"environment",factory:()=>new t(b(mt))})}}return t})();function $e(t){Pn("NgStandalone"),t.getStandaloneInjector=n=>n.get(HA).getOrCreateStandaloneInjector(t)}function em(t,n,e,i,r){return $A(_e(),YI(),t,n,e,i,r)}function UA(t,n){let e=t[n];return e===Jt?void 0:e}function $A(t,n,e,i,r,o,s){let a=n+e;return $h(t,a,r,o)?eA(t,a+2,s?i.call(s,r,o):i(r,o)):UA(t,a+2)}function tm(t,n){return Ml(t,n)}var _c=null;function qA(t){_c!==null&&(t.defaultEncapsulation!==_c.defaultEncapsulation||t.preserveWhitespaces!==_c.preserveWhitespaces)||(_c=t)}var Nl=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();var nm=new I(""),Ms=new I(""),Pl=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,im||(WA(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(e)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static{this.\u0275fac=function(i){return new(i||t)(b(F),b(Fl),b(Ms))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),Fl=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return im?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function WA(t){im=t}var im;function Cr(t){return!!t&&typeof t.then=="function"}function s0(t){return!!t&&typeof t.subscribe=="function"}var Ll=new I(""),a0=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=y(Ll,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=r();if(Cr(o))e.push(o);else if(s0(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jl=new I("");function GA(){ub(()=>{throw new A(600,!1)})}function YA(t){return t.isBoundToModule}var ZA=10;function KA(t,n,e){try{let i=e();return Cr(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}function c0(t,n){return Array.isArray(n)?n.reduce(c0,t):D(D({},t),n)}var Lt=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=y(Mk),this.afterRenderManager=y(zy),this.zonelessEnabled=y(Wf),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new V,this.afterTick=new V,this.componentTypes=[],this.components=[],this.isStable=y(ii).hasPendingTasks.pipe(ne(e=>!e)),this._injector=y(mt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}get injector(){return this._injector}bootstrap(e,i){let r=e instanceof Wc;if(!this._injector.get(a0).done){let f=!r&&Gv(e),h=!1;throw new A(405,h)}let s;r?s=e:s=this._injector.get(Ft).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=YA(s)?void 0:this._injector.get(Oi),c=i||s.selector,l=s.create(ae.NULL,[],c,a),d=l.location.nativeElement,u=l.injector.get(nm,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Ic(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new A(101,!1);let e=De(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,De(e),this.afterTick.next()}}synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(Ri,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;this.dirtyFlags!==0&&i++<ZA;)this.synchronizeOnce(e)}synchronizeOnce(e){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let i=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(i);for(let{_lView:r,notifyErrorHandler:o}of this._views)QA(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else e?.begin?.(),e?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>ml(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Ic(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let i=this._injector.get(jl,[]);[...this._bootstrapListeners,...i].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ic(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new A(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ic(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function QA(t,n,e,i){if(!e&&!ml(t))return;xy(t,n,e&&!i?0:1)}var Xh=class{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},Vl=(()=>{class t{compileModuleSync(e){return new Xc(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=Yv(e),o=Y_(r.declarations).reduce((s,a)=>{let c=Ai(a);return c&&s.push(new _o(c)),s},[]);return new Xh(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),XA=new I("");function JA(t,n,e){let i=new Xc(e);return Promise.resolve(i)}function Ev(t){for(let n=t.length-1;n>=0;n--)if(t[n]!==void 0)return t[n]}var eT=(()=>{class t{constructor(){this.zone=y(F),this.changeDetectionScheduler=y(vo),this.applicationRef=y(Lt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function tT({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new F(ve(D({},l0()),{scheduleInRootZone:e})),[{provide:F,useFactory:t},{provide:fo,multi:!0,useFactory:()=>{let i=y(eT,{optional:!0});return()=>i.initialize()}},{provide:fo,multi:!0,useFactory:()=>{let i=y(nT);return()=>{i.initialize()}}},n===!0?{provide:ky,useValue:!0}:[],{provide:My,useValue:e??N_}]}function l0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var nT=(()=>{class t{constructor(){this.subscription=new Te,this.initialized=!1,this.zone=y(F),this.pendingTasks=y(ii)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{F.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iT=(()=>{class t{constructor(){this.appRef=y(Lt),this.taskService=y(ii),this.ngZone=y(F),this.zonelessEnabled=y(Wf),this.disableScheduling=y(ky,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Te,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(jc):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(y(My,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Vc||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?av:P_;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(jc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(e),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,av(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function rT(){return typeof $localize<"u"&&$localize.locale||el}var Bl=new I("",{providedIn:"root",factory:()=>y(Bl,Ce.Optional|Ce.SkipSelf)||rT()});var tl=new I("");function yc(t){return!t.moduleRef}function oT(t){let n=yc(t)?t.r3Injector:t.moduleRef.injector,e=n.get(F);return e.run(()=>{yc(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(On,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{i.handleError(o)}})}),yc(t)){let o=()=>n.destroy(),s=t.platformInjector.get(tl);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(tl);s.add(o),t.moduleRef.onDestroy(()=>{Ic(t.allPlatformModules,t.moduleRef),r.unsubscribe(),s.delete(o)})}return KA(i,e,()=>{let o=n.get(a0);return o.runInitializers(),o.donePromise.then(()=>{let s=n.get(Bl,el);if(RA(s||el),yc(t)){let a=n.get(Lt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return sT(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function sT(t,n){let e=t.injector.get(Lt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>e.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new A(-403,!1);n.push(t)}var d0=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){let r=i?.scheduleInRootZone,o=()=>kk(i?.ngZone,ve(D({},l0({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing})),{scheduleInRootZone:r})),s=i?.ignoreChangesOutsideZone,a=[tT({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:vo,useExisting:iT}],c=QS(e.moduleType,this.injector,a);return oT({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,i=[]){let r=c0({},i);return JA(this.injector,r,e).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new A(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let e=this._injector.get(tl,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(b(ae))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),fs=null,nl=new I("");function aT(t){if(om())throw new A(400,!1);GA(),fs=t.get(nl,!1)?null:t;let e=t.get(d0);return dT(t),e}function rm(t,n,e=[]){let i=`Platform: ${n}`,r=new I(i);return(o=[])=>{let s=om();if(!s||s.injector.get(nl,!1)){let c=[...e,...o,{provide:r,useValue:!0}];s=t?.(c)??aT(cT(c,i))}return s.injector.get(nl,!1)?s:lT(r)}}function cT(t=[],n){return ae.create({name:n,providers:[{provide:dl,useValue:"platform"},{provide:tl,useValue:new Set([()=>fs=null])},...t]})}function lT(t){let n=om();if(!n)throw new A(401,!1);return n}function om(){return fs&&fs.get(nl,!1)?null:fs?.get(d0)??null}function dT(t){t.get(Mf,null)?.forEach(e=>e())}var Be=(()=>{class t{static{this.__NG_ELEMENT_ID__=uT}}return t})();function uT(t){return hT(dt(),_e(),(t&16)===16)}function hT(t,n,e){if(hl(t)&&!e){let i=Ni(t.index,n);return new vr(i,i)}else if(t.type&175){let i=n[Yt];return new vr(i,n)}return null}var Jh=class{constructor(){}supports(n){return Vy(n)}create(n){return new ef(n)}},fT=(t,n)=>n,ef=class{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||fT}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let s=!i||e&&e.currentIndex<Iv(i,r,o)?e:i,a=Iv(s,r,o),c=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,s.previousIndex==null)r++;else{o||(o=[]);let l=a-r,d=c-r;if(l!=d){for(let f=0;f<l;f++){let h=f<o.length?o[f]:o[f]=0,m=h+f;d<=m&&m<l&&(o[f]=h+1)}let u=s.previousIndex;o[u]=d-l}}a!==c&&n(s,a,c)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)n(e)}diff(n){if(n==null&&(n=[]),!Vy(n))throw new A(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._itHead,i=!1,r,o,s;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,o,s,a),i=!0):(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,XS(n,a=>{s=this._trackByFn(r,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,r),i=!0):(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new tf(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new il),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new il),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},tf=class{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},nf=class{constructor(){this._head=null,this._tail=null}add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},il=class{constructor(){this.map=new Map}put(n){let e=n.trackById,i=this.map.get(e);i||(i=new nf,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Iv(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}function kv(){return new zl([new Jh])}var zl=(()=>{class t{static{this.\u0275prov=x({token:t,providedIn:"root",factory:kv})}constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||kv()),deps:[[t,new af,new al]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new A(901,!1)}}return t})();var u0=rm(null,"core",[]),h0=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(b(Lt))}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})();function Se(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function xr(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function si(t,n){Pn("NgSignals");let e=Pu(t);return n?.equal&&(e[$t].equal=n.equal),e}function tn(t){let n=De(null);try{return t()}finally{De(n)}}var mT=new I("",{providedIn:"root",factory:()=>y(pT)}),pT=(()=>{class t{static{this.\u0275prov=x({token:t,providedIn:"root",factory:()=>new rf})}}return t})(),rf=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=y(ii),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(n){let e=n.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}},of=class{constructor(n,e,i,r,o,s){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=pb(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(e){this.injector.get(On,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function sm(t,n){Pn("NgSignals"),!n?.injector&&hf(sm);let e=n?.injector??y(ae),i=n?.manualCleanup!==!0?e.get(yl):null,r=new of(e.get(mT),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),o=e.get(Be,null,{optional:!0});return!o||!(o._lView[re]&8)?r.watcher.notify():(o._lView[Cc]??=[]).push(r.watcher.notify),r}function f0(t){let n=Ai(t);if(!n)return null;let e=new _o(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var v0=null;function Ln(){return v0}function _0(t){v0??=t}var Hl=class{};var ee=new I(""),um=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>y(bT),providedIn:"platform"})}}return t})(),y0=new I(""),bT=(()=>{class t extends um{constructor(){super(),this._doc=y(ee),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ln().getBaseHref(this._doc)}onPopState(e){let i=Ln().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Ln().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function hm(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function m0(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,i=e-(t[e-1]==="/"?1:0);return t.slice(0,i)+t.slice(e)}function ai(t){return t&&t[0]!=="?"?"?"+t:t}var ci=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>y(fm),providedIn:"root"})}}return t})(),w0=new I(""),fm=(()=>{class t extends ci{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??y(ee).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return hm(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+ai(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+ai(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+ai(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(b(um),b(w0,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),C0=(()=>{class t extends ci{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=hm(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+ai(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+ai(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(b(um),b(w0,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),jn=(()=>{class t{constructor(e){this._subject=new K,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=yT(m0(p0(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ai(i))}normalize(e){return t.stripTrailingSlash(_T(this._basePath,p0(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ai(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ai(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static{this.normalizeQueryParams=ai}static{this.joinWithSlash=hm}static{this.stripTrailingSlash=m0}static{this.\u0275fac=function(i){return new(i||t)(b(ci))}}static{this.\u0275prov=x({token:t,factory:()=>vT(),providedIn:"root"})}}return t})();function vT(){return new jn(b(ci))}function _T(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function p0(t){return t.replace(/\/index.html$/,"")}function yT(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function $l(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var am=class{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},gn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new am(r.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)i.remove(o===null?void 0:o);else if(o!==null){let a=i.get(o);i.move(a,s),g0(a,r)}});for(let r=0,o=i.length;r<o;r++){let a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);g0(o,r)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(p(vt),p(bt),p(zl))}}static{this.\u0275dir=Y({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function g0(t,n){t.context.$implicit=n.item}var ql=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new cm,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){b0("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){b0("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(p(vt),p(bt))}}static{this.\u0275dir=Y({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})(),cm=class{constructor(){this.$implicit=null,this.ngIf=null}};function b0(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${kt(n)}'.`)}var Ss=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static{this.\u0275fac=function(i){return new(i||t)(p(vt))}}static{this.\u0275dir=Y({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ze]})}}return t})();var Vn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})(),mm="browser",wT="server";function As(t){return t===mm}function Wl(t){return t===wT}var x0=(()=>{class t{static{this.\u0275prov=x({token:t,providedIn:"root",factory:()=>As(y(Ot))?new lm(y(ee),window):new dm})}}return t})(),lm=class{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=CT(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};function CT(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}var dm=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},Eo=class{};var Rs=class{},Yl=class{},di=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
8
+ `).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var gm=class{encodeKey(n){return D0(n)}encodeValue(n){return D0(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function xT(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var DT=/%(\d[a-f0-9])/gi,ET={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function D0(t){return encodeURIComponent(t).replace(DT,(n,e)=>ET[e]??n)}function Gl(t){return`${t}`}var Vi=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new gm,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=xT(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Gl):[Gl(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Gl(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Gl(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var bm=class{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function IT(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function E0(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function I0(t){return typeof Blob<"u"&&t instanceof Blob}function k0(t){return typeof FormData<"u"&&t instanceof FormData}function kT(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ts=class t{constructor(n,e,i,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(IT(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new di,this.context??=new bm,!this.params)this.params=new Vi,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||E0(this.body)||I0(this.body)||k0(this.body)||kT(this.body)?this.body:this.body instanceof Vi?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||k0(this.body)?null:I0(this.body)?this.body.type||null:E0(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Vi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,a=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress,l=n.headers||this.headers,d=n.params||this.params,u=n.context??this.context;return n.setHeaders!==void 0&&(l=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),l)),n.setParams&&(d=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),d)),new t(e,i,s,{params:d,headers:l,context:u,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}},Bi=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Bi||{}),Os=class{constructor(n,e=200,i="OK"){this.headers=n.headers||new di,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},Zl=class t extends Os{constructor(n={}){super(n),this.type=Bi.ResponseHeader}clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Ns=class t extends Os{constructor(n={}){super(n),this.type=Bi.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ji=class extends Os{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},T0=200,MT=204;function pm(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var ym=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Ts)o=e;else{let c;r.headers instanceof di?c=r.headers:c=new di(r.headers);let l;r.params&&(r.params instanceof Vi?l=r.params:l=new Vi({fromObject:r.params})),o=new Ts(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=q(o).pipe(Qn(c=>this.handler.handle(c)));if(e instanceof Ts||r.observe==="events")return s;let a=s.pipe(ke(c=>c instanceof Ns));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ne(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(ne(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(ne(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(ne(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Vi().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,pm(r,i))}post(e,i,r={}){return this.request("POST",e,pm(r,i))}put(e,i,r={}){return this.request("PUT",e,pm(r,i))}static{this.\u0275fac=function(i){return new(i||t)(b(Rs))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),ST=/^\)\]\}',?\n/,AT="X-Request-URL";function M0(t){if(t.url)return t.url;let n=AT.toLocaleLowerCase();return t.headers.get(n)}var TT=(()=>{class t{constructor(){this.fetchImpl=y(vm,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=y(F)}handle(e){return new ie(i=>{let r=new AbortController;return this.doRequest(e,r.signal,i).then(_m,o=>i.error(new ji({error:o}))),()=>r.abort()})}doRequest(e,i,r){return Oa(this,null,function*(){let o=this.createRequestInit(e),s;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,D({signal:i},o)));RT(h),r.next({type:Bi.Sent}),s=yield h}catch(h){r.error(new ji({error:h,status:h.status??0,statusText:h.statusText,url:e.urlWithParams,headers:h.headers}));return}let a=new di(s.headers),c=s.statusText,l=M0(s)??e.urlWithParams,d=s.status,u=null;if(e.reportProgress&&r.next(new Zl({headers:a,status:d,statusText:c,url:l})),s.body){let h=s.headers.get("content-length"),m=[],g=s.body.getReader(),C=0,S,O,E=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Oa(this,null,function*(){for(;;){let{done:W,value:H}=yield g.read();if(W)break;if(m.push(H),C+=H.length,e.reportProgress){O=e.responseType==="text"?(O??"")+(S??=new TextDecoder).decode(H,{stream:!0}):void 0;let z=()=>r.next({type:Bi.DownloadProgress,total:h?+h:void 0,loaded:C,partialText:O});E?E.run(z):z()}}}));let M=this.concatChunks(m,C);try{let W=s.headers.get("Content-Type")??"";u=this.parseBody(e,M,W)}catch(W){r.error(new ji({error:W,headers:new di(s.headers),status:s.status,statusText:s.statusText,url:M0(s)??e.urlWithParams}));return}}d===0&&(d=u?T0:0),d>=200&&d<300?(r.next(new Ns({body:u,headers:a,status:d,statusText:c,url:l})),r.complete()):r.error(new ji({error:u,headers:a,status:d,statusText:c,url:l}))})}parseBody(e,i,r){switch(e.responseType){case"json":let o=new TextDecoder().decode(i).replace(ST,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(e){let i={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((o,s)=>i[o]=s.join(",")),e.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let o=e.detectContentTypeHeader();o!==null&&(i["Content-Type"]=o)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:r}}concatChunks(e,i){let r=new Uint8Array(i),o=0;for(let s of e)r.set(s,o),o+=s.length;return r}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),vm=class{};function _m(){}function RT(t){t.then(_m,_m)}function OT(t,n){return n(t)}function NT(t,n,e){return(i,r)=>Kt(e,()=>n(i,o=>t(o,r)))}var R0=new I(""),PT=new I(""),FT=new I("",{providedIn:"root",factory:()=>!0});var S0=(()=>{class t extends Rs{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=y(ii),this.contributeToStability=y(FT)}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(R0),...this.injector.get(PT,[])]));this.chain=i.reduceRight((r,o)=>NT(r,o,this.injector),OT)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(cr(()=>this.pendingTasks.remove(i)))}else return this.chain(e,i=>this.backend.handle(i))}static{this.\u0275fac=function(i){return new(i||t)(b(Yl),b(mt))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})();var LT=/^\)\]\}',?\n/;function jT(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var A0=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new A(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?Fe(i.\u0275loadImpl()):q(null)).pipe(ft(()=>new ie(o=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((g,C)=>s.setRequestHeader(g,C.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let g=e.detectContentTypeHeader();g!==null&&s.setRequestHeader("Content-Type",g)}if(e.responseType){let g=e.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let g=s.statusText||"OK",C=new di(s.getAllResponseHeaders()),S=jT(s)||e.url;return c=new Zl({headers:C,status:s.status,statusText:g,url:S}),c},d=()=>{let{headers:g,status:C,statusText:S,url:O}=l(),E=null;C!==MT&&(E=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=E?T0:0);let M=C>=200&&C<300;if(e.responseType==="json"&&typeof E=="string"){let W=E;E=E.replace(LT,"");try{E=E!==""?JSON.parse(E):null}catch(H){E=W,M&&(M=!1,E={error:H,text:E})}}M?(o.next(new Ns({body:E,headers:g,status:C,statusText:S,url:O||void 0})),o.complete()):o.error(new ji({error:E,headers:g,status:C,statusText:S,url:O||void 0}))},u=g=>{let{url:C}=l(),S=new ji({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});o.error(S)},f=!1,h=g=>{f||(o.next(l()),f=!0);let C={type:Bi.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(C.total=g.total),e.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),o.next(C)},m=g=>{let C={type:Bi.UploadProgress,loaded:g.loaded};g.lengthComputable&&(C.total=g.total),o.next(C)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:Bi.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(b(Eo))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),O0=new I(""),VT="XSRF-TOKEN",BT=new I("",{providedIn:"root",factory:()=>VT}),zT="X-XSRF-TOKEN",HT=new I("",{providedIn:"root",factory:()=>zT}),Kl=class{},UT=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=$l(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(b(ee),b(Ot),b(BT))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})();function $T(t,n){let e=t.url.toLowerCase();if(!y(O0)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let i=y(Kl).getToken(),r=y(HT);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}function N0(...t){let n=[ym,A0,S0,{provide:Rs,useExisting:S0},{provide:Yl,useFactory:()=>y(TT,{optional:!0})??y(A0)},{provide:R0,useValue:$T,multi:!0},{provide:O0,useValue:!0},{provide:Kl,useClass:UT}];for(let e of t)n.push(...e.\u0275providers);return ll(n)}var xm=class extends Hl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Dm=class t extends xm{static makeCurrent(){_0(new t)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=WT();return e==null?null:GT(e)}resetBaseElement(){Ps=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return $l(document.cookie,n)}},Ps=null;function WT(){return Ps=Ps||document.querySelector("base"),Ps?Ps.getAttribute("href"):null}function GT(t){return new URL(t,document.baseURI).pathname}var Em=class{addToWindow(n){un.getAngularTestability=(i,r=!0)=>{let o=n.findTestabilityInTree(i,r);if(o==null)throw new A(5103,!1);return o},un.getAllAngularTestabilities=()=>n.getAllTestabilities(),un.getAllAngularRootElements=()=>n.getAllRootElements();let e=i=>{let r=un.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&i()};r.forEach(a=>{a.whenStable(s)})};un.frameworkStabilizers||(un.frameworkStabilizers=[]),un.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,i){if(e==null)return null;let r=n.getTestability(e);return r??(i?Ln().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},YT=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),Im=new I(""),L0=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new A(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(b(Im),b(F))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),Ql=class{constructor(n){this._doc=n}},wm="ng-app-id",j0=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wl(o),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${wm}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(wm),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(wm,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(b(ee),b(Es),b(Is,8),b(Ot))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),Cm={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/Math/MathML"},Mm=/%COMP%/g,V0="%COMP%",ZT=`_nghost-${V0}`,KT=`_ngcontent-${V0}`,QT=!0,XT=new I("",{providedIn:"root",factory:()=>QT});function JT(t){return KT.replace(Mm,t)}function e1(t){return ZT.replace(Mm,t)}function B0(t,n){return n.map(e=>e.replace(Mm,t))}var Xl=(()=>{class t{constructor(e,i,r,o,s,a,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Wl(a),this.defaultRenderer=new Fs(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===An.ShadowDom&&(i=ve(D({},i),{encapsulation:An.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Jl?r.applyToHost(e):r instanceof Ls&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case An.Emulated:o=new Jl(c,l,i,this.appId,d,s,a,u);break;case An.ShadowDom:return new km(c,l,e,i,s,a,this.nonce,u);default:o=new Ls(c,l,i,d,s,a,u);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(b(L0),b(j0),b(Es),b(XT),b(ee),b(Ot),b(F),b(Is))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),Fs=class{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(Cm[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(P0(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(P0(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new A(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=Cm[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=Cm[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(ti.DashCase|ti.Important)?n.style.setProperty(e,i,r&ti.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&ti.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if(typeof n=="string"&&(n=Ln().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function P0(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var km=class extends Fs{constructor(n,e,i,r,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=B0(r.id,r.styles);for(let d of l){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ls=class extends Fs{constructor(n,e,i,r,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=c?B0(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Jl=class extends Ls{constructor(n,e,i,r,o,s,a,c){let l=r+"-"+i.id;super(n,e,i,o,s,a,c,l),this.contentAttr=JT(l),this.hostAttr=e1(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}},t1=(()=>{class t extends Ql{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||t)(b(ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),F0=["alt","control","meta","shift"],n1={"\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"},i1={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},r1=(()=>{class t extends Ql{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ln().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),F0.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),s+=l+".")}),s+=o,i.length!=0||o.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=n1[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),F0.forEach(s=>{if(s!==r){let a=i1[s];a(e)&&(o+=s+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(b(ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})();function o1(){Dm.makeCurrent()}function s1(){return new On}function a1(){return U_(document),document}var c1=[{provide:Ot,useValue:mm},{provide:Mf,useValue:o1,multi:!0},{provide:ee,useFactory:a1,deps:[]}],z0=rm(u0,"browser",c1),l1=new I(""),d1=[{provide:Ms,useClass:Em,deps:[]},{provide:nm,useClass:Pl,deps:[F,Fl,Ms]},{provide:Pl,useClass:Pl,deps:[F,Fl,Ms]}],u1=[{provide:dl,useValue:"root"},{provide:On,useFactory:s1,deps:[]},{provide:Im,useClass:t1,multi:!0,deps:[ee,F,Ot]},{provide:Im,useClass:r1,multi:!0,deps:[ee]},Xl,j0,L0,{provide:Ri,useExisting:Xl},{provide:Eo,useClass:YT,deps:[]},[]],ed=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Es,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(b(l1,12))}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({providers:[...u1,...d1],imports:[Vn,h0]})}}return t})();var H0=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(b(ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var be=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(be||{}),Bn="*";function td(t,n){return{type:be.Trigger,name:t,definitions:n,options:{}}}function Vs(t,n=null){return{type:be.Animate,styles:n,timings:t}}function $0(t,n=null){return{type:be.Sequence,steps:t,options:n}}function zn(t){return{type:be.Style,styles:t,offset:null}}function Bs(t,n,e){return{type:be.State,name:t,styles:n,options:e}}function zs(t,n,e=null){return{type:be.Transition,expr:t,animation:n,options:e}}var zi=class{constructor(n=0,e=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=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},js=class{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},nd="!";function q0(t){return new A(3e3,!1)}function h1(){return new A(3100,!1)}function f1(){return new A(3101,!1)}function m1(t){return new A(3001,!1)}function p1(t){return new A(3003,!1)}function g1(t){return new A(3004,!1)}function b1(t,n){return new A(3005,!1)}function v1(){return new A(3006,!1)}function _1(){return new A(3007,!1)}function y1(t,n){return new A(3008,!1)}function w1(t){return new A(3002,!1)}function C1(t,n,e,i,r){return new A(3010,!1)}function x1(){return new A(3011,!1)}function D1(){return new A(3012,!1)}function E1(){return new A(3200,!1)}function I1(){return new A(3202,!1)}function k1(){return new A(3013,!1)}function M1(t){return new A(3014,!1)}function S1(t){return new A(3015,!1)}function A1(t){return new A(3016,!1)}function T1(t,n){return new A(3404,!1)}function R1(t){return new A(3502,!1)}function O1(t){return new A(3503,!1)}function N1(){return new A(3300,!1)}function P1(t){return new A(3504,!1)}function F1(t){return new A(3301,!1)}function L1(t,n){return new A(3302,!1)}function j1(t){return new A(3303,!1)}function V1(t,n){return new A(3400,!1)}function B1(t){return new A(3401,!1)}function z1(t){return new A(3402,!1)}function H1(t,n){return new A(3505,!1)}function Hi(t){switch(t.length){case 0:return new zi;case 1:return t[0];default:return new js(t)}}function ow(t,n,e=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(n.forEach(c=>{let l=c.get("offset"),d=l==s,u=d&&a||new Map;c.forEach((f,h)=>{let m=h,g=f;if(h!=="offset")switch(m=t.normalizePropertyName(m,r),g){case nd:g=e.get(h);break;case Bn:g=i.get(h);break;default:g=t.normalizeStyleValue(h,m,g,r);break}u.set(m,g)}),d||o.push(u),a=u,s=l}),r.length)throw R1(r);return o}function Qm(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Sm(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Sm(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Sm(e,"destroy",t)));break}}function Sm(t,n,e){let i=e.totalTime,r=!!e.disabled,o=Xm(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function Xm(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Vt(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function W0(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}var U1=typeof document>"u"?null:document.documentElement;function Jm(t){let n=t.parentNode||t.host||null;return n===U1?null:n}function $1(t){return t.substring(1,6)=="ebkit"}var Dr=null,G0=!1;function q1(t){Dr||(Dr=W1()||{},G0=Dr.style?"WebkitAppearance"in Dr.style:!1);let n=!0;return Dr.style&&!$1(t)&&(n=t in Dr.style,!n&&G0&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Dr.style)),n}function W1(){return typeof document<"u"?document.body:null}function sw(t,n){for(;n;){if(n===t)return!0;n=Jm(n)}return!1}function aw(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}var ep=(()=>{class t{validateStyleProperty(e){return q1(e)}containsElement(e,i){return sw(e,i)}getParentElement(e){return Jm(e)}query(e,i,r){return aw(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],c){return new zi(r,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})(),kr=class{static{this.NOOP=new ep}},Mr=class{};var G1=1e3,cw="{{",Y1="}}",lw="ng-enter",Pm="ng-leave",id="ng-trigger",cd=".ng-trigger",Y0="ng-animating",Fm=".ng-animating";function ui(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Lm(parseFloat(n[1]),n[2])}function Lm(t,n){switch(n){case"s":return t*G1;default:return t}}function ld(t,n,e){return t.hasOwnProperty("duration")?t:Z1(t,n,e)}function Z1(t,n,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(i);if(a===null)return n.push(q0(t)),{duration:0,delay:0,easing:""};r=Lm(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Lm(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else r=t;if(!e){let a=!1,c=n.length;r<0&&(n.push(h1()),a=!0),o<0&&(n.push(f1()),a=!0),a&&n.splice(c,0,q0(t))}return{duration:r,delay:o,easing:s}}function K1(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function Hn(t,n,e){n.forEach((i,r)=>{let o=tp(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Ir(t,n){n.forEach((e,i)=>{let r=tp(i);t.style[r]=""})}function Hs(t){return Array.isArray(t)?t.length==1?t[0]:$0(t):t}function Q1(t,n,e){let i=n.params||{},r=dw(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(m1(o))})}var jm=new RegExp(`${cw}\\s*(.+?)\\s*${Y1}`,"g");function dw(t){let n=[];if(typeof t=="string"){let e;for(;e=jm.exec(t);)n.push(e[1]);jm.lastIndex=0}return n}function $s(t,n,e){let i=`${t}`,r=i.replace(jm,(o,s)=>{let a=n[s];return a==null&&(e.push(p1(s)),a=""),a.toString()});return r==i?t:r}var X1=/-+([a-z0-9])/g;function tp(t){return t.replace(X1,(...n)=>n[1].toUpperCase())}function J1(t,n){return t===0||n===0}function eR(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,np(t,a)))}}return n}function jt(t,n,e){switch(n.type){case be.Trigger:return t.visitTrigger(n,e);case be.State:return t.visitState(n,e);case be.Transition:return t.visitTransition(n,e);case be.Sequence:return t.visitSequence(n,e);case be.Group:return t.visitGroup(n,e);case be.Animate:return t.visitAnimate(n,e);case be.Keyframes:return t.visitKeyframes(n,e);case be.Style:return t.visitStyle(n,e);case be.Reference:return t.visitReference(n,e);case be.AnimateChild:return t.visitAnimateChild(n,e);case be.AnimateRef:return t.visitAnimateRef(n,e);case be.Query:return t.visitQuery(n,e);case be.Stagger:return t.visitStagger(n,e);default:throw g1(n.type)}}function np(t,n){return window.getComputedStyle(t)[n]}var tR=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"]),dd=class extends Mr{normalizePropertyName(n,e){return tp(n)}normalizeStyleValue(n,e,i,r){let o="",s=i.toString().trim();if(tR.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(b1(n,i))}return s+o}};var ud="*";function nR(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>iR(i,e,n)):e.push(t),e}function iR(t,n,e){if(t[0]==":"){let c=rR(t,e);if(typeof c=="function"){n.push(c);return}t=c}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(S1(t)),n;let r=i[1],o=i[2],s=i[3];n.push(Z0(r,s));let a=r==ud&&s==ud;o[0]=="<"&&!a&&n.push(Z0(s,r))}function rR(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(A1(t)),"* => *"}}var rd=new Set(["true","1"]),od=new Set(["false","0"]);function Z0(t,n){let e=rd.has(t)||od.has(t),i=rd.has(n)||od.has(n);return(r,o)=>{let s=t==ud||t==r,a=n==ud||n==o;return!s&&e&&typeof r=="boolean"&&(s=r?rd.has(t):od.has(t)),!a&&i&&typeof o=="boolean"&&(a=o?rd.has(n):od.has(n)),s&&a}}var uw=":self",oR=new RegExp(`s*${uw}s*,?`,"g");function hw(t,n,e,i){return new Vm(t).build(n,e,i)}var K0="",Vm=class{constructor(n){this._driver=n}build(n,e,i){let r=new Bm(e);return this._resetContextStyleTimingState(r),jt(this,Hs(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=K0,n.collectedStyles=new Map,n.collectedStyles.set(K0,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],s=[];return n.name.charAt(0)=="@"&&e.errors.push(v1()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==be.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(a.type==be.Transition){let c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,s.push(c)}else e.errors.push(_1())}),{type:be.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{dw(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&e.errors.push(y1(n.name,[...o.values()]))}return{type:be.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=jt(this,Hs(n.animation),e),r=nR(n.expr,e.errors);return{type:be.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Er(n.options)}}visitSequence(n,e){return{type:be.Sequence,steps:n.steps.map(i=>jt(this,i,e)),options:Er(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(s=>{e.currentTime=i;let a=jt(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:be.Group,steps:o,options:Er(n.options)}}visitAnimate(n,e){let i=lR(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:zn({});if(o.type==be.Keyframes)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;let l={};i.easing&&(l.easing=i.easing),s=zn(l)}e.currentTime+=i.duration+i.delay;let c=this.visitStyle(s,e);c.isEmptyStep=a,r=c}return e.currentAnimateTimings=null,{type:be.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)typeof a=="string"?a===Bn?i.push(a):e.errors.push(w1(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(cw)>=0){o=!0;break}}}),{type:be.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=e.collectedStyles.get(e.currentQuerySelector),d=l.get(c),u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(C1(c,d.startTime,d.endTime,o,r)),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&Q1(a,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:be.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(x1()),i;let r=1,o=0,s=[],a=!1,c=!1,l=0,d=n.steps.map(S=>{let O=this._makeStyleAst(S,e),E=O.offset!=null?O.offset:cR(O.styles),M=0;return E!=null&&(o++,M=O.offset=E),c=c||M<0||M>1,a=a||M<l,l=M,s.push(M),O});c&&e.errors.push(D1()),a&&e.errors.push(E1());let u=n.steps.length,f=0;o>0&&o<u?e.errors.push(I1()):o==0&&(f=r/(u-1));let h=u-1,m=e.currentTime,g=e.currentAnimateTimings,C=g.duration;return d.forEach((S,O)=>{let E=f>0?O==h?1:f*O:s[O],M=E*C;e.currentTime=m+g.delay+M,g.duration=M,this._validateStyleAst(S,e),S.offset=E,i.styles.push(S)}),i}visitReference(n,e){return{type:be.Reference,animation:jt(this,Hs(n.animation),e),options:Er(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:be.AnimateChild,options:Er(n.options)}}visitAnimateRef(n,e){return{type:be.AnimateRef,animation:this.visitReference(n.animation,e),options:Er(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,s]=sR(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,Vt(e.collectedStyles,e.currentQuerySelector,new Map);let a=jt(this,Hs(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:be.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Er(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(k1());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:ld(n.timings,e.errors,!0);return{type:be.Stagger,animation:jt(this,Hs(n.animation),e),timings:i,options:null}}};function sR(t){let n=!!t.split(/\s*,\s*/).find(e=>e==uw);return n&&(t=t.replace(oR,"")),t=t.replace(/@\*/g,cd).replace(/@\w+/g,e=>cd+"-"+e.slice(1)).replace(/:animating/g,Fm),[t,n]}function aR(t){return t?D({},t):null}var Bm=class{constructor(n){this.errors=n,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 cR(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function lR(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=ld(t,n).duration;return Am(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Am(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=ld(e,n);return Am(r.duration,r.delay,r.easing)}function Er(t){return t?(t=D({},t),t.params&&(t.params=aR(t.params))):t={},t}function Am(t,n,e){return{duration:t,delay:n,easing:e}}function ip(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var qs=class{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},dR=1,uR=":enter",hR=new RegExp(uR,"g"),fR=":leave",mR=new RegExp(fR,"g");function fw(t,n,e,i,r,o=new Map,s=new Map,a,c,l=[]){return new zm().buildKeyframes(t,n,e,i,r,o,s,a,c,l)}var zm=class{buildKeyframes(n,e,i,r,o,s,a,c,l,d=[]){l=l||new qs;let u=new Hm(n,e,l,r,o,d,[]);u.options=c;let f=c.delay?ui(c.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([s],null,u.errors,c),jt(this,i,u);let h=u.timelines.filter(m=>m.containsAnimation());if(h.length&&a.size){let m;for(let g=h.length-1;g>=0;g--){let C=h[g];if(C.element===e){m=C;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,c)}return h.length?h.map(m=>m.buildKeyframes()):[ip(e,[],[],[],0,f,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let s=typeof o=="number"?o:ui($s(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,s=i.duration!=null?ui(i.duration):null,a=i.delay!=null?ui(i.delay):null;return s!==0&&n.forEach(c=>{let l=e.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),jt(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==be.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hd);let s=ui(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>jt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?ui(n.options.delay):0;n.steps.forEach(s=>{let a=e.createSubContext(n.options);o&&a.delayNextStep(o),jt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?$s(i,e.params,e.errors):i;return ld(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==be.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*o),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?ui(r.delay):0;o&&(e.previousNode.type===be.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=hd);let s=i,a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(n.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),jt(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe();let f=u.currentTimeline.currentTime;s=Math.max(s,f)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),c=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime;break}let d=e.currentTimeline;c&&d.delayNextStep(c);let u=d.currentTime;jt(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},hd={},Hm=class t{constructor(n,e,i,r,o,s,a,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new fd(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=ui(i.duration)),i.delay!=null&&(r.delay=ui(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=$s(o[a],s,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=hd,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new Um(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=n.replace(hR,"."+this._enterClassName),n=n.replace(mR,"."+this._leaveClassName);let c=i!=1,l=this._driver.query(this.element,n,c);i!==0&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!o&&a.length==0&&s.push(M1(e)),a}},fd=class t{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||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+=dR,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Bn),this._currentKeyframe.set(e,Bn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=pR(n,this._globalTimelineStyles);for(let[a,c]of s){let l=$s(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Bn),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((d,u)=>{d===nd?n.add(u):d===Bn&&e.add(u)}),i||l.set("offset",c/this.duration),r.push(l)});let o=[...n.values()],s=[...e.values()];if(i){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return ip(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Um=class extends fd{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=i+e,a=e/s,c=new Map(n[0]);c.set("offset",0),o.push(c);let l=new Map(n[0]);l.set("offset",Q0(a)),o.push(l);let d=n.length-1;for(let u=1;u<=d;u++){let f=new Map(n[u]),h=f.get("offset"),m=e+h*i;f.set("offset",Q0(m/s)),o.push(f)}i=s,e=0,r="",n=o}return ip(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function Q0(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function pR(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,Bn)}else for(let[o,s]of r)e.set(o,s)}),e}function X0(t,n,e,i,r,o,s,a,c,l,d,u,f){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:f}}var Tm={},md=class{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return gR(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,c,l,d){let u=[],f=this.ast.options&&this.ast.options.params||Tm,h=a&&a.params||Tm,m=this.buildStyles(i,h,u),g=c&&c.params||Tm,C=this.buildStyles(r,g,u),S=new Set,O=new Map,E=new Map,M=r==="void",W={params:mw(g,f),delay:this.ast.options?.delay},H=d?[]:fw(n,e,this.ast.animation,o,s,m,C,W,l,u),z=0;return H.forEach(we=>{z=Math.max(we.duration+we.delay,z)}),u.length?X0(e,this._triggerName,i,r,M,m,C,[],[],O,E,z,u):(H.forEach(we=>{let R=we.element,Ge=Vt(O,R,new Set);we.preStyleProps.forEach(Ke=>Ge.add(Ke));let qe=Vt(E,R,new Set);we.postStyleProps.forEach(Ke=>qe.add(Ke)),R!==e&&S.add(R)}),X0(e,this._triggerName,i,r,M,m,C,H,[...S.values()],O,E,z))}};function gR(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}function mw(t,n){let e=D({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var $m=class{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=mw(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=$s(s,r,e));let c=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,c,s,e),i.set(a,s)})}),i}};function bR(t,n,e){return new qm(t,n,e)}var qm=class{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new $m(r.style,o,i))}),J0(this.states,"true","1"),J0(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new md(n,r,this.states))}),this.fallbackTransition=vR(n,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};function vR(t,n,e){let i=[(s,a)=>!0],r={type:be.Sequence,steps:[],options:null},o={type:be.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new md(t,o,n)}function J0(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var _R=new qs,Wm=class{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){let i=[],r=[],o=hw(this._driver,e,i,r);if(i.length)throw O1(i);r.length&&void 0,this._animations.set(n,o)}_buildPlayer(n,e,i){let r=n.element,o=ow(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],o=this._animations.get(n),s,a=new Map;if(o?(s=fw(this._driver,e,o,lw,Pm,new Map,new Map,i,_R,r),s.forEach(d=>{let u=Vt(a,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(r.push(N1()),s=[]),r.length)throw P1(r);a.forEach((d,u)=>{d.forEach((f,h)=>{d.set(h,this._driver.computeStyle(u,h,Bn))})});let c=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),l=Hi(c);return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw F1(n);return e}listen(n,e,i,r){let o=Xm(e,"","","");return Qm(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(n,e,s);return}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},ew="ng-animate-queued",yR=".ng-animate-queued",Rm="ng-animate-disabled",wR=".ng-animate-disabled",CR="ng-star-inserted",xR=".ng-star-inserted",DR=[],pw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ER={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},bn="__ng_removed",Ws=class{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=kR(r),i){let o=n,{value:s}=o,a=Au(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},Us="void",Om=new Ws(Us),Gm=class{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,nn(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw L1(i,e);if(i==null||i.length==0)throw j1(e);if(!MR(i))throw V1(i,e);let o=Vt(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);let a=Vt(this._engine.statesByElement,n,new Map);return a.has(e)||(nn(n,id),nn(n,id+"-"+e),a.set(e,Om)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw B1(n);return e}trigger(n,e,i,r=!0){let o=this._getTrigger(e),s=new Gs(this.id,e,n),a=this._engine.statesByElement.get(n);a||(nn(n,id),nn(n,id+"-"+e),this._engine.statesByElement.set(n,a=new Map));let c=a.get(e),l=new Ws(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=Om),!(l.value===Us)&&c.value===l.value){if(!TR(c.params,l.params)){let g=[],C=o.matchStyles(c.value,c.params,g),S=o.matchStyles(l.value,l.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Ir(n,C),Hn(n,S)})}return}let f=Vt(this._engine.playersByElement,n,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let h=o.matchTransition(c.value,l.value,n,l.params),m=!1;if(!h){if(!r)return;h=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:h,fromState:c,toState:l,player:s,isFallbackTransition:m}),m||(nn(n,ew),s.onStart(()=>{Io(n,ew)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let C=this._engine.playersByElement.get(n);if(C){let S=C.indexOf(s);S>=0&&C.splice(S,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,cd,!0);i.forEach(r=>{if(r[bn])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),s=new Map;if(o){let a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let d=this.trigger(n,l,Us,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Hi(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let c=this._triggers.get(s).fallbackTransition,l=i.get(s)||Om,d=new Ws(Us),u=new Gs(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[bn];(!o||o===pw)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){nn(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let c=Xm(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,Qm(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},Ym=class{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,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,o)=>{}}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new Gm(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let c=r.get(a);if(c){let l=i.indexOf(c);i.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(n,e,i,r){if(sd(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!sd(e))return;let o=e[bn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){let s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),nn(n,Rm)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Io(n,Rm))}removeNode(n,e,i){if(sd(e)){let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[bn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return sd(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,cd,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,Fm,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Hi(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[bn];if(e&&e.setForRemoval){if(n[bn]=pw,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Rm)&&this.markElementAsDisabled(n,!1),this.driver.query(n,wR,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];nn(r,CR)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Hi(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw z1(n)}_flushAnimations(n,e){let i=new qs,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(j=>{d.add(j);let G=this.driver.query(j,yR,!0);for(let X=0;X<G.length;X++)d.add(G[X])});let u=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=iw(f,this.collectedEnterElements),m=new Map,g=0;h.forEach((j,G)=>{let X=lw+g++;m.set(G,X),j.forEach(oe=>nn(oe,X))});let C=[],S=new Set,O=new Set;for(let j=0;j<this.collectedLeaveElements.length;j++){let G=this.collectedLeaveElements[j],X=G[bn];X&&X.setForRemoval&&(C.push(G),S.add(G),X.hasAnimation?this.driver.query(G,xR,!0).forEach(oe=>S.add(oe)):O.add(G))}let E=new Map,M=iw(f,Array.from(S));M.forEach((j,G)=>{let X=Pm+g++;E.set(G,X),j.forEach(oe=>nn(oe,X))}),n.push(()=>{h.forEach((j,G)=>{let X=m.get(G);j.forEach(oe=>Io(oe,X))}),M.forEach((j,G)=>{let X=E.get(G);j.forEach(oe=>Io(oe,X))}),C.forEach(j=>{this.processLeaveNode(j)})});let W=[],H=[];for(let j=this._namespaceList.length-1;j>=0;j--)this._namespaceList[j].drainQueuedTransitions(e).forEach(X=>{let oe=X.player,ue=X.element;if(W.push(oe),this.collectedEnterElements.length){let rt=ue[bn];if(rt&&rt.setForMove){if(rt.previousTriggersValues&&rt.previousTriggersValues.has(X.triggerName)){let Cn=rt.previousTriggersValues.get(X.triggerName),xt=this.statesByElement.get(X.element);if(xt&&xt.has(X.triggerName)){let tr=xt.get(X.triggerName);tr.value=Cn,xt.set(X.triggerName,tr)}}oe.destroy();return}}let B=!u||!this.driver.containsElement(u,ue),Oe=E.get(ue),Ct=m.get(ue),We=this._buildInstruction(X,i,Ct,Oe,B);if(We.errors&&We.errors.length){H.push(We);return}if(B){oe.onStart(()=>Ir(ue,We.fromStyles)),oe.onDestroy(()=>Hn(ue,We.toStyles)),r.push(oe);return}if(X.isFallbackTransition){oe.onStart(()=>Ir(ue,We.fromStyles)),oe.onDestroy(()=>Hn(ue,We.toStyles)),r.push(oe);return}let es=[];We.timelines.forEach(rt=>{rt.stretchStartingKeyframe=!0,this.disabledNodes.has(rt.element)||es.push(rt)}),We.timelines=es,i.append(ue,We.timelines);let Iu={instruction:We,player:oe,element:ue};s.push(Iu),We.queriedElements.forEach(rt=>Vt(a,rt,[]).push(oe)),We.preStyleProps.forEach((rt,Cn)=>{if(rt.size){let xt=c.get(Cn);xt||c.set(Cn,xt=new Set),rt.forEach((tr,nr)=>xt.add(nr))}}),We.postStyleProps.forEach((rt,Cn)=>{let xt=l.get(Cn);xt||l.set(Cn,xt=new Set),rt.forEach((tr,nr)=>xt.add(nr))})});if(H.length){let j=[];H.forEach(G=>{j.push(H1(G.triggerName,G.errors))}),W.forEach(G=>G.destroy()),this.reportError(j)}let z=new Map,we=new Map;s.forEach(j=>{let G=j.element;i.has(G)&&(we.set(G,G),this._beforeAnimationBuild(j.player.namespaceId,j.instruction,z))}),r.forEach(j=>{let G=j.element;this._getPreviousPlayers(G,!1,j.namespaceId,j.triggerName,null).forEach(oe=>{Vt(z,G,[]).push(oe),oe.destroy()})});let R=C.filter(j=>rw(j,c,l)),Ge=new Map;nw(Ge,this.driver,O,l,Bn).forEach(j=>{rw(j,c,l)&&R.push(j)});let Ke=new Map;h.forEach((j,G)=>{nw(Ke,this.driver,new Set(j),c,nd)}),R.forEach(j=>{let G=Ge.get(j),X=Ke.get(j);Ge.set(j,new Map([...G?.entries()??[],...X?.entries()??[]]))});let ht=[],ze=[],wt={};s.forEach(j=>{let{element:G,player:X,instruction:oe}=j;if(i.has(G)){if(d.has(G)){X.onDestroy(()=>Hn(G,oe.toStyles)),X.disabled=!0,X.overrideTotalTime(oe.totalTime),r.push(X);return}let ue=wt;if(we.size>1){let Oe=G,Ct=[];for(;Oe=Oe.parentNode;){let We=we.get(Oe);if(We){ue=We;break}Ct.push(Oe)}Ct.forEach(We=>we.set(We,ue))}let B=this._buildAnimation(X.namespaceId,oe,z,o,Ke,Ge);if(X.setRealPlayer(B),ue===wt)ht.push(X);else{let Oe=this.playersByElement.get(ue);Oe&&Oe.length&&(X.parentPlayer=Hi(Oe)),r.push(X)}}else Ir(G,oe.fromStyles),X.onDestroy(()=>Hn(G,oe.toStyles)),ze.push(X),d.has(G)&&r.push(X)}),ze.forEach(j=>{let G=o.get(j.element);if(G&&G.length){let X=Hi(G);j.setRealPlayer(X)}}),r.forEach(j=>{j.parentPlayer?j.syncPlayerEvents(j.parentPlayer):j.destroy()});for(let j=0;j<C.length;j++){let G=C[j],X=G[bn];if(Io(G,Pm),X&&X.hasAnimation)continue;let oe=[];if(a.size){let B=a.get(G);B&&B.length&&oe.push(...B);let Oe=this.driver.query(G,Fm,!0);for(let Ct=0;Ct<Oe.length;Ct++){let We=a.get(Oe[Ct]);We&&We.length&&oe.push(...We)}}let ue=oe.filter(B=>!B.destroyed);ue.length?SR(this,G,ue):this.processLeaveNode(G)}return C.length=0,ht.forEach(j=>{this.players.push(j),j.onDone(()=>{j.destroy();let G=this.players.indexOf(j);this.players.splice(G,1)}),j.play()}),ht}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){let a=this.playersByQueriedElement.get(n);a&&(s=a)}else{let a=this.playersByElement.get(n);if(a){let c=!o||o==Us;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:r;for(let c of e.timelines){let l=c.element,d=l!==o,u=Vt(i,l,[]);this._getPreviousPlayers(l,d,s,a,e.toState).forEach(h=>{let m=h.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),h.destroy(),u.push(h)})}Ir(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){let a=e.triggerName,c=e.element,l=[],d=new Set,u=new Set,f=e.timelines.map(m=>{let g=m.element;d.add(g);let C=g[bn];if(C&&C.removedBeforeQueried)return new zi(m.duration,m.delay);let S=g!==c,O=AR((i.get(g)||DR).map(z=>z.getRealPlayer())).filter(z=>{let we=z;return we.element?we.element===g:!1}),E=o.get(g),M=s.get(g),W=ow(this._normalizer,m.keyframes,E,M),H=this._buildPlayer(m,W,O);if(m.subTimeline&&r&&u.add(g),S){let z=new Gs(n,a,g);z.setRealPlayer(H),l.push(z)}return H});l.forEach(m=>{Vt(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>IR(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>nn(m,Y0));let h=Hi(f);return h.onDestroy(()=>{d.forEach(m=>Io(m,Y0)),Hn(c,e.toStyles)}),u.forEach(m=>{Vt(r,m,[]).push(h)}),h}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new zi(n.duration,n.delay)}},Gs=class{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new zi,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(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Qm(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Vt(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function IR(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function kR(t){return t??null}function sd(t){return t&&t.nodeType===1}function MR(t){return t=="start"||t=="done"}function tw(t,n){let e=t.style.display;return t.style.display=n??"none",e}function nw(t,n,e,i,r){let o=[];e.forEach(c=>o.push(tw(c)));let s=[];i.forEach((c,l)=>{let d=new Map;c.forEach(u=>{let f=n.computeStyle(l,u,r);d.set(u,f),(!f||f.length==0)&&(l[bn]=ER,s.push(l))}),t.set(l,d)});let a=0;return e.forEach(c=>tw(c,o[a++])),s}function iw(t,n){let e=new Map;if(t.forEach(a=>e.set(a,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let c=o.get(a);if(c)return c;let l=a.parentNode;return e.has(l)?c=l:r.has(l)?c=i:c=s(l),o.set(a,c),c}return n.forEach(a=>{let c=s(a);c!==i&&e.get(c).push(a)}),e}function nn(t,n){t.classList?.add(n)}function Io(t,n){t.classList?.remove(n)}function SR(t,n,e){Hi(e).onDone(()=>t.processLeaveNode(n))}function AR(t){let n=[];return gw(t,n),n}function gw(t,n){for(let e=0;e<t.length;e++){let i=t[e];i instanceof js?gw(i.players,n):n.push(i)}}function TR(t,n){let e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}function rw(t,n,e){let i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0}var ko=class{constructor(n,e,i){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Ym(n.body,e,i),this._timelineEngine=new Wm(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){let s=n+"-"+r,a=this._triggerCache[s];if(!a){let c=[],l=[],d=hw(this._driver,o,c,l);if(c.length)throw T1(r,c);l.length&&void 0,a=bR(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,s]=W0(i),a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[s,a]=W0(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function RR(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Nm(n[0]),n.length>1&&(i=Nm(n[n.length-1]))):n instanceof Map&&(e=Nm(n)),e||i?new Zm(t,e,i):null}var Zm=class t{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(n);r||t.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Hn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Hn(this._element,this._initialStyles),this._endStyles&&(Hn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),Hn(this._element,this._initialStyles),this._state=3)}};function Nm(t){let n=null;return t.forEach((e,i)=>{OR(i)&&(n=n||new Map,n.set(i,e))}),n}function OR(t){return t==="display"||t==="position"}var pd=class{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:np(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},gd=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return sw(n,e)}getParentElement(n){return Jm(n)}query(n,e,i){return aw(n,e,i)}computeStyle(n,e,i){return np(n,e)}animate(n,e,i,r,o,s=[]){let a=r==0?"both":"forwards",c={duration:i,delay:r,fill:a};o&&(c.easing=o);let l=new Map,d=s.filter(h=>h instanceof pd);J1(i,r)&&d.forEach(h=>{h.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=K1(e).map(h=>new Map(h));u=eR(n,u,l);let f=RR(n,u);return new pd(n,u,c,f)}};var ad="@",bw="@.disabled",bd=class{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==ad&&e==bw?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},Km=class extends bd{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==ad?e.charAt(1)=="."&&e==bw?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if(e.charAt(0)==ad){let r=NR(n),o=e.slice(1),s="";return o.charAt(0)!=ad&&([o,s]=PR(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,i,a)})}return this.delegate.listen(n,e,i)}};function NR(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function PR(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var vd=class{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,e){let i="",r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let l=this._rendererCache,d=l.get(r);if(!d){let u=()=>l.delete(r);d=new bd(i,r,this.engine,u),l.set(r,d)}return d}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,n,l.name,l)};return e.data.animation.forEach(a),new Km(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}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 LR=(()=>{class t extends ko{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(b(ee),b(kr),b(Mr))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})();function jR(){return new dd}function VR(t,n,e){return new vd(t,n,e)}var _w=[{provide:Mr,useFactory:jR},{provide:ko,useClass:LR},{provide:Ri,useFactory:VR,deps:[Xl,ko,F]}],vw=[{provide:kr,useFactory:()=>new gd},{provide:et,useValue:"BrowserAnimations"},..._w],BR=[{provide:kr,useClass:ep},{provide:et,useValue:"NoopAnimations"},..._w],yw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?BR:vw}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({providers:vw,imports:[ed]})}}return t})();var Mw=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(p(Li),p(Z))}}static{this.\u0275dir=Y({type:t})}}return t})(),Sw=(()=>{class t extends Mw{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(t)))(r||t)}})()}static{this.\u0275dir=Y({type:t,features:[Ve]})}}return t})(),Js=new I("");var zR={provide:Js,useExisting:Zt(()=>Ao),multi:!0};function HR(){let t=Ln()?Ln().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var UR=new I(""),Ao=(()=>{class t extends Mw{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!HR())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(p(Li),p(Z),p(UR,8))}}static{this.\u0275dir=Y({type:t,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(i,r){i&1&&L("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[lt([zR]),Ve]})}}return t})();function Ui(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Aw(t){return t!=null&&typeof t.length=="number"}var To=new I(""),cp=new I(""),$R=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yd=class{static min(n){return qR(n)}static max(n){return Tw(n)}static required(n){return WR(n)}static requiredTrue(n){return GR(n)}static email(n){return YR(n)}static minLength(n){return ZR(n)}static maxLength(n){return KR(n)}static pattern(n){return QR(n)}static nullValidator(n){return wd(n)}static compose(n){return Lw(n)}static composeAsync(n){return jw(n)}};function qR(t){return n=>{if(Ui(n.value)||Ui(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function Tw(t){return n=>{if(Ui(n.value)||Ui(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function WR(t){return Ui(t.value)?{required:!0}:null}function GR(t){return t.value===!0?null:{required:!0}}function YR(t){return Ui(t.value)||$R.test(t.value)?null:{email:!0}}function ZR(t){return n=>Ui(n.value)||!Aw(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}function KR(t){return n=>Aw(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function QR(t){if(!t)return wd;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Ui(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function wd(t){return null}function Rw(t){return t!=null}function Ow(t){return Cr(t)?Fe(t):t}function Nw(t){let n={};return t.forEach(e=>{n=e!=null?D(D({},n),e):n}),Object.keys(n).length===0?null:n}function Pw(t,n){return n.map(e=>e(t))}function XR(t){return!t.validate}function Fw(t){return t.map(n=>XR(n)?n:e=>n.validate(e))}function Lw(t){if(!t)return null;let n=t.filter(Rw);return n.length==0?null:function(e){return Nw(Pw(e,n))}}function lp(t){return t!=null?Lw(Fw(t)):null}function jw(t){if(!t)return null;let n=t.filter(Rw);return n.length==0?null:function(e){let i=Pw(e,n).map(Ow);return Gu(i).pipe(ne(Nw))}}function dp(t){return t!=null?jw(Fw(t)):null}function ww(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Vw(t){return t._rawValidators}function Bw(t){return t._rawAsyncValidators}function rp(t){return t?Array.isArray(t)?t:[t]:[]}function Cd(t,n){return Array.isArray(t)?t.includes(n):t===n}function Cw(t,n){let e=rp(n);return rp(t).forEach(r=>{Cd(e,r)||e.push(r)}),e}function xw(t,n){return rp(n).filter(e=>!Cd(t,e))}var xd=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(n){this._rawValidators=n||[],this._composedValidatorFn=lp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=dp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Sr=class extends xd{get formDirective(){return null}get path(){return null}},Ar=class extends xd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},op=class{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},JR={"[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"},f5=ve(D({},JR),{"[class.ng-submitted]":"isSubmitted"}),Ad=(()=>{class t extends op{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(p(Ar,2))}}static{this.\u0275dir=Y({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&xe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ve]})}}return t})();var Ys="VALID",_d="INVALID",Mo="PENDING",Zs="DISABLED",$i=class{},Dd=class extends $i{constructor(n,e){super(),this.value=n,this.source=e}},Qs=class extends $i{constructor(n,e){super(),this.pristine=n,this.source=e}},Xs=class extends $i{constructor(n,e){super(),this.touched=n,this.source=e}},So=class extends $i{constructor(n,e){super(),this.status=n,this.source=e}},sp=class extends $i{constructor(n){super(),this.source=n}},ap=class extends $i{constructor(n){super(),this.source=n}};function zw(t){return(Td(t)?t.validators:t)||null}function eO(t){return Array.isArray(t)?lp(t):t||null}function Hw(t,n){return(Td(n)?n.asyncValidators:t)||null}function tO(t){return Array.isArray(t)?dp(t):t||null}function Td(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function nO(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new A(1e3,"");if(!i[e])throw new A(1001,"")}function iO(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new A(1002,"")})}var Ed=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=si(()=>this.statusReactive()),this.statusReactive=ri(void 0),this._pristine=si(()=>this.pristineReactive()),this.pristineReactive=ri(!0),this._touched=si(()=>this.touchedReactive()),this.touchedReactive=ri(!1),this._events=new V,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return tn(this.statusReactive)}set status(n){tn(()=>this.statusReactive.set(n))}get valid(){return this.status===Ys}get invalid(){return this.status===_d}get pending(){return this.status==Mo}get disabled(){return this.status===Zs}get enabled(){return this.status!==Zs}get pristine(){return tn(this.pristineReactive)}set pristine(n){tn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return tn(this.touchedReactive)}set touched(n){tn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Cw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Cw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(xw(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(xw(n,this._rawAsyncValidators))}hasValidator(n){return Cd(this._rawValidators,n)}hasAsyncValidator(n){return Cd(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(ve(D({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Xs(!0,i))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Xs(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(ve(D({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Qs(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Qs(!0,i))}markAsPending(n={}){this.status=Mo;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new So(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(ve(D({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Zs,this.errors=null,this._forEachChild(r=>{r.disable(ve(D({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Dd(this.value,i)),this._events.next(new So(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ve(D({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Ys,this._forEachChild(i=>{i.enable(ve(D({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(ve(D({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ys||this.status===Mo)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Dd(this.value,e)),this._events.next(new So(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(ve(D({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Zs:Ys}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Mo,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=Ow(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new So(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new K,this.statusChanges=new K}_calculateStatus(){return this._allControlsDisabled()?Zs:this.errors?_d:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mo)?Mo:this._anyControlsHaveStatus(_d)?_d:Ys}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Qs(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Xs(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Td(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=eO(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=tO(this._rawAsyncValidators)}},Id=class extends Ed{constructor(n,e,i){super(zw(e),Hw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){iO(this,!0,n),Object.keys(n).forEach(i=>{nO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var Rd=new I("CallSetDisabledState",{providedIn:"root",factory:()=>up}),up="always";function rO(t,n){return[...n.path,t]}function kd(t,n,e=up){hp(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),sO(t,n),cO(t,n),aO(t,n),oO(t,n)}function Dw(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Sd(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Md(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function oO(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function hp(t,n){let e=Vw(t);n.validator!==null?t.setValidators(ww(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=Bw(t);n.asyncValidator!==null?t.setAsyncValidators(ww(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();Md(n._rawValidators,r),Md(n._rawAsyncValidators,r)}function Sd(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=Vw(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=Bw(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Md(n._rawValidators,i),Md(n._rawAsyncValidators,i),e}function sO(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Uw(t,n)})}function aO(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Uw(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function Uw(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function cO(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function $w(t,n){t==null,hp(t,n)}function lO(t,n){return Sd(t,n)}function dO(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function uO(t){return Object.getPrototypeOf(t.constructor)===Sw}function qw(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function hO(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Ao?e=o:uO(o)?i=o:r=o}),r||i||e||null}function fO(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var mO={provide:Sr,useExisting:Zt(()=>fp)},Ks=Promise.resolve(),fp=(()=>{class t extends Sr{get submitted(){return tn(this.submittedReactive)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=si(()=>this.submittedReactive()),this.submittedReactive=ri(!1),this._directives=new Set,this.ngSubmit=new K,this.form=new Id({},lp(e),dp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ks.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),kd(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ks.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ks.then(()=>{let i=this._findContainer(e.path),r=new Id({});$w(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ks.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Ks.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),qw(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(p(To,10),p(cp,10),p(Rd,8))}}static{this.\u0275dir=Y({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&L("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lt([mO]),Ve]})}}return t})();function Ew(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Iw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ww=class extends Ed{constructor(n=null,e,i){super(zw(e),Hw(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Td(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Iw(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Ew(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Ew(this._onDisabledChange,n)}_forEachChild(n){}_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(n){Iw(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var pO=t=>t instanceof Ww;var gO={provide:Ar,useExisting:Zt(()=>ea)},kw=Promise.resolve(),ea=(()=>{class t extends Ar{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Ww,this._registered=!1,this.name="",this.update=new K,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=hO(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),dO(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){kd(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(e){kw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Se(i);kw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?rO(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(p(Sr,9),p(To,10),p(cp,10),p(Js,10),p(Be,8),p(Rd,8))}}static{this.\u0275dir=Y({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[lt([gO]),Ve,Ze]})}}return t})();var bO={provide:Js,useExisting:Zt(()=>mp),multi:!0},mp=(()=>{class t extends Sw{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(t)))(r||t)}})()}static{this.\u0275dir=Y({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&L("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[lt([bO]),Ve]})}}return t})();var vO={provide:Sr,useExisting:Zt(()=>pp)},pp=(()=>{class t extends Sr{get submitted(){return tn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=si(()=>this._submittedReactive()),this._submittedReactive=ri(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new K,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Sd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return kd(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Dw(e.control||null,e,!1),fO(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),qw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new sp(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new ap(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(Dw(i||null,e),pO(r)&&(kd(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);$w(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&lO(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hp(this.form,this),this._oldForm&&Sd(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(i){return new(i||t)(p(To,10),p(cp,10),p(Rd,8))}}static{this.\u0275dir=Y({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&L("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[lt([vO]),Ve,Ze]})}}return t})();function _O(t){return typeof t=="number"?t:parseFloat(t)}var yO=(()=>{class t{constructor(){this._validator=wd}ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):wd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,features:[Ze]})}}return t})(),wO={provide:To,useExisting:Zt(()=>gp),multi:!0},gp=(()=>{class t extends yO{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>_O(e),this.createValidator=e=>Tw(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(t)))(r||t)}})()}static{this.\u0275dir=Y({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&Pe("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[lt([wO]),Ve]})}}return t})();var CO=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})();var Gw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Rd,useValue:e.callSetDisabledState??up}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[CO]})}}return t})();var ye="primary",ma=Symbol("RouteTitle"),Cp=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Lo(t){return new Cp(t)}function xO(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let o=0;o<i.length;o++){let s=i[o],a=t[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function DO(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Un(t[e],n[e]))return!1;return!0}function Un(t,n){let e=t?xp(t):void 0,i=n?xp(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!rC(t[r],n[r]))return!1;return!0}function xp(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function rC(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}else return t===n}function oC(t){return t.length>0?t[t.length-1]:null}function Wi(t){return ls(t)?t:Cr(t)?Fe(Promise.resolve(t)):q(t)}var EO={exact:aC,subset:cC},sC={exact:IO,subset:kO,ignored:()=>!0};function Yw(t,n,e){return EO[e.paths](t.root,n.root,e.matrixParams)&&sC[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function IO(t,n){return Un(t,n)}function aC(t,n,e){if(!Rr(t.segments,n.segments)||!Pd(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!aC(t.children[i],n.children[i],e))return!1;return!0}function kO(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>rC(t[e],n[e]))}function cC(t,n,e){return lC(t,n,n.segments,e)}function lC(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Rr(r,e)||n.hasChildren()||!Pd(r,e,i))}else if(t.segments.length===e.length){if(!Rr(t.segments,e)||!Pd(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!cC(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Rr(t.segments,r)||!Pd(t.segments,r,i)||!t.children[ye]?!1:lC(t.children[ye],n,o,i)}}function Pd(t,n,e){return n.every((i,r)=>sC[e](t[r].parameters,i.parameters))}var fi=class{constructor(n=new Re([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Lo(this.queryParams),this._queryParamMap}toString(){return AO.serialize(this)}},Re=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fd(this)}},Tr=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Lo(this.parameters),this._parameterMap}toString(){return uC(this)}};function MO(t,n){return Rr(t,n)&&t.every((e,i)=>Un(e.parameters,n[i].parameters))}function Rr(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function SO(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===ye&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==ye&&(e=e.concat(n(r,i)))}),e}var pa=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>new jo,providedIn:"root"})}}return t})(),jo=class{parse(n){let e=new Ep(n);return new fi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${ta(n.root,!0)}`,i=OO(n.queryParams),r=typeof n.fragment=="string"?`#${TO(n.fragment)}`:"";return`${e}${i}${r}`}},AO=new jo;function Fd(t){return t.segments.map(n=>uC(n)).join("/")}function ta(t,n){if(!t.hasChildren())return Fd(t);if(n){let e=t.children[ye]?ta(t.children[ye],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==ye&&i.push(`${r}:${ta(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=SO(t,(i,r)=>r===ye?[ta(t.children[ye],!1)]:[`${r}:${ta(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[ye]!=null?`${Fd(t)}/${e[0]}`:`${Fd(t)}/(${e.join("//")})`}}function dC(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Od(t){return dC(t).replace(/%3B/gi,";")}function TO(t){return encodeURI(t)}function Dp(t){return dC(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ld(t){return decodeURIComponent(t)}function Zw(t){return Ld(t.replace(/\+/g,"%20"))}function uC(t){return`${Dp(t.path)}${RO(t.parameters)}`}function RO(t){return Object.entries(t).map(([n,e])=>`;${Dp(n)}=${Dp(e)}`).join("")}function OO(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Od(e)}=${Od(r)}`).join("&"):`${Od(e)}=${Od(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var NO=/^[^\/()?;#]+/;function vp(t){let n=t.match(NO);return n?n[0]:""}var PO=/^[^\/()?;=#]+/;function FO(t){let n=t.match(PO);return n?n[0]:""}var LO=/^[^=?&#]+/;function jO(t){let n=t.match(LO);return n?n[0]:""}var VO=/^[^&#]+/;function BO(t){let n=t.match(VO);return n?n[0]:""}var Ep=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[ye]=new Re(n,e)),i}parseSegment(){let n=vp(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(n),new Tr(Ld(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=FO(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=vp(this.remaining);r&&(i=r,this.capture(i))}n[Ld(e)]=Ld(i)}parseQueryParam(n){let e=jO(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=BO(this.remaining);s&&(i=s,this.capture(i))}let r=Zw(e),o=Zw(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=vp(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new A(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=ye);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[ye]:new Re([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new A(4011,!1)}};function hC(t){return t.segments.length>0?new Re([],{[ye]:t}):t}function fC(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=fC(r);if(i===ye&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new Re(t.segments,n);return zO(e)}function zO(t){if(t.numberOfChildren===1&&t.children[ye]){let n=t.children[ye];return new Re(t.segments.concat(n.segments),n.children)}return t}function Or(t){return t instanceof fi}function HO(t,n,e=null,i=null){let r=mC(t);return pC(r,n,e,i)}function mC(t){let n;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new Re(o.url,s);return o===t&&(n=a),a}let i=e(t.root),r=hC(i);return n??r}function pC(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return _p(r,r,r,e,i);let o=UO(n);if(o.toRoot())return _p(r,r,new Re([],{}),e,i);let s=$O(o,r,t),a=s.processChildren?ra(s.segmentGroup,s.index,o.commands):bC(s.segmentGroup,s.index,o.commands);return _p(r,s.segmentGroup,a,e,i)}function jd(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function aa(t){return typeof t=="object"&&t!=null&&t.outlets}function _p(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;t===n?s=e:s=gC(t,n,e);let a=hC(fC(s));return new fi(a,o,r)}function gC(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=gC(o,n,e)}),new Re(t.segments,i)}var Vd=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&jd(i[0]))throw new A(4003,!1);let r=i.find(aa);if(r&&r!==oC(i))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function UO(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Vd(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Vd(e,n,i)}var No=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function $O(t,n,e){if(t.isAbsolute)return new No(n,!0,0);if(!e)return new No(n,!1,NaN);if(e.parent===null)return new No(e,!0,0);let i=jd(t.commands[0])?0:1,r=e.segments.length-1+i;return qO(e,r,t.numberOfDoubleDots)}function qO(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new A(4005,!1);r=i.segments.length}return new No(i,!1,r-o)}function WO(t){return aa(t[0])?t[0].outlets:{[ye]:t}}function bC(t,n,e){if(t??=new Re([],{}),t.segments.length===0&&t.hasChildren())return ra(t,n,e);let i=GO(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new Re(t.segments.slice(0,i.pathIndex),{});return o.children[ye]=new Re(t.segments.slice(i.pathIndex),t.children),ra(o,0,r)}else return i.match&&r.length===0?new Re(t.segments,{}):i.match&&!t.hasChildren()?Ip(t,n,e):i.match?ra(t,0,r):Ip(t,n,e)}function ra(t,n,e){if(e.length===0)return new Re(t.segments,{});{let i=WO(e),r={};if(Object.keys(i).some(o=>o!==ye)&&t.children[ye]&&t.numberOfChildren===1&&t.children[ye].segments.length===0){let o=ra(t.children[ye],n,e);return new Re(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=bC(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new Re(t.segments,r)}}function GO(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let s=t.segments[r],a=e[i];if(aa(a))break;let c=`${a}`,l=i<e.length-1?e[i+1]:null;if(r>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Qw(c,l,s))return o;i+=2}else{if(!Qw(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function Ip(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(aa(o)){let c=YO(o.outlets);return new Re(i,c)}if(r===0&&jd(e[0])){let c=t.segments[n];i.push(new Tr(c.path,Kw(e[0]))),r++;continue}let s=aa(o)?o.outlets[ye]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&jd(a)?(i.push(new Tr(s,Kw(a))),r+=2):(i.push(new Tr(s,{})),r++)}return new Re(i,{})}function YO(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=Ip(new Re([],{}),0,i))}),n}function Kw(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function Qw(t,n,e){return t==e.path&&Un(n,e.parameters)}var oa="imperative",ut=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ut||{}),rn=class{constructor(n,e){this.id=n,this.url=e}},Vo=class extends rn{constructor(n,e,i="imperative",r=null){super(n,e),this.type=ut.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ht=class extends rn{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=ut.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},zt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(zt||{}),Bd=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Bd||{}),hi=class extends rn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=ut.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},qi=class extends rn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=ut.NavigationSkipped}},ca=class extends rn{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=ut.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},zd=class extends rn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ut.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kp=class extends rn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ut.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mp=class extends rn{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=ut.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Sp=class extends rn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ut.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ap=class extends rn{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=ut.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tp=class{constructor(n){this.route=n,this.type=ut.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rp=class{constructor(n){this.route=n,this.type=ut.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Op=class{constructor(n){this.snapshot=n,this.type=ut.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Np=class{constructor(n){this.snapshot=n,this.type=ut.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pp=class{constructor(n){this.snapshot=n,this.type=ut.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fp=class{constructor(n){this.snapshot=n,this.type=ut.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hd=class{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=ut.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},la=class{},Bo=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function ZO(t,n){return t.providers&&!t._injector&&(t._injector=Al(t.providers,n,`Route: ${t.path}`)),t._injector??n}function vn(t){return t.outlet||ye}function KO(t,n){let e=t.filter(i=>vn(i)===n);return e.push(...t.filter(i=>vn(i)!==n)),e}function ga(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Lp=class{get injector(){return ga(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new ba(this.rootInjector),this.attachRef=null}},ba=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Lp(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)(b(mt))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ud=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=jp(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=jp(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Vp(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Vp(n,this._root).map(e=>e.value)}};function jp(t,n){if(t===n.value)return n;for(let e of n.children){let i=jp(t,e);if(i)return i}return null}function Vp(t,n){if(t===n.value)return[n];for(let e of n.children){let i=Vp(t,e);if(i.length)return i.unshift(n),i}return[]}var Bt=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Oo(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $d=class extends Ud{constructor(n,e){super(n),this.snapshot=e,Yp(this,n)}toString(){return this.snapshot.toString()}};function vC(t){let n=QO(t),e=new Je([new Tr("",{})]),i=new Je({}),r=new Je({}),o=new Je({}),s=new Je(""),a=new Nr(e,i,o,s,r,ye,t,n.root);return a.snapshot=n.root,new $d(new Bt(a,[]),n)}function QO(t){let n={},e={},i={},r="",o=new Po([],n,i,r,e,ye,t,null,{});return new Wd("",new Bt(o,[]))}var Nr=class{constructor(n,e,i,r,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(ne(l=>l[ma]))??q(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ne(n=>Lo(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne(n=>Lo(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qd(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:D(D({},n.params),t.params),data:D(D({},n.data),t.data),resolve:D(D(D(D({},t.data),n.data),r?.data),t._resolvedData)}:i={params:D({},t.params),data:D({},t.data),resolve:D(D({},t.data),t._resolvedData??{})},r&&yC(r)&&(i.resolve[ma]=r.title),i}var Po=class{get title(){return this.data?.[ma]}constructor(n,e,i,r,o,s,a,c,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Lo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Lo(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Wd=class extends Ud{constructor(n,e){super(e),this.url=n,Yp(this,e)}toString(){return _C(this._root)}};function Yp(t,n){n.value._routerState=t,n.children.forEach(e=>Yp(t,e))}function _C(t){let n=t.children.length>0?` { ${t.children.map(_C).join(", ")} } `:"";return`${t.value}${n}`}function yp(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Un(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Un(n.params,e.params)||t.paramsSubject.next(e.params),DO(n.url,e.url)||t.urlSubject.next(e.url),Un(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Bp(t,n){let e=Un(t.params,n.params)&&MO(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||Bp(t.parent,n.parent))}function yC(t){return typeof t.title=="string"||t.title===null}var Zp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ye,this.activateEvents=new K,this.deactivateEvents=new K,this.attachEvents=new K,this.detachEvents=new K,this.parentContexts=y(ba),this.location=y(vt),this.changeDetector=y(Be),this.inputBinder=y(Xd,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new A(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new zp(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ze]})}}return t})(),zp=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Nr?this.route:n===ba?this.childContexts:this.parent.get(n,e)}},Xd=new I(""),Xw=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=ar([i.queryParams,i.params,i.data]).pipe(ft(([o,s,a],c)=>(a=D(D(D({},o),s),a),c===0?q(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=f0(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})();function XO(t,n,e){let i=da(t,n._root,e?e._root:void 0);return new $d(i,n)}function da(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=JO(t,n,e);return new Bt(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>da(t,a)),s}}let i=eN(n.value),r=n.children.map(o=>da(t,o));return new Bt(i,r)}}function JO(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return da(t,i,r);return da(t,i)})}function eN(t){return new Nr(new Je(t.url),new Je(t.params),new Je(t.queryParams),new Je(t.fragment),new Je(t.data),t.outlet,t.component,t)}var ua=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},wC="ngNavigationCancelingError";function Gd(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Or(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=CC(!1,zt.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function CC(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[wC]=!0,e.cancellationCode=n,e}function tN(t){return xC(t)&&Or(t.url)}function xC(t){return!!t&&t[wC]}var nN=(t,n,e,i)=>ne(r=>(new Hp(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),Hp=class{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),yp(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Oo(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Oo(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Oo(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=Oo(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new Fp(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Np(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(yp(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),yp(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}},Yd=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Fo=class{constructor(n,e){this.component=n,this.route=e}};function iN(t,n,e){let i=t._root,r=n?n._root:null;return na(i,r,e,[i.value])}function rN(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ho(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!Tv(t)?t:n.get(t):i}function na(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Oo(n);return t.children.forEach(s=>{oN(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>sa(a,e.getContext(s),r)),r}function oN(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=sN(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Yd(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?na(t,n,a?a.children:null,i,r):na(t,n,e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Fo(a.outlet.component,s))}else s&&sa(n,a,r),r.canActivateChecks.push(new Yd(i)),o.component?na(t,null,a?a.children:null,i,r):na(t,null,e,i,r);return r}function sN(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Rr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Rr(t.url,n.url)||!Un(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bp(t,n)||!Un(t.queryParams,n.queryParams);case"paramsChange":default:return!Bp(t,n)}}function sa(t,n,e){let i=Oo(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?n?sa(s,n.children.getContext(o),e):sa(s,null,e):sa(s,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Fo(n.outlet.component,r)):e.canDeactivateChecks.push(new Fo(null,r)):e.canDeactivateChecks.push(new Fo(null,r))}function va(t){return typeof t=="function"}function aN(t){return typeof t=="boolean"}function cN(t){return t&&va(t.canLoad)}function lN(t){return t&&va(t.canActivate)}function dN(t){return t&&va(t.canActivateChild)}function uN(t){return t&&va(t.canDeactivate)}function hN(t){return t&&va(t.canMatch)}function DC(t){return t instanceof Kn||t?.name==="EmptyError"}var Nd=Symbol("INITIAL_VALUE");function zo(){return ft(t=>ar(t.map(n=>n.pipe(pt(1),Pt(Nd)))).pipe(ne(n=>{for(let e of n)if(e!==!0){if(e===Nd)return Nd;if(e===!1||fN(e))return e}return!0}),ke(n=>n!==Nd),pt(1)))}function fN(t){return Or(t)||t instanceof ua}function mN(t,n){return Xe(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?q(ve(D({},e),{guardsResult:!0})):pN(s,i,r,t).pipe(Xe(a=>a&&aN(a)?gN(i,o,t,n):q(a)),ne(a=>ve(D({},e),{guardsResult:a})))})}function pN(t,n,e,i){return Fe(t).pipe(Xe(r=>wN(r.component,r.route,e,n,i)),kn(r=>r!==!0,!0))}function gN(t,n,e,i){return Fe(n).pipe(Qn(r=>wi(vN(r.route.parent,i),bN(r.route,i),yN(t,r.path,e),_N(t,r.route,e))),kn(r=>r!==!0,!0))}function bN(t,n){return t!==null&&n&&n(new Pp(t)),q(!0)}function vN(t,n){return t!==null&&n&&n(new Op(t)),q(!0)}function _N(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return q(!0);let r=i.map(o=>Ci(()=>{let s=ga(n)??e,a=Ho(o,s),c=lN(a)?a.canActivate(n,t):Kt(s,()=>a(n,t));return Wi(c).pipe(kn())}));return q(r).pipe(zo())}function yN(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>rN(s)).filter(s=>s!==null).map(s=>Ci(()=>{let a=s.guards.map(c=>{let l=ga(s.node)??e,d=Ho(c,l),u=dN(d)?d.canActivateChild(i,t):Kt(l,()=>d(i,t));return Wi(u).pipe(kn())});return q(a).pipe(zo())}));return q(o).pipe(zo())}function wN(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return q(!0);let s=o.map(a=>{let c=ga(n)??r,l=Ho(a,c),d=uN(l)?l.canDeactivate(t,n,e,i):Kt(c,()=>l(t,n,e,i));return Wi(d).pipe(kn())});return q(s).pipe(zo())}function CN(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return q(!0);let o=r.map(s=>{let a=Ho(s,t),c=cN(a)?a.canLoad(n,e):Kt(t,()=>a(n,e));return Wi(c)});return q(o).pipe(zo(),EC(i))}function EC(t){return Hu(nt(n=>{if(typeof n!="boolean")throw Gd(t,n)}),ne(n=>n===!0))}function xN(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return q(!0);let o=r.map(s=>{let a=Ho(s,t),c=hN(a)?a.canMatch(n,e):Kt(t,()=>a(n,e));return Wi(c)});return q(o).pipe(zo(),EC(i))}var ha=class{constructor(n){this.segmentGroup=n||null}},fa=class extends Error{constructor(n){super(),this.urlTree=n}};function Ro(t){return to(new ha(t))}function DN(t){return to(new A(4e3,!1))}function EN(t){return to(CC(!1,zt.GuardRejected))}var Up=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return q(i);if(r.numberOfChildren>1||!r.children[ye])return DN(`${n.redirectTo}`);r=r.children[ye]}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,params:h,data:m,title:g}=r,C=Kt(o,()=>a({params:h,data:m,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:f,title:g}));if(C instanceof fi)throw new fa(C);e=C}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new fa(s);return s}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new fi(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,i,r)}),new Re(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new A(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},$p={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function IN(t,n,e,i,r){let o=IC(t,n,e);return o.matched?(i=ZO(n,i),xN(i,n,e,r).pipe(ne(s=>s===!0?o:D({},$p)))):q(o)}function IC(t,n,e){if(n.path==="**")return kN(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?D({},$p):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||xO)(e,t,n);if(!r)return D({},$p);let o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=r.consumed.length>0?D(D({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function kN(t){return{matched:!0,parameters:t.length>0?oC(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Jw(t,n,e,i){return e.length>0&&AN(t,e,i)?{segmentGroup:new Re(n,SN(i,new Re(e,t.children))),slicedSegments:[]}:e.length===0&&TN(t,e,i)?{segmentGroup:new Re(t.segments,MN(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Re(t.segments,t.children),slicedSegments:e}}function MN(t,n,e,i){let r={};for(let o of e)if(Jd(t,n,o)&&!i[vn(o)]){let s=new Re([],{});r[vn(o)]=s}return D(D({},i),r)}function SN(t,n){let e={};e[ye]=n;for(let i of t)if(i.path===""&&vn(i)!==ye){let r=new Re([],{});e[vn(i)]=r}return e}function AN(t,n,e){return e.some(i=>Jd(t,n,i)&&vn(i)!==ye)}function TN(t,n,e){return e.some(i=>Jd(t,n,i))}function Jd(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function RN(t,n,e){return n.length===0&&!t.children[e]}var qp=class{};function ON(t,n,e,i,r,o,s="emptyOnly"){return new Wp(t,n,e,i,r,s,o).recognize()}var NN=31,Wp=class{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Up(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new A(4002,`'${n.segmentGroup}'`)}recognize(){let n=Jw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(ne(({children:e,rootSnapshot:i})=>{let r=new Bt(i,e),o=new Wd("",r),s=HO(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Po([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ye,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,ye,e).pipe(ne(i=>({children:i,rootSnapshot:e})),xi(i=>{if(i instanceof fa)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof ha?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(ne(s=>s instanceof Bt?[s]:[]))}processChildren(n,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Fe(o).pipe(Qn(s=>{let a=i.children[s],c=KO(e,s);return this.processSegmentGroup(n,c,a,s,r)}),Ku((s,a)=>(s.push(...a),s)),Di(null),Zu(),Xe(s=>{if(s===null)return Ro(i);let a=kC(s);return PN(a),q(a)}))}processSegment(n,e,i,r,o,s,a){return Fe(e).pipe(Qn(c=>this.processSegmentAgainstRoute(c._injector??n,e,c,i,r,o,s,a).pipe(xi(l=>{if(l instanceof ha)return q(null);throw l}))),kn(c=>!!c),xi(c=>{if(DC(c))return RN(i,r,o)?q(new qp):Ro(i);throw c}))}processSegmentAgainstRoute(n,e,i,r,o,s,a,c){return vn(i)!==s&&(s===ye||!Jd(r,o,i))?Ro(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s,c):Ro(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=IC(e,r,o);if(!c)return Ro(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>NN&&(this.allowRedirects=!1));let h=new Po(o,l,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,eC(r),vn(r),r.component??r._loadedComponent??null,r,tC(r)),m=qd(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(m.params),h.data=Object.freeze(m.data);let g=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,h,n);return this.applyRedirects.lineralizeSegments(r,g).pipe(Xe(C=>this.processSegment(n,i,e,C.concat(f),s,!1,a)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a=IN(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ft(c=>c.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(ft(({routes:l})=>{let d=i._loadedInjector??n,{parameters:u,consumedSegments:f,remainingSegments:h}=c,m=new Po(f,u,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,eC(i),vn(i),i.component??i._loadedComponent??null,i,tC(i)),g=qd(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(g.params),m.data=Object.freeze(g.data);let{segmentGroup:C,slicedSegments:S}=Jw(e,f,h,l);if(S.length===0&&C.hasChildren())return this.processChildren(d,l,C,m).pipe(ne(E=>new Bt(m,E)));if(l.length===0&&S.length===0)return q(new Bt(m,[]));let O=vn(i)===o;return this.processSegment(d,l,C,S,O?ye:o,!0,m).pipe(ne(E=>new Bt(m,E instanceof Bt?[E]:[])))}))):Ro(e)))}getChildConfig(n,e,i){return e.children?q({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?q({routes:e._loadedRoutes,injector:e._loadedInjector}):CN(n,e,i,this.urlSerializer).pipe(Xe(r=>r?this.configLoader.loadChildren(n,e).pipe(nt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):EN(e))):q({routes:[],injector:n})}};function PN(t){t.sort((n,e)=>n.value.outlet===ye?-1:e.value.outlet===ye?1:n.value.outlet.localeCompare(e.value.outlet))}function FN(t){let n=t.value.routeConfig;return n&&n.path===""}function kC(t){let n=[],e=new Set;for(let i of t){if(!FN(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=kC(i.children);n.push(new Bt(i.value,r))}return n.filter(i=>!e.has(i))}function eC(t){return t.data||{}}function tC(t){return t.resolve||{}}function LN(t,n,e,i,r,o){return Xe(s=>ON(t,n,e,i,s.extractedUrl,r,o).pipe(ne(({state:a,tree:c})=>ve(D({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function jN(t,n){return Xe(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return q(e);let o=new Set(r.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of MC(c))s.add(l);let a=0;return Fe(s).pipe(Qn(c=>o.has(c)?VN(c,i,t,n):(c.data=qd(c,c.parent,t).resolve,q(void 0))),nt(()=>a++),io(1),Xe(c=>a===s.size?q(e):st))})}function MC(t){let n=t.children.map(e=>MC(e)).flat();return[t,...n]}function VN(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!yC(r)&&(o[ma]=r.title),BN(o,t,n,i).pipe(ne(s=>(t._resolvedData=s,t.data=qd(t,t.parent,e).resolve,null)))}function BN(t,n,e,i){let r=xp(t);if(r.length===0)return q({});let o={};return Fe(r).pipe(Xe(s=>zN(t[s],n,e,i).pipe(kn(),nt(a=>{if(a instanceof ua)throw Gd(new jo,a);o[s]=a}))),io(1),Yu(o),xi(s=>DC(s)?st:to(s)))}function zN(t,n,e,i){let r=ga(n)??i,o=Ho(t,r),s=o.resolve?o.resolve(n,e):Kt(r,()=>o(n,e));return Wi(s)}function wp(t){return ft(n=>{let e=t(n);return e?Fe(e).pipe(ne(()=>n)):q(n)})}var SC=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===ye);return i}getResolvedTitleForRoute(e){return e.data[ma]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>y(HN),providedIn:"root"})}}return t})(),HN=(()=>{class t extends SC{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(b(H0))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),_a=new I("",{providedIn:"root",factory:()=>({})}),UN=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=de({type:t,selectors:[["ng-component"]],standalone:!0,features:[$e],decls:1,vars:0,template:function(i,r){i&1&&se(0,"router-outlet")},dependencies:[Zp],encapsulation:2})}}return t})();function Kp(t){let n=t.children&&t.children.map(Kp),e=n?ve(D({},t),{children:n}):D({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==ye&&(e.component=UN),e}var Zd=new I(""),Qp=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=y(Vl)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return q(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Wi(e.loadComponent()).pipe(ne(AC),nt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),cr(()=>{this.componentLoaders.delete(e)})),r=new Xr(i,()=>new V).pipe(Qr());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return q({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=$N(i,this.compiler,e,this.onLoadEndListener).pipe(cr(()=>{this.childrenLoaders.delete(i)})),s=new Xr(o,()=>new V).pipe(Qr());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function $N(t,n,e,i){return Wi(t.loadChildren()).pipe(ne(AC),Xe(r=>r instanceof _s||Array.isArray(r)?q(r):Fe(n.compileModuleAsync(r))),ne(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(Zd,[],{optional:!0,self:!0}).flat()),{routes:s.map(Kp),injector:o}}))}function qN(t){return t&&typeof t=="object"&&"default"in t}function AC(t){return qN(t)?t.default:t}var Xp=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>y(WN),providedIn:"root"})}}return t})(),WN=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),TC=new I(""),RC=new I("");function GN(t,n,e){let i=t.get(RC),r=t.get(ee);return t.get(F).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),YN(t))),{onViewTransitionCreated:c}=i;return c&&Kt(t,()=>c({transition:a,from:n,to:e})),s})}function YN(t){return new Promise(n=>{fn({read:()=>setTimeout(n)},{injector:t})})}var ZN=new I(""),Jp=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new V,this.transitionAbortSubject=new V,this.configLoader=y(Qp),this.environmentInjector=y(mt),this.urlSerializer=y(pa),this.rootContexts=y(ba),this.location=y(jn),this.inputBindingEnabled=y(Xd,{optional:!0})!==null,this.titleStrategy=y(SC),this.options=y(_a,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=y(Xp),this.createViewTransition=y(TC,{optional:!0}),this.navigationErrorHandler=y(ZN,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>q(void 0),this.rootComponentType=null;let e=r=>this.events.next(new Tp(r)),i=r=>this.events.next(new Rp(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(ve(D(D({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new Je({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:oa,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ke(o=>o.id!==0),ne(o=>ve(D({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ft(o=>{let s=!1,a=!1;return q(o).pipe(ft(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",zt.SupersededByNewNavigation),st;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?ve(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&d!=="reload"){let u="";return this.events.next(new qi(c.id,this.urlSerializer.serialize(c.rawUrl),u,Bd.IgnoredSameUrlNavigation)),c.resolve(!1),st}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return q(c).pipe(ft(u=>{let f=this.transitions?.getValue();return this.events.next(new Vo(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions?.getValue()?st:Promise.resolve(u)}),LN(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),nt(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=ve(D({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let f=new zd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:u,extractedUrl:f,source:h,restoredState:m,extras:g}=c,C=new Vo(u,this.urlSerializer.serialize(f),h,m);this.events.next(C);let S=vC(this.rootComponentType).snapshot;return this.currentTransition=o=ve(D({},c),{targetSnapshot:S,urlAfterRedirects:f,extras:ve(D({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,q(o)}else{let u="";return this.events.next(new qi(c.id,this.urlSerializer.serialize(c.extractedUrl),u,Bd.IgnoredByUrlHandlingStrategy)),c.resolve(!1),st}}),nt(c=>{let l=new kp(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),ne(c=>(this.currentTransition=o=ve(D({},c),{guards:iN(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),mN(this.environmentInjector,c=>this.events.next(c)),nt(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Gd(this.urlSerializer,c.guardsResult);let l=new Mp(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),ke(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",zt.GuardRejected),!1)),wp(c=>{if(c.guards.canActivateChecks.length)return q(c).pipe(nt(l=>{let d=new Sp(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ft(l=>{let d=!1;return q(l).pipe(jN(this.paramsInheritanceStrategy,this.environmentInjector),nt({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",zt.NoDataFromResolver)}}))}),nt(l=>{let d=new Ap(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),wp(c=>{let l=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(nt(f=>{d.component=f}),ne(()=>{})));for(let f of d.children)u.push(...l(f));return u};return ar(l(c.targetSnapshot.root)).pipe(Di(null),pt(1))}),wp(()=>this.afterPreactivation()),ft(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?Fe(d).pipe(ne(()=>o)):q(o)}),ne(c=>{let l=XO(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=ve(D({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),nt(()=>{this.events.next(new la)}),nN(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),pt(1),nt({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Le(this.transitionAbortSubject.pipe(nt(c=>{throw c}))),cr(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",zt.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),xi(c=>{if(a=!0,xC(c))this.events.next(new hi(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),tN(c)?this.events.next(new Bo(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new ca(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let d=Kt(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof ua){let{message:u,cancellationCode:f}=Gd(this.urlSerializer,d);this.events.next(new hi(o.id,this.urlSerializer.serialize(o.extractedUrl),u,f)),this.events.next(new Bo(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let u=e.errorHandler(c);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return st}))}))}cancelNavigationTransition(e,i,r){let o=new hi(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function KN(t){return t!==oa}var QN=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>y(XN),providedIn:"root"})}}return t})(),Gp=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},XN=(()=>{class t extends Gp{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(t)))(r||t)}})()}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),OC=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:()=>y(JN),providedIn:"root"})}}return t})(),JN=(()=>{class t extends OC{constructor(){super(...arguments),this.location=y(jn),this.urlSerializer=y(pa),this.options=y(_a,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=y(Xp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=vC(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Vo)this.stateMemento=this.createStateMemento();else if(e instanceof qi)this.rawUrlTree=i.initialUrl;else if(e instanceof zd){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof la?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof hi&&(e.code===zt.GuardRejected||e.code===zt.NoDataFromResolver)?this.restoreHistory(i):e instanceof ca?this.restoreHistory(i,!0):e instanceof Ht&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof fi?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,s=D(D({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",s)}else{let o=D(D({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(t)))(r||t)}})()}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ia=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ia||{});function NC(t,n){t.events.pipe(ke(e=>e instanceof Ht||e instanceof hi||e instanceof ca||e instanceof qi),ne(e=>e instanceof Ht||e instanceof qi?ia.COMPLETE:(e instanceof hi?e.code===zt.Redirect||e.code===zt.SupersededByNewNavigation:!1)?ia.REDIRECTING:ia.FAILED),ke(e=>e!==ia.REDIRECTING),pt(1)).subscribe(()=>{n()})}function eP(t){throw t}var tP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},nP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_n=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=y(Nl),this.stateManager=y(OC),this.options=y(_a,{optional:!0})||{},this.pendingTasks=y(ii),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=y(Jp),this.urlSerializer=y(pa),this.location=y(jn),this.urlHandlingStrategy=y(Xp),this._events=new V,this.errorHandler=this.options.errorHandler||eP,this.navigated=!1,this.routeReuseStrategy=y(QN),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=y(Zd,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!y(Xd,{optional:!0}),this.eventsSubscription=new Te,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof hi&&i.code!==zt.Redirect&&i.code!==zt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ht)this.navigated=!0;else if(i instanceof Bo){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),c=D({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||KN(r.source)},s);this.scheduleNavigation(a,oa,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}rP(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),oa,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=D({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Kp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=D(D({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let f=r?r.snapshot:this.routerState.snapshot.root;u=mC(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return pC(u,e,d,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Or(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,oa,null,i)}navigate(e,i={skipLocationChange:!1}){return iP(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=D({},tP):i===!1?r=D({},nP):r=i,Or(e))return Yw(this.currentUrlTree,e,r);let o=this.parseUrl(e);return Yw(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((u,f)=>{a=u,c=f});let d=this.pendingTasks.add();return NC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function iP(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new A(4008,!1)}function rP(t){return!(t instanceof la)&&!(t instanceof Bo)}var Kd=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new V,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof Ht&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Or(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:W_(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Or(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(p(_n),p(Nr),Fi("tabindex"),p(Li),p(Z),p(ci))}}static{this.\u0275dir=Y({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&L("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&Pe("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Se],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Se],replaceUrl:[2,"replaceUrl","replaceUrl",Se],routerLink:"routerLink"},standalone:!0,features:[at,Ze]})}}return t})(),PC=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new K,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Ht&&this.update()})}ngAfterContentInit(){q(this.links.changes,q(null)).pipe(Dn()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Fe(e).pipe(Dn()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let i=oP(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static{this.\u0275fac=function(i){return new(i||t)(p(_n),p(Z),p(Li),p(Be),p(Kd,8))}}static{this.\u0275dir=Y({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&mn(o,Kd,5),i&2){let s;pe(s=ge())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ze]})}}return t})();function oP(t){return!!t.paths}var Qd=class{};var sP=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ke(e=>e instanceof Ht),Qn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=Al(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Fe(r).pipe(Dn())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=q(null);let o=r.pipe(Xe(s=>s===null?q(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return Fe([o,s]).pipe(Dn())}else return o})}static{this.\u0275fac=function(i){return new(i||t)(b(_n),b(Vl),b(mt),b(Qd),b(Qp))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),FC=new I(""),aP=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Vo?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ht?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof qi&&e.code===Bd.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Hd&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Hd(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){Dl()}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac})}}return t})();function cP(t){return t.routerState.root}function ya(t,n){return{\u0275kind:t,\u0275providers:n}}function lP(){let t=y(ae);return n=>{let e=t.get(Lt);if(n!==e.components[0])return;let i=t.get(_n),r=t.get(LC);t.get(eg)===1&&i.initialNavigation(),t.get(jC,null,Ce.Optional)?.setUpPreloading(),t.get(FC,null,Ce.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var LC=new I("",{factory:()=>new V}),eg=new I("",{providedIn:"root",factory:()=>1});function dP(){return ya(2,[{provide:eg,useValue:0},{provide:Ll,multi:!0,deps:[ae],useFactory:n=>{let e=n.get(y0,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=n.get(_n),o=n.get(LC);NC(r,()=>{i(!0)}),n.get(Jp).afterPreactivation=()=>(i(!0),o.closed?q(void 0):o),r.initialNavigation()}))}}])}function uP(){return ya(3,[{provide:Ll,multi:!0,useFactory:()=>{let n=y(_n);return()=>{n.setUpLocationChangeListener()}}},{provide:eg,useValue:2}])}var jC=new I("");function hP(t){return ya(0,[{provide:jC,useExisting:sP},{provide:Qd,useExisting:t}])}function fP(){return ya(8,[Xw,{provide:Xd,useExisting:Xw}])}function mP(t){let n=[{provide:TC,useValue:GN},{provide:RC,useValue:D({skipNextTransition:!!t?.skipInitialTransition},t)}];return ya(9,n)}var nC=new I("ROUTER_FORROOT_GUARD"),pP=[jn,{provide:pa,useClass:jo},_n,ba,{provide:Nr,useFactory:cP,deps:[_n]},Qp,[]],VC=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[pP,[],{provide:Zd,multi:!0,useValue:e},{provide:nC,useFactory:_P,deps:[[_n,new al,new af]]},{provide:_a,useValue:i||{}},i?.useHash?bP():vP(),gP(),i?.preloadingStrategy?hP(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?yP(i):[],i?.bindToComponentInputs?fP().\u0275providers:[],i?.enableViewTransitions?mP().\u0275providers:[],wP()]}}static forChild(e){return{ngModule:t,providers:[{provide:Zd,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(b(nC,8))}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})();function gP(){return{provide:FC,useFactory:()=>{let t=y(x0),n=y(F),e=y(_a),i=y(Jp),r=y(pa);return e.scrollOffset&&t.setOffset(e.scrollOffset),new aP(r,i,t,n,e)}}}function bP(){return{provide:ci,useClass:C0}}function vP(){return{provide:ci,useClass:fm}}function _P(t){return"guarded"}function yP(t){return[t.initialNavigation==="disabled"?uP().\u0275providers:[],t.initialNavigation==="enabledBlocking"?dP().\u0275providers:[]]}var iC=new I("");function wP(){return[{provide:iC,useFactory:lP},{provide:jl,multi:!0,useExisting:iC}]}var ng;try{ng=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ng=!1}var Ee=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?As(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||ng)&&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}static{this.\u0275fac=function(i){return new(i||t)(b(Ot))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Uo,BC=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ig(){if(Uo)return Uo;if(typeof document!="object"||!document)return Uo=new Set(BC),Uo;let t=document.createElement("input");return Uo=new Set(BC.filter(n=>(t.setAttribute("type",n),t.type===n))),Uo}var wa;function xP(){if(wa==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>wa=!0}))}finally{wa=wa||!1}return wa}function $n(t){return xP()?t:!!t.capture}var Pr;function zC(){if(Pr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Pr=!1,Pr;if("scrollBehavior"in document.documentElement.style)Pr=!0;else{let t=Element.prototype.scrollTo;t?Pr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Pr=!1}}return Pr}var tg;function DP(){if(tg==null){let t=typeof document<"u"?document.head:null;tg=!!(t&&(t.createShadowRoot||t.attachShadow))}return tg}function HC(t){if(DP()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Ca(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function on(t){return t.composedPath?t.composedPath()[0]:t.target}function xa(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Gi(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Fr(t){return t!=null&&`${t}`!="false"}function Yi(t,n=0){return EP(t)?Number(t):arguments.length===2?n:0}function EP(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function $o(t){return Array.isArray(t)?t:[t]}function tt(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Nt(t){return t instanceof Z?t.nativeElement:t}function IP(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let n=0;n<t.addedNodes.length;n++)if(!(t.addedNodes[n]instanceof Comment))return!1;for(let n=0;n<t.removedNodes.length;n++)if(!(t.removedNodes[n]instanceof Comment))return!1;return!0}return!1}var UC=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),kP=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map,this._ngZone=y(F)}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Nt(e);return new ie(r=>{let s=this._observeElement(i).pipe(ne(a=>a.filter(c=>!IP(c))),ke(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{r.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new V,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static{this.\u0275fac=function(i){return new(i||t)(b(UC))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),rg=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Yi(e),this._subscribe()}constructor(e,i){this._contentObserver=e,this._elementRef=i,this.event=new K,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Xn(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(p(kP),p(Z))}}static{this.\u0275dir=Y({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Se],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[at]})}}return t})(),qo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({providers:[UC]})}}return t})();var $C=new Set,Lr,MP=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):AP}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&SP(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(b(Ee),b(Is,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function SP(t,n){if(!$C.has(t))try{Lr||(Lr=document.createElement("style"),n&&Lr.setAttribute("nonce",n),Lr.setAttribute("type","text/css"),document.head.appendChild(Lr)),Lr.sheet&&(Lr.sheet.insertRule(`@media ${t} {body{ }}`,0),$C.add(t))}catch(e){console.error(e)}}function AP(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var eu=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new V}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return qC($o(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=qC($o(e)).map(s=>this._registerQuery(s).observable),o=ar(r);return o=wi(o.pipe(pt(1)),o.pipe(lr(1),Xn(0))),o.pipe(ne(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new ie(s=>{let a=c=>this._zone.run(()=>s.next(c));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Pt(i),ne(({matches:s})=>({query:e,matches:s})),Le(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static{this.\u0275fac=function(i){return new(i||t)(b(MP),b(F))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function qC(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var WC={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var KP=200,sg=class{constructor(n,e){this._letterKeyStream=new V,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new V,this.selectedItem=this._selectedItem;let i=typeof e?.debounceInterval=="number"?e.debounceInterval:KP;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(nt(e=>this._pressedLetters.push(e)),Xn(n),ke(()=>this._pressedLetters.length>0),ne(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let r=(this._selectedItemIndex+i)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break}}this._pressedLetters=[]})}},ag=class{constructor(n,e){this._items=n,this._activeItemIndex=-1,this._activeItem=ri(null),this._wrap=!1,this._typeaheadSubscription=Te.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this.tabOut=new V,this.change=new V,n instanceof br?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):Sl(n)&&(this._effectRef=sm(()=>this._itemsChanged(n()),{injector:e}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new sg(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){let e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){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 o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o<s?o:s-1,-1);break}else return;default:(r||Gi(n,"shiftKey"))&&this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),r=e[i];this._activeItem.set(r??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let r=(this._activeItemIndex+n*i+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n)}}_getItemsArray(){return Sl(this._items)?this._items():this._items instanceof br?this._items.toArray():this._items}_itemsChanged(n){this._typeahead?.setItems(n);let e=this._activeItem();if(e){let i=n.indexOf(e);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}};var iu=class extends ag{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var Da=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return XP(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=QP(sF(e));if(i&&(GC(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=GC(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!rF(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return oF(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(b(Ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function QP(t){try{return t.frameElement}catch{return null}}function XP(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function JP(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function eF(t){return nF(t)&&t.type=="hidden"}function tF(t){return iF(t)&&t.hasAttribute("href")}function nF(t){return t.nodeName.toLowerCase()=="input"}function iF(t){return t.nodeName.toLowerCase()=="a"}function KC(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function GC(t){if(!KC(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function rF(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function oF(t){return eF(t)?!1:JP(t)||tF(t)||t.hasAttribute("contenteditable")||KC(t)}function sF(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var cg=class{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1,s){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i<e.length;i++){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=e.length-1;i>=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?fn(n,{injector:this._injector}):setTimeout(n)}},ru=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._injector=y(ae),this._document=r}create(e,i=!1){return new cg(e,this._checker,this._ngZone,this._document,i,this._injector)}static{this.\u0275fac=function(i){return new(i||t)(b(Da),b(F),b(ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function lg(t){return t.buttons===0||t.detail===0}function dg(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var aF=new I("cdk-input-modality-detector-options"),cF={ignoreKeys:[18,17,224,91,16]},QC=650,Wo=$n({passive:!0,capture:!0}),lF=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Je(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=on(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<QC||(this._modality.next(lg(s)?"keyboard":"mouse"),this._mostRecentTarget=on(s))},this._onTouchstart=s=>{if(dg(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=on(s)},this._options=D(D({},cF),o),this.modalityDetected=this._modality.pipe(lr(1)),this.modalityChanged=this.modalityDetected.pipe(hc()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wo),r.addEventListener("mousedown",this._onMousedown,Wo),r.addEventListener("touchstart",this._onTouchstart,Wo)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wo),document.removeEventListener("mousedown",this._onMousedown,Wo),document.removeEventListener("touchstart",this._onTouchstart,Wo))}static{this.\u0275fac=function(i){return new(i||t)(b(Ee),b(F),b(ee),b(aF,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dF=new I("liveAnnouncerElement",{providedIn:"root",factory:uF});function uF(){return null}var hF=new I("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),fF=0,XC=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,s;return i.length===1&&typeof i[0]=="number"?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),s==null&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${fF++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],s=o.getAttribute("aria-owns");s?s.indexOf(e)===-1&&o.setAttribute("aria-owns",s+" "+e):o.setAttribute("aria-owns",e)}}static{this.\u0275fac=function(i){return new(i||t)(b(dF,8),b(F),b(ee),b(hF,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var nu=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(nu||{}),mF=new I("cdk-focus-monitor-default-options"),tu=$n({passive:!0,capture:!0}),Zi=(()=>{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,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 V,this._rootNodeFocusAndBlurListener=a=>{let c=on(a);for(let l=c;l;l=l.parentElement)a.type==="focus"?this._onFocus(a,l):this._onBlur(a,l)},this._document=o,this._detectionMode=s?.detectionMode||nu.IMMEDIATE}monitor(e,i=!1){let r=Nt(e);if(!this._platform.isBrowser||r.nodeType!==1)return q();let o=HC(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let a={checkChildren:i,subject:new V,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let i=Nt(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Nt(e),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===nu.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===nu.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?QC:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=on(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,tu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,tu)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Le(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,tu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,tu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(i))return!0}return!1}static{this.\u0275fac=function(i){return new(i||t)(b(F),b(Ee),b(lF),b(ee,8),b(mF,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jr=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(jr||{}),YC="cdk-high-contrast-black-on-white",ZC="cdk-high-contrast-white-on-black",og="cdk-high-contrast-active",ug=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=y(eu).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return jr.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return jr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return jr.BLACK_ON_WHITE}return jr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(og,YC,ZC),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===jr.BLACK_ON_WHITE?e.add(og,YC):i===jr.WHITE_ON_BLACK&&e.add(og,ZC)}}static{this.\u0275fac=function(i){return new(i||t)(b(Ee),b(ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),JC=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(b(ug))}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[qo]})}}return t})();var pF=new I("cdk-dir-doc",{providedIn:"root",factory:gF});function gF(){return y(ee)}var bF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function vF(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?bF.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var qn=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new K,e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=vF(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(b(pF,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ki=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})();var _F=["mat-internal-form-field",""],yF=["*"];function wF(){return!0}var CF=new I("mat-sanity-checks",{providedIn:"root",factory:wF}),Ae=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return xa()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(i){return new(i||t)(b(ug),b(CF,8),b(ee))}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ki,Ki]})}}return t})();var su=class{constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var cx=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var sn=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(sn||{}),pg=class{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=sn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},ex=$n({passive:!0,capture:!0}),gg=class{constructor(){this._events=new Map,this._delegateEventHandler=n=>{let e=on(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){let o=this._events.get(e);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,ex)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,ex)))}},tx={enterDuration:225,exitDuration:150},xF=800,nx=$n({passive:!0,capture:!0}),ix=["mousedown","touchstart"],rx=["mouseup","mouseleave","touchend","touchcancel"],au=class t{static{this._eventManager=new gg}constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Nt(i))}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=D(D({},tx),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let s=i.radius||DF(n,e,r),a=n-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${c-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),f=u.transitionProperty,h=u.transitionDuration,m=f==="none"||h==="0s"||h==="0s, 0s"||r.width===0&&r.height===0,g=new pg(this,d,i,m);d.style.transform="scale3d(1, 1, 1)",g.state=sn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=g);let C=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let S=()=>{C&&(C.fallbackTimer=null),clearTimeout(E),this._finishRippleTransition(g)},O=()=>this._destroyRipple(g),E=setTimeout(O,l+100);d.addEventListener("transitionend",S),d.addEventListener("transitioncancel",O),C={onTransitionEnd:S,onTransitionCancel:O,fallbackTimer:E}}),this._activeRipples.set(g,C),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(n){if(n.state===sn.FADING_OUT||n.state===sn.HIDDEN)return;let e=n.element,i=D(D({},tx),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=sn.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=Nt(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,ix.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{rx.forEach(e=>{this._triggerElement.addEventListener(e,this,nx)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===sn.FADING_IN?this._startFadeOutTransition(n):n.state===sn.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=sn.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=sn.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=lg(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+xF;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!dg(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{let e=n.state===sn.VISIBLE||n.config.terminateOnPointerUp&&n.state===sn.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(ix.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(rx.forEach(e=>n.removeEventListener(e,this,nx)),this._pointerUpEventsRegistered=!1))}};function DF(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Ia=new I("mat-ripple-global-options"),Vr=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new au(this,i,e,r)}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:D(D(D({},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(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,D(D({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,D(D({},this.rippleConfig),e))}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(F),p(Ee),p(Ia,8),p(et,8))}}static{this.\u0275dir=Y({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&xe("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),cu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae,Ae]})}}return t})();var lx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae]})}}return t})();var ox={capture:!0},sx=["focus","mousedown","mouseenter","touchstart"],fg="mat-ripple-loader-uninitialized",mg="mat-ripple-loader-class-name",ax="mat-ripple-loader-centered",ou="mat-ripple-loader-disabled",dx=(()=>{class t{constructor(){this._document=y(ee,{optional:!0}),this._animationMode=y(et,{optional:!0}),this._globalRippleOptions=y(Ia,{optional:!0}),this._platform=y(Ee),this._ngZone=y(F),this._hosts=new Map,this._onInteraction=e=>{let i=on(e);if(i instanceof HTMLElement){let r=i.closest(`[${fg}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(let e of sx)this._document?.addEventListener(e,this._onInteraction,ox)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of sx)this._document?.removeEventListener(i,this._onInteraction,ox)}configureRipple(e,i){e.setAttribute(fg,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(mg))&&e.setAttribute(mg,i.className||""),i.centered&&e.setAttribute(ax,""),i.disabled&&e.setAttribute(ou,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(ou,""):e.removeAttribute(ou)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(mg)),e.append(r);let o=new Vr(new Z(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(ax),o.disabled=e.hasAttribute(ou),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(fg),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ux=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=de({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&xe("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[$e],attrs:_F,ngContentSelectors:yF,decls:1,vars:0,template:function(i,r){i&1&&(_t(),Ue(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}}return t})();var IF=["*"];var kF=new I("MAT_CARD_CONFIG"),mi=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static{this.\u0275fac=function(i){return new(i||t)(p(kF,8))}}static{this.\u0275cmp=de({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){i&2&&xe("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[$e],ngContentSelectors:IF,decls:1,vars:0,template:function(i,r){i&1&&(_t(),Ue(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-app-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-app-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-app-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-app-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-app-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-app-corner-medium));border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color, var(--mat-app-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-app-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-app-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-app-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-app-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-app-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-app-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-app-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-app-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-app-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-app-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-app-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-app-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}}return t})();var hx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae,Vn,Ae]})}}return t})();var ka=class{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},pi=class extends ka{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},Qi=class extends ka{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},bg=class extends ka{constructor(n){super(),this.element=n instanceof Z?n.nativeElement:n}},Xi=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof pi)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Qi)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof bg)return this._attachedPortal=n,this.attachDomPortal(n)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var du=class extends Xi{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(n){let i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||ae.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}};var Ji=(()=>{class t extends Xi{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new K,this.attachDomPortal=o=>{this._document;let s=o.element;s.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(i){return new(i||t)(p(Ft),p(vt),p(ee))}}static{this.\u0275dir=Y({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[Ve]})}}return t})();var gi=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})();var MF=20,mx=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new V,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=MF){return this._platform.isBrowser?new ie(i=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(uc(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):q()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ke(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Nt(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return En(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||t)(b(F),b(Ee),b(ee,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var SF=20,Go=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new V,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,a=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=SF){return e>0?this._change.pipe(uc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(i){return new(i||t)(b(Ee),b(F),b(ee,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})(),vg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ki,fx,Ki,fx]})}}return t})();var _g=class{constructor(n){this._box=n,this._destroyed=new V,this._resizeSubject=new V,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new ie(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ke(e=>e.some(i=>i.target===n)),mc({bufferSize:1,refCount:!0}),Le(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},uu=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=y(F),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new _g(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _x=["*"];var AF=["tabListContainer"],TF=["tabList"],RF=["tabListInner"],OF=["nextPaginator"],NF=["previousPaginator"];var PF=["mat-tab-nav-bar",""],FF=["mat-tab-link",""];var yg="mdc-tab-indicator--active",gx="mdc-tab-indicator--no-transition",Cg=class{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},LF=(()=>{class t{constructor(){this._elementRef=y(Z),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(yg);return}let r=i.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;i.classList.add(gx),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(gx),i.classList.add(yg),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(yg)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Se]},features:[at]})}}return t})();var bx=$n({passive:!0}),jF=650,VF=100,BF=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(e,i,r,o,s,a,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new V,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new V,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new K,this.indexFocused=new K,this._sharedResizeObserver=y(uu),this._injector=y(ae),s.runOutsideAngular(()=>{En(e.nativeElement,"mouseleave").pipe(Le(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){En(this._previousPaginator.nativeElement,"touchstart",bx).pipe(Le(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),En(this._nextPaginator.nativeElement,"touchstart",bx).pipe(Le(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:q("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Xn(32),Le(this._destroyed)),r=this._viewportRuler.change(150).pipe(Le(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new iu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),fn(o,{injector:this._injector}),In(e,r,i,this._items.changes,this._itemsResized()).pipe(Le(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?st:this._items.changes.pipe(Pt(this._items),ft(e=>new ie(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),lr(1),ke(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Gi(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement,a,c;this._getLayoutDirection()=="ltr"?(a=o,c=a+s):(c=this._tabListInner.nativeElement.offsetWidth-o,a=c-s);let l=this.scrollDistance,d=this.scrollDistance+r;a<l?this.scrollDistance-=l-a:c>d&&(this.scrollDistance+=Math.min(c-d,a-l))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),ds(jF,VF).pipe(Le(In(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(Be),p(Go),p(qn,8),p(F),p(Ee),p(et,8))}}static{this.\u0275dir=Y({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",Se],selectedIndex:[2,"selectedIndex","selectedIndex",xr]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[at]})}}return t})();var zF=new I("MAT_TABS_CONFIG");var HF=0,xg=(()=>{class t extends BF{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o,s,a,c,l){super(e,o,s,i,r,a,c),this._fitInkBarToContent=new Je(!1),this.stretchTabs=!0,this.disableRipple=!1,this.color="primary",this.disablePagination=l&&l.disablePagination!=null?l.disablePagination:!1,this.fitInkBarToContent=l&&l.fitInkBarToContent!=null?l.fitInkBarToContent:!1,this.stretchTabs=l&&l.stretchTabs!=null?l.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Cg(this._items),this._items.changes.pipe(Pt(null),Le(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let i=0;i<e.length;i++)if(e[i].active){this.selectedIndex=i,this._changeDetectorRef.markForCheck(),this.tabPanel&&(this.tabPanel._activeTabId=e[i].id);return}this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(qn,8),p(F),p(Be),p(Go),p(Ee),p(et,8),p(zF,8))}}static{this.\u0275cmp=de({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(i,r,o){if(i&1&&mn(o,Dg,5),i&2){let s;pe(s=ge())&&(r._items=s)}},viewQuery:function(i,r){if(i&1&&(Ie(AF,7),Ie(TF,7),Ie(RF,7),Ie(OF,5),Ie(NF,5)),i&2){let o;pe(o=ge())&&(r._tabListContainer=o.first),pe(o=ge())&&(r._tabList=o.first),pe(o=ge())&&(r._tabListInner=o.first),pe(o=ge())&&(r._nextPaginator=o.first),pe(o=ge())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,hostBindings:function(i,r){i&2&&(Pe("role",r._getRole()),He("--mat-tab-animation-duration",r.animationDuration),xe("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")("mat-mdc-tab-nav-bar-stretch-tabs",r.stretchTabs)("mat-primary",r.color!=="warn"&&r.color!=="accent")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Se],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Se],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",Se],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],standalone:!0,features:[at,Ve,$e],attrs:PF,ngContentSelectors:_x,decls:13,vars:6,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-links"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(i,r){if(i&1){let o=Me();_t(),_(0,"div",5,0),L("click",function(){return N(o),P(r._handlePaginatorClick("before"))})("mousedown",function(a){return N(o),P(r._handlePaginatorPress("before",a))})("touchend",function(){return N(o),P(r._stopInterval())}),se(2,"div",6),v(),_(3,"div",7,1),L("keydown",function(a){return N(o),P(r._handleKeydown(a))}),_(5,"div",8,2),L("cdkObserveContent",function(){return N(o),P(r._onContentChanges())}),_(7,"div",9,3),Ue(9),v()()(),_(10,"div",10,4),L("mousedown",function(a){return N(o),P(r._handlePaginatorPress("after",a))})("click",function(){return N(o),P(r._handlePaginatorClick("after"))})("touchend",function(){return N(o),P(r._stopInterval())}),se(12,"div",6),v()}i&2&&(xe("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),k("matRippleDisabled",r._disableScrollBefore||r.disableRipple),w(10),xe("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),k("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Vr,rg],styles:[".mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"],encapsulation:2})}}return t})(),Dg=(()=>{class t extends LF{get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(e,i,r,o,s,a){super(),this._tabNavBar=e,this.elementRef=i,this._focusMonitor=s,this._destroyed=new V,this._isActive=!1,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.id=`mat-tab-link-${HF++}`,this.rippleConfig=r||{},this.tabIndex=parseInt(o)||0,a==="NoopAnimations"&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),e._fitInkBarToContent.pipe(Le(this._destroyed)).subscribe(c=>{this.fitInkBarToContent=c})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.disabled?-1:this.tabIndex}static{this.\u0275fac=function(i){return new(i||t)(p(xg),p(Z),p(Ia,8),Fi("tabindex"),p(Zi),p(et,8))}}static{this.\u0275cmp=de({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&L("focus",function(){return r._handleFocus()})("keydown",function(s){return r._handleKeydown(s)}),i&2&&(Pe("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._getTabIndex())("role",r._getRole()),xe("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",Se],disabled:[2,"disabled","disabled",Se],disableRipple:[2,"disableRipple","disableRipple",Se],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:xr(e)],id:"id"},exportAs:["matTabLink"],standalone:!0,features:[at,Ve,$e],attrs:FF,ngContentSelectors:_x,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(i,r){i&1&&(_t(),se(0,"span",0)(1,"div",1),_(2,"span",2)(3,"span",3),Ue(4),v()()),i&2&&(w(),k("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Vr],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0})}}return t})();var yx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae,Ae]})}}return t})();var wx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae,Ae]})}}return t})();var Cx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[qo,Vn,Ae,cu,lx,wx]})}}return t})();var xx=$n({passive:!0}),Dx=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return st;let i=Nt(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new V,s="cdk-text-field-autofilled",a=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(s)?(i.classList.add(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,xx),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,xx)}}),o}stopMonitoring(e){let i=Nt(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static{this.\u0275fac=function(i){return new(i||t)(b(Ee),b(F))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ex=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({})}}return t})();var qF=["notch"],WF=["matFormFieldNotchedOutline",""],GF=["*"],YF=["textField"],ZF=["iconPrefixContainer"],KF=["textPrefixContainer"],QF=["iconSuffixContainer"],XF=["textSuffixContainer"],JF=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],eL=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function tL(t,n){t&1&&se(0,"span",21)}function nL(t,n){if(t&1&&(_(0,"label",20),Ue(1,1),Q(2,tL,1,0,"span",21),v()),t&2){let e=T(2);k("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Pe("for",e._control.disableAutomaticLabeling?null:e._control.id),w(2),ct(!e.hideRequiredMarker&&e._control.required?2:-1)}}function iL(t,n){if(t&1&&Q(0,nL,3,5,"label",20),t&2){let e=T();ct(e._hasFloatingLabel()?0:-1)}}function rL(t,n){t&1&&se(0,"div",7)}function oL(t,n){}function sL(t,n){if(t&1&&Q(0,oL,0,0,"ng-template",13),t&2){T(2);let e=oi(1);k("ngTemplateOutlet",e)}}function aL(t,n){if(t&1&&(_(0,"div",9),Q(1,sL,1,1,null,13),v()),t&2){let e=T();k("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),w(),ct(e._forceDisplayInfixLabel()?-1:1)}}function cL(t,n){t&1&&(_(0,"div",10,2),Ue(2,2),v())}function lL(t,n){t&1&&(_(0,"div",11,3),Ue(2,3),v())}function dL(t,n){}function uL(t,n){if(t&1&&Q(0,dL,0,0,"ng-template",13),t&2){T();let e=oi(1);k("ngTemplateOutlet",e)}}function hL(t,n){t&1&&(_(0,"div",14,4),Ue(2,4),v())}function fL(t,n){t&1&&(_(0,"div",15,5),Ue(2,5),v())}function mL(t,n){t&1&&se(0,"div",16)}function pL(t,n){if(t&1&&(_(0,"div",18),Ue(1,6),v()),t&2){let e=T();k("@transitionMessages",e._subscriptAnimationState)}}function gL(t,n){if(t&1&&(_(0,"mat-hint",22),J(1),v()),t&2){let e=T(2);k("id",e._hintLabelId),w(),pn(e.hintLabel)}}function bL(t,n){if(t&1&&(_(0,"div",19),Q(1,gL,2,2,"mat-hint",22),Ue(2,7),se(3,"div",23),Ue(4,8),v()),t&2){let e=T();k("@transitionMessages",e._subscriptAnimationState),w(),ct(e.hintLabel?1:-1)}}var Ix=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,selectors:[["mat-label"]],standalone:!0})}}return t})();var vL=new I("MatError");var _L=0,kx=(()=>{class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${_L++}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(Fn("id",r.id),Pe("align",null),xe("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return t})(),yL=new I("MatPrefix");var wL=new I("MatSuffix");var Px=new I("FloatingLabelParent"),Mx=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=y(uu),this._ngZone=y(F),this._parent=y(Px),this._resizeSubscription=new Te}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return CL(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(i){return new(i||t)(p(Z))}}static{this.\u0275dir=Y({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&xe("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return t})();function CL(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var Sx="mdc-line-ripple--active",hu="mdc-line-ripple--deactivating",Ax=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{let o=this._elementRef.nativeElement.classList,s=o.contains(hu);r.propertyName==="opacity"&&s&&o.remove(Sx,hu)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(hu),e.add(Sx)}deactivate(){this._elementRef.nativeElement.classList.add(hu)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(F))}}static{this.\u0275dir=Y({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return t})(),Tx=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(F))}}static{this.\u0275cmp=de({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&Ie(qF,5),i&2){let o;pe(o=ge())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&xe("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[$e],attrs:WF,ngContentSelectors:GF,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(_t(),se(0,"div",1),_(1,"div",2,0),Ue(3),v(),se(4,"div",3))},encapsulation:2,changeDetection:0})}}return t})(),xL={transitionMessages:td("transitionMessages",[Bs("enter",zn({opacity:1,transform:"translateY(0%)"})),zs("void => enter",[zn({opacity:0,transform:"translateY(-5px)"}),Vs("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Eg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t})}}return t})();var Ig=new I("MatFormField"),DL=new I("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Rx=0,Ox="fill",EL="auto",Nx="fixed",IL="translateY(-50%)",fu=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Fr(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||EL}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||Ox;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Nx}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Nx}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,s,a,c,l){this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=c,this._labelChild=jy(Ix),this._hideRequiredMarker=!1,this.color="primary",this._appearance=Ox,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${Rx++}`,this._hintLabelId=`mat-mdc-hint-${Rx++}`,this._subscriptAnimationState="",this._destroyed=new V,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=y(ae),this.getLabelId=si(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=si(()=>!!this._labelChild()),a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Le(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),In(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),ks(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Le(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,a=i?.getBoundingClientRect().width??0,c=r?.getBoundingClientRect().width??0,l=o?.getBoundingClientRect().width??0,d=s?.getBoundingClientRect().width??0,u=this._dir.value==="rtl"?"-1":"1",f=`${a+c}px`,m=`calc(${u} * (${f} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
9
+ --mat-mdc-form-field-label-transform,
10
+ ${IL} translateX(${m})
11
+ )`;let g=a+c+l+d;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${g}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(Be),p(F),p(qn),p(Ee),p(DL,8),p(et,8),p(ee))}}static{this.\u0275cmp=de({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(i0(o,r._labelChild,Ix,5),mn(o,Eg,5),mn(o,yL,5),mn(o,wL,5),mn(o,vL,5),mn(o,kx,5)),i&2){r0();let s;pe(s=ge())&&(r._formFieldControl=s.first),pe(s=ge())&&(r._prefixChildren=s),pe(s=ge())&&(r._suffixChildren=s),pe(s=ge())&&(r._errorChildren=s),pe(s=ge())&&(r._hintChildren=s)}},viewQuery:function(i,r){if(i&1&&(Ie(YF,5),Ie(ZF,5),Ie(KF,5),Ie(QF,5),Ie(XF,5),Ie(Mx,5),Ie(Tx,5),Ie(Ax,5)),i&2){let o;pe(o=ge())&&(r._textField=o.first),pe(o=ge())&&(r._iconPrefixContainer=o.first),pe(o=ge())&&(r._textPrefixContainer=o.first),pe(o=ge())&&(r._iconSuffixContainer=o.first),pe(o=ge())&&(r._textSuffixContainer=o.first),pe(o=ge())&&(r._floatingLabel=o.first),pe(o=ge())&&(r._notchedOutline=o.first),pe(o=ge())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){i&2&&xe("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[lt([{provide:Ig,useExisting:t},{provide:Px,useExisting:t}]),$e],ngContentSelectors:eL,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,r){if(i&1){let o=Me();_t(JF),Q(0,iL,1,1,"ng-template",null,0,tm),_(2,"div",6,1),L("click",function(a){return N(o),P(r._control.onContainerClick(a))}),Q(4,rL,1,0,"div",7),_(5,"div",8),Q(6,aL,2,2,"div",9)(7,cL,3,0,"div",10)(8,lL,3,0,"div",11),_(9,"div",12),Q(10,uL,1,1,null,13),Ue(11),v(),Q(12,hL,3,0,"div",14)(13,fL,3,0,"div",15),v(),Q(14,mL,1,0,"div",16),v(),_(15,"div",17),Q(16,pL,2,1,"div",18)(17,bL,5,2,"div",19),v()}if(i&2){let o;w(2),xe("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),w(2),ct(!r._hasOutline()&&!r._control.disabled?4:-1),w(2),ct(r._hasOutline()?6:-1),w(),ct(r._hasIconPrefix?7:-1),w(),ct(r._hasTextPrefix?8:-1),w(2),ct(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),w(2),ct(r._hasTextSuffix?12:-1),w(),ct(r._hasIconSuffix?13:-1),w(),ct(r._hasOutline()?-1:14),w(),xe("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),w(),ct((o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[Mx,Tx,Ss,Ax,kx],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[xL.transitionMessages]},changeDetection:0})}}return t})(),kg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae,Vn,qo,Ae]})}}return t})();var kL=new I("MAT_INPUT_VALUE_ACCESSOR"),ML=["button","checkbox","file","hidden","image","radio","range","reset","submit"],SL=0,mu=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Fr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(yd.required)??!1}set required(e){this._required=Fr(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ig().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Fr(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,s,a,c,l,d,u){this._elementRef=e,this._platform=i,this.ngControl=r,this._autofillMonitor=l,this._ngZone=d,this._formField=u,this._uid=`mat-input-${SL++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new V,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(m=>ig().has(m)),this._iOSKeyupListener=m=>{let g=m.target;!g.value&&g.selectionStart===0&&g.selectionEnd===0&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let f=this._elementRef.nativeElement,h=f.nodeName.toLowerCase();this._inputValueAccessor=c||f,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new su(a,r,s,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=h==="select",this._isTextarea=h==="textarea",this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){ML.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(Ee),p(Ar,10),p(fp,8),p(pp,8),p(cx),p(kL,10),p(Dx),p(F),p(Ig,8))}}static{this.\u0275dir=Y({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,r){i&1&&L("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(Fn("id",r.id)("disabled",r.disabled)("required",r.required),Pe("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),xe("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[lt([{provide:Eg,useExisting:t}]),Ze]})}}return t})(),Lx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae,kg,kg,Ex,Ae]})}}return t})();var AL=["mat-button",""],TL=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],RL=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var OL=new I("MAT_BUTTON_CONFIG");var NL=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],PL=(()=>{class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,o){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=y(Zi),this._rippleLoader=y(dx),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=y(OL,{optional:!0}),a=e.nativeElement,c=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:d}of NL)a.hasAttribute(l)&&c.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(i){Dl()}}static{this.\u0275dir=Y({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Se],disabled:[2,"disabled","disabled",Se],ariaDisabled:[2,"aria-disabled","ariaDisabled",Se],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Se]},features:[at]})}}return t})();var Yo=(()=>{class t extends PL{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(Ee),p(F),p(et,8))}}static{this.\u0275cmp=de({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(Pe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),en(r.color?"mat-"+r.color:""),xe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ve,$e],attrs:AL,ngContentSelectors:RL,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(_t(TL),se(0,"span",0),Ue(1),_(2,"span",1),Ue(3,1),v(),Ue(4,2),se(5,"span",2)(6,"span",3)),i&2&&xe("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})();var pu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Ae,cu,Ae]})}}return t})();var Bx=zC(),Mg=class{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=tt(-this._previousScrollPosition.left),n.style.top=tt(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,i=n.style,r=e.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),Bx&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Bx&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};var Sg=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ke(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},gu=class{enable(){}disable(){}attach(){}};function Ag(t,n){return n.some(e=>{let i=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,s=t.left>e.right;return i||r||o||s})}function zx(t,n){return n.some(e=>{let i=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,s=t.right>e.right;return i||r||o||s})}var Tg=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Ag(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},FL=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new gu,this.close=s=>new Sg(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Mg(this._viewportRuler,this._document),this.reposition=s=>new Tg(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static{this.\u0275fac=function(i){return new(i||t)(b(mx),b(Go),b(F),b(ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zr=class{constructor(n){if(this.scrollStrategy=new gu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Rg=class{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var Gx=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(i){return new(i||t)(b(ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),LL=(()=>{class t extends Gx{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{let o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){let a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||t)(b(ee),b(F,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jL=(()=>{class t extends Gx{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=on(o)},this._clickListener=o=>{let s=on(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){let d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(Hx(d.overlayElement,s)||Hx(d.overlayElement,a))break;let u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(i){return new(i||t)(b(ee),b(Ee),b(F,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Hx(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var Zo=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||xa()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let i=this._document.createElement("div");i.classList.add(e),xa()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}static{this.\u0275fac=function(i){return new(i||t)(b(ee),b(Ee))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),bi=class{constructor(n,e,i,r,o,s,a,c,l,d=!1,u){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._animationsDisabled=d,this._injector=u,this._backdropElement=null,this._backdropClick=new V,this._attachments=new V,this._detachments=new V,this._locationChanges=Te.EMPTY,this._backdropClickHandler=f=>this._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new V,this._outsidePointerEvents=new V,this._renders=new V,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=tn(()=>ks(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=fn(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=D(D({},this._config),n),this._updateElementSize()}setDirection(n){this._config=ve(D({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=tt(this._config.width),n.height=tt(this._config.height),n.minWidth=tt(this._config.minWidth),n.minHeight=tt(this._config.minHeight),n.maxWidth=tt(this._config.maxWidth),n.maxHeight=tt(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let n=this._backdropElement;if(n){if(this._animationsDisabled){this._disposeBackdrop(n);return}n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){let r=$o(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let n=this._renders.pipe(Le(In(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){let n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Ux="cdk-overlay-connected-position-bounding-box",VL=/([A-Za-z%]+)$/,Og=class{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new V,this._resizeSubscription=Te.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(Ux),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(n,r,a),l=this._getOverlayPoint(c,e,a),d=this._getOverlayFit(l,e,i,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,i)){o.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleArea<d.visibleArea)&&(s={overlayFit:d,overlayPoint:l,originPoint:c,position:a,overlayRect:e})}if(o.length){let a=null,c=-1;for(let l of o){let d=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);d>c&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Br(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ux),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r=i.originX=="start"?s:a}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=qx(e),{x:s,y:a}=n,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-i.width,f=0-a,h=a+o.height-i.height,m=this._subtractOverflows(o.width,d,u),g=this._subtractOverflows(o.height,f,h),C=m*g;return{visibleArea:C,isCompletelyWithinViewport:o.width*o.height===C,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,s=$x(this._overlayRef.getConfig().minHeight),a=$x(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportVertically||s!=null&&s<=r,l=n.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=qx(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),c=Math.max(o.top-i.top-n.y,0),l=Math.max(o.left-i.left-n.x,0),d=0,u=0;return r.width<=o.width?d=l||-s:d=n.x<this._viewportMargin?o.left-i.left-n.x:0,r.height<=o.height?u=c||-a:u=n.y<this._viewportMargin?o.top-i.top-n.y:0,this._previousPushAmount={x:d,y:u},{x:n.x+d,y:n.y+u}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!BL(this._lastScrollVisibility,i)){let r=new Rg(n,i);this._positionChanges.next(r)}this._lastScrollVisibility=i}this._lastPosition=n,this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,r=n.overlayY;n.overlayX==="center"?i="center":this._isRtl()?i=n.overlayX==="start"?"right":"left":i=n.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(n,e){let i=this._viewportRect,r=this._isRtl(),o,s,a;if(e.overlayY==="top")s=n.y,o=i.height-s+this._viewportMargin;else if(e.overlayY==="bottom")a=i.height-n.y+this._viewportMargin*2,o=i.height-a+this._viewportMargin;else{let h=Math.min(i.bottom-n.y+i.top,n.y),m=this._lastBoundingBoxSize.height;o=h*2,s=n.y-h,o>m&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-m/2)}let c=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,l=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,u,f;if(l)f=i.width-n.x+this._viewportMargin*2,d=n.x-this._viewportMargin;else if(c)u=n.x,d=i.right-n.x;else{let h=Math.min(i.right-n.x+i.left,n.x),m=this._lastBoundingBoxSize.width;d=h*2,u=n.x-h,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-m/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=tt(i.height),r.top=tt(i.top),r.bottom=tt(i.bottom),r.width=tt(i.width),r.left=tt(i.left),r.right=tt(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=tt(o)),s&&(r.maxWidth=tt(s))}this._lastBoundingBoxSize=i,Br(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Br(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Br(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();Br(i,this._getExactOverlayY(e,n,d)),Br(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=tt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=tt(s.maxWidth):o&&(i.maxWidth="")),Br(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=tt(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=n.overlayX==="end"?"left":"right":s=n.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=tt(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zx(n,i),isOriginOutsideView:Ag(n,i),isOverlayClipped:zx(e,i),isOverlayOutsideView:Ag(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&$o(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){let n=this._origin;if(n instanceof Z)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function Br(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function $x(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(VL);return!e||e==="px"?parseFloat(n):null}return t||null}function qx(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function BL(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var Wx="cdk-global-overlay-wrapper",Ng=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(Wx),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,c=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",h="",m="",g="";c?g="flex-start":d==="center"?(g="center",f?m=u:h=u):f?d==="left"||d==="end"?(g="flex-end",h=u):(d==="right"||d==="start")&&(g="flex-start",m=u):d==="left"||d==="start"?(g="flex-start",h=u):(d==="right"||d==="end")&&(g="flex-end",m=u),n.position=this._cssPosition,n.marginLeft=c?"0":h,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":m,e.justifyContent=g,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Wx),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},zL=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new Ng}flexibleConnectedTo(e){return new Og(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||t)(b(Go),b(ee),b(Ee),b(Zo))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),HL=0,Ut=(()=>{class t{constructor(e,i,r,o,s,a,c,l,d,u,f,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=h}create(e){let i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new zr(e);return s.direction=s.direction||this._directionality.value,new bi(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(mt))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${HL++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Lt)),new du(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||t)(b(FL),b(Zo),b(Ft),b(zL),b(LL),b(ae),b(F),b(ee),b(qn),b(jn),b(jL),b(et,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var UL=new I("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Ut);return()=>t.scrollStrategies.reposition()}});function $L(t){return()=>t.scrollStrategies.reposition()}var qL={provide:UL,deps:[Ut],useFactory:$L},Ko=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({providers:[Ut,qL],imports:[Ki,gi,vg,vg]})}}return t})();function WL(t,n){if(t&1){let e=Me();_(0,"div",1)(1,"button",2),L("click",function(){N(e);let r=T();return P(r.action())}),J(2),v()()}if(t&2){let e=T();w(2),it(" ",e.data.action," ")}}var GL=["label"];function YL(t,n){}var ZL=Math.pow(2,31)-1,Ma=class{constructor(n,e){this._overlayRef=e,this._afterDismissed=new V,this._afterOpened=new V,this._onAction=new V,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,ZL))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Yx=new I("MatSnackBarData"),Qo=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},KL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}}return t})(),QL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}}return t})(),XL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Y({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}}return t})(),Zx=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(i){return new(i||t)(p(Ma),p(Yx))}}static{this.\u0275cmp=de({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[$e],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){i&1&&(_(0,"div",0),J(1),v(),Q(2,WL,3,1,"div",1)),i&2&&(w(),it(" ",r.data.message,`
12
+ `),w(),ct(r.hasAction?2:-1))},dependencies:[Yo,KL,QL,XL],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return t})(),JL={snackBarState:td("state",[Bs("void, hidden",zn({transform:"scale(0.8)",opacity:0})),Bs("visible",zn({transform:"scale(1)",opacity:1})),zs("* => visible",Vs("150ms cubic-bezier(0, 0, 0.2, 1)")),zs("* => void, * => hidden",Vs("75ms cubic-bezier(0.4, 0.0, 1, 1)",zn({opacity:0})))])},ej=0,tj=(()=>{class t extends Xi{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=y(ee),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new V,this._onExit=new V,this._onEnter=new V,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${ej++}`,this.attachDomPortal=a=>{this._assertNotAttached();let c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){let{fromState:i,toState:r}=e;if((r==="void"&&i!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(s=>e.classList.add(s)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],s=o.getAttribute("aria-owns");this._trackedModals.add(o),s?s.indexOf(e)===-1&&o.setAttribute("aria-owns",s+" "+e):o.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(i){return new(i||t)(p(F),p(Z),p(Be),p(Ee),p(Qo))}}static{this.\u0275cmp=de({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(Ie(Ji,7),Ie(GL,7)),i&2){let o;pe(o=ge())&&(r._portalOutlet=o.first),pe(o=ge())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(i,r){i&1&&Qf("@state.done",function(s){return r.onAnimationEnd(s)}),i&2&&Kf("@state",r._animationState)},standalone:!0,features:[Ve,$e],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(_(0,"div",1)(1,"div",2,0)(3,"div",3),Q(4,YL,0,0,"ng-template",4),v(),se(5,"div"),v()()),i&2&&(w(5),Pe("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Ji],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-app-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-app-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-app-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-app-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[JL.snackBarState]}})}}return t})();function nj(){return new Qo}var ij=new I("mat-snack-bar-default-options",{providedIn:"root",factory:nj}),Fg=(()=>{class t{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Zx,this.snackBarContainerComponent=tj,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=D(D({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=ae.create({parent:r||this._injector,providers:[{provide:Qo,useValue:i}]}),s=new pi(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){let r=D(D(D({},new Qo),this._defaultConfig),i),o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Ma(s,o);if(e instanceof bt){let c=new Qi(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(c)}else{let c=this._createInjector(r,a),l=new pi(e,void 0,c),d=s.attachComponentPortal(l);a.instance=d.instance}return this._breakpointObserver.observe(WC.HandsetPortrait).pipe(Le(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){let i=new zr;i.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",s=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,a=!s&&e.horizontalPosition!=="center";return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return ae.create({parent:r||this._injector,providers:[{provide:Ma,useValue:i},{provide:Yx,useValue:e.data}]})}static{this.\u0275fac=function(i){return new(i||t)(b(Ut),b(XC),b(ae),b(eu),b(t,12),b(ij))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({providers:[Fg],imports:[Ko,gi,pu,Ae,Zx,Ae]})}}return t})();var oj=["input"],sj=["label"],aj=["*"],cj=new I("mat-checkbox-default-options",{providedIn:"root",factory:Xx});function Xx(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var yt=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(yt||{}),lj={provide:Js,useExisting:Zt(()=>Xo),multi:!0},Lg=class{},dj=0,Qx=Xx(),Xo=(()=>{class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new Lg;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._animationMode=s,this._options=a,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new K,this.indeterminateChange=new K,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=yt.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Qx,this.color=this._options.color||Qx.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++dj}`,this.disabledInteractive=a?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let i=e!=this._indeterminate;this._indeterminate=e,i&&(this._indeterminate?this._transitionCheckState(yt.Indeterminate):this._transitionCheckState(this.checked?yt.Checked:yt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?yt.Checked:yt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if(this._animationMode==="NoopAnimations")return"";switch(e){case yt.Init:if(i===yt.Checked)return this._animationClasses.uncheckedToChecked;if(i==yt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case yt.Unchecked:return i===yt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case yt.Checked:return i===yt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case yt.Indeterminate:return i===yt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(Be),p(F),Fi("tabindex"),p(et,8),p(cj,8))}}static{this.\u0275cmp=de({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(Ie(oj,5),Ie(sj,5),Ie(Vr,5)),i&2){let o;pe(o=ge())&&(r._inputElement=o.first),pe(o=ge())&&(r._labelElement=o.first),pe(o=ge())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(Fn("id",r.id),Pe("tabindex",null)("aria-label",null)("aria-labelledby",null),en(r.color?"mat-"+r.color:"mat-accent"),xe("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",Se],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Se],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:xr(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Se],checked:[2,"checked","checked",Se],disabled:[2,"disabled","disabled",Se],indeterminate:[2,"indeterminate","indeterminate",Se]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[lt([lj,{provide:To,useExisting:t,multi:!0}]),at,Ze,$e],ngContentSelectors:aj,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=Me();_t(),_(0,"div",3),L("click",function(a){return N(o),P(r._preventBubblingFromLabel(a))}),_(1,"div",4,0)(3,"div",5),L("click",function(){return N(o),P(r._onTouchTargetClick())}),v(),_(4,"input",6,1),L("blur",function(){return N(o),P(r._onBlur())})("click",function(){return N(o),P(r._onInputClick())})("change",function(a){return N(o),P(r._onInteractionEvent(a))}),v(),se(6,"div",7),_(7,"div",8),Ds(),_(8,"svg",9),se(9,"path",10),v(),Df(),se(10,"div",11),v(),se(11,"div",12),v(),_(12,"label",13,2),Ue(14),v()()}if(i&2){let o=oi(2);k("labelPosition",r.labelPosition),w(4),xe("mdc-checkbox--selected",r.checked),k("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),Pe("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("name",r.name)("value",r.value),w(7),k("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),w(),k("for",r.inputId)}},dependencies:[Vr,ux],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.cdk-high-contrast-active .mdc-checkbox--disabled{opacity:.5}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-app-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-app-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.cdk-high-contrast-active .mdc-checkbox--disabled .mdc-checkbox__checkmark,.cdk-high-contrast-active .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();var Jx=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({imports:[Xo,Ae,Ae]})}}return t})();function uj(t,n){}var Hr=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var Bg=(()=>{class t extends Xi{constructor(e,i,r,o,s,a,c,l){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=c,this._focusMonitor=l,this._platform=y(Ee),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=y(Be),this._injector=y(ae),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){this._isDestroyed||fn(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=Ca(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=Ca();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ca()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(ru),p(ee,8),p(Hr),p(Da),p(F),p(bi),p(Zi))}}static{this.\u0275cmp=de({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&Ie(Ji,7),i&2){let o;pe(o=ge())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&Pe("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ve,$e],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&Q(0,uj,0,0,"ng-template",0)},dependencies:[Ji],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return t})(),Sa=class{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new V,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Gi(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}},hj=new I("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=y(Ut);return()=>t.scrollStrategies.block()}}),fj=new I("DialogData"),mj=new I("DefaultDialogConfig");var pj=0,zg=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V,this._afterOpenedAtThisLevel=new V,this._ariaHiddenElements=new Map,this.afterAllClosed=Ci(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Pt(void 0))),this._scrollStrategy=a}open(e,i){let r=this._defaultOptions||new Hr;i=D(D({},r),i),i.id=i.id||`cdk-dialog-${pj++}`,i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new Sa(s,i),c=this._attachContainer(s,a,i);return a.containerInstance=c,this._attachDialogContent(e,a,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){jg(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){jg(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),jg(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new zr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:Hr,useValue:r},{provide:Sa,useValue:i},{provide:bi,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=Bg;let c=new pi(a,r.viewContainerRef,ae.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof bt){let s=this._createInjector(o,i,r,void 0),a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=D(D({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Qi(e,null,a,s))}else{let s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new pi(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:fj,useValue:e.data},{provide:Sa,useValue:i}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(qn,null,{optional:!0}))&&a.push({provide:qn,useValue:{value:e.direction,change:q()}}),ae.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||t)(b(Ut),b(ae),b(mj,8),b(t,12),b(Zo),b(hj))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function jg(t,n){let e=t.length;for(;e--;)n(t[e])}var tD=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({providers:[zg],imports:[Ko,gi,JC,gi]})}}return t})();function gj(t,n){}var Aa=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},Hg="mdc-dialog--open",nD="mdc-dialog--opening",iD="mdc-dialog--closing",bj=150,vj=75,_j=(()=>{class t extends Bg{constructor(e,i,r,o,s,a,c,l,d){super(e,i,r,o,s,a,c,d),this._animationMode=l,this._animationStateChanged=new K,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?oD(this._config.enterAnimationDuration)??bj:0,this._exitAnimationDuration=this._animationsEnabled?oD(this._config.exitAnimationDuration)??vj:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(rD,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(nD,Hg)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Hg),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Hg),this._animationsEnabled?(this._hostElement.style.setProperty(rD,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iD)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(nD,iD)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(ru),p(ee,8),p(Aa),p(Da),p(F),p(bi),p(et,8),p(Zi))}}static{this.\u0275cmp=de({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(Fn("id",r._config.id),Pe("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),xe("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ve,$e],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(_(0,"div",0)(1,"div",1),Q(2,gj,0,0,"ng-template",2),v()())},dependencies:[Ji],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return t})(),rD="--mat-dialog-transition-duration";function oD(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Yi(t.substring(0,t.length-2)):t.endsWith("s")?Yi(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var bu=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(bu||{}),vi=class{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new V,this._beforeClosed=new V,this._state=bu.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ke(r=>r.state==="opened"),pt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ke(r=>r.state==="closed"),pt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),In(this.backdropClick(),this.keydownEvents().pipe(ke(r=>r.keyCode===27&&!this.disableClose&&!Gi(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sD(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ke(e=>e.state==="closing"),pt(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=bu.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=bu.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function sD(t,n,e){return t._closeInteractionType=n,t.close(e)}var Ta=new I("MatMdcDialogData"),yj=new I("mat-mdc-dialog-default-options"),wj=new I("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(Ut);return()=>t.scrollStrategies.block()}});var Cj=0,Ur=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,s,a,c,l){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V,this._afterOpenedAtThisLevel=new V,this.dialogConfigClass=Aa,this.afterAllClosed=Ci(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Pt(void 0))),this._dialog=i.get(zg),this._dialogRefConstructor=vi,this._dialogContainerType=_j,this._dialogDataToken=Ta}open(e,i){let r;i=D(D({},this._defaultOptions||new Aa),i),i.id=i.id||`mat-mdc-dialog-${Cj++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,ve(D({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Hr,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,i,c),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||t)(b(Ut),b(ae),b(jn,8),b(yj,8),b(wj),b(t,12),b(Zo),b(et,8))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var aD=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=cD(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){sD(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(i){return new(i||t)(p(vi,8),p(Z),p(Ur))}}static{this.\u0275dir=Y({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&L("click",function(s){return r._onButtonClick(s)}),i&2&&Pe("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Ze]})}}return t})(),xj=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=cD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(i){return new(i||t)(p(vi,8),p(Z),p(Ur))}}static{this.\u0275dir=Y({type:t,standalone:!0})}}return t})();var vu=(()=>{class t extends xj{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xt(t)))(r||t)}})()}static{this.\u0275dir=Y({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&xe("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ve]})}}return t})();function cD(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var lD=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t})}static{this.\u0275inj=U({providers:[Ur],imports:[tD,Ko,gi,Ae,Ae]})}}return t})();var Dj=["dialogPopup"],Ej=["hueSlider"],Ij=["alphaSlider"];function kj(t,n){if(t&1&&se(0,"div"),t&2){let e=T();e0("arrow arrow-",e.cpUsePosition,""),He("left",e.cpArrowPosition)("top",e.arrowTop,"px")}}function Mj(t,n){if(t&1){let e=Me();_(0,"div",28),L("newValue",function(r){N(e);let o=T();return P(o.onColorChange(r))})("dragStart",function(){N(e);let r=T();return P(r.onDragStart("saturation-lightness"))})("dragEnd",function(){N(e);let r=T();return P(r.onDragEnd("saturation-lightness"))}),se(1,"div",16),v()}if(t&2){let e=T();He("background-color",e.hueSliderColor),k("rgX",1)("rgY",1),w(),He("top",e.slider==null?null:e.slider.v,"px")("left",e.slider==null?null:e.slider.s,"px")}}function Sj(t,n){t&1&&(Ds(),_(0,"svg",29),se(1,"path",30)(2,"path",31),v())}function Aj(t,n){if(t&1){let e=Me();_(0,"button",32),L("click",function(r){N(e);let o=T();return P(o.onAddPresetColor(r,o.selectedColor))}),J(1),v()}if(t&2){let e=T();en(e.cpAddColorButtonClass),k("disabled",e.cpPresetColors&&e.cpPresetColors.length>=e.cpMaxPresetColorsLength),w(),it(" ",e.cpAddColorButtonText," ")}}function Tj(t,n){t&1&&se(0,"div",33)}function Rj(t,n){if(t&1){let e=Me();_(0,"input",39),L("keyup.enter",function(r){N(e);let o=T(2);return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T(2);return P(o.onAlphaInput(r))}),v()}if(t&2){let e=T(2);k("rg",1)("value",e.cmykText==null?null:e.cmykText.a)}}function Oj(t,n){t&1&&(_(0,"div"),J(1,"A"),v())}function Nj(t,n){if(t&1){let e=Me();_(0,"div",34)(1,"div",35)(2,"input",36),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onCyanInput(r))}),v(),_(3,"input",36),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onMagentaInput(r))}),v(),_(4,"input",36),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onYellowInput(r))}),v(),_(5,"input",36),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onBlackInput(r))}),v(),Q(6,Rj,1,2,"input",37),v(),_(7,"div",35)(8,"div"),J(9,"C"),v(),_(10,"div"),J(11,"M"),v(),_(12,"div"),J(13,"Y"),v(),_(14,"div"),J(15,"K"),v(),Q(16,Oj,2,0,"div",38),v()()}if(t&2){let e=T();He("display",e.format!==3?"none":"block"),w(2),k("rg",100)("value",e.cmykText==null?null:e.cmykText.c),w(),k("rg",100)("value",e.cmykText==null?null:e.cmykText.m),w(),k("rg",100)("value",e.cmykText==null?null:e.cmykText.y),w(),k("rg",100)("value",e.cmykText==null?null:e.cmykText.k),w(),k("ngIf",e.cpAlphaChannel!=="disabled"),w(10),k("ngIf",e.cpAlphaChannel!=="disabled")}}function Pj(t,n){if(t&1){let e=Me();_(0,"input",39),L("keyup.enter",function(r){N(e);let o=T(2);return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T(2);return P(o.onAlphaInput(r))}),v()}if(t&2){let e=T(2);k("rg",1)("value",e.hslaText==null?null:e.hslaText.a)}}function Fj(t,n){t&1&&(_(0,"div"),J(1,"A"),v())}function Lj(t,n){if(t&1){let e=Me();_(0,"div",40)(1,"div",35)(2,"input",41),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onHueInput(r))}),v(),_(3,"input",36),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onSaturationInput(r))}),v(),_(4,"input",36),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onLightnessInput(r))}),v(),Q(5,Pj,1,2,"input",37),v(),_(6,"div",35)(7,"div"),J(8,"H"),v(),_(9,"div"),J(10,"S"),v(),_(11,"div"),J(12,"L"),v(),Q(13,Fj,2,0,"div",38),v()()}if(t&2){let e=T();He("display",e.format!==2?"none":"block"),w(2),k("rg",360)("value",e.hslaText==null?null:e.hslaText.h),w(),k("rg",100)("value",e.hslaText==null?null:e.hslaText.s),w(),k("rg",100)("value",e.hslaText==null?null:e.hslaText.l),w(),k("ngIf",e.cpAlphaChannel!=="disabled"),w(8),k("ngIf",e.cpAlphaChannel!=="disabled")}}function jj(t,n){if(t&1){let e=Me();_(0,"input",39),L("keyup.enter",function(r){N(e);let o=T(2);return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T(2);return P(o.onAlphaInput(r))}),v()}if(t&2){let e=T(2);k("rg",1)("value",e.rgbaText==null?null:e.rgbaText.a)}}function Vj(t,n){t&1&&(_(0,"div"),J(1,"A"),v())}function Bj(t,n){if(t&1){let e=Me();_(0,"div",42)(1,"div",35)(2,"input",43),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onRedInput(r))}),v(),_(3,"input",43),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onGreenInput(r))}),v(),_(4,"input",43),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onBlueInput(r))}),v(),Q(5,jj,1,2,"input",37),v(),_(6,"div",35)(7,"div"),J(8,"R"),v(),_(9,"div"),J(10,"G"),v(),_(11,"div"),J(12,"B"),v(),Q(13,Vj,2,0,"div",38),v()()}if(t&2){let e=T();He("display",e.format!==1?"none":"block"),w(2),k("rg",255)("value",e.rgbaText==null?null:e.rgbaText.r),w(),k("rg",255)("value",e.rgbaText==null?null:e.rgbaText.g),w(),k("rg",255)("value",e.rgbaText==null?null:e.rgbaText.b),w(),k("ngIf",e.cpAlphaChannel!=="disabled"),w(8),k("ngIf",e.cpAlphaChannel!=="disabled")}}function zj(t,n){if(t&1){let e=Me();_(0,"input",39),L("keyup.enter",function(r){N(e);let o=T(2);return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T(2);return P(o.onAlphaInput(r))}),v()}if(t&2){let e=T(2);k("rg",1)("value",e.hexAlpha)}}function Hj(t,n){t&1&&(_(0,"div"),J(1,"A"),v())}function Uj(t,n){if(t&1){let e=Me();_(0,"div",44)(1,"div",35)(2,"input",45),L("blur",function(){N(e);let r=T();return P(r.onHexInput(null))})("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onHexInput(r))}),v(),Q(3,zj,1,2,"input",37),v(),_(4,"div",35)(5,"div"),J(6,"Hex"),v(),Q(7,Hj,2,0,"div",38),v()()}if(t&2){let e=T();He("display",e.format!==0?"none":"block"),xe("hex-alpha",e.cpAlphaChannel==="forced"),w(2),k("value",e.hexText),w(),k("ngIf",e.cpAlphaChannel==="forced"),w(4),k("ngIf",e.cpAlphaChannel==="forced")}}function $j(t,n){if(t&1){let e=Me();_(0,"input",39),L("keyup.enter",function(r){N(e);let o=T(2);return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T(2);return P(o.onAlphaInput(r))}),v()}if(t&2){let e=T(2);k("rg",1)("value",e.hslaText==null?null:e.hslaText.a)}}function qj(t,n){if(t&1){let e=Me();_(0,"div",46)(1,"div",35)(2,"input",36),L("keyup.enter",function(r){N(e);let o=T();return P(o.onAcceptColor(r))})("newValue",function(r){N(e);let o=T();return P(o.onValueInput(r))}),v(),Q(3,$j,1,2,"input",37),v(),_(4,"div",35)(5,"div"),J(6,"V"),v(),_(7,"div"),J(8,"A"),v()()()}if(t&2){let e=T();w(2),k("rg",100)("value",e.hslaText==null?null:e.hslaText.l),w(),k("ngIf",e.cpAlphaChannel!=="disabled")}}function Wj(t,n){if(t&1){let e=Me();_(0,"div",47)(1,"span",48),L("click",function(){N(e);let r=T();return P(r.onFormatToggle(-1))}),v(),_(2,"span",48),L("click",function(){N(e);let r=T();return P(r.onFormatToggle(1))}),v()()}}function Gj(t,n){if(t&1){let e=Me();_(0,"span",55),L("click",function(r){N(e);let o=T().$implicit,s=T(3);return P(s.onRemovePresetColor(r,o))}),v()}if(t&2){let e=T(4);en(e.cpRemoveColorButtonClass)}}function Yj(t,n){if(t&1){let e=Me();_(0,"div",53),L("click",function(){let r=N(e).$implicit,o=T(3);return P(o.setColorFromString(r))}),Q(1,Gj,1,3,"span",54),v()}if(t&2){let e=n.$implicit,i=T(3);He("background-color",e),w(),k("ngIf",i.cpAddColorButton)}}function Zj(t,n){if(t&1&&(_(0,"div"),Q(1,Yj,2,3,"div",52),v()),t&2){let e=T(2);en(e.cpPresetColorsClass),w(),k("ngForOf",e.cpPresetColors)}}function Kj(t,n){if(t&1&&(_(0,"div"),J(1),v()),t&2){let e=T(2);en(e.cpPresetEmptyMessageClass),w(),pn(e.cpPresetEmptyMessage)}}function Qj(t,n){if(t&1&&(_(0,"div",49),se(1,"hr"),_(2,"div",50),J(3),v(),Q(4,Zj,2,4,"div",51)(5,Kj,2,4,"div",51),v()),t&2){let e=T();w(3),pn(e.cpPresetLabel),w(),k("ngIf",e.cpPresetColors==null?null:e.cpPresetColors.length),w(),k("ngIf",!(e.cpPresetColors!=null&&e.cpPresetColors.length)&&e.cpAddColorButton)}}function Xj(t,n){if(t&1){let e=Me();_(0,"button",58),L("click",function(r){N(e);let o=T(2);return P(o.onCancelColor(r))}),J(1),v()}if(t&2){let e=T(2);en(e.cpCancelButtonClass),w(),pn(e.cpCancelButtonText)}}function Jj(t,n){if(t&1){let e=Me();_(0,"button",58),L("click",function(r){N(e);let o=T(2);return P(o.onAcceptColor(r))}),J(1),v()}if(t&2){let e=T(2);en(e.cpOKButtonClass),w(),pn(e.cpOKButtonText)}}function eV(t,n){if(t&1&&(_(0,"div",56),Q(1,Xj,2,4,"button",57)(2,Jj,2,4,"button",57),v()),t&2){let e=T();w(),k("ngIf",e.cpCancelButton),w(),k("ngIf",e.cpOKButton)}}function tV(t,n){t&1&&Zf(0)}function nV(t,n){if(t&1&&(_(0,"div",59),Q(1,tV,1,0,"ng-container",60),v()),t&2){let e=T();w(),k("ngTemplateOutlet",e.cpExtraTemplate)}}var Mt=function(t){return t[t.HEX=0]="HEX",t[t.RGBA=1]="RGBA",t[t.HSLA=2]="HSLA",t[t.CMYK=3]="CMYK",t}(Mt||{}),wn=class{r;g;b;a;constructor(n,e,i,r){this.r=n,this.g=e,this.b=i,this.a=r}},Jo=class{h;s;v;a;constructor(n,e,i,r){this.h=n,this.s=e,this.v=i,this.a=r}},_i=class{h;s;l;a;constructor(n,e,i,r){this.h=n,this.s=e,this.l=i,this.a=r}},$r=class{c;m;y;k;a;constructor(n,e,i,r,o=1){this.c=n,this.m=e,this.y=i,this.k=r,this.a=o}};function iV(t,n){let e="right",i="bottom",{height:r,width:o}=t,{top:s,left:a}=n,c=s+n.height,l=a+n.width,d=s-r<0,u=c+r>(window.innerHeight||document.documentElement.clientHeight),f=a-o<0,h=l+o>(window.innerWidth||document.documentElement.clientWidth),m=d&&u&&f&&h;return u&&(i="top"),d&&(i="bottom"),f&&(e="right"),h&&(e="left"),m?["left","right","top","bottom"].reduce((C,S)=>t[C]>t[S]?C:S):f&&h?d?"bottom":u||s>c?"top":"bottom":d&&u?f?"right":h||a>l?"left":"right":`${i}-${e}`}function rV(){let t="";typeof navigator<"u"&&(t=navigator.userAgent.toLowerCase());let n=t.indexOf("msie ");return n>0?parseInt(t.substring(n+5,t.indexOf(".",n)),10):!1}var oV=(()=>{class t{rg;text;newValue=new K;inputChange(e){let i=e.target.value;if(this.rg===void 0)this.newValue.emit(i);else{let r=parseFloat(i);this.newValue.emit({v:r,rg:this.rg})}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","text",""]],hostBindings:function(i,r){i&1&&L("input",function(s){return r.inputChange(s)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}return t})(),sV=(()=>{class t{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new K;dragStart=new K;newValue=new K;mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.listenerMove=i=>this.move(i),this.listenerStop=()=>this.stop()}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){let i=this.elRef.nativeElement.getBoundingClientRect();return(e.pageX!==void 0?e.pageX:e.touches[0].pageX)-i.left-window.pageXOffset}getY(e){let i=this.elRef.nativeElement.getBoundingClientRect();return(e.pageY!==void 0?e.pageY:e.touches[0].pageY)-i.top-window.pageYOffset}setCursor(e){let i=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(e),i)),s=Math.max(0,Math.min(this.getY(e),r));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:o/i,v:1-s/r,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:s/r,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:o/i,rgX:this.rgX})}static \u0275fac=function(i){return new(i||t)(p(Z))};static \u0275dir=Y({type:t,selectors:[["","slider",""]],hostBindings:function(i,r){i&1&&L("mousedown",function(s){return r.mouseDown(s)})("touchstart",function(s){return r.touchStart(s)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}return t})(),_u=class{h;s;v;a;constructor(n,e,i,r){this.h=n,this.s=e,this.v=i,this.a=r}},yu=class{h;s;v;a;constructor(n,e,i,r){this.h=n,this.s=e,this.v=i,this.a=r}},$g=(()=>{class t{active=null;setActive(e){this.active&&this.active!==e&&this.active.cpDialogDisplay!=="inline"&&this.active.closeDialog(),this.active=e}hsva2hsla(e){let i=e.h,r=e.s,o=e.v,s=e.a;if(o===0)return new _i(i,0,0,s);if(r===0&&o===1)return new _i(i,1,1,s);{let a=o*(2-r)/2;return new _i(i,o*r/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(e){let i=Math.min(e.h,1),r=Math.min(e.s,1),o=Math.min(e.l,1),s=Math.min(e.a,1);if(o===0)return new Jo(i,0,0,s);{let a=o+r*(1-Math.abs(2*o-1))/2;return new Jo(i,2*(a-o)/a,a,s)}}hsvaToRgba(e){let i,r,o,s=e.h,a=e.s,c=e.v,l=e.a,d=Math.floor(s*6),u=s*6-d,f=c*(1-a),h=c*(1-u*a),m=c*(1-(1-u)*a);switch(d%6){case 0:i=c,r=m,o=f;break;case 1:i=h,r=c,o=f;break;case 2:i=f,r=c,o=m;break;case 3:i=f,r=h,o=c;break;case 4:i=m,r=f,o=c;break;case 5:i=c,r=f,o=h;break;default:i=0,r=0,o=0}return new wn(i,r,o,l)}cmykToRgb(e){let i=(1-e.c)*(1-e.k),r=(1-e.m)*(1-e.k),o=(1-e.y)*(1-e.k);return new wn(i,r,o,e.a)}rgbaToCmyk(e){let i=1-Math.max(e.r,e.g,e.b);if(i===1)return new $r(0,0,0,1,e.a);{let r=(1-e.r-i)/(1-i),o=(1-e.g-i)/(1-i),s=(1-e.b-i)/(1-i);return new $r(r,o,s,i,e.a)}}rgbaToHsva(e){let i,r,o=Math.min(e.r,1),s=Math.min(e.g,1),a=Math.min(e.b,1),c=Math.min(e.a,1),l=Math.max(o,s,a),d=Math.min(o,s,a),u=l,f=l-d;if(r=l===0?0:f/l,l===d)i=0;else{switch(l){case o:i=(s-a)/f+(s<a?6:0);break;case s:i=(a-o)/f+2;break;case a:i=(o-s)/f+4;break;default:i=0}i/=6}return new Jo(i,r,u,c)}rgbaToHex(e,i){let r="#"+(16777216|e.r<<16|e.g<<8|e.b).toString(16).substr(1);return i&&(r+=(256|Math.round(e.a*255)).toString(16).substr(1)),r}normalizeCMYK(e){return new $r(e.c/100,e.m/100,e.y/100,e.k/100,e.a)}denormalizeCMYK(e){return new $r(Math.floor(e.c*100),Math.floor(e.m*100),Math.floor(e.y*100),Math.floor(e.k*100),e.a)}denormalizeRGBA(e){return new wn(Math.round(e.r*255),Math.round(e.g*255),Math.round(e.b*255),e.a)}stringToHsva(e="",i=!1){let r=null;e=(e||"").toLowerCase();let o=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new wn(parseInt(s[2],10)/255,parseInt(s[3],10)/255,parseInt(s[4],10)/255,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new _i(parseInt(s[2],10)/360,parseInt(s[3],10)/100,parseInt(s[4],10)/100,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}}];i?o.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(s){return new wn(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,parseInt(s[4]||"FF",16)/255)}}):o.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(s){return new wn(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,1)}}),o.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(s){return new wn(parseInt(s[1]+s[1],16)/255,parseInt(s[2]+s[2],16)/255,parseInt(s[3]+s[3],16)/255,1)}});for(let s in o)if(o.hasOwnProperty(s)){let a=o[s],c=a.re.exec(e),l=c&&a.parse(c);if(l)return l instanceof wn?r=this.rgbaToHsva(l):l instanceof _i&&(r=this.hsla2hsva(l)),r}return r}outputFormat(e,i,r){switch(i==="auto"&&(i=e.a<1?"rgba":"hex"),i){case"hsla":let o=this.hsva2hsla(e),s=new _i(Math.round(o.h*360),Math.round(o.s*100),Math.round(o.l*100),Math.round(o.a*100)/100);return e.a<1||r==="always"?"hsla("+s.h+","+s.s+"%,"+s.l+"%,"+s.a+")":"hsl("+s.h+","+s.s+"%,"+s.l+"%)";case"rgba":let a=this.denormalizeRGBA(this.hsvaToRgba(e));return e.a<1||r==="always"?"rgba("+a.r+","+a.g+","+a.b+","+Math.round(a.a*100)/100+")":"rgb("+a.r+","+a.g+","+a.b+")";default:let c=r==="always"||r==="forced";return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(e)),c)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),dD=typeof window<"u"&&"ontouchstart"in window,aV=(()=>{class t{ngZone;elRef;cdRef;document;platformId;service;isIE10=!1;cmyk;hsva;width;height;cmykColor;outputColor;initialColor;fallbackColor;listenerResize;listenerMouseDown;directiveInstance;sliderH;sliderDimMax;directiveElementRef;dialogArrowSize=10;dialogArrowOffset=15;dialogInputFields=[Mt.HEX,Mt.RGBA,Mt.HSLA,Mt.CMYK];useRootViewContainer=!1;show;hidden;top;left;position;format;slider;hexText;hexAlpha;cmykText;hslaText;rgbaText;arrowTop;selectedColor;hueSliderColor;alphaSliderColor;cpWidth;cpHeight;cpColorMode;cpCmykEnabled;cpAlphaChannel;cpOutputFormat;cpDisableInput;cpDialogDisplay;cpIgnoredElements;cpSaveClickOutside;cpCloseClickOutside;cpPosition;cpUsePosition;cpPositionOffset;cpOKButton;cpOKButtonText;cpOKButtonClass;cpCancelButton;cpCancelButtonText;cpCancelButtonClass;cpEyeDropper;eyeDropperSupported;cpPresetLabel;cpPresetColors;cpPresetColorsClass;cpMaxPresetColorsLength;cpPresetEmptyMessage;cpPresetEmptyMessageClass;cpAddColorButton;cpAddColorButtonText;cpAddColorButtonClass;cpRemoveColorButtonClass;cpArrowPosition;cpTriggerElement;cpExtraTemplate;dialogElement;hueSlider;alphaSlider;handleEsc(e){this.show&&this.cpDialogDisplay==="popup"&&this.onCancelColor(e)}handleEnter(e){this.show&&this.cpDialogDisplay==="popup"&&this.onAcceptColor(e)}constructor(e,i,r,o,s,a){this.ngZone=e,this.elRef=i,this.cdRef=r,this.document=o,this.platformId=s,this.service=a,this.eyeDropperSupported=As(this.platformId)&&"EyeDropper"in this.document.defaultView}ngOnInit(){this.slider=new _u(0,0,0,0);let e=this.hueSlider.nativeElement.offsetWidth||140,i=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new yu(e,this.cpWidth,130,i),this.cpCmykEnabled?this.format=Mt.CMYK:this.cpOutputFormat==="rgba"?this.format=Mt.RGBA:this.cpOutputFormat==="hsla"?this.format=Mt.HSLA:this.format=Mt.HEX,this.listenerMouseDown=r=>{this.onMouseDown(r)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(this.cpWidth!==230||this.cpDialogDisplay==="inline"){let e=this.hueSlider.nativeElement.offsetWidth||140,i=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new yu(e,this.cpWidth,130,i),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(e,i=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(e),this.setColorFromString(e,i),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(e,i,r,o,s,a,c,l,d,u,f,h,m,g,C,S,O,E,M,W,H,z,we,R,Ge,qe,Ke,ht,ze,wt,j,G,X,oe,ue,B,Oe,Ct){this.setInitialColor(r),this.setColorMode(l),this.isIE10=rV()===10,this.directiveInstance=e,this.directiveElementRef=i,this.cpDisableInput=h,this.cpCmykEnabled=d,this.cpAlphaChannel=u,this.cpOutputFormat=f,this.cpDialogDisplay=a,this.cpIgnoredElements=m,this.cpSaveClickOutside=g,this.cpCloseClickOutside=C,this.useRootViewContainer=S,this.width=this.cpWidth=parseInt(o,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=O,this.cpPositionOffset=parseInt(E,10),this.cpOKButton=qe,this.cpOKButtonText=ht,this.cpOKButtonClass=Ke,this.cpCancelButton=ze,this.cpCancelButtonText=j,this.cpCancelButtonClass=wt,this.cpEyeDropper=B,this.fallbackColor=c||"#fff",this.setPresetConfig(W,H),this.cpPresetColorsClass=z,this.cpMaxPresetColorsLength=we,this.cpPresetEmptyMessage=R,this.cpPresetEmptyMessageClass=Ge,this.cpAddColorButton=G,this.cpAddColorButtonText=oe,this.cpAddColorButtonClass=X,this.cpRemoveColorButtonClass=ue,this.cpTriggerElement=Oe,this.cpExtraTemplate=Ct,M||(this.dialogArrowOffset=0),a==="inline"&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),f==="hex"&&u!=="always"&&u!=="forced"&&(this.cpAlphaChannel="disabled")}setColorMode(e){switch(e.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(e){this.initialColor=e}setPresetConfig(e,i){this.cpPresetLabel=e,this.cpPresetColors=i}setColorFromString(e,i=!0,r=!0){let o;this.cpAlphaChannel==="always"||this.cpAlphaChannel==="forced"?(o=this.service.stringToHsva(e,!0),!o&&!this.hsva&&(o=this.service.stringToHsva(e,!1))):o=this.service.stringToHsva(e,!1),!o&&!this.hsva&&(o=this.service.stringToHsva(this.fallbackColor,!1)),o&&(this.hsva=o,this.sliderH=this.hsva.h,this.cpOutputFormat==="hex"&&this.cpAlphaChannel==="disabled"&&(this.hsva.a=1),this.updateColorPicker(i,r))}onResize(){this.position==="fixed"?this.setDialogPosition():this.cpDialogDisplay!=="inline"&&this.closeColorPicker()}onDragEnd(e){this.directiveInstance.sliderDragEnd({slider:e,color:this.outputColor})}onDragStart(e){this.directiveInstance.sliderDragStart({slider:e,color:this.outputColor})}onMouseDown(e){this.show&&!this.isIE10&&this.cpDialogDisplay==="popup"&&e.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,e.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,e.target)&&this.cpIgnoredElements.filter(i=>i===e.target).length===0&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(e){e.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),this.cpDialogDisplay==="popup"&&this.closeColorPicker()}onCancelColor(e){this.hsva=null,e.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),this.cpDialogDisplay==="popup"&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){if(!this.eyeDropperSupported)return;new window.EyeDropper().open().then(i=>{this.setColorFromString(i.sRGBHex,!0)})}onFormatToggle(e){let i=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),r=((this.dialogInputFields.indexOf(this.format)+e)%i+i)%i;this.format=this.dialogInputFields[r]}onColorChange(e){this.hsva.s=e.s/e.rgX,this.hsva.v=e.v/e.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(e){this.hsva.h=e.v/e.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(e){this.hsva.v=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(e){this.hsva.a=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(e){if(e===null)this.updateColorPicker();else{e&&e[0]!=="#"&&(e="#"+e);let i=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;this.cpAlphaChannel==="always"&&(i=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);let r=i.test(e);r&&(e.length<5&&(e="#"+e.substring(1).split("").map(o=>o+o).join("")),this.cpAlphaChannel==="forced"&&(e+=Math.round(this.hsva.a*255).toString(16)),this.setColorFromString(e,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:r,value:e,color:this.outputColor})}}onRedInput(e){let i=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(i.r=e.v/e.rg,this.hsva=this.service.rgbaToHsva(i),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:r,value:i.r,color:this.outputColor})}onBlueInput(e){let i=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(i.b=e.v/e.rg,this.hsva=this.service.rgbaToHsva(i),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:r,value:i.b,color:this.outputColor})}onGreenInput(e){let i=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(i.g=e.v/e.rg,this.hsva=this.service.rgbaToHsva(i),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:r,value:i.g,color:this.outputColor})}onHueInput(e){let i=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;i&&(this.hsva.h=e.v/e.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:i,value:this.hsva.h,color:this.outputColor})}onValueInput(e){let i=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;i&&(this.hsva.v=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:i,value:this.hsva.v,color:this.outputColor})}onAlphaInput(e){let i=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;i&&(this.hsva.a=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:i,value:this.hsva.a,color:this.outputColor})}onLightnessInput(e){let i=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(i.l=e.v/e.rg,this.hsva=this.service.hsla2hsva(i),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:r,value:i.l,color:this.outputColor})}onSaturationInput(e){let i=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(i.s=e.v/e.rg,this.hsva=this.service.hsla2hsva(i),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:r,value:i.s,color:this.outputColor})}onCyanInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.c=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.m=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.y=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.k=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(e,i){e.stopPropagation(),this.cpPresetColors.filter(r=>r===i).length||(this.cpPresetColors=this.cpPresetColors.concat(i),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(e,i){e.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(r=>r!==i),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{dD?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(dD?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(e=!0,i=!0,r=!1){if(this.sliderDimMax){this.cpColorMode===2&&(this.hsva.s=0);let o,s,a,c=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(r?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),o=this.service.denormalizeRGBA(this.service.hsvaToRgba(new Jo(this.sliderH||this.hsva.h,1,1,1))),i){this.hslaText=new _i(Math.round(s.h*360),Math.round(s.s*100),Math.round(s.l*100),Math.round(s.a*100)/100),this.rgbaText=new wn(a.r,a.g,a.b,Math.round(a.a*100)/100),this.cpCmykEnabled&&(this.cmykText=new $r(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(this.cmyk.a*100)/100));let l=this.cpAlphaChannel==="always";this.hexText=this.service.rgbaToHex(a,l),this.hexAlpha=this.rgbaText.a}if(this.cpOutputFormat==="auto"&&this.format!==Mt.RGBA&&this.format!==Mt.CMYK&&this.format!==Mt.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?Mt.RGBA:Mt.HEX),this.hueSliderColor="rgb("+o.r+","+o.g+","+o.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==Mt.CMYK)this.cmykColor="";else if(this.cpAlphaChannel==="always"||this.cpAlphaChannel==="enabled"||this.cpAlphaChannel==="forced"){let l=Math.round(this.cmyk.a*100)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${l})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new _u((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),e&&c!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if(this.cpDialogDisplay==="inline")this.position="relative";else{let e="static",i="",r,o=null,s=null,a=this.directiveElementRef.nativeElement.parentNode,c=this.dialogElement.nativeElement.offsetHeight;for(;a!==null&&a.tagName!=="HTML";){if(r=window.getComputedStyle(a),e=r.getPropertyValue("position"),i=r.getPropertyValue("transform"),e!=="static"&&o===null&&(o=a),i&&i!=="none"&&s===null&&(s=a),e==="fixed"){o=s;break}a=a.parentNode}let l=this.createDialogBox(this.directiveElementRef.nativeElement,e!=="fixed");if(this.useRootViewContainer||e==="fixed"&&(!o||o instanceof HTMLUnknownElement))this.top=l.top,this.left=l.left;else{o===null&&(o=a);let S=this.createDialogBox(o,e!=="fixed");this.top=l.top-S.top,this.left=l.left-S.left}e==="fixed"&&(this.position="fixed");let d=this.cpPosition,u=this.dialogElement.nativeElement.getBoundingClientRect();if(this.cpPosition==="auto"){let S=this.cpTriggerElement.nativeElement.getBoundingClientRect();d=iV(u,S)}switch(this.arrowTop=d==="top"?c-1:void 0,this.cpArrowPosition=void 0,d){case"top":this.top-=c+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"bottom":this.top+=l.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left+=l.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;case"right":case"bottom-right":case"right-bottom":default:this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=l.width+this.dialogArrowSize-2;break}let f=window.innerHeight,h=window.innerWidth,m=this.elRef.nativeElement.getBoundingClientRect();this.top+u.height>f&&(this.top=f-u.height,this.cpArrowPosition=m.x/2-20),this.left+u.width>h&&(this.left=h-u.width,this.cpArrowPosition=m.x/2-20),this.cpUsePosition=d}}isDescendant(e,i){let r=i.parentNode;for(;r!==null;){if(r===e)return!0;r=r.parentNode}return!1}createDialogBox(e,i){let{top:r,left:o}=e.getBoundingClientRect();return{top:r+(i?window.pageYOffset:0),left:o+(i?window.pageXOffset:0),width:e.offsetWidth,height:e.offsetHeight}}static \u0275fac=function(i){return new(i||t)(p(F),p(Z),p(Be),p(ee),p(Ot),p($g))};static \u0275cmp=de({type:t,selectors:[["color-picker"]],viewQuery:function(i,r){if(i&1&&(Ie(Dj,7),Ie(Ej,7),Ie(Ij,7)),i&2){let o;pe(o=ge())&&(r.dialogElement=o.first),pe(o=ge())&&(r.hueSlider=o.first),pe(o=ge())&&(r.alphaSlider=o.first)}},hostBindings:function(i,r){i&1&&L("keyup.esc",function(s){return r.handleEsc(s)},!1,Tf)("keyup.enter",function(s){return r.handleEnter(s)},!1,Tf)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(i,r){if(i&1){let o=Me();_(0,"div",4,0),L("click",function(a){return N(o),P(a.stopPropagation())}),Q(2,kj,1,7,"div",5)(3,Mj,2,8,"div",6),_(4,"div",7)(5,"div",8),se(6,"div",9),_(7,"div",10),L("click",function(){return N(o),P(r.eyeDropperSupported&&r.cpEyeDropper&&r.onEyeDropper())}),Q(8,Sj,3,0,"svg",11),v(),Q(9,Aj,2,5,"button",12),v(),_(10,"div",13),Q(11,Tj,1,0,"div",14),_(12,"div",15,1),L("newValue",function(a){return N(o),P(r.onHueChange(a))})("dragStart",function(){return N(o),P(r.onDragStart("hue"))})("dragEnd",function(){return N(o),P(r.onDragEnd("hue"))}),se(14,"div",16),v(),_(15,"div",17,2),L("newValue",function(a){return N(o),P(r.onValueChange(a))})("dragStart",function(){return N(o),P(r.onDragStart("value"))})("dragEnd",function(){return N(o),P(r.onDragEnd("value"))}),se(17,"div",16),v(),_(18,"div",18,3),L("newValue",function(a){return N(o),P(r.onAlphaChange(a))})("dragStart",function(){return N(o),P(r.onDragStart("alpha"))})("dragEnd",function(){return N(o),P(r.onDragEnd("alpha"))}),se(20,"div",16),v()()(),Q(21,Nj,17,12,"div",19)(22,Lj,14,10,"div",20)(23,Bj,14,10,"div",21)(24,Uj,8,7,"div",22)(25,qj,9,3,"div",23)(26,Wj,3,0,"div",24)(27,Qj,6,3,"div",25)(28,eV,3,2,"div",26)(29,nV,2,1,"div",27),v()}i&2&&(He("display",r.show?"block":"none")("visibility",r.hidden?"hidden":"visible")("top",r.top,"px")("left",r.left,"px")("position",r.position)("height",r.cpHeight,"px")("width",r.cpWidth,"px"),xe("open",r.show),w(2),k("ngIf",r.cpDialogDisplay==="popup"),w(),k("ngIf",(r.cpColorMode||1)===1),w(4),He("background-color",r.selectedColor)("cursor",r.eyeDropperSupported&&r.cpEyeDropper?"pointer":null),w(),k("ngIf",r.eyeDropperSupported&&r.cpEyeDropper),w(),k("ngIf",r.cpAddColorButton),w(2),k("ngIf",r.cpAlphaChannel==="disabled"),w(),He("display",(r.cpColorMode||1)===1?"block":"none"),k("rgX",1),w(2),He("left",r.slider==null?null:r.slider.h,"px"),w(),He("display",(r.cpColorMode||1)===2?"block":"none"),k("rgX",1),w(2),He("right",r.slider==null?null:r.slider.v,"px"),w(),He("display",r.cpAlphaChannel==="disabled"?"none":"block")("background-color",r.alphaSliderColor),k("rgX",1),w(2),He("left",r.slider==null?null:r.slider.a,"px"),w(),k("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),w(),k("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),w(),k("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),w(),k("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),w(),k("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===2),w(),k("ngIf",!r.cpDisableInput&&(r.cpColorMode||1)===1),w(),k("ngIf",(r.cpPresetColors==null?null:r.cpPresetColors.length)||r.cpAddColorButton),w(),k("ngIf",r.cpOKButton||r.cpCancelButton),w(),k("ngIf",r.cpExtraTemplate))},dependencies:[gn,ql,Ss,oV,sV],styles:[`.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;user-select:none;background-color:#fff}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}
13
+ `],encapsulation:2})}return t})(),cV=!1,uD=(()=>{class t{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new K(!0);cpToggleChange=new K(!0);cpSliderChange=new K(!0);cpSliderDragEnd=new K(!0);cpSliderDragStart=new K(!0);colorPickerOpen=new K(!0);colorPickerClose=new K(!0);colorPickerCancel=new K(!0);colorPickerSelect=new K(!0);colorPickerChange=new K(!1);cpCmykColorChange=new K(!0);cpPresetColorsChange=new K(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(e){this.inputChange(e)}constructor(e,i,r,o,s,a){this.injector=e,this.cfr=i,this.appRef=r,this.vcRef=o,this.elRef=s,this._service=a}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(e){e.cpToggle&&!this.cpDisabled&&(e.cpToggle.currentValue?this.openDialog():e.cpToggle.currentValue||this.closeDialog()),e.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(e.colorPicker.currentValue),this.dialog.setColorFromString(e.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(e.cpPresetLabel||e.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let e=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let r=this.appRef.componentTypes[0],o=this.injector.get(r,ae.NULL);o!==ae.NULL?(e=o.vcRef||o.viewContainerRef||this.vcRef,cV&&e===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}let i=this.cfr.resolveComponentFactory(aV);if(this.viewAttachedToAppRef)this.cmpRef=i.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let r=ae.create({providers:[],parent:e.injector});this.cmpRef=e.createComponent(i,0,r,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==e&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(e){this.cpCmykColorChange.emit(e)}stateChanged(e){this.cpToggleChange.emit(e),e?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(e,i=!0){this.ignoreChanges=i,this.colorPickerChange.emit(e)}colorSelected(e){this.colorPickerSelect.emit(e)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let e=this.elRef.nativeElement,i=this.cpIgnoredElements.filter(r=>r===e);!this.cpDisabled&&!i.length&&(typeof document<"u"&&e===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(e){this.dialog?this.dialog.setColorFromString(e.target.value,!0):(this.colorPicker=e.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(e){this.cpInputChange.emit(e)}sliderChanged(e){this.cpSliderChange.emit(e)}sliderDragEnd(e){this.cpSliderDragEnd.emit(e)}sliderDragStart(e){this.cpSliderDragStart.emit(e)}presetColorsChanged(e){this.cpPresetColorsChange.emit(e)}static \u0275fac=function(i){return new(i||t)(p(ae),p(Ft),p(Lt),p(vt),p(Z),p($g))};static \u0275dir=Y({type:t,selectors:[["","colorPicker",""]],hostBindings:function(i,r){i&1&&L("click",function(){return r.handleClick()})("focus",function(){return r.handleFocus()})("input",function(s){return r.handleInput(s)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Ze]})}return t})(),hD=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=$({type:t});static \u0275inj=U({providers:[$g],imports:[Vn]})}return t})();var Wn=(()=>{class t{constructor(){this._index=void 0,this._name=void 0,this._changeListeners=[],this._currentKey=0}get index(){return this._index}get name(){return this._name}notify(e,i){this._index=e,this._name=i,console.log("really happen");for(let r=0;r<this._changeListeners.length;++r)this._changeListeners[r].cb(e,i)}remove(e){for(let i=0;i<this._changeListeners.length;++i)if(this._changeListeners[i].key==e)return this._changeListeners.splice(i,1),!0;return!1}onChanged(e){return this._changeListeners.push({key:++this._currentKey,cb:e}),setTimeout(()=>{console.log("hello",this._index,this._name),e(this._index,this._name)},0),this._currentKey}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var dV=["fiskTabGroup"];function uV(t,n){if(t&1&&(_(0,"a",4,1),J(2),v()),t&2){let e=n.$implicit,i=oi(1);k("routerLink",e.path)("active",i.isActive),w(2),it(" ",e.label," ")}}var fD=(()=>{class t{constructor(e,i){this.tabChanged=e,this.router=i,this.currentTab=void 0,this.currentName=void 0,this.navLinks=[{path:"/pie-chart",label:"Pie Chart"},{path:"/logs",label:"Logs"},{path:"/compilers",label:"Compilers"},{path:"/config",label:"Config"}],i.events.forEach(r=>{if(r instanceof Ht){let o=r.urlAfterRedirects;for(let s=0;s<this.navLinks.length;++s)this.navLinks[s].path==o&&(this.currentTab=s,this.currentName=this.navLinks[s].label,this.tabChanged.notify(this.currentTab,this.currentName),console.log("here?",this.currentTab,this.currentName))}})}ngAfterViewInit(){}onTabChanged(e){this.currentTab=e.index,this.currentName=e.tab.textLabel}onAnimationDone(){this.tabChanged.notify(this.currentTab,this.currentName)}static{this.\u0275fac=function(i){return new(i||t)(p(Wn),p(_n))}}static{this.\u0275cmp=de({type:t,selectors:[["app-root"]],viewQuery:function(i,r){if(i&1&&Ie(dV,5),i&2){let o;pe(o=ge())&&(r.tabGroup=o.first)}},decls:5,vars:1,consts:[["fiskTabGroup",""],["rla","routerLinkActive"],["mat-tab-nav-bar","",1,"fisk-tab-group"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(i,r){i&1&&(_(0,"mat-card")(1,"nav",2,0),Q(3,uV,3,3,"a",3),v(),se(4,"router-outlet"),v()),i&2&&(w(3),k("ngForOf",r.navLinks))},dependencies:[gn,mi,xg,Dg,Zp,Kd,PC]})}}return t})();var yi=(()=>{class t{constructor(){this.reset()}addListener(e,i){this.socket.addEventListener(e,i),this.allListeners.push([e,i])}removeListeners(){for(let e=0;e<this.allListeners.length;++e){let i=this.allListeners[e];this.socket.removeEventListener(i[0],i[1])}this.allListeners=[]}get isOpen(){return this.socket&&this.socket.readyState==WebSocket.OPEN}static websocketLocation(e,i){let r=e.get("scheduler",i.hostname),o=i.protocol==="https:",s=e.get("port",i.port||(o?8098:8097));return o&&s===8097?(s=8098,e.set("port",s,!1)):!o&&s===8098&&(s=8097,e.set("port",s,!1)),{host:r,port:s,secure:o}}open(e,i,r){if(!this.isopen){try{this.socket=new WebSocket(`${r?"wss":"ws"}://${e}:${i}/monitor`)}catch(o){this.socket=void 0;for(let s=0;s<this.errorListeners.length;++s)this.errorListeners[s](o);console.log("ws connect error",o);return}console.log("ws connected"),this.addListener("open",o=>{if(console.log("ws open"),this.isopen=!0,this.pending!==void 0){for(let s=0;s<this.pending.length;++s)this.socket.send(this.pending[s]);this.pending=void 0}for(let s=0;s<this.openListeners.length;++s)this.openListeners[s]()}),this.addListener("message",o=>{let s;try{s=JSON.parse(o.data)}catch{console.error("unable to parse json",o.data);return}for(let a=0;a<this.messageListeners.length;++a)this.messageListeners[a](s)}),this.addListener("close",()=>{console.log("ws close");let o=this.closeListeners;this.removeListeners(),this.reset();for(let s=0;s<o.length;++s)o[s]()}),this.addListener("error",o=>{console.log("ws error",o),this.socket&&this.socket.close();let s=this.errorListeners;this.removeListeners(),this.reset();for(let a=0;a<s.length;++a)s[a](o)})}}on(e,i){e=="message"?this.messageListeners.push(i):e=="open"?this.openListeners.push(i):e=="close"?this.closeListeners.push(i):e=="error"&&this.errorListeners.push(i)}send(e){this.isopen?this.socket.send(JSON.stringify(e)):this.pending.push(JSON.stringify(e))}close(e,i){this.socket&&this.socket.close(e,i),this.removeListeners(),this.reset()}reset(){this.socket=void 0,this.pending=[],this.messageListeners=[],this.closeListeners=[],this.errorListeners=[],this.openListeners=[],this.isopen=!1,this.allListeners=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Cu=(()=>{class t{constructor(){this.backoffs={},this.serials={}}backoff(e,i,r){if(e in this.backoffs)return!1;e in this.serials?++this.serials[e]:this.serials[e]=0;let o=this.serials[e];this.backoffs[e]=-1;let s=a=>{console.log("reconnecting",a),r().then(c=>{if(o===this.serials[e])if(c)delete this.backoffs[e];else{let l=i(a);this.backoffs[e]=setTimeout(()=>{s(l)},l)}}).catch(c=>{o===this.serials[e]&&delete this.backoffs[e],console.error(c)})};return s(0),!0}stop(e){if(e in this.backoffs){let i=this.backoffs[e];i!==-1&&clearTimeout(i),delete this.backoffs[e]}}running(e){return e in this.backoffs}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var er=(()=>{class t{constructor(){this.changeListeners=[],this.cache={},this.currentKey=0}set(e,i,r){if(this.cache[e]=i,localStorage.setItem(e,JSON.stringify(i)),!(r!==void 0&&!r))for(let o=0;o<this.changeListeners.length;++o)this.changeListeners[o].cb(e)}get(e,i){if(e in this.cache)return this.cache[e];let r,o=localStorage.getItem(e);if(o!==null)try{r=JSON.parse(o),this.cache[e]=r}catch{r=i,i!==void 0&&this.set(e,i,!1)}else r=i,i!==void 0&&this.set(e,i,!1);return r}onChange(e){return this.changeListeners.push({key:++this.currentKey,cb:e}),this.currentKey}remove(e){for(var i=0;i<this.changeListeners.length;++i)if(this.changeListeners[i].key==e)return this.changeListeners.splice(i,1),!0;return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gn=(()=>{class t{get host(){return this._host}get port(){return this._port}constructor(e,i,r,o){this.ws=e,this.backoff=i,this.config=r,this.httpClient=o,this.pendingConnect=[],this.dataListeners=[],this.openListeners=[],this.schedulerListeners=[],this._currentKey=0;let s=window.location.pathname.replace(/[^/]*$/,"package.json");this.httpClient.get(`${window.location.protocol}//${window.location.host}/${s}`,{responseType:"json"}).subscribe(c=>{c&&this.emit(this.dataListeners,{type:"uiInfo",package:c})});let a=yi.websocketLocation(r,window.location);this._host=a.host,this._port=a.port,this._secure=a.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.config.onChange(c=>{switch(c){case"scheduler":case"port":this.close();let l=yi.websocketLocation(r,window.location);this._host=l.host,this._port=l.port,this._secure=l.secure,this._host!==void 0&&this.open(this._host,this._port,this._secure),this.emit(this.schedulerListeners,c);break}})}get isOpen(){return this.ws.isOpen}open(e,i,r){console.log("reoping"),this.ws.on("message",o=>{this.emit(this.dataListeners,o)}),this.ws.on("close",()=>{this.reconnect(e,i,r)}),this.ws.on("error",()=>{this.reconnect(e,i,r)}),this.ws.on("open",()=>{this.emit(this.openListeners),this.resolvePending(!0),console.log("ok")}),this.ws.open(e,i,r)}close(e,i){this.backoff.stop("fisk"),this.ws.close(e,i)}on(e,i){switch(e){case"data":this.dataListeners.push({key:++this._currentKey,cb:i});break;case"open":this.openListeners.push({key:++this._currentKey,cb:i});break;case"scheduler":this.schedulerListeners.push({key:++this._currentKey,cb:i});break;default:return-1}return this._currentKey}remove(e,i){let r=(o,s)=>{for(let a=0;a<o.length;++a)if(o[a].key==s)return o.splice(a,1),!0;return!1};switch(e){case"data":return r(this.dataListeners,i);case"open":return r(this.openListeners,i);case"scheduler":return r(this.schedulerListeners,i)}return!1}send(e){this.ws.send(e)}reconnect(e,i,r){if(this.backoff.running("fisk")){this.resolvePending(!1);return}let o=s=>s?Math.min(3e4,s*2):1e3;this.backoff.backoff("fisk",o,()=>new Promise((s,a)=>{this.pendingConnect.push({resolve:s,reject:a}),this.open(e,i,r)}))}resolvePending(e){this.pendingConnect.length>0&&this.pendingConnect.shift().resolve(e)}emit(e,i){for(let r=0;r<e.length;++r)e[r].cb(i)}static{this.\u0275fac=function(i){return new(i||t)(b(yi),b(Cu),b(er),b(ym))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Du=(()=>{class t{constructor(e){this.snackBar=e}showMessage(e,i){this.snackBar.open(e,void 0,{duration:i||3e3})}static{this.\u0275fac=function(i){return new(i||t)(b(Fg))}}static{this.\u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var mD=(()=>{class t{constructor(e,i){this.config=e,this.tabChanged=i,this.minHeight="",this.inited=!1,this.timers={};let r=yi.websocketLocation(e,window.location);this.port=r.port,this.scheduler=r.host,this.chartLegendSpace=e.get("chart-legend-space",400),this.client=e.get("client",""),this.fgcolor=e.get("fgcolor","#ffffff"),this.bgcolor=e.get("bgcolor","#ff0000"),this.pieBuilding=e.get("pieBuilding",!1),this.noAnimate=e.get("noAnimate",!1),this.config.onChange(o=>{switch(o){case"scheduler":this.scheduler=e.get("scheduler");break;case"port":this.port=e.get("port");break;case"chart-legend-space":this.chartLegendSpace=e.get("chart-legend-space");break;case"client":this.client=e.get("client");break;case"fgcolor":this.fgcolor=e.get("fgcolor");break;case"bgcolor":this.bgcolor=e.get("bgcolor");break;case"pieBuilding":this.pieBuilding=e.get("pieBuilding");break;case"noAnimate":this.noAnimate=e.get("noAnimate");break}}),this.tabChanged.onChanged((o,s)=>{if(s!="Config"||this.inited)return;this.inited=!0;let c=document.getElementById("configTab").getBoundingClientRect();this.minHeight=window.innerHeight-c.y-50+"px"})}update(e,i){let r=!1;switch(e){case"scheduler":case"client":case"fgcolor":case"bgcolor":r=!0,this[e]=i;break}r&&(e in this.timers&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout(()=>{delete this.timers[e],this.config.set(e,i)},500))}updateInt(e,i){let r=!1,o,s=e;switch(e){case"chartLegendSpace":s="chart-legend-space";case"port":o=parseInt(i),isNaN(o)||(r=!0,this[e]=o);break}r&&this.config.set(s,o)}updateBool(e,i){let r=!1,o;switch(typeof i=="boolean"?o=i:typeof i=="string"&&i==="true"?o=!0:o=!1,e){case"pieBuilding":case"noAnimate":r=!0,this[e]=o;break}r&&this.config.set(e,o)}static{this.\u0275fac=function(i){return new(i||t)(p(er),p(Wn))}}static{this.\u0275cmp=de({type:t,selectors:[["app-config"]],decls:21,vars:14,consts:[["id","configTab",1,"space"],[1,"full-width"],["matInput","","placeholder","Scheduler",3,"ngModelChange","ngModel"],["matInput","","type","number","max","65536","placeholder","Port",3,"ngModelChange","ngModel"],["matInput","","type","number","max","65536","placeholder","Legend Space",3,"ngModelChange","ngModel"],["matInput","","placeholder","Client",3,"ngModelChange","ngModel"],["matInput","",3,"colorPickerChange","colorPicker"],["matInput","",3,"ngModelChange","ngModel"]],template:function(i,r){i&1&&(_(0,"div",0)(1,"mat-form-field",1)(2,"input",2),L("ngModelChange",function(s){return r.update("scheduler",s)}),v()(),_(3,"mat-form-field",1)(4,"input",3),L("ngModelChange",function(s){return r.updateInt("port",s)}),v()(),_(5,"mat-form-field",1)(6,"input",4),L("ngModelChange",function(s){return r.updateInt("chartLegendSpace",s)}),v()(),_(7,"mat-form-field",1)(8,"input",5),L("ngModelChange",function(s){return r.update("client",s)}),v()(),_(9,"mat-form-field"),J(10," Background "),_(11,"input",6),L("colorPickerChange",function(s){return r.update("bgcolor",s)}),v()(),_(12,"mat-form-field"),J(13," Foreground "),_(14,"input",6),L("colorPickerChange",function(s){return r.update("fgcolor",s)}),v()(),_(15,"div")(16,"mat-checkbox",7),L("ngModelChange",function(s){return r.updateBool("pieBuilding",s)}),J(17,"Represent 100% of pie chart as currently building jobs"),v()(),_(18,"div")(19,"mat-checkbox",7),L("ngModelChange",function(s){return r.updateBool("noAnimate",s)}),J(20,"Don't animate the pie chart"),v()()()),i&2&&(He("min-height",r.minHeight),w(2),k("ngModel",r.scheduler),w(2),k("ngModel",r.port),w(2),k("ngModel",r.chartLegendSpace),w(2),k("ngModel",r.client),w(3),He("background",r.bgcolor),k("colorPicker",r.bgcolor),w(3),He("background",r.fgcolor),k("colorPicker",r.fgcolor),w(2),k("ngModel",r.pieBuilding),w(3),k("ngModel",r.noAnimate))},dependencies:[uD,Ao,mp,Ad,gp,ea,Xo,mu,fu],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var pD=(()=>{class t{constructor(e){this.fisk=e,this.fisk.on("data",i=>{switch(i.type){case"logFile":this.contents=`
14
+ `+i.contents;break}})}ngAfterViewInit(){this.fisk.send({type:"logFile",file:this.file}),console.log("after view init",this.file)}static{this.\u0275fac=function(i){return new(i||t)(p(Gn))}}static{this.\u0275cmp=de({type:t,selectors:[["app-log"]],inputs:{file:"file"},decls:2,vars:1,consts:[[1,"contents"]],template:function(i,r){i&1&&(_(0,"div",0),J(1),v()),i&2&&(w(),it(" ",r.contents,`
15
+ `))},styles:[".contents[_ngcontent-%COMP%]{font-size:.6em;font-family:monospace;white-space:pre-wrap;background-color:#eee}"]})}}return t})();function gV(t,n){if(t&1&&(_(0,"div"),se(1,"app-log",4),v()),t&2){let e=T().$implicit;w(),k("file",e)}}function bV(t,n){if(t&1){let e=Me();_(0,"div",1),L("click",function(){let r=N(e).$implicit,o=T();return P(o.onClicked(r))}),_(1,"div",2),J(2),Q(3,gV,2,1,"div",3),v()()}if(t&2){let e=n.$implicit,i=T();w(2),it(" ",e," "),w(),k("ngIf",e==i.expanded)}}var gD=(()=>{class t{constructor(e){this.fisk=e,this.expanded="",this.fisk.on("data",i=>{switch(i.type){case"logFiles":this.files=i.files;break}})}onClicked(e){this.expanded=e,console.log("clicked",e)}ngAfterViewInit(){console.log("logs!"),this.fisk.send({type:"logFiles"})}static{this.\u0275fac=function(i){return new(i||t)(p(Gn))}}static{this.\u0275cmp=de({type:t,selectors:[["app-logs"]],decls:2,vars:1,consts:[["class","spacing",3,"click",4,"ngFor","ngForOf"],[1,"spacing",3,"click"],[1,"file"],[4,"ngIf"],[3,"file"]],template:function(i,r){i&1&&(_(0,"mat-card"),Q(1,bV,4,2,"div",0),v()),i&2&&(w(),k("ngForOf",r.files))},dependencies:[gn,ql,mi,pD],styles:[".spacing[_ngcontent-%COMP%]{padding-bottom:10px}.file[_ngcontent-%COMP%]{font-size:1.5em;cursor:pointer}"]})}}return t})();function vV(t,n){if(t&1&&(_(0,"div",5)(1,"div",6),J(2),v(),_(3,"div",7),J(4),v(),_(5,"div",8),J(6),v()()),t&2){let e=n.$implicit;w(2),it(" ",e.sourceBasename," "),w(2),it(" ",e.builder.ip," "),w(2),it(" ",e.date," ")}}var bD=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.jobs=[],this.client=i.client,i.jobs.forEach(r=>{if(r.client.name==this.client.name){let o=r.sourcePath||r.sourceFile||"",s=o.lastIndexOf("/");r.sourceBasename=s!==-1?o.substring(s+1):o,this.jobs.push(r)}})}onCloseClick(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(p(vi),p(Ta))}}static{this.\u0275cmp=de({type:t,selectors:[["app-builder-info"]],decls:7,vars:2,consts:[[1,"scroll"],[1,"info"],["class","table",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"click"],[1,"table"],[1,"pre"],[1,"pre","table-mid"],[1,"pre","table-end"]],template:function(i,r){i&1&&(_(0,"mat-card",0)(1,"div",1),J(2),v(),Q(3,vV,7,3,"div",2),_(4,"div",3)(5,"button",4),L("click",function(){return r.onCloseClick()}),J(6,"Close"),v()()()),i&2&&(w(2),pn(r.client.modifiedName),w(),k("ngForOf",r.jobs))},dependencies:[gn,Yo,mi,vu],styles:[".scroll[_ngcontent-%COMP%]{overflow:auto;max-height:70vh!important;min-width:70vw!important}.table[_ngcontent-%COMP%]{display:flex}.info[_ngcontent-%COMP%]{white-space:pre-line;padding:5px;font-size:2em;margin-bottom:10px}.pre[_ngcontent-%COMP%]{font-family:monospace,monospace;flex:1}.table-mid[_ngcontent-%COMP%]{text-align:center}.table-end[_ngcontent-%COMP%]{text-align:right}"]})}}return t})();var PD=ZD(ND());var FD=(()=>{class t{constructor(e,i,r,o,s,a){this.fisk=e,this.config=i,this.tabChanged=r,this.message=o,this.changeRef=s,this.dialog=a,this.view={width:0,height:0},this.maxJobs=0,this.maxJobsData={},this.jobs=new Map,this.clientJobs=[],this.minTime=5e3,this.inited=!1,this.destroyed=!1,this.onTabChange=void 0,this.onConfig=void 0,this.fiskData=void 0,this.fiskOpen=void 0,this.fiskScheduler=void 0,this.onResize=this._onResize.bind(this),window.jobs=this.jobs,this.fiskData=this.fisk.on("data",c=>{switch(c.type){case"builderAdded":this._builderAdded(c);break;case"builderRemoved":this._builderRemoved(c);break;case"jobStarted":this._jobStarted(c);break;case"jobFinished":this._updateStats(c);case"jobAborted":this._jobFinished(c);break;case"cacheHit":this._cacheHit(c);case"stats":this._updateStats(c);break;case"schedulerInfo":console.log("got scheduler info",c);break;case"uiInfo":console.log("got ui version",c.package.version);break;default:console.error(`unexpected fisk message type ${c.type}`);break}}),this.fisk.isOpen&&this.fisk.send({type:"sendInfo"}),this.fiskOpen=this.fisk.on("open",()=>{this._reset(),this.message.showMessage("connected to "+this.fisk.host+":"+this.fisk.port),this.fisk.send({type:"sendInfo"})}),this.fiskScheduler=this.fisk.on("scheduler",()=>{this._reset()}),window.addEventListener("resize",this.onResize),this.onConfig=this.config.onChange(c=>{c=="client"||c=="fgcolor"||c=="bgcolor"?(this.clientColor={name:this.config.get("client"),fgcolor:this.config.get("fgcolor"),bgcolor:this.config.get("bgcolor")},this.clientJobs.forEach(l=>{delete l.color})):(c=="pieBuilding"||c=="noAnimate")&&(this[c]=this.config.get(c))}),this.onTabChange=this.tabChanged.onChanged((c,l)=>{if(l!="Pie Chart"||this.inited)return;let d=document.getElementById("canvas-chart");if(!d)return;let u=(O,E,M)=>O>=M.x&&O<=M.x+M.width&&E>=M.y&&E<=M.y+M.height;d.addEventListener("click",O=>{let M=document.getElementById("canvas-chart").getBoundingClientRect(),W=O.pageX-M.x,H=O.pageY-M.y;this.clientJobs.forEach(z=>{u(W,H,z.client.rect)&&z.client.url&&window.open(z.client.url,"_blank")})}),d.addEventListener("contextmenu",O=>{let M=document.getElementById("canvas-chart").getBoundingClientRect(),W=O.pageX-M.x,H=O.pageY-M.y,z=!0;return this.clientJobs.forEach(we=>{u(W,H,we.client.rect)&&(O.preventDefault(),z=!1,this.dialog.open(bD,{data:{client:we.client,jobs:this.jobs}}))}),z},!1),this.inited=!0;let f=d.getBoundingClientRect();this.view.width=window.innerWidth-f.x*2,this.view.height=window.innerHeight-f.y-50,this.changeRef.detectChanges(),this.ctx=d.getContext("2d",{alpha:!1});let h=.25,m=(O,E,M,W)=>{let H=O[E];if(this.noAnimate||!(M in O)){O[M]=H;return}let z=O[M];z!=H&&(z<H?z=Math.min(z+h*W,H):z=Math.max(z-h*W,H),O[M]=z)};this.clientColor={name:this.config.get("client"),fgcolor:this.config.get("fgcolor"),bgcolor:this.config.get("bgcolor")},this.pieBuilding=this.config.get("pieBuilding"),this.noAnimate=this.config.get("noAnimate");let g=1/60*1e3,C=0,S=O=>{if(this.destroyed)return;let E=this.config.get("chart-legend-space",400),M=this.view.width-E+10,W=30,H=Math.min(this.view.width-E,this.view.height-W-10)-20,z=(O-C)/g;C=O;let we=ue=>ue/(180/Math.PI),R=this.ctx;R.fillStyle="white",R.beginPath(),R.rect(0,0,this.view.width,this.view.height),R.fill();let Ge=10,qe=H/2+Ge,Ke=H/2-Ge*2;if(R.fillStyle="#ddd",R.beginPath(),R.moveTo(qe,qe),R.arc(qe,qe,Ke,0,Math.PI*2,!1),R.fill(),!this.maxJobs){this.clientJobs.forEach(ue=>{ue.start=ue.animatedStart=we(270),ue.jobs=ue.animatedJobs=0}),window.requestAnimationFrame(S);return}R.font="16px sans-serif";let ht=we(270),ze=40;ze+=40,R.fillStyle="black",R.fillText(this.maxJobsData.text,10,31);let wt=this.pieBuilding?this.jobs.size:this.maxJobs;if(!wt){window.requestAnimationFrame(S);return}let j={hits:0,misses:0},G=new Date().valueOf();for(let ue=0;ue<this.clientJobs.length;++ue){let B=this.clientJobs[ue];if(B.expired){if(!B.jobs&&!B.cacheJobs&&G-B.ts>=this.minTime){this.clientJobs.splice(ue,1),--ue;continue}(B.jobs||B.cacheJobs)&&(B.expired=!1)}if(B.start=ht,m(B,"start","animatedStart",z),m(B,"jobs","animatedJobs",z),!B.color&&(this.clientColor.name&&this.clientColor.fgcolor&&this.clientColor.bgcolor&&(this.clientColor.name==B.client.ip||this.clientColor.name==B.client.name||this.clientColor.name==B.client.hostname)&&(B.color=this.clientColor.bgcolor,B.fg=this.clientColor.fgcolor),!B.color)){B.color=this._color(B.client.ip,!1);let ts=parseInt(B.color.substring(1),16),ku=ts>>16&255,BD=ts>>8&255,zD=ts>>0&255;var X=.2126*ku+.7152*BD+.0722*zD;X<128?B.fg="white":B.fg="black"}R.fillStyle=B.color,R.beginPath(),R.moveTo(qe,qe),R.arc(qe,qe,Ke,B.animatedStart,B.animatedStart+Math.PI*2*(B.animatedJobs/wt),!1),R.lineTo(qe,qe),R.fill(),R.beginPath(),R.rect(M,ze-20,E,30),R.fill(),"rect"in B.client?(B.client.rect.x=M,B.client.rect.y=ze-20):B.client.rect={x:M,y:ze-20,width:E,height:30},R.fillStyle=B.fg,R.fillText(B.client.modifiedName,M+2,ze),j.hits+=B.cacheJobs,j.misses+=B.jobs;let Oe=0,Ct=E*((B.totalCacheJobs||0)/((B.totalCacheJobs||0)+B.totalJobs)),We=E*(B.totalJobs/((B.totalCacheJobs||0)+B.totalJobs));R.fillStyle="#3d3",R.beginPath(),R.rect(M,ze-20+31,Ct,4),R.fill(),R.fillStyle="#33d",R.beginPath(),R.rect(M+Ct,ze-20+31,We,4),R.fill(),Oe=8;let es=(B.cacheJobs||0)+" / "+B.jobs+" ("+Math.round(B.jobs/wt*1e3)/10+"%)",Iu=R.measureText(es),rt=(ts,ku)=>("000000000"+ts).substr(-ku),Cn=G-B.ts,xt="("+rt(Math.floor(Cn/1e3/60),2)+":"+rt(Math.floor(Cn/1e3)%60,2)+")",tr=R.measureText(xt),nr=Iu.width+tr.width+10;R.fillStyle=B.color,R.beginPath(),R.rect(M+E-nr-15,ze-20,nr+15,30),R.fill(),R.fillStyle=B.fg,R.fillText(es,M+E-nr-10,ze),R.fillText(xt,M+E-tr.width-10,ze),ht+=Math.PI*2*(B.animatedJobs/wt),ze+=30+Oe}if(j.hits>0||j.misses>0){ze=0;let ue=E*(j.hits/(j.hits+j.misses)),B=E*(j.misses/(j.hits+j.misses));R.fillStyle="#3d3",R.beginPath(),R.rect(M,ze-20+31,ue,30),R.fill(),R.fillStyle="#33d",R.beginPath(),R.rect(M+ue,ze-20+31,B,30),R.fill();let Oe=`${j.hits} / ${j.misses}`,Ct=R.measureText(Oe);R.fillStyle="#fff",R.fillText("Cache usage",M+2,ze+31),R.fillText(Oe,M+E-Ct.width-15,ze+31)}R.fillStyle="#fff",R.fillRect(0,this.view.height-W-10,this.view.width,W+10);let oe=0;if(this.stats&&(oe=this.stats.cacheHits+this.stats.jobsFailed+this.stats.jobsStarted),oe>0){let ue=5,B=5;R.fillStyle="#3d3",R.fillRect(ue,this.view.height-W-5,(this.view.width-10)*(this.stats.cacheHits/oe),W),ue+=(this.view.width-10)*(this.stats.cacheHits/oe);let Oe="Hits "+Number(this.stats.cacheHits).toLocaleString()+" "+(this.stats.cacheHits/oe*100).toFixed(1)+"%";R.fillText(Oe,B,this.view.height-W-10),B+=R.measureText(Oe).width+30,R.fillStyle="#33d",R.fillRect(ue,this.view.height-W-5,(this.view.width-10)*(this.stats.jobsStarted/oe),W),ue+=(this.view.width-10)*(this.stats.jobsStarted/oe),Oe="Compiles "+Number(this.stats.jobsStarted).toLocaleString()+" "+(this.stats.jobsStarted/oe*100).toFixed(1)+"%",R.fillText(Oe,B,this.view.height-W-10),this.stats.jobsFailed>0&&(B+=R.measureText(Oe).width+30,R.fillStyle="#d33",R.fillRect(ue,this.view.height-W-5,(this.view.width-10)*(this.stats.jobsFailed/oe),W),Oe="Failures "+Number(this.stats.jobsFailed).toLocaleString()+" "+(this.stats.jobsFailed/oe*100).toFixed(1)+"%",R.fillText(Oe,B,this.view.height-W-10))}window.requestAnimationFrame(S)};window.requestAnimationFrame(S)})}ngOnDestroy(){console.log("destroyed"),this.tabChanged.remove(this.onTabChange),this.config.remove(this.onConfig),this.fisk.remove("open",this.fiskOpen),this.fisk.remove("data",this.fiskData),this.fisk.remove("scheduler",this.fiskScheduler),window.removeEventListener("resize",this.onResize),this.destroyed=!0}_onResize(){let e=document.getElementById("canvas-chart");if(e){let i=e.getBoundingClientRect();this.view.width=window.innerWidth-i.x*2,this.view.height=window.innerHeight-i.y-50}}_reset(){this.maxJobs=0,this.maxJobsData={},this.jobs=new Map,this.clientJobs=[]}_color(e,i){function r(g,C,S){return g+S()*(C-g)}function o(g){return("0"+Number(g).toString(16)).slice(-2)}let s=(0,PD.default)(e);var a=r(1,360,s),c=r(0,100,s),l=r(45,100,s);i&&(c=100-c),a/=360,c/=100,l/=100;var d,u,f;if(c==0)d=u=f=l;else{let g=(C,S,O)=>(O<0&&(O+=1),O>1&&(O-=1),O<.16666666666666666?C+(S-C)*6*O:O<.5?S:O<.6666666666666666?C+(S-C)*(.6666666666666666-O)*6:C);var h=l<.5?l*(1+c):l+c-l*c,m=2*l-h;d=g(m,h,a+1/3),u=g(m,h,a),f=g(m,h,a-1/3)}return"#"+o(d*255)+o(u*255)+o(f*255)}_clientJobIndex(e){for(let i=0;i<this.clientJobs.length;++i)if(this.clientJobs[i].client.ip===e.ip&&this.clientJobs[i].client.name===e.name)return i;return-1}_adjustClients(e,i,r){let o=this._clientJobIndex(e);if(o==-1){if(i<0||r<0)return console.error("no client job for job client",e),!1;if(e.name===e.hostname)e.modifiedName="dev:"+(e.user||"nobody")+"@"+e.hostname;else if(e.name.length>0&&e.name[0]==="-")e.modifiedName="dev:"+(e.user||"nobody")+e.name;else{try{let s=JSON.parse(e.name);typeof s=="object"&&"name"in s&&(e.modifiedName=s.name,e.url=s.href)}catch{}e.modifiedName||(e.modifiedName=e.name)}this.clientJobs.push({client:e,jobs:i,cacheJobs:r,totalJobs:i,totalCacheJobs:r,ts:new Date().valueOf(),expired:!1}),this.clientJobs.sort((s,a)=>s.client.modifiedName.localeCompare(a.client.modifiedName))}else{let s=this.clientJobs[o];s.jobs+=i,i>0&&(s.totalJobs+=i),s.cacheJobs+=r,r>0&&(s.totalCacheJobs+=r),!s.jobs&&!s.cacheJobs&&(new Date().valueOf()-s.ts<this.minTime?s.expired=!0:this.clientJobs.splice(o,1))}return!0}_builderId(e){return e.ip+":"+e.port}_builderAdded(e){this.maxJobs+=e.slots,this._updateMaxJobsData()}_builderRemoved(e){if(this.maxJobs-=e.slots,this._updateMaxJobsData(),this.maxJobs<0)throw new Error("Negative jobs reached!");let i=this._builderId(e);this.jobs.forEach((r,o)=>{i==this._builderId(r.builder)&&(this.jobs.delete(o),this._adjustClients(r.client,-1,0))}),this._updateMaxJobsData()}_updateMaxJobsData(){this.maxJobsData.text=`Slots ${this.jobs.size} / ${this.maxJobs} (${(this.jobs.size/this.maxJobs*100).toFixed(1)}%)`,this.maxJobsData.width=this.ctx.measureText(this.maxJobsData.text).width}_jobStarted(e){let i=r=>{let o=r.indexOf("(");return o!==-1?r.substr(0,o):r};e.date=i(new Date().toTimeString()).trim(),this.jobs.set(e.id,e),this._adjustClients(e.client,1,0),this._updateMaxJobsData()}_jobFinished(e){if(!this.jobs.has(e.id)){console.error("No such job ",e),console.error(JSON.stringify(Array.from(this.jobs.keys())));return}let i=this.jobs.get(e.id);this.jobs.delete(e.id),this._adjustClients(i.client,-1,0),this._updateMaxJobsData()}_updateStats(e){this.stats=e}_cacheHit(e){this._adjustClients(e.client,0,1),setTimeout(()=>this._adjustClients(e.client,0,-1),5e3)}static{this.\u0275fac=function(i){return new(i||t)(p(Gn),p(er),p(Wn),p(Du),p(Be),p(Ur))}}static{this.\u0275cmp=de({type:t,selectors:[["app-pie-chart"]],decls:1,vars:2,consts:[["id","canvas-chart",3,"width","height"]],template:function(i,r){i&1&&se(0,"canvas",0),i&2&&k("width",r.view.width)("height",r.view.height)}})}}return t})();function EV(t,n){if(t&1){let e=Me();_(0,"div",1),L("click",function(){let r=N(e).$implicit,o=T();return P(o.onClicked(r))}),_(1,"div",2),J(2),v()()}if(t&2){let e=n.$implicit;w(2),Tl(" ",e.hash," ",e.compiler.name," ",e.compiler.version," (",e.target,") ")}}var IV=(t,n)=>({checked:t,args:n});function kV(t,n){if(t&1){let e=Me();_(0,"div",6)(1,"mat-checkbox",7),Ol("ngModelChange",function(r){let o=N(e).$implicit,s=T();return Jf(s.checked[o.hash],r)||(s.checked[o.hash]=r),P(r)}),v(),J(2),se(3,"br"),_(4,"mat-form-field",8)(5,"input",9),Ol("ngModelChange",function(r){let o=N(e).$implicit,s=T();return Jf(s.args[o.hash],r)||(s.args[o.hash]=r),P(r)}),v()()()}if(t&2){let e=n.$implicit,i=T();w(),Rl("ngModel",i.checked[e.hash]),w(),Tl(" ",e.hash," ",e.compiler.name," ",e.compiler.version," (",e.target,")"),w(3),Rl("ngModel",i.args[e.hash])}}var LD=(()=>{class t{constructor(e,i,r){this.fisk=e,this.tabChanged=i,this.dialog=r,this.fisk.on("data",o=>{if(o.type==="listEnvironments"){let s=[];console.log(o.environments),this.links=o.environments.links;for(let a in o.environments){let c=o.environments[a];if(typeof c=="object"&&"system"in c){"hash"in c||(c.hash=a);let l={name:void 0,major:void 0,minor:void 0,patch:void 0,version:""},d=(c.info||"").split(`
16
+ `),u=/(Apple LLVM|clang|gcc) version (\d+)(?:\.(\d+))?(?:\.(\d+))?/,f=/^Target: (.*)$/,h=null,m=null;for(let g=0;g<d.length&&(!h||!m);++g)m||(m=u.exec(d[g])),h||(h=f.exec(d[g]));m?(l.name=m[1],l.major=parseInt(m[2],10)||0,l.minor=m[3]&&parseInt(m[3],10)||0,l.patch=m[4]&&parseInt(m[4],10)||0,l.version=`${l.major}.${l.minor}.${l.patch}`):console.log("failed to parse compiler version from info:",d),h&&(c.target=h[1]),c.compiler=l,s.push(c)}}console.log(s),this.environments=s}}),this.tabChanged.onChanged((o,s)=>{s=="Compilers"&&this.fisk.send({type:"listEnvironments"})})}onClicked(e){this.dialog.open(MV,{data:{current:e,environments:this.environments,links:this.links[e.hash]}}).afterClosed().subscribe(r=>{if(r){for(let o in r.checked)if(r.checked[o]){let s=r.args[o]&&r.args[o].split(" ");this.fisk.send({type:"linkEnvironments",srcHash:e.hash,targetHash:o,arguments:s})}}})}static{this.\u0275fac=function(i){return new(i||t)(p(Gn),p(Wn),p(Ur))}}static{this.\u0275cmp=de({type:t,selectors:[["app-compilers"]],decls:2,vars:1,consts:[["class","spacing",3,"click",4,"ngFor","ngForOf"],[1,"spacing",3,"click"],[1,"env"]],template:function(i,r){i&1&&(_(0,"mat-card"),Q(1,EV,3,4,"div",0),v()),i&2&&(w(),k("ngForOf",r.environments))},dependencies:[gn,mi],styles:[".env[_ngcontent-%COMP%]{cursor:pointer;font-family:monospace}"]})}}return t})(),MV=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.others=[],this.checked={},this.args={},this.info="";for(let r=0;r<i.environments.length;++r)i.current!=i.environments[r]?(this.others.push(i.environments[r]),this.checked[i.environments[r].hash]=!1):this.info=i.environments[r].info;if(i.links)for(let r in i.links){let o=i.links[r];o.arguments&&(this.args[r]=o.arguments.join(" ")),this.checked[r]=!0}}onNoClick(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(p(vi),p(Ta))}}static{this.\u0275cmp=de({type:t,selectors:[["app-compilers-dialog"]],decls:9,vars:6,consts:[[1,"scroll"],[1,"info"],["class","env",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[1,"env"],["matInput","",3,"ngModelChange","ngModel"],[1,"fullwidth"],["matInput","","placeholder","Arguments",1,"fullwidth",3,"ngModelChange","ngModel"]],template:function(i,r){i&1&&(_(0,"mat-card",0)(1,"div",1),J(2),v(),Q(3,kV,6,6,"div",2),_(4,"div",3)(5,"button",4),L("click",function(){return r.onNoClick()}),J(6,"Cancel"),v(),_(7,"button",5),J(8,"Ok"),v()()()),i&2&&(w(2),it(" ",r.info," "),w(),k("ngForOf",r.others),w(4),k("mat-dialog-close",em(3,IV,r.checked,r.args)))},dependencies:[gn,Ao,Ad,ea,Yo,mi,Xo,aD,vu,mu,fu],styles:[".env[_ngcontent-%COMP%]{cursor:pointer;font-family:monospace}.fullwidth[_ngcontent-%COMP%]{min-width:100%}.scroll[_ngcontent-%COMP%]{overflow:auto;max-height:70vh!important}.info[_ngcontent-%COMP%]{white-space:pre-line;margin-bottom:2em;border:1px dashed #ccc;padding:5px}"]})}}return t})();var SV=[{path:"config",component:mD},{path:"pie-chart",component:FD},{path:"logs",component:gD},{path:"compilers",component:LD},{path:"",redirectTo:"/pie-chart",pathMatch:"full"}],jD=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=$({type:t,bootstrap:[fD]})}static{this.\u0275inj=U({providers:[N0(),yi,Cu,Gn,er,Du,Wn],imports:[yw,ed,hD,Gw,pu,hx,Jx,lD,Lx,Cx,Kx,yx,VC.forRoot(SV)]})}}return t})();var VD={production:!1};VD.production&&void 0;z0().bootstrapModule(jD).catch(t=>console.log(t));